/**
 * 视觉对齐 Gin-Vue-Admin / Element-Admin 仪表盘：
 * 深色侧栏、顶栏、#f0f2f5 内容区、主色 #409EFF
 * 参考：https://demo.gin-vue-admin.com/#/layout/dashboard
 */
:root {
  --gva-sidebar-bg: #191a23;
  --gva-sidebar-hover: rgba(255, 255, 255, 0.08);
  --gva-sidebar-active-bg: rgba(64, 158, 255, 0.18);
  --gva-sidebar-text: rgba(255, 255, 255, 0.72);
  --gva-sidebar-text-dim: rgba(255, 255, 255, 0.45);
  --gva-primary: #409eff;
  --gva-primary-hover: #66b1ff;
  --gva-primary-active: #3a8ee6;
  --gva-primary-soft: #ecf5ff;
  --gva-bg-page: #f0f2f5;
  --gva-header-bg: #ffffff;
  --gva-header-border: #e4e7ed;
  --gva-text: #303133;
  --gva-text-secondary: #606266;
  --gva-text-placeholder: #909399;
  --gva-border: #dcdfe6;
  --gva-border-light: #ebeef5;
  --gva-card-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
  --gva-radius: 4px;
  --gva-radius-lg: 8px;
  --sidebar-w: 220px;
  --topbar-h: 67px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px;
}

body {
  font-family: "Noto Sans TC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--gva-bg-page);
  color: var(--gva-text);
  line-height: 1.5715;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body.is-login {
  background: #fff;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #fff;
}

.login-card {
  width: 336px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  color: #334155;
}

.login-logo {
  position: relative;
  width: 84px;
  height: 72px;
  margin: 0 auto 4px;
}

.login-logo::before,
.login-logo::after,
.login-logo span,
.login-logo i {
  content: "";
  position: absolute;
  display: block;
  border-radius: 2px;
}

.login-logo::before {
  left: 14px;
  top: 15px;
  width: 9px;
  height: 39px;
  background: #1d70c9;
  transform: skewY(36deg);
}

.login-logo::after {
  left: 28px;
  top: 36px;
  width: 24px;
  height: 8px;
  background: #2563eb;
  transform: rotate(-42deg);
}

.login-logo span {
  right: 14px;
  top: 8px;
  width: 16px;
  height: 52px;
  background: linear-gradient(180deg, #41d389, #14b8a6);
  transform: skewY(23deg);
}

.login-logo i {
  right: 21px;
  top: 12px;
  width: 44px;
  height: 10px;
  background: #334155;
  transform: rotate(-45deg);
}

.login-card h1 {
  margin: 0 0 30px;
  text-align: center;
  font-size: 34px;
  line-height: 1.18;
  color: #334155;
  letter-spacing: -0.04em;
}

.login-card p {
  margin: 8px 0 30px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}

.login-field {
  position: relative;
  display: block;
  margin-bottom: 18px;
}

.login-field input {
  width: 100%;
  height: 40px;
  padding: 0 42px 0 14px;
  border: 1px solid #d8dee8;
  border-radius: 4px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.login-field input:focus {
  border-color: #9dc6ff;
  box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.14);
}

.login-ico {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 16px;
  pointer-events: none;
}

.login-error {
  margin: -4px 0 12px;
  color: #f56c6c;
  font-size: 13px;
}

.login-submit {
  height: 41px;
  border: none;
  border-radius: 4px;
  background: #dca5a7;
  color: #fff;
  font: inherit;
  font-size: 15px;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(148, 80, 82, 0.18);
  transition: background 0.15s, transform 0.15s;
}

.login-submit:hover {
  background: #d08f91;
}

.login-submit:active {
  transform: translateY(1px);
}

a {
  color: var(--gva-primary);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: var(--gva-primary-hover);
}

/* —— 整体布局（侧栏 + 主列） —— */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  background: var(--gva-sidebar-bg);
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
  z-index: 20;
}

.sidebar-brand {
  height: var(--topbar-h);
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--gva-radius);
  background: linear-gradient(135deg, var(--gva-primary) 0%, #79bbff 100%);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(64, 158, 255, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.brand-sub {
  font-size: 11px;
  color: var(--gva-sidebar-text-dim);
  margin-top: 1px;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0 24px;
}

.sidebar-nav-label {
  padding: 8px 20px 6px;
  font-size: 12px;
  color: var(--gva-sidebar-text-dim);
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.sidebar-hint {
  display: block;
  font-size: 11px;
  opacity: 0.85;
  font-weight: 400;
  margin-top: 4px;
  letter-spacing: 0;
}

.cat-list {
  list-style: none;
}

.cat-item {
  display: flex;
  align-items: stretch;
  margin: 0 8px 4px;
  gap: 0;
  border-radius: var(--gva-radius);
}

.cat-item--all .cat-drag-handle {
  display: none;
}

.cat-expand-btn,
.cat-expand-spacer {
  flex-shrink: 0;
  width: 22px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--gva-sidebar-text-dim);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--gva-radius) 0 0 var(--gva-radius);
  line-height: 1;
  padding: 0;
}

.cat-expand-btn:hover {
  color: #fff;
  background: var(--gva-sidebar-hover);
}

.cat-expand-spacer {
  cursor: default;
  pointer-events: none;
}

.cat-drag-spacer {
  flex-shrink: 0;
  width: 22px;
  min-height: 36px;
}

.cat-item.cat-item--child {
  margin-left: 10px;
  padding-left: 4px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.cat-item.cat-item--child > button:not(.cat-item-tool) {
  font-size: 12px;
}

.cat-drag-handle {
  flex-shrink: 0;
  width: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  color: var(--gva-sidebar-text-dim);
  font-size: 11px;
  letter-spacing: -1px;
  user-select: none;
  border-radius: var(--gva-radius) 0 0 var(--gva-radius);
  transition: background 0.15s, color 0.15s;
}

.cat-drag-handle:hover {
  color: #fff;
  background: var(--gva-sidebar-hover);
}

.cat-drag-handle:active {
  cursor: grabbing;
}

.cat-drag-handle--muted {
  cursor: default;
  opacity: 0.38;
  pointer-events: none;
  user-select: none;
}

.cat-drag-handle--muted:hover {
  color: var(--gva-sidebar-text-dim);
  background: transparent;
}

.cat-item--submenu-leaf {
  margin: 2px 0 2px 4px;
  width: calc(100% - 4px);
}

.cat-item.cat-drop-target {
  outline: 2px dashed var(--gva-primary);
  outline-offset: 1px;
  background: rgba(64, 158, 255, 0.12);
}

.cat-item.dragging-source {
  opacity: 0.55;
}

.cat-list .cat-item > button:not(.cat-item-tool) {
  flex: 1;
  min-width: 0;
  margin: 0;
  width: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  padding: 10px 10px 10px 8px;
  border: none;
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  color: var(--gva-sidebar-text);
  cursor: grab;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.cat-list .cat-item > button:not(.cat-item-tool):active {
  cursor: grabbing;
}

.cat-item__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-nav-icon-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  opacity: 0.88;
}

.side-nav-icon {
  display: block;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.cat-list .cat-item > button:not(.cat-item-tool):hover {
  background: var(--gva-sidebar-hover);
  color: #fff;
}

.cat-list .cat-item > button:not(.cat-item-tool).active {
  background: var(--gva-sidebar-active-bg);
  color: #fff;
  font-weight: 500;
  border-left-color: var(--gva-primary);
}

.cat-item-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  padding: 4px 6px 4px 2px;
  flex-shrink: 0;
  border-radius: 0 var(--gva-radius) var(--gva-radius) 0;
}

.cat-item-tool {
  width: 26px;
  min-height: 22px;
  padding: 0;
  border: none;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--gva-sidebar-text-dim);
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.15s, color 0.15s;
}

.cat-item-tool:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.cat-item-tool--danger:hover {
  background: rgba(245, 108, 108, 0.35);
  color: #fff;
}

.cat-item--all > button {
  border-radius: var(--gva-radius);
  padding-left: 14px;
}

/* —— Gin-Vue-Admin 风格：侧栏一级分组 + 可折叠子菜单 —— */
.cat-list > .side-group {
  display: block;
  list-style: none;
  margin: 0 8px 6px;
  padding-top: 0;
  border-top: none;
}

.cat-list > .side-group.dragging-source {
  opacity: 0.55;
}

.cat-list > .side-group.side-group--drop-target {
  outline: 2px dashed var(--gva-primary);
  outline-offset: 2px;
  border-radius: var(--gva-radius);
  background: rgba(64, 158, 255, 0.1);
}

.cat-list > .side-group.side-group--catalog {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.cat-list > .side-group.side-group--system {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cat-list > .side-group.side-group--custom {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.side-submenu--catalog {
  max-height: none;
}

.side-group--catalog.is-expanded .side-submenu--catalog {
  max-height: min(72vh, 1200px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.side-submenu__leaf {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-submenu > .cat-item {
  margin: 2px 0 2px 4px;
  width: calc(100% - 4px);
}

.side-submenu .cat-drag-handle {
  display: none;
}

.side-group__head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 10px 10px 12px;
  margin: 0;
  border: none;
  border-radius: var(--gva-radius);
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  text-align: left;
  cursor: grab;
  transition: background 0.2s ease, color 0.15s, box-shadow 0.2s ease;
}

.side-group__head:active {
  cursor: grabbing;
}

.side-group__head:hover {
  background: var(--gva-sidebar-hover);
  color: #fff;
}

.side-group.is-expanded > .side-group__head {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.side-group--child-active .side-group__head {
  color: #fff;
}

.side-group__head .side-nav-icon-wrap {
  opacity: 1;
}

.side-group__caret {
  display: block;
  width: 0;
  height: 0;
  margin-left: auto;
  margin-top: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid rgba(255, 255, 255, 0.45);
  transition: transform 0.22s ease, border-left-color 0.15s;
  flex-shrink: 0;
}

.side-group.is-expanded .side-group__caret {
  transform: rotate(90deg);
  border-left-color: rgba(255, 255, 255, 0.75);
}

.side-group__title {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.side-submenu {
  list-style: none;
  margin: 0;
  padding: 4px 0 8px 8px;
  overflow: hidden;
  transition: max-height 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s ease, padding 0.22s ease;
}

.side-group:not(.is-expanded) .side-submenu {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
}

.side-group.is-expanded .side-submenu {
  max-height: 400px;
  opacity: 1;
}

.side-menu-item {
  display: block;
  width: calc(100% - 4px);
  margin: 2px 0 2px 4px;
  padding: 9px 10px 9px 28px;
  border: none;
  border-radius: var(--gva-radius);
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  color: var(--gva-sidebar-text);
  text-align: left;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.side-menu-item:hover {
  background: var(--gva-sidebar-hover);
  color: #fff;
}

.side-menu-item.active {
  background: var(--gva-sidebar-active-bg);
  color: #fff;
  font-weight: 500;
  border-left-color: var(--gva-primary);
}

.main-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin-left: var(--sidebar-w);
}

.topbar {
  height: var(--topbar-h);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  background: var(--gva-header-bg);
  border-bottom: 1px solid var(--gva-header-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: 0 1px 4px rgba(0, 21, 41, 0.06);
  z-index: 15;
}

.topbar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gva-text-placeholder);
}

.topbar-breadcrumb .crumb-home {
  color: var(--gva-text-secondary);
}

.topbar-breadcrumb .crumb-sep {
  color: var(--gva-border);
  user-select: none;
}

.topbar-breadcrumb .crumb-current {
  color: var(--gva-text-secondary);
  font-weight: 500;
}

/* Tags View（参考 Gin-Vue-Admin 多标签） */
.tags-view {
  flex-shrink: 0;
  background: #f5f7fa;
  border-bottom: 1px solid var(--gva-border-light);
  padding: 0 12px;
  z-index: 12;
  overflow-x: hidden;
  overflow-y: hidden;
}

.tags-view__scroll {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 0 0;
  scrollbar-width: thin;
}

.tags-view__scroll::-webkit-scrollbar:vertical {
  width: 0;
  height: 0;
  display: none;
}

.tags-view__tab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 220px;
  margin: 0;
  padding: 6px 8px 6px 12px;
  border: 1px solid var(--gva-border);
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  background: #eef1f6;
  color: var(--gva-text-secondary);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  line-height: 1.25;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.tags-view__tab:hover {
  color: var(--gva-text);
  background: #e4e9f0;
}

.tags-view__tab--active {
  background: #fff;
  color: var(--gva-primary);
  border-color: var(--gva-border-light);
  border-bottom: 1px solid #fff;
  margin-bottom: -1px;
  padding-bottom: 7px;
  font-weight: 500;
  box-shadow: 0 -2px 8px rgba(0, 21, 41, 0.06);
}

.tags-view__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.tags-view__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 3px;
  font-size: 15px;
  line-height: 1;
  color: var(--gva-text-placeholder);
  cursor: pointer;
}

.tags-view__close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--gva-text);
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* 顶栏用户与角色下拉 */
.topbar-user-menu {
  position: relative;
}

.topbar-user-menu__trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 260px;
  padding: 4px 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--gva-text);
  font: inherit;
  cursor: pointer;
}

.topbar-user-menu__trigger:hover {
  background: transparent;
}

.topbar-user-menu__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #79bbff 0%, #409eff 100%);
  box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
}

.topbar-user-menu__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  text-align: left;
}

.topbar-user-menu__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--gva-text);
  line-height: 1.25;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-user-menu__role {
  font-size: 12px;
  color: var(--gva-text-secondary);
  line-height: 1.2;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-user-menu__caret {
  display: none;
}

.topbar-user-menu__dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 220px;
  max-width: min(320px, 92vw);
  padding: 6px 0;
  background: #fff;
  border: 1px solid var(--gva-border-light);
  border-radius: var(--gva-radius-lg);
  box-shadow: var(--gva-card-shadow);
  z-index: 30;
}

.topbar-user-menu__item {
  display: block;
  width: 100%;
  padding: 8px 14px;
  border: none;
  background: none;
  font: inherit;
  font-size: 13px;
  text-align: left;
  color: var(--gva-text);
  cursor: pointer;
  transition: background 0.12s;
}

.topbar-user-menu__item:hover {
  background: var(--gva-bg-page);
}

.topbar-user-menu__item--muted {
  color: var(--gva-text-secondary);
}

.topbar-user-menu__item--danger {
  color: #f56c6c;
}

.topbar-user-menu__item--danger:hover {
  background: #fef0f0;
}

.topbar-user-menu__sep {
  height: 1px;
  margin: 6px 0;
  background: var(--gva-border-light);
}

.emp-perm-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 280px;
  overflow-y: auto;
  padding: 4px 0;
}

.emp-perm-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--gva-text-secondary);
  cursor: pointer;
}

.emp-perm-label input {
  margin-top: 3px;
  flex-shrink: 0;
}

/* ——「链接分类 · 全部」页顶：搜索 + 新增链接 —— */
.all-view-chrome {
  flex-shrink: 0;
  background: linear-gradient(180deg, #fff 0%, #f7f9fc 100%);
  border-bottom: 1px solid var(--gva-border-light);
  box-shadow: 0 2px 8px rgba(0, 21, 41, 0.04);
}

.all-view-chrome__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
}

.all-view-chrome__lead {
  flex: 1 1 220px;
  min-width: 0;
}

.all-view-chrome__title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 600;
  color: var(--gva-text);
  letter-spacing: 0.02em;
}

.all-view-chrome__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--gva-text-secondary);
  max-width: 52ch;
}

.all-view-chrome__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex: 1 1 280px;
  justify-content: flex-end;
}

.search-wrap--all {
  flex: 1 1 200px;
  min-width: 160px;
  max-width: 520px;
}

.content-inner--all-links .panel-body {
  padding-top: 12px;
}

.all-links-page {
  width: 100%;
}

.all-links-sections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

@media (min-width: 880px) {
  .all-links-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .all-links-sections {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.section-block--all {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  align-self: start;
  padding: 12px 14px 14px;
  background: #fafbfd;
  border: 1px solid var(--gva-border-light);
  border-radius: var(--gva-radius-lg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.section-block--all .section-head {
  margin-bottom: 8px;
  padding-bottom: 6px;
}

.section-block--all .link-grid {
  flex: 1 1 auto;
}

.all-links-empty {
  padding: 28px 16px;
  text-align: center;
}

/* —— 仪表盘 —— */
.dashboard-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dashboard-hero,
.dashboard-card {
  background: #fff;
  border: 1px solid var(--gva-border-light);
  border-radius: var(--gva-radius-lg);
  box-shadow: var(--gva-card-shadow);
}

.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
}

.dashboard-eyebrow {
  margin-bottom: 6px;
  font-size: 11px;
  color: var(--gva-text-placeholder);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-hero h1 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.35;
  color: var(--gva-text);
}

.dashboard-hero p {
  margin: 0;
  color: var(--gva-text-secondary);
  font-size: 13px;
}

.dashboard-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

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

.dashboard-card {
  padding: 16px;
}

.dashboard-card--metric {
  position: relative;
  overflow: hidden;
  min-height: 116px;
}

.dashboard-metric__label {
  font-size: 13px;
  color: var(--gva-text-secondary);
}

.dashboard-metric__value {
  margin-top: 8px;
  font-size: 26px;
  font-weight: 700;
  color: var(--gva-text);
  letter-spacing: 0.02em;
}

.dashboard-metric__hint {
  margin-top: 4px;
  font-size: 12px;
  color: var(--gva-text-placeholder);
}

.dashboard-spark {
  position: absolute;
  right: 14px;
  bottom: 12px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  opacity: 0.32;
}

.dashboard-spark span {
  display: block;
  width: 4px;
  border-radius: 999px 999px 0 0;
  background: var(--gva-primary);
}

.dashboard-card--green .dashboard-spark span {
  background: #67c23a;
}

.dashboard-card--orange .dashboard-spark span {
  background: #e6a23c;
}

.dashboard-card--purple .dashboard-spark span {
  background: #7a7cff;
}

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

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

.dashboard-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.dashboard-card__head h2 {
  margin: 0;
  font-size: 15px;
  color: var(--gva-text);
}

.dashboard-card__head span {
  font-size: 12px;
  color: var(--gva-text-placeholder);
}

.dashboard-line {
  position: relative;
  height: 220px;
  border-radius: var(--gva-radius);
  background:
    linear-gradient(to right, rgba(220, 223, 230, 0.6) 1px, transparent 1px) 0 0 / 20% 100%,
    linear-gradient(to bottom, rgba(220, 223, 230, 0.6) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(180deg, rgba(64, 158, 255, 0.12), rgba(64, 158, 255, 0.02));
  overflow: hidden;
}

.dashboard-line::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 5%;
  top: 55%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #79bbff, #409eff);
  transform: skewY(-8deg);
  box-shadow: 0 18px 38px rgba(64, 158, 255, 0.25);
}

.dashboard-line span {
  position: absolute;
  bottom: 0;
  width: 16%;
  border-radius: 999px 999px 0 0;
  background: rgba(64, 158, 255, 0.12);
}

.dashboard-line span:nth-child(1) { left: 5%; height: 32%; }
.dashboard-line span:nth-child(2) { left: 21%; height: 42%; }
.dashboard-line span:nth-child(3) { left: 37%; height: 36%; }
.dashboard-line span:nth-child(4) { left: 53%; height: 58%; }
.dashboard-line span:nth-child(5) { left: 69%; height: 72%; }
.dashboard-line span:nth-child(6) { left: 85%; height: 78%; width: 10%; }

.dashboard-quick {
  display: flex;
  flex-direction: column;
}

.dashboard-quick__item {
  width: 100%;
  min-height: 42px;
  margin-bottom: 10px;
  padding: 0 12px;
  border: 1px solid var(--gva-border-light);
  border-radius: var(--gva-radius);
  background: #fafafa;
  color: var(--gva-text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.dashboard-quick__item:hover {
  color: var(--gva-primary);
  border-color: #b3d8ff;
  background: var(--gva-primary-soft);
}

.dashboard-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard-list__row {
  padding: 10px 12px;
  border: 1px solid var(--gva-border-light);
  border-radius: var(--gva-radius);
  background: #fafafa;
}

.dashboard-list__row--inline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-list__row strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gva-text);
  font-size: 13px;
}

.dashboard-list__row span,
.dashboard-empty {
  color: var(--gva-text-placeholder);
  font-size: 12px;
}

.search-wrap input {
  width: 220px;
  max-width: 42vw;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--gva-border);
  border-radius: var(--gva-radius);
  font-family: inherit;
  font-size: 13px;
  color: var(--gva-text);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-wrap input::placeholder {
  color: var(--gva-text-placeholder);
}

.search-wrap input:hover {
  border-color: #c0c4cc;
}

.search-wrap input:focus {
  outline: none;
  border-color: var(--gva-primary);
  box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
}

.search-wrap.search-wrap--all input {
  width: 100%;
  max-width: none;
}

.btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  height: 32px;
  padding: 0 14px;
  border-radius: var(--gva-radius);
  border: 1px solid var(--gva-border);
  background: #fff;
  color: var(--gva-text);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.btn:hover {
  color: var(--gva-primary);
  border-color: #c6e2ff;
  background: var(--gva-primary-soft);
}

.btn-default {
  background: #fff;
}

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

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

.btn-primary:active {
  background: var(--gva-primary-active);
  border-color: var(--gva-primary-active);
}

.btn-text {
  border-color: transparent;
  background: transparent;
  color: var(--gva-text-placeholder);
}

.btn-text:hover {
  color: var(--gva-primary);
  background: transparent;
  border-color: transparent;
}

.content-scroll {
  flex: 1;
  overflow-y: auto;
  background: var(--gva-bg-page);
}

.content-inner {
  padding: 16px;
  max-width: none;
  width: 100%;
  margin: 0;
}

.panel {
  background: #fff;
  border-radius: var(--gva-radius-lg);
  border: 1px solid var(--gva-border-light);
  box-shadow: var(--gva-card-shadow);
  overflow: hidden;
}

.panel-body {
  padding: 16px;
}

.main {
  overflow-x: hidden;
}

.section-block {
  margin-bottom: 20px;
}

.section-block:last-child {
  margin-bottom: 0;
}

.section-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gva-border-light);
}

.section-head h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--gva-text);
  letter-spacing: 0.02em;
}

.section-head .count {
  font-size: 12px;
  color: var(--gva-text-placeholder);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.link-card {
  background: #fff;
  border: 1px solid var(--gva-border-light);
  border-radius: var(--gva-radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.link-card.drag-over {
  border-color: var(--gva-primary);
  box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.35);
}

.link-card.dragging-source {
  opacity: 0.55;
}

.card-drag-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: -4px 0 4px 0;
}

.drag-handle {
  flex-shrink: 0;
  cursor: grab;
  color: var(--gva-text-placeholder);
  font-size: 12px;
  letter-spacing: -1px;
  user-select: none;
  padding: 4px 6px;
  margin: -4px 0 -4px -6px;
  border-radius: var(--gva-radius);
  line-height: 1;
}

.drag-handle:hover {
  color: var(--gva-primary);
  background: var(--gva-primary-soft);
}

.drag-handle:active {
  cursor: grabbing;
}

.section-head.section-head--drag-over::after {
  content: "松开放入该分类末尾";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--gva-primary);
  font-weight: 500;
  pointer-events: none;
}

.section-dropzone.section-head--drag-over {
  border: 1px dashed var(--gva-primary);
  background: var(--gva-primary-soft);
}

.link-card:hover {
  box-shadow: 0 4px 12px rgba(0, 21, 41, 0.08);
  border-color: #d9ecff;
}

.link-card .title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.link-card .title {
  font-weight: 600;
  font-size: 14px;
}

.link-card .title a {
  color: var(--gva-text);
  text-decoration: none;
}

.link-card .title a:hover {
  color: var(--gva-primary);
}

.link-card-url-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 4px;
}

.link-card-url {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-family: ui-monospace, Consolas, "Cascadia Code", monospace;
  color: var(--gva-primary);
  text-decoration: none;
  word-break: break-all;
  line-height: 1.5;
}

.link-card-url:hover {
  color: var(--gva-primary-hover);
  text-decoration: underline;
}

.link-card-url--empty {
  color: var(--gva-text-placeholder);
  cursor: default;
  pointer-events: none;
}

.link-card-url--empty:hover {
  text-decoration: none;
  color: var(--gva-text-placeholder);
}

.btn-copy-url:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-copy-url {
  flex-shrink: 0;
  font-family: inherit;
  font-size: 11px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid var(--gva-border);
  border-radius: var(--gva-radius);
  background: #fff;
  color: var(--gva-text-secondary);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  white-space: nowrap;
}

.btn-copy-url:hover {
  color: var(--gva-primary);
  border-color: #b3d8ff;
  background: var(--gva-primary-soft);
}

.link-card .desc {
  font-size: 12px;
  color: var(--gva-text-secondary);
  line-height: 1.55;
}

.link-card .cred-block {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px dashed var(--gva-border-light);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.link-card .cred-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: 12px;
}

.link-card .cred-label {
  color: var(--gva-text-placeholder);
  flex-shrink: 0;
  min-width: 2.25rem;
}

.link-card .cred-val {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  word-break: break-all;
  color: var(--gva-text-secondary);
}

.link-card .btn-cred {
  font-size: 11px;
  padding: 2px 8px;
  height: 24px;
  border: 1px solid var(--gva-border);
  background: #fff;
  border-radius: var(--gva-radius);
  cursor: pointer;
  color: var(--gva-text-secondary);
  transition: all 0.15s;
}

.link-card .btn-cred:hover {
  color: var(--gva-primary);
  border-color: #b3d8ff;
  background: var(--gva-primary-soft);
}

.link-card-move-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--gva-border-light, #ebeef5);
}

.link-card-move-label {
  font-size: 12px;
  color: var(--gva-text-secondary, #909399);
  flex-shrink: 0;
}

.link-card-move-select {
  flex: 1 1 140px;
  min-width: 120px;
  max-width: 100%;
  font-size: 13px;
  padding: 6px 8px;
  border: 1px solid var(--gva-border, #dcdfe6);
  border-radius: var(--gva-radius, 4px);
  background: #fff;
  color: var(--gva-text, #303133);
}

.link-card-move-btn {
  flex-shrink: 0;
  font-size: 13px;
  padding: 4px 10px;
}

.link-card .actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  padding-top: 4px;
}

.link-card .actions button {
  font-size: 12px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: var(--gva-radius);
  cursor: pointer;
  color: var(--gva-primary);
}

.link-card .actions button:hover {
  background: var(--gva-primary-soft);
}

.link-card .actions button[data-action="del"] {
  color: var(--gva-text-placeholder);
}

.link-card .actions button[data-action="del"]:hover {
  color: #f56c6c;
  background: #fef0f0;
}

/* —— 系统管理（分类维护表） —— */
.sys-mgmt {
  max-width: 960px;
}

.sys-mgmt__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--gva-text);
  letter-spacing: 0.02em;
  margin: 0 0 8px;
  padding-bottom: 0;
  border-bottom: none;
}

.sys-mgmt__subtitle {
  font-size: 13px;
  color: var(--gva-text-secondary);
  line-height: 1.55;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gva-border-light);
}

.sys-mgmt__section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gva-text);
  margin: 18px 0 10px;
  letter-spacing: 0.02em;
}

/* 系统管理 · 员工管理（标签 + 搜索 + 主色按钮，参考青绿 Tab） */
.sys-mgmt.emp-mgmt {
  max-width: none;
  width: 100%;
}

.emp-mgmt__intro {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--gva-text-secondary);
  line-height: 1.55;
}

.emp-mgmt__tabs {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: stretch;
  gap: 0;
  background: #f0f2f5;
  border: 1px solid var(--gva-border-light);
  border-radius: var(--gva-radius-lg) var(--gva-radius-lg) 0 0;
  border-bottom: none;
  padding: 0 8px;
  box-shadow: 0 2px 8px rgba(0, 21, 41, 0.04);
}

.emp-mgmt__tab {
  position: relative;
  margin: 0;
  padding: 12px 20px 14px;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--gva-text);
  cursor: pointer;
  transition: color 0.15s;
}

.emp-mgmt__tab:hover {
  color: #0d9488;
}

.emp-mgmt__tab--active {
  font-weight: 600;
  color: var(--gva-text);
}

.emp-mgmt__tab--active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;
  background: #14b8a6;
  border-radius: 2px 2px 0 0;
}

.emp-mgmt__body {
  background: #fff;
  border: 1px solid var(--gva-border-light);
  border-top: none;
  border-radius: 0 0 var(--gva-radius-lg) var(--gva-radius-lg);
  padding: 0 16px 18px;
  box-shadow: var(--gva-card-shadow);
}

.emp-mgmt__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 14px 0 12px;
}

.emp-mgmt__search-wrap {
  display: flex;
  align-items: center;
  flex: 0 0 360px;
  width: 360px;
  max-width: min(360px, 100%);
  gap: 8px;
}

.emp-mgmt__search-icon {
  flex-shrink: 0;
  display: flex;
  color: var(--gva-text-placeholder);
}

.emp-mgmt__search-wrap .emp-mgmt__search {
  flex: 1 1 auto;
  min-width: 120px;
  max-width: 100%;
}

.emp-mgmt__search {
  flex: 1 1 200px;
  min-width: 160px;
  max-width: 420px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--gva-border);
  border-radius: var(--gva-radius);
  font: inherit;
  font-size: 13px;
  color: var(--gva-text);
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
}

.emp-mgmt__search:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.18);
}

.emp-mgmt__btn-primary {
  flex-shrink: 0;
  height: 34px;
  padding: 0 18px;
  border: none;
  border-radius: var(--gva-radius);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: #14b8a6;
  cursor: pointer;
  transition: background 0.15s;
}

.emp-mgmt__btn-primary:hover {
  background: #0d9488;
}

.emp-mgmt__btn-primary:active {
  background: #0f766e;
}

.emp-mgmt__table-card {
  margin-top: 0;
  border-radius: var(--gva-radius);
  box-shadow: none;
}

.emp-mgmt__role-table .emp-mgmt__th-ops {
  width: 280px;
  min-width: 260px;
  text-align: left;
}

.emp-mgmt__ops {
  text-align: left;
  white-space: normal;
}

.emp-mgmt__link {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 13px;
  color: #14b8a6;
  cursor: pointer;
  text-decoration: none;
}

.emp-mgmt__link:hover:not(:disabled):not(.emp-mgmt__link--disabled) {
  color: #0d9488;
  text-decoration: underline;
}

.emp-mgmt__link + .emp-mgmt__link {
  margin-left: 14px;
}

.emp-mgmt__link--disabled,
.emp-mgmt__link:disabled {
  color: var(--gva-text-placeholder);
  cursor: not-allowed;
  text-decoration: none;
}

.sys-table-card--spaced {
  margin-bottom: 20px;
}

.sys-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.sys-intro {
  font-size: 13px;
  color: var(--gva-text-secondary);
  margin-bottom: 14px;
  line-height: 1.55;
}

.sys-table-card {
  background: #fff;
  border: 1px solid var(--gva-border-light);
  border-radius: var(--gva-radius-lg);
  box-shadow: var(--gva-card-shadow);
  overflow: hidden;
}

.sys-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.sys-table th,
.sys-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--gva-border-light);
  vertical-align: middle;
}

.sys-table thead th {
  background: #fafafa;
  color: var(--gva-text-secondary);
  font-weight: 600;
  font-size: 12px;
}

.sys-th-actions {
  width: 200px;
  text-align: right;
}

.sys-td-sidebar {
  font-size: 12px;
  color: var(--gva-text-secondary);
  white-space: nowrap;
}

.sys-table tbody tr:last-child td {
  border-bottom: none;
}

.sys-table tbody tr:hover td {
  background: #fafcff;
}

.sys-table-empty {
  text-align: center;
  color: var(--gva-text-placeholder);
  padding: 28px 16px;
}

.sys-cat-name {
  color: var(--gva-text);
  font-weight: 500;
}

.sys-td-actions {
  text-align: right;
  white-space: nowrap;
}

.sys-row-btn {
  margin-left: 4px;
  font-size: 12px;
  padding: 4px 8px;
  min-height: auto;
}

.sys-row-btn--danger:hover {
  color: #f56c6c;
}

/* —— 工作记录（顶栏固定：分栏布局，非 sticky 叠层） —— */
.content-scroll.work-records-split-chain {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.content-scroll.work-records-split-chain > .content-inner {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.content-scroll.work-records-split-chain .panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.content-scroll.work-records-split-chain .panel-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.main.main--work-records-split {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.work-records {
  max-width: 100%;
}

.work-records.work-records--split-layout {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  max-width: 100%;
}

.work-records__toolbar {
  flex-shrink: 0;
}

.work-records__scroll {
  flex: 1;
  min-height: 0;
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.work-records__footer {
  flex-shrink: 0;
  padding-top: 8px;
}

.work-records__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--gva-border-light);
  border-radius: var(--gva-radius-lg);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.work-records__head .sys-mgmt__subtitle {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.work-records__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 12px;
  flex: 1 1 420px;
}

.work-records__query {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 10px;
  border: 1px dashed var(--gva-border);
  border-radius: var(--gva-radius);
  background: #fcfdff;
}

.work-records__query-title {
  font-size: 12px;
  color: var(--gva-text-secondary);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.work-records__query-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.work-query-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.work-query-field > span {
  font-size: 12px;
  color: var(--gva-text-secondary);
  white-space: nowrap;
}

.work-records__query-ops {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.work-filter {
  height: 34px;
  min-width: 150px;
  padding: 0 10px;
  border: 1px solid var(--gva-border);
  border-radius: var(--gva-radius);
  background: #fff;
  color: var(--gva-text);
  font-family: inherit;
  font-size: 13px;
}

.work-filter:focus {
  outline: none;
  border-color: var(--gva-primary);
  box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.16);
}

.work-btn {
  height: 34px;
  padding: 0 12px;
  border-radius: var(--gva-radius);
}

.work-btn--ghost {
  background: #f5f7fa;
}

.work-records__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}

.work-chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f5f7fa;
  color: var(--gva-text-secondary);
  border: 1px solid var(--gva-border-light);
  font-size: 12px;
}

.work-chip--accent {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.work-records__empty {
  padding: 28px 16px;
  background: #fff;
  border: 1px solid var(--gva-border-light);
  border-radius: var(--gva-radius-lg);
  color: var(--gva-text-placeholder);
  text-align: center;
  box-shadow: var(--gva-card-shadow);
}

.work-records .sys-table-card {
  border: 1px solid var(--gva-border-light);
  border-radius: var(--gva-radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.work-records__table {
  table-layout: fixed;
  width: 100%;
}

.work-records__table .sys-th-actions {
  width: auto;
}

.work-records__th {
  position: relative;
  vertical-align: middle;
}

.work-records__th-text {
  display: block;
  padding-right: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.work-records__col-resize-handle {
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 100%;
  min-height: 40px;
  cursor: col-resize;
  z-index: 2;
  touch-action: none;
  box-sizing: border-box;
}

.work-records__col-resize-handle::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  right: 5px;
  width: 2px;
  border-radius: 1px;
  background: rgba(148, 163, 184, 0.45);
  opacity: 0.85;
}

.work-records__col-resize-handle:hover::after,
.work-records__col-resize-handle:active::after {
  background: var(--gva-primary);
  opacity: 1;
}

.work-records__table thead th {
  position: relative;
  top: auto;
  z-index: auto;
  background: #f8fafc;
}

.work-records__table thead {
  display: table-header-group;
}

.work-records__pager.work-records__footer {
  margin-top: 0;
}

.work-records__pager {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.work-records__pager-info {
  font-size: 12px;
  color: var(--gva-text-secondary);
}

.work-records__pager-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.work-records__pager-jump {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.work-records__pager-input {
  width: 84px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--gva-border);
  border-radius: var(--gva-radius);
  background: #fff;
  color: var(--gva-text);
  font-size: 13px;
}

.work-records__pager-input:focus {
  outline: none;
  border-color: var(--gva-primary);
  box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.16);
}

.work-records__table td {
  vertical-align: top;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.work-records__table th {
  font-weight: 700;
  white-space: nowrap;
  background: #f8fafc;
  color: #334155;
}

.work-records__table tbody tr {
  transition: background 0.15s ease;
}

.work-records__table tbody tr:hover {
  background: #f8fbff;
}

.work-records__table td.work-records__content {
  min-width: 0;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.6;
  word-break: break-word;
  overflow-wrap: anywhere;
  padding-top: 11px;
  padding-bottom: 11px;
}

.work-records__content {
  font-weight: 400;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  color: var(--gva-text);
  line-height: 1.6;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.work-records__link a {
  color: var(--gva-primary);
  white-space: nowrap;
  text-decoration: none;
}

.work-records__link a:hover {
  text-decoration: underline;
}

.work-records__row--done .work-records__content {
  color: var(--gva-text-placeholder);
  text-decoration: line-through;
}

.work-priority,
.work-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.work-priority--low {
  color: #67c23a;
  background: #f0f9eb;
  border-color: #e1f3d8;
}

.work-priority--medium {
  color: #409eff;
  background: #ecf5ff;
  border-color: #d9ecff;
}

.work-priority--high {
  color: #e6a23c;
  background: #fdf6ec;
  border-color: #faecd8;
}

.work-priority--urgent {
  color: #f56c6c;
  background: #fef0f0;
  border-color: #fde2e2;
}

.work-status {
  cursor: pointer;
  color: #e6a23c;
  background: #fdf6ec;
  border-color: #faecd8;
}

.work-status.is-done {
  color: #67c23a;
  background: #f0f9eb;
  border-color: #e1f3d8;
}

.field--inline label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--gva-text-secondary);
}

.modal-body .field--checkbox label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}

.modal-body .field--checkbox input[type="checkbox"] {
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  box-shadow: none;
}

.work-analysis {
  color: var(--gva-text-secondary);
  font-size: 13px;
  line-height: 1.7;
}

.work-analysis__summary {
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid var(--gva-border-light);
  border-radius: var(--gva-radius);
  background: #fafafa;
}

.work-analysis__summary p {
  margin: 0 0 6px;
}

.work-analysis__summary p:last-child {
  margin-bottom: 0;
}

.work-analysis h3 {
  margin: 14px 0 8px;
  font-size: 14px;
  color: var(--gva-text);
}

.work-analysis ul {
  padding-left: 18px;
}

.work-analysis li {
  margin-bottom: 6px;
}

.work-analysis__loading {
  margin: 16px 0;
  text-align: center;
  color: var(--gva-text-secondary);
}

.work-analysis__llm {
  margin-bottom: 12px;
}

.work-analysis__llm-title {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--gva-text);
}

.work-analysis__llm-body {
  padding: 12px 14px;
  border: 1px solid var(--gva-border-light);
  border-radius: var(--gva-radius);
  background: #fff;
  color: var(--gva-text);
  line-height: 1.65;
  max-height: 52vh;
  overflow-y: auto;
}

.work-analysis__fallback {
  margin-top: 8px;
  padding: 8px 12px;
  border: 1px dashed var(--gva-border);
  border-radius: var(--gva-radius);
  background: #fafafa;
}

.work-analysis__fallback summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--gva-text-secondary);
  user-select: none;
}

.work-analysis__err {
  color: #f56c6c;
  margin: 0 0 10px;
  line-height: 1.5;
}

.work-analysis__actions {
  margin-top: 12px;
}

.project-analysis__result {
  margin-top: 10px;
  min-height: 160px;
}

.empty-hint {
  color: var(--gva-text-placeholder);
  font-size: 13px;
  padding: 24px 8px;
  text-align: center;
}

/* —— 弹窗（Element 风格） —— */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(2px);
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: var(--gva-radius-lg);
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--gva-border-light);
}

.modal.modal--emp-form {
  max-width: 560px;
}

/* 新增角色：仅角色名称（Element 式留白） */
.modal.modal--role-add {
  max-width: 480px;
}

.modal--role-add .modal-body {
  padding: 24px 28px 28px;
}

.modal--role-add .role-create-field {
  margin: 0;
}

.modal--role-add .role-create-field label {
  display: block;
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 400;
  color: var(--gva-text-secondary);
}

.modal--role-add .role-create-input {
  display: block;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--gva-border);
  border-radius: var(--gva-radius);
  font: inherit;
  font-size: 14px;
  color: var(--gva-text);
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.modal--role-add .role-create-input::placeholder {
  color: var(--gva-text-placeholder);
}

.modal--role-add .role-create-input:focus {
  border-color: var(--gva-primary);
  box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.15);
}

/* 修改角色 / 权限设置 */
.modal.modal--role-full {
  max-width: 560px;
}

/* 角色权限设置：左右分栏（成员 + 权限/数据安全） */
.modal.modal--role-perm {
  max-width: min(1080px, 96vw);
  max-height: 86vh;
  border-radius: 2px;
}

/* 权限设置：右侧固定面板 + 左侧 50% 遮罩 */
.modal-backdrop.modal-backdrop--sidepanel {
  display: block;
  --role-perm-drawer-top: 176px;
  left: var(--sidebar-w);
  top: var(--role-perm-drawer-top, 176px);
  right: 0;
  bottom: 0;
  inset: var(--role-perm-drawer-top, 176px) 0 0 var(--sidebar-w);
  background: transparent;
  backdrop-filter: none;
}

.modal-backdrop.modal-backdrop--sidepanel::before {
  content: "";
  position: fixed;
  left: var(--sidebar-w);
  top: var(--role-perm-drawer-top, 176px);
  right: min(864px, 58vw);
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.modal-backdrop.modal-backdrop--sidepanel .modal.modal--role-perm {
  position: fixed;
  right: 0;
  top: var(--role-perm-drawer-top, 176px);
  width: min(864px, 58vw);
  max-width: min(864px, 58vw);
  height: calc(100vh - var(--role-perm-drawer-top, 176px));
  max-height: calc(100vh - var(--role-perm-drawer-top, 176px));
  border-radius: 0;
  border-right: none;
}

.modal--role-perm .modal-body {
  padding: 8px 10px 10px;
  display: flex;
  min-height: 0;
  overflow: hidden;
}

.modal--role-perm .role-perm {
  flex: 1;
  min-height: 0;
  height: 100%;
}

.modal--role-perm .role-perm__layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 12px;
  height: 100%;
  min-height: 0;
}

.role-perm__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: #303133;
}

.role-perm__members-card,
.role-perm__rights {
  border: 1px solid var(--gva-border-light);
  background: #fff;
  min-height: 0;
  height: 100%;
}

.role-perm__members {
  min-height: 0;
}

.role-perm__rights {
  display: flex;
  flex-direction: column;
}

.role-perm__member-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.role-perm__member-table th,
.role-perm__member-table td {
  border: 1px solid var(--gva-border-light);
  padding: 10px 12px;
  text-align: left;
}

.role-perm__member-table th {
  background: #fafafa;
  font-weight: 600;
}

.role-perm__member-empty {
  color: var(--gva-text-placeholder);
  text-align: center;
}

.role-perm__member-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 34px;
  border-top: 1px solid var(--gva-border-light);
  color: var(--gva-text-placeholder);
}

.role-perm__tabs {
  display: flex;
  gap: 22px;
  padding: 0 12px;
  border-bottom: 1px solid var(--gva-border-light);
  flex-shrink: 0;
}

.role-perm__tab {
  border: none;
  background: none;
  font: inherit;
  color: var(--gva-text-secondary);
  padding: 10px 0;
  font-size: 13px;
  cursor: pointer;
}

.role-perm__tab--active {
  color: #14b8a6;
  border-bottom: 2px solid #14b8a6;
}

.role-perm__panel {
  padding: 10px 12px 12px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.role-perm__panel[hidden] {
  display: none;
}

.role-perm__search-line {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.role-perm__search-wrap {
  position: relative;
  margin-bottom: 0;
}

.role-perm__search {
  width: 100%;
  height: 34px;
  border: 1px solid var(--gva-border);
  border-radius: var(--gva-radius);
  padding: 0 34px 0 12px;
  font: inherit;
}

.role-perm__search:focus {
  outline: none;
  border-color: #14b8a6;
}

.role-perm__search-ico {
  position: absolute;
  right: 10px;
  top: 7px;
  color: var(--gva-text-placeholder);
}

.role-perm__mini-pager {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gva-text-placeholder);
  font-size: 12px;
}

.role-perm__mini-btn {
  width: 24px;
  height: 24px;
  border: 1px solid var(--gva-border);
  background: #fff;
  color: var(--gva-text-secondary);
  border-radius: 2px;
}

.role-perm__toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 10px;
}

.role-perm__toggles label,
.role-perm__safe-item label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gva-text-secondary);
  font-size: 13px;
}

.role-perm__tree {
  flex: 1;
  min-height: 0;
  height: 100%;
  max-height: none;
  overflow-y: auto;
  border: none;
  padding: 10px 12px;
  background: #fff;
  text-align: left;
}

.role-perm__group + .role-perm__group {
  margin-top: 3px;
}

.role-perm__group[data-depth="1"] {
  padding-left: 24px;
}

.role-perm__group[data-depth="2"] {
  padding-left: 48px;
}

.role-perm__group[data-depth="3"] {
  padding-left: 72px;
}

.role-perm__group[data-depth="4"] {
  padding-left: 96px;
}

.role-perm__group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #303133;
  min-height: 28px;
  justify-content: flex-start;
  text-align: left;
}

.role-perm__group-head:has(.role-perm__exp) {
  cursor: pointer;
}

.role-perm__exp {
  width: 18px;
  height: 18px;
  border: none;
  background: none;
  color: #606266;
  cursor: pointer;
  padding: 0;
  flex: 0 0 18px;
  text-align: center;
}

.role-perm__exp::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid currentColor;
  transform: rotate(90deg);
  transition: transform 0.15s;
}

.role-perm__exp[aria-expanded="false"]::before {
  transform: rotate(0deg);
}

.role-perm__leaf-dot {
  display: inline-block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

.modal-body .role-perm__group-head input[type="checkbox"] {
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}

.role-perm__group-title {
  flex: 0 1 auto;
  min-width: 0;
  text-align: left;
  line-height: 1.45;
  word-break: break-word;
}

.role-perm__group--child .role-perm__group-title {
  font-weight: 400;
}

.role-perm__empty {
  margin: 0;
  padding: 18px 8px;
  color: var(--gva-text-placeholder);
  text-align: center;
}

.role-perm__safe-item + .role-perm__safe-item {
  margin-top: 10px;
}

.modal--emp-form .modal-body .emp-form__footer-hint {
  margin-top: 4px;
  margin-bottom: 0;
}

/* 新增 / 编辑员工：标签右对齐 + 控件横排 */
.modal--emp-form .emp-form {
  margin: 0;
}

.modal--emp-form .emp-form__row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 0 14px;
  align-items: center;
  margin-bottom: 14px;
}

.modal--emp-form .emp-form__row--stack {
  align-items: start;
}

.modal--emp-form .emp-form__row--stack .emp-form__label {
  padding-top: 8px;
}

.modal--emp-form .emp-form__label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--gva-text-secondary);
  text-align: right;
  line-height: 1.35;
}

.modal--emp-form .emp-form__req {
  color: var(--gva-text-placeholder);
  font-weight: 500;
}

.modal--emp-form .emp-form__help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 2px;
  padding: 0;
  border: 1px solid var(--gva-border);
  border-radius: 50%;
  background: #fafafa;
  color: var(--gva-text-placeholder);
  font-size: 11px;
  line-height: 1;
  cursor: help;
  flex-shrink: 0;
}

.modal--emp-form .emp-form__help:hover {
  border-color: #14b8a6;
  color: #14b8a6;
}

.modal--emp-form .emp-form__control {
  min-width: 0;
}

.modal--emp-form .emp-form__control input,
.modal--emp-form .emp-form__control select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--gva-border);
  border-radius: var(--gva-radius);
  font: inherit;
  font-size: 13px;
  color: var(--gva-text);
  background: #fafafa;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.modal--emp-form .emp-form__control select[multiple] {
  min-height: 96px;
  padding: 6px 8px;
}

.modal--emp-form .emp-form__role-list {
  min-height: 96px;
  max-height: 150px;
  overflow-y: auto;
  padding: 6px 8px;
  border: 1px solid var(--gva-border);
  border-radius: var(--gva-radius);
  background: #fafafa;
}

.modal--emp-form .emp-form__role-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 28px;
  margin: 0;
  padding: 2px 0;
  color: var(--gva-text);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
}

.modal--emp-form .emp-form__role-check input {
  width: auto;
  flex-shrink: 0;
  margin: 0;
}

.modal--emp-form .emp-form__control input:focus,
.modal--emp-form .emp-form__control select:focus {
  outline: none;
  border-color: #14b8a6;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.18);
}

.modal--emp-form .emp-form__checkbox-row {
  margin-top: 10px;
}

.modal--emp-form .emp-form__check-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--gva-text-secondary);
  font-weight: 400;
  cursor: pointer;
  line-height: 1.45;
}

.modal--emp-form .emp-form__check-label input {
  width: auto;
  margin-top: 3px;
  flex-shrink: 0;
}

.modal-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--gva-border-light);
  font-weight: 600;
  font-size: 15px;
  color: var(--gva-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.modal-close {
  border: none;
  background: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--gva-text-placeholder);
  padding: 4px;
  border-radius: var(--gva-radius);
  transition: color 0.15s, background 0.15s;
}

.modal-close:hover {
  color: var(--gva-text);
  background: var(--gva-bg-page);
}

.modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  flex: 1;
}

.modal-body .field-hint {
  font-size: 12px;
  color: var(--gva-text-placeholder);
  margin-top: 6px;
  line-height: 1.45;
}

.modal-body .field {
  margin-bottom: 16px;
}

.modal-body .field:last-child {
  margin-bottom: 0;
}

.modal-body label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gva-text-secondary);
  margin-bottom: 6px;
}

.modal-body input,
.modal-body select,
.modal-body textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--gva-border);
  border-radius: var(--gva-radius);
  font-family: inherit;
  font-size: 13px;
  color: var(--gva-text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.modal-body input:focus,
.modal-body select:focus,
.modal-body textarea:focus {
  outline: none;
  border-color: var(--gva-primary);
  box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
}

.modal-body textarea {
  min-height: 76px;
  resize: vertical;
}

.modal-footer {
  padding: 12px 20px 18px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  border-top: 1px solid var(--gva-border-light);
  flex-shrink: 0;
}

.modal-footer .btn {
  min-width: 72px;
}

.modal-footer .btn-primary {
  order: 2;
}

.hidden-file {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}

@media (max-width: 900px) {
  .topbar {
    height: auto;
    min-height: var(--topbar-h);
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .admin-layout {
    flex-direction: column;
  }

  .sidebar {
    position: static;
    left: auto;
    top: auto;
    height: auto;
    width: 100%;
    flex-direction: row;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  }

  .main-area {
    margin-left: 0;
  }

  .sidebar-brand {
    height: auto;
    min-height: 48px;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
  }

  .sidebar-nav {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 8px 8px 8px 0;
    overflow-x: auto;
  }

  .sidebar-nav-label {
    display: none;
  }

  .cat-list {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px;
    padding-right: 8px;
  }

  .cat-list .cat-item {
    flex-shrink: 0;
    margin: 0;
  }

  .cat-list .cat-item > button:not(.cat-item-tool) {
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
    margin: 0;
    white-space: nowrap;
    border-left: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
  }

  .cat-item__label {
    white-space: nowrap;
  }

  .side-submenu .cat-item--submenu-leaf > button {
    border-radius: var(--gva-radius);
  }

  .cat-list .cat-item > button:not(.cat-item-tool).active {
    border-left-color: transparent;
    border-bottom-color: var(--gva-primary);
  }

  .cat-list > .side-group.side-group--catalog {
    flex: 1 1 100%;
    width: 100%;
    margin: 6px 0 0;
    padding-top: 0;
    border-top: none;
  }

  .cat-list > .side-group.side-group--system {
    flex: 1 1 100%;
    width: 100%;
    margin: 8px 0 0;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .cat-list > .side-group.side-group--custom {
    flex: 1 1 100%;
    width: 100%;
    margin: 8px 0 0;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .side-group--catalog.is-expanded .side-submenu--catalog {
    max-height: min(56vh, 800px);
  }

  .side-group__head {
    border-radius: var(--gva-radius);
  }

  .side-menu-item.active {
    border-left-color: transparent;
    border-bottom: 2px solid var(--gva-primary);
    border-left-width: 0;
    padding-left: 28px;
  }

  .cat-item-actions {
    flex-direction: row;
    padding: 0 4px 0 0;
    border-radius: 0 var(--gva-radius) var(--gva-radius) 0;
  }

  .cat-item-tool {
    width: 28px;
    min-height: 28px;
  }

  .cat-drag-handle {
    border-radius: var(--gva-radius) 0 0 var(--gva-radius);
  }

  .work-records__head {
    flex-direction: column;
  }

  .work-records__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .work-filter {
    flex: 1 1 160px;
  }

  .work-records__query {
    width: 100%;
  }

  .work-records__query-ops {
    width: 100%;
    justify-content: flex-start;
  }

  .work-records__pager {
    align-items: flex-start;
  }

  .dashboard-hero {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .content-inner {
    padding: 16px;
  }

  .panel-body {
    padding: 16px;
  }
}
