@charset "UTF-8";
/* line 1, app/assets/stylesheets/admin.scss */
:root {
  --bg-surface: #0f172a;
  --bg-elevated: #020617;
  --bg-elevated-soft: #111827;
  --bg-secondary: rgba(15, 23, 42, 0.98);
  --border-subtle: #1f2937;
  --border-color: #1f2937;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.12);
  --accent-strong: #2563eb;
  --text-primary: #e5e7eb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --text-tertiary: #6b7280;
  --danger: #ef4444;
  --success: #22c55e;
  --warning: #eab308;
  --radius-lg: 12px;
  --radius-md: 8px;
  --radius-sm: 6px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.65);
}

/* line 24, app/assets/stylesheets/admin.scss */
body.admin {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #1e293b, #020617 58%);
  color: var(--text-primary);
  min-height: 100vh;
}

/* line 32, app/assets/stylesheets/admin.scss */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* line 37, app/assets/stylesheets/admin.scss */
.admin-sidebar {
  width: 260px;
  background: radial-gradient(circle at top left, #020617, #020617 60%, #111827);
  border-right: 1px solid var(--border-subtle);
  padding: 20px 18px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  transition: width 0.2s ease;
  position: sticky;
  top: 0;
  align-self: flex-start;
  z-index: 30;
}

/* 侧边栏菜单滚动容器：logo 与 footer 固定，中间菜单区域滚动 */
/* line 55, app/assets/stylesheets/admin.scss */
.admin-sidebar-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
}

/* line 64, app/assets/stylesheets/admin.scss */
.admin-sidebar-nav::-webkit-scrollbar {
  width: 6px;
}

/* line 67, app/assets/stylesheets/admin.scss */
.admin-sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 999px;
}

/* line 71, app/assets/stylesheets/admin.scss */
.admin-sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.5);
}

/* line 75, app/assets/stylesheets/admin.scss */
.admin-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  flex-shrink: 0;
}

/* line 83, app/assets/stylesheets/admin.scss */
.admin-logo-badge {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: conic-gradient(from 180deg, #3b82f6, #22c55e, #eab308, #3b82f6);
  padding: 2px;
  box-sizing: border-box;
  flex-shrink: 0;
}

/* line 93, app/assets/stylesheets/admin.scss */
.admin-logo-inner {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, rgba(248, 250, 252, 0.32), rgba(15, 23, 42, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 650;
  font-size: 16px;
  color: #f9fafb;
}

/* line 106, app/assets/stylesheets/admin.scss */
.admin-logo-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

/* line 113, app/assets/stylesheets/admin.scss */
.admin-logo-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* line 120, app/assets/stylesheets/admin.scss */
.admin-logo-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* 折叠按钮 */
/* line 127, app/assets/stylesheets/admin.scss */
.admin-sidebar-toggle {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: background 0.16s ease-out, color 0.16s ease-out;
}

/* line 143, app/assets/stylesheets/admin.scss */
.admin-sidebar-toggle:hover {
  background: rgba(30, 64, 175, 0.4);
  color: #f9fafb;
}

/* line 148, app/assets/stylesheets/admin.scss */
.admin-sidebar-toggle-icon {
  line-height: 1;
}

/* 分组：标题 + 列表 作为一个 section */
/* line 153, app/assets/stylesheets/admin.scss */
.admin-sidebar-section {
  display: flex;
  flex-direction: column;
}

/* line 158, app/assets/stylesheets/admin.scss */
.admin-sidebar-section-title {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin: 16px 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background 0.16s ease-out, color 0.16s ease-out;
}

/* line 175, app/assets/stylesheets/admin.scss */
.admin-sidebar-section-title:hover {
  background: rgba(30, 64, 175, 0.18);
  color: #cbd5e1;
}

/* line 180, app/assets/stylesheets/admin.scss */
.admin-sidebar-section-title > span:first-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* line 186, app/assets/stylesheets/admin.scss */
.section-arrow {
  font-size: 10px;
  transition: transform 0.18s ease-out;
  flex-shrink: 0;
}

/* 分组折叠状态 */
/* line 193, app/assets/stylesheets/admin.scss */
.admin-sidebar-section.collapsed .admin-nav {
  display: none;
}

/* line 197, app/assets/stylesheets/admin.scss */
.admin-sidebar-section.collapsed .section-arrow {
  transform: rotate(-90deg);
}

/* line 201, app/assets/stylesheets/admin.scss */
.admin-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* line 210, app/assets/stylesheets/admin.scss */
.admin-nav-item {
  border-radius: var(--radius-md);
}

/* line 214, app/assets/stylesheets/admin.scss */
.admin-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--text-secondary);
  padding: 9px 10px;
  border-radius: inherit;
  font-size: 13px;
  transition: background 0.16s ease-out, color 0.16s ease-out, transform 0.12s ease-out, box-shadow 0.12s ease-out;
}

/* line 226, app/assets/stylesheets/admin.scss */
.admin-nav-link-main {
  display: flex;
  align-items: center;
  gap: 9px;
}

/* line 232, app/assets/stylesheets/admin.scss */
.admin-nav-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: radial-gradient(circle at 30% 0, rgba(248, 250, 252, 0.25), rgba(15, 23, 42, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* line 243, app/assets/stylesheets/admin.scss */
.admin-nav-label {
  font-weight: 500;
}

/* line 247, app/assets/stylesheets/admin.scss */
.admin-nav-meta {
  font-size: 11px;
  color: var(--text-muted);
}

/* line 252, app/assets/stylesheets/admin.scss */
.admin-nav-link:hover {
  background: rgba(30, 64, 175, 0.28);
  color: #e5e7eb;
  transform: translateX(1px);
}

/* line 258, app/assets/stylesheets/admin.scss */
.admin-nav-item.active .admin-nav-link {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.28), rgba(37, 99, 235, 0.08));
  color: #f9fafb;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.6);
  position: relative;
}

/* 当前打开的菜单项：左侧高亮指示条 */
/* line 266, app/assets/stylesheets/admin.scss */
.admin-nav-item.active .admin-nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #60a5fa, #2563eb);
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.6);
}

/* line 278, app/assets/stylesheets/admin.scss */
.admin-nav-item.active .admin-nav-icon {
  background: radial-gradient(circle at 30% 0, rgba(248, 250, 252, 0.45), rgba(30, 64, 175, 0.96));
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.55);
}

/* line 283, app/assets/stylesheets/admin.scss */
.admin-nav-item.active .admin-nav-label {
  color: #f9fafb;
  font-weight: 600;
}

/* line 288, app/assets/stylesheets/admin.scss */
.admin-nav-item.active .admin-nav-meta {
  color: var(--accent-soft);
}

/* line 292, app/assets/stylesheets/admin.scss */
.admin-sidebar-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* line 301, app/assets/stylesheets/admin.scss */
.admin-sidebar-footer-label,
.admin-sidebar-footer-email {
  white-space: nowrap;
  overflow: hidden;
}

/* ============ 收窄态：整侧边栏只显示图标 ============ */
/* line 308, app/assets/stylesheets/admin.scss */
.admin-layout.sidebar-collapsed .admin-sidebar {
  width: 64px;
  padding: 20px 10px;
}

/* line 313, app/assets/stylesheets/admin.scss */
.admin-layout.sidebar-collapsed .admin-logo {
  gap: 0;
  margin-bottom: 20px;
}

/* line 318, app/assets/stylesheets/admin.scss */
.admin-layout.sidebar-collapsed .admin-logo-text,
.admin-layout.sidebar-collapsed .admin-sidebar-toggle-icon,
.admin-layout.sidebar-collapsed .admin-sidebar-footer-label,
.admin-layout.sidebar-collapsed .admin-sidebar-footer-email {
  display: none;
}

/* 收窄态下折叠按钮本身保留，仅显示一个指示符 */
/* line 326, app/assets/stylesheets/admin.scss */
.admin-layout.sidebar-collapsed .admin-sidebar-toggle {
  width: 100%;
}

/* 隐藏分组标题文字，分组整体不再折叠（只留图标列表） */
/* line 331, app/assets/stylesheets/admin.scss */
.admin-layout.sidebar-collapsed .admin-sidebar-section-title {
  cursor: default;
  pointer-events: none;
  margin: 12px 0 4px;
  padding: 0;
  justify-content: center;
}

/* line 339, app/assets/stylesheets/admin.scss */
.admin-layout.sidebar-collapsed .admin-sidebar-section-title > span:first-child {
  display: none;
}

/* line 343, app/assets/stylesheets/admin.scss */
.admin-layout.sidebar-collapsed .section-arrow {
  display: none;
}

/* 收窄态强制所有分组子项显示（图标列） */
/* line 348, app/assets/stylesheets/admin.scss */
.admin-layout.sidebar-collapsed .admin-sidebar-section.collapsed .admin-nav {
  display: flex;
}

/* 隐藏文字标签和英文 meta */
/* line 353, app/assets/stylesheets/admin.scss */
.admin-layout.sidebar-collapsed .admin-nav-label,
.admin-layout.sidebar-collapsed .admin-nav-meta {
  display: none;
}

/* nav-link 居中，仅显示图标 */
/* line 359, app/assets/stylesheets/admin.scss */
.admin-layout.sidebar-collapsed .admin-nav-link {
  justify-content: center;
  padding: 9px 0;
  position: relative;
}

/* line 365, app/assets/stylesheets/admin.scss */
.admin-layout.sidebar-collapsed .admin-nav-link-main {
  justify-content: center;
}

/* 收窄态 hover 浮层：在图标右侧浮出文字气泡 */
/* line 370, app/assets/stylesheets/admin.scss */
.admin-layout.sidebar-collapsed .admin-nav-link::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: #0f172a;
  color: #f9fafb;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease-out;
  z-index: 50;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* line 390, app/assets/stylesheets/admin.scss */
.admin-layout.sidebar-collapsed .admin-nav-link:hover::after {
  opacity: 1;
}

/* 收窄态下隐藏左侧指示条，改用整体高亮区分 active */
/* line 395, app/assets/stylesheets/admin.scss */
.admin-layout.sidebar-collapsed .admin-nav-item.active .admin-nav-link::before {
  display: none;
}

/* line 399, app/assets/stylesheets/admin.scss */
.admin-layout.sidebar-collapsed .admin-nav-item.active .admin-nav-link {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.45), rgba(37, 99, 235, 0.15));
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.5) inset;
}

/* line 404, app/assets/stylesheets/admin.scss */
.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* line 411, app/assets/stylesheets/admin.scss */
.admin-topbar {
  height: 56px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(18px);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.9));
  position: sticky;
  top: 0;
  z-index: 20;
}

/* line 425, app/assets/stylesheets/admin.scss */
.admin-topbar-left {
  display: flex;
  flex-direction: column;
}

/* line 430, app/assets/stylesheets/admin.scss */
.admin-topbar-title {
  font-size: 15px;
  font-weight: 560;
}

/* line 435, app/assets/stylesheets/admin.scss */
.admin-topbar-subtitle {
  font-size: 11px;
  color: var(--text-muted);
}

/* line 440, app/assets/stylesheets/admin.scss */
.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* line 446, app/assets/stylesheets/admin.scss */
.admin-pill {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  font-size: 11px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* line 457, app/assets/stylesheets/admin.scss */
.admin-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--success);
}

/* line 464, app/assets/stylesheets/admin.scss */
.admin-content {
  padding: 22px 24px 28px;
  min-height: 0;
}

/* line 469, app/assets/stylesheets/admin.scss */
.admin-grid {
  display: grid;
  grid-template-columns: 2.1fr 1.4fr;
  gap: 20px;
  align-items: flex-start;
}

/* line 476, app/assets/stylesheets/admin.scss */
.admin-grid-three {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1.2fr;
  gap: 20px;
  align-items: flex-start;
}

/* line 483, app/assets/stylesheets/admin.scss */
.admin-grid-two-equal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: flex-start;
  margin-top: 20px;
}

/* line 491, app/assets/stylesheets/admin.scss */
.admin-grid-three-equal {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  align-items: flex-start;
  margin-top: 20px;
}

/* line 499, app/assets/stylesheets/admin.scss */
.admin-grid-full {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 18px;
  align-items: flex-start;
  margin-top: 20px;
}

/* line 507, app/assets/stylesheets/admin.scss */
.admin-card {
  width: 100%;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.94));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  padding: 16px 16px 14px;
  box-sizing: border-box;
}

/* line 517, app/assets/stylesheets/admin.scss */
.admin-filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 16px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.5);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

/* line 529, app/assets/stylesheets/admin.scss */
.admin-filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* line 535, app/assets/stylesheets/admin.scss */
.admin-filter-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* line 541, app/assets/stylesheets/admin.scss */
.admin-filter-input {
  min-width: 140px;
}

/* line 545, app/assets/stylesheets/admin.scss */
.admin-pagination {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 4px;
}

/* line 552, app/assets/stylesheets/admin.scss */
.admin-pagination .page,
.admin-pagination .first,
.admin-pagination .last,
.admin-pagination .prev,
.admin-pagination .next {
  display: inline-block;
}

/* line 560, app/assets/stylesheets/admin.scss */
.admin-pagination a,
.admin-pagination .current {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  text-decoration: none;
  color: var(--text-secondary);
  background: rgba(15, 23, 42, 0.8);
  transition: all 0.2s;
}

/* line 572, app/assets/stylesheets/admin.scss */
.admin-pagination a:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--text-primary);
}

/* line 578, app/assets/stylesheets/admin.scss */
.admin-pagination .current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* line 584, app/assets/stylesheets/admin.scss */
.admin-pagination .gap {
  padding: 6px;
  color: var(--text-muted);
}

/* line 589, app/assets/stylesheets/admin.scss */
.admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

/* line 596, app/assets/stylesheets/admin.scss */
.admin-card-title {
  font-size: 13px;
  font-weight: 560;
}

/* line 601, app/assets/stylesheets/admin.scss */
.admin-card-subtitle {
  font-size: 11px;
  color: var(--text-muted);
}

/* line 606, app/assets/stylesheets/admin.scss */
.admin-card-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* line 612, app/assets/stylesheets/admin.scss */
.admin-tag {
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

/* line 621, app/assets/stylesheets/admin.scss */
.admin-tag-accent {
  border-color: rgba(59, 130, 246, 0.65);
  background: rgba(15, 23, 42, 0.92);
  color: #dbeafe;
}

/* line 627, app/assets/stylesheets/admin.scss */
.admin-metric-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* line 633, app/assets/stylesheets/admin.scss */
.admin-link-card {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
  display: block;
}

/* line 640, app/assets/stylesheets/admin.scss */
.admin-link-card:hover {
  transform: translateY(-2px);
}

/* line 644, app/assets/stylesheets/admin.scss */
.admin-metric {
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(31, 41, 55, 0.8);
}

/* line 651, app/assets/stylesheets/admin.scss */
.admin-metric-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* line 657, app/assets/stylesheets/admin.scss */
.admin-metric-value {
  font-size: 17px;
  font-weight: 650;
}

/* line 662, app/assets/stylesheets/admin.scss */
.admin-metric-trend {
  font-size: 11px;
  color: var(--text-muted);
}

/* line 667, app/assets/stylesheets/admin.scss */
.admin-metric-trend-up {
  color: var(--success);
}

/* line 671, app/assets/stylesheets/admin.scss */
.admin-metric-trend-down {
  color: var(--danger);
}

/* line 675, app/assets/stylesheets/admin.scss */
.admin-table-wrapper {
  margin-top: 10px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(31, 41, 55, 0.9);
  overflow: hidden;
  background: rgba(15, 23, 42, 0.98);
}

/* line 683, app/assets/stylesheets/admin.scss */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

/* line 689, app/assets/stylesheets/admin.scss */
.admin-table thead {
  background: rgba(15, 23, 42, 0.98);
}

/* line 693, app/assets/stylesheets/admin.scss */
.admin-table th,
.admin-table td {
  padding: 8px 9px;
  text-align: left;
  white-space: nowrap;
}

/* line 700, app/assets/stylesheets/admin.scss */
.admin-table th {
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(31, 41, 55, 0.95);
}

/* line 706, app/assets/stylesheets/admin.scss */
.admin-table tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.96);
}

/* line 710, app/assets/stylesheets/admin.scss */
.admin-table tbody tr:hover {
  background: rgba(30, 64, 175, 0.32);
}

/* line 714, app/assets/stylesheets/admin.scss */
.admin-pill-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
}

/* line 723, app/assets/stylesheets/admin.scss */
.admin-pill-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
}

/* line 729, app/assets/stylesheets/admin.scss */
.admin-pill-status-success {
  background: rgba(22, 163, 74, 0.18);
  color: #bbf7d0;
}

/* line 734, app/assets/stylesheets/admin.scss */
.admin-pill-status-success .admin-pill-status-dot {
  background: var(--success);
}

/* line 738, app/assets/stylesheets/admin.scss */
.admin-pill-status-pending {
  background: rgba(234, 179, 8, 0.2);
  color: #facc15;
}

/* line 743, app/assets/stylesheets/admin.scss */
.admin-pill-status-pending .admin-pill-status-dot {
  background: var(--warning);
}

/* line 747, app/assets/stylesheets/admin.scss */
.admin-pill-status-failed {
  background: rgba(239, 68, 68, 0.22);
  color: #fecaca;
}

/* line 752, app/assets/stylesheets/admin.scss */
.admin-pill-status-failed .admin-pill-status-dot {
  background: var(--danger);
}

/* line 756, app/assets/stylesheets/admin.scss */
.admin-pill-status-claimed {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
}

/* line 761, app/assets/stylesheets/admin.scss */
.admin-pill-status-claimed .admin-pill-status-dot {
  background: #f59e0b;
}

/* line 765, app/assets/stylesheets/admin.scss */
.admin-link-quiet {
  color: var(--text-secondary);
  text-decoration: none;
}

/* line 770, app/assets/stylesheets/admin.scss */
.admin-link-quiet:hover {
  color: #e5e7eb;
}

/* line 774, app/assets/stylesheets/admin.scss */
.admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 11px;
  background: var(--accent-soft);
  color: #bfdbfe;
}

/* line 786, app/assets/stylesheets/admin.scss */
.admin-label-muted {
  color: var(--text-muted);
  font-size: 11px;
}

/* line 791, app/assets/stylesheets/admin.scss */
.admin-kpi {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

/* line 798, app/assets/stylesheets/admin.scss */
.admin-kpi-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

/* line 805, app/assets/stylesheets/admin.scss */
.admin-kpi-label {
  color: var(--text-muted);
}

/* line 809, app/assets/stylesheets/admin.scss */
.admin-kpi-value {
  font-weight: 540;
}

/* line 813, app/assets/stylesheets/admin.scss */
.admin-empty-state {
  padding: 18px 14px;
  font-size: 12px;
  color: var(--text-muted);
}

/* line 819, app/assets/stylesheets/admin.scss */
.admin-input {
  width: 100%;
  padding: 7px 9px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: rgba(15, 23, 42, 0.96);
  color: var(--text-primary);
  font-size: 13px;
  box-sizing: border-box;
}

/* line 830, app/assets/stylesheets/admin.scss */
.admin-input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.8);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.5);
}

/* line 836, app/assets/stylesheets/admin.scss */
.admin-button-primary {
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #f9fafb;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

/* line 847, app/assets/stylesheets/admin.scss */
.admin-button-primary:hover {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
}

/* line 851, app/assets/stylesheets/admin.scss */
.admin-button-secondary {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  margin-left: 8px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  text-decoration: none;
}

/* line 864, app/assets/stylesheets/admin.scss */
.admin-button-secondary:hover {
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.9);
}

/* 登录页面样式 */
/* line 870, app/assets/stylesheets/admin.scss */
.admin-login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top left, #1e293b, #020617 58%);
  padding: 24px;
}

/* line 879, app/assets/stylesheets/admin.scss */
.admin-login-card {
  width: 100%;
  max-width: 420px;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.6);
  padding: 40px;
  box-sizing: border-box;
}

/* line 890, app/assets/stylesheets/admin.scss */
.admin-login-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  text-align: center;
  color: var(--text-primary);
}

/* line 898, app/assets/stylesheets/admin.scss */
.admin-login-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 32px;
}

/* line 905, app/assets/stylesheets/admin.scss */
.admin-field {
  margin-bottom: 20px;
}

/* line 909, app/assets/stylesheets/admin.scss */
.admin-field-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* line 919, app/assets/stylesheets/admin.scss */
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* line 926, app/assets/stylesheets/admin.scss */
.admin-auth-content h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  text-align: center;
  color: var(--text-primary);
}

/* line 934, app/assets/stylesheets/admin.scss */
.admin-auth-content p {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 32px;
}

/* line 941, app/assets/stylesheets/admin.scss */
.admin-auth-content form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* line 947, app/assets/stylesheets/admin.scss */
.admin-auth-content .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* line 952, app/assets/stylesheets/admin.scss */
.admin-auth-content .field label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* line 960, app/assets/stylesheets/admin.scss */
.admin-auth-content .field input[type="email"],
.admin-auth-content .field input[type="password"],
.admin-auth-content .field input[type="text"] {
  width: 100%;
  padding: 7px 9px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: rgba(15, 23, 42, 0.96);
  color: var(--text-primary);
  font-size: 13px;
  box-sizing: border-box;
}

/* line 972, app/assets/stylesheets/admin.scss */
.admin-auth-content .field input[type="email"]:focus,
.admin-auth-content .field input[type="password"]:focus,
.admin-auth-content .field input[type="text"]:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.8);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.5);
}

/* line 980, app/assets/stylesheets/admin.scss */
.admin-auth-content .actions {
  margin-top: 8px;
}

/* line 983, app/assets/stylesheets/admin.scss */
.admin-auth-content .actions input[type="submit"] {
  width: 100%;
  padding: 12px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #f9fafb;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

/* line 994, app/assets/stylesheets/admin.scss */
.admin-auth-content .actions input[type="submit"]:hover {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
}

/* line 1000, app/assets/stylesheets/admin.scss */
.admin-auth-content a {
  color: var(--text-muted);
  font-size: 12px;
  text-decoration: none;
  transition: color 0.2s;
}

/* line 1006, app/assets/stylesheets/admin.scss */
.admin-auth-content a:hover {
  color: var(--text-primary);
}

/* line 1012, app/assets/stylesheets/admin.scss */
.admin-login-alert {
  margin-top: 24px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #fecaca;
  font-size: 13px;
  text-align: center;
}

/* line 1023, app/assets/stylesheets/admin.scss */
.admin-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

/* line 1030, app/assets/stylesheets/admin.scss */
.admin-chip {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(31, 41, 55, 0.95);
  color: var(--text-secondary);
}

/* line 1039, app/assets/stylesheets/admin.scss */
.admin-chip-strong {
  background: rgba(37, 99, 235, 0.3);
  border-color: rgba(59, 130, 246, 0.85);
  color: #dbeafe;
}

/* line 1045, app/assets/stylesheets/admin.scss */
.admin-section-title {
  font-size: 13px;
  font-weight: 560;
  margin-bottom: 6px;
}

/* line 1051, app/assets/stylesheets/admin.scss */
.admin-section-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* line 1057, app/assets/stylesheets/admin.scss */
.admin-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}

/* line 1064, app/assets/stylesheets/admin.scss */
.admin-field-label {
  font-size: 11px;
  color: var(--text-muted);
}

/* line 1069, app/assets/stylesheets/admin.scss */
.admin-field-value {
  font-size: 13px;
  font-weight: 500;
}

/* line 1074, app/assets/stylesheets/admin.scss */
.admin-subtle {
  font-size: 11px;
  color: var(--text-muted);
}

/* line 1079, app/assets/stylesheets/admin.scss */
.admin-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* line 1088, app/assets/stylesheets/admin.scss */
.admin-list-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 8px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: rgba(15, 23, 42, 0.96);
}

/* line 1098, app/assets/stylesheets/admin.scss */
.admin-list-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* line 1104, app/assets/stylesheets/admin.scss */
.admin-list-title {
  font-size: 12px;
}

/* line 1108, app/assets/stylesheets/admin.scss */
.admin-list-meta {
  font-size: 11px;
  color: var(--text-muted);
}

/* line 1113, app/assets/stylesheets/admin.scss */
.admin-table-scroll {
  /* 表格不再限制高度，由分页控制数量 */
}

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

  .admin-sidebar {
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
  }

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

  .admin-grid,
  .admin-grid-full,
  .admin-two-column {
    grid-template-columns: minmax(0, 1fr);
  }
} */
/* ===== 数据预警页 Tab 切换与表格内滚动 ===== */
/* line 1142, app/assets/stylesheets/admin.scss */
.alert-tab {
  cursor: pointer;
  border: 1px solid rgba(31, 41, 55, 0.8);
  font: inherit;
  text-align: left;
  color: inherit;
}

/* line 1150, app/assets/stylesheets/admin.scss */
.alert-tab:hover {
  border-color: rgba(59, 130, 246, 0.6);
}

/* line 1154, app/assets/stylesheets/admin.scss */
.alert-tab-active {
  border-color: rgba(59, 130, 246, 0.9) !important;
  background: linear-gradient(180deg, rgba(30, 64, 175, 0.28), rgba(15, 23, 42, 0.98)) !important;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35);
}

/* line 1160, app/assets/stylesheets/admin.scss */
.alert-panel-hidden {
  display: none;
}

/* 数据预警页表格：不再做模块内滚动，改用分页 */
/* line 1165, app/assets/stylesheets/admin.scss */
.alert-table-scroll {
  overflow-x: auto;
}

/* 数据预警页每个 section 只有一张卡片，覆盖全局两列布局为单列满宽 */
/* line 1170, app/assets/stylesheets/admin.scss */
.data-alerts-page .admin-grid-full {
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}

/* ===== 数据预警页自适应 ===== */
/* 列超宽时横向滚动兜底（覆盖 admin-table-wrapper 的 overflow: hidden） */
/* line 1178, app/assets/stylesheets/admin.scss */
.data-alerts-page .alert-table-scroll {
  overflow-x: auto;
}

/* 单元格允许按内容换行，列宽自适应容器，窄窗口下不再强制横向滚动 */
/* line 1183, app/assets/stylesheets/admin.scss */
.data-alerts-page .admin-table th,
.data-alerts-page .admin-table td {
  white-space: normal;
  padding: 7px 8px;
  vertical-align: top;
}

/* 不宜折行的列（日期/操作/短数值）保持单行 */
/* line 1191, app/assets/stylesheets/admin.scss */
.data-alerts-page .admin-table td.alert-nowrap {
  white-space: nowrap;
}

/* 状态胶囊不折行 */
/* line 1196, app/assets/stylesheets/admin.scss */
.data-alerts-page .admin-pill-status {
  white-space: nowrap;
}

/* 长账号名省略号截断，避免撑爆列宽（悬停有 title 提示全名） */
/* line 1201, app/assets/stylesheets/admin.scss */
.data-alerts-page .alert-ellipsis {
  display: inline-block;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

/* 指标卡（Tab）窄屏自动换行：4 → 2 → 1 */
/* line 1211, app/assets/stylesheets/admin.scss */
.data-alerts-page .admin-metric-row {
  flex-wrap: wrap;
}

/* line 1215, app/assets/stylesheets/admin.scss */
.data-alerts-page .alert-tab {
  flex: 1 1 180px;
}

/* ===== 数据预警页分页 ===== */
/* line 1220, app/assets/stylesheets/admin.scss */
.pg-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  gap: 12px;
}

/* line 1228, app/assets/stylesheets/admin.scss */
.pg-info {
  font-size: 11px;
  color: var(--text-muted);
}

/* line 1233, app/assets/stylesheets/admin.scss */
.pg-actions {
  display: flex;
  gap: 6px;
}

/* line 1238, app/assets/stylesheets/admin.scss */
.pg-btn {
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-secondary);
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

/* line 1250, app/assets/stylesheets/admin.scss */
.pg-btn:hover:not(:disabled) {
  border-color: rgba(59, 130, 246, 0.5);
  color: var(--accent);
}

/* line 1255, app/assets/stylesheets/admin.scss */
.pg-btn:disabled,
.pg-btn.pg-btn-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ===== 右侧抽屉 ===== */
/* line 1262, app/assets/stylesheets/admin.scss */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
  z-index: 40;
  transition: background 0.25s ease;
}

/* line 1271, app/assets/stylesheets/admin.scss */
.drawer-backdrop-visible {
  background: rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

/* line 1276, app/assets/stylesheets/admin.scss */
.drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 560px;
  max-width: 92vw;
  background: #0a0f1e;
  border-left: 1px solid var(--border-subtle);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.4);
  z-index: 50;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

/* line 1293, app/assets/stylesheets/admin.scss */
.drawer-open {
  transform: translateX(0);
}

/* line 1297, app/assets/stylesheets/admin.scss */
.drawer-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

/* line 1306, app/assets/stylesheets/admin.scss */
.drawer-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

/* line 1312, app/assets/stylesheets/admin.scss */
.drawer-close {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(31, 41, 55, 0.8);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: all 0.15s;
}

/* line 1328, app/assets/stylesheets/admin.scss */
.drawer-close:hover {
  border-color: rgba(239, 68, 68, 0.5);
  color: var(--danger);
}

/* line 1333, app/assets/stylesheets/admin.scss */
.drawer-tabs {
  display: flex;
  gap: 2px;
  padding: 10px 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

/* line 1341, app/assets/stylesheets/admin.scss */
.drawer-tab {
  padding: 8px 16px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: transparent;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: inherit;
  transition: all 0.15s;
}

/* line 1354, app/assets/stylesheets/admin.scss */
.drawer-tab:hover {
  color: var(--text-secondary);
}

/* line 1358, app/assets/stylesheets/admin.scss */
.drawer-tab-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 500;
}

/* line 1364, app/assets/stylesheets/admin.scss */
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

/* line 1370, app/assets/stylesheets/admin.scss */
.drawer-body::-webkit-scrollbar {
  width: 6px;
}

/* line 1374, app/assets/stylesheets/admin.scss */
.drawer-body::-webkit-scrollbar-thumb {
  background: rgba(75, 85, 99, 0.5);
  border-radius: 3px;
}

/* 抽屉内的信息组 */
/* line 1380, app/assets/stylesheets/admin.scss */
.drawer-section {
  margin-bottom: 20px;
}

/* line 1384, app/assets/stylesheets/admin.scss */
.drawer-section-title {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  font-weight: 500;
}

/* line 1393, app/assets/stylesheets/admin.scss */
.drawer-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}

/* line 1399, app/assets/stylesheets/admin.scss */
.drawer-info-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* line 1405, app/assets/stylesheets/admin.scss */
.drawer-info-label {
  font-size: 10px;
  color: var(--text-muted);
}

/* line 1410, app/assets/stylesheets/admin.scss */
.drawer-info-value {
  font-size: 12px;
  color: var(--text-primary);
  word-break: break-all;
}

/* line 1416, app/assets/stylesheets/admin.scss */
.drawer-info-value a {
  color: var(--accent);
  text-decoration: none;
}

/* line 1421, app/assets/stylesheets/admin.scss */
.drawer-info-value a:hover {
  text-decoration: underline;
}

/* 抽屉内迷你表格 */
/* line 1426, app/assets/stylesheets/admin.scss */
.drawer-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

/* line 1432, app/assets/stylesheets/admin.scss */
.drawer-mini-table th,
.drawer-mini-table td {
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid rgba(31, 41, 55, 0.6);
}

/* line 1439, app/assets/stylesheets/admin.scss */
.drawer-mini-table th {
  color: var(--text-muted);
  font-weight: 500;
  background: rgba(15, 23, 42, 0.6);
  position: sticky;
  top: 0;
}

/* line 1447, app/assets/stylesheets/admin.scss */
.drawer-mini-table td {
  color: var(--text-secondary);
}

/* line 1451, app/assets/stylesheets/admin.scss */
.drawer-mini-table tr:hover td {
  background: rgba(30, 64, 175, 0.15);
}

/* line 1455, app/assets/stylesheets/admin.scss */
.drawer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
}

/* line 1465, app/assets/stylesheets/admin.scss */
.drawer-empty {
  padding: 30px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
}

@media (max-width: 640px) {
  /* line 1473, app/assets/stylesheets/admin.scss */
  .drawer-panel {
    width: 100%;
    max-width: 100%;
  }
}

/* =====================================================================
   异步任务页（admin/task_center 下的 index / machines / machine_task）
   统一组件：全部走主题变量，页面里不再写内联颜色和尺寸。
   ===================================================================== */
/* --- 页面分区：卡片之间的统一间距 --- */
/* line 1485, app/assets/stylesheets/admin.scss */
.tc-section {
  margin-top: 16px;
}

/* 卡片头部按钮：去掉 admin-button-secondary 自带的 margin-left（靠 gap 控制间距） */
/* line 1490, app/assets/stylesheets/admin.scss */
.admin-card-header-right .admin-button-secondary {
  margin-left: 0;
}

/* --- 危险按钮（清除任务） --- */
/* line 1495, app/assets/stylesheets/admin.scss */
.admin-button-danger {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(239, 68, 68, 0.55);
  background: rgba(239, 68, 68, 0.14);
  color: #fecaca;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

/* line 1506, app/assets/stylesheets/admin.scss */
.admin-button-danger:hover {
  background: rgba(239, 68, 68, 0.26);
  border-color: rgba(239, 68, 68, 0.85);
  color: #fff;
}

/* --- 状态色彩工具类（数字/文本着色） --- */
/* line 1513, app/assets/stylesheets/admin.scss */
.admin-tx-queued {
  color: #f59e0b;
}

/* line 1514, app/assets/stylesheets/admin.scss */
.admin-tx-running {
  color: #3b82f6;
}

/* line 1515, app/assets/stylesheets/admin.scss */
.admin-tx-success {
  color: #22c55e;
}

/* line 1516, app/assets/stylesheets/admin.scss */
.admin-tx-failed {
  color: #ef4444;
}

/* line 1517, app/assets/stylesheets/admin.scss */
.admin-tx-interrupted {
  color: #94a3b8;
}

/* line 1518, app/assets/stylesheets/admin.scss */
.admin-tx-paused {
  color: #e879f9;
}

/* line 1519, app/assets/stylesheets/admin.scss */
.admin-tx-accent {
  color: var(--accent);
}

/* line 1520, app/assets/stylesheets/admin.scss */
.admin-tx-muted {
  color: var(--text-muted);
}

/* 数字：等宽 + 加粗，成列时便于对比 */
/* line 1523, app/assets/stylesheets/admin.scss */
.tc-num {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* --- 状态胶囊按状态取色（替代页面里的内联 background/color） --- */
/* line 1529, app/assets/stylesheets/admin.scss */
.admin-pill--queued {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
}

/* line 1530, app/assets/stylesheets/admin.scss */
.admin-pill--queued .admin-pill-status-dot {
  background: #f59e0b;
}

/* line 1531, app/assets/stylesheets/admin.scss */
.admin-pill--running {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
}

/* line 1532, app/assets/stylesheets/admin.scss */
.admin-pill--running .admin-pill-status-dot {
  background: #3b82f6;
}

/* line 1533, app/assets/stylesheets/admin.scss */
.admin-pill--success {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
}

/* line 1534, app/assets/stylesheets/admin.scss */
.admin-pill--success .admin-pill-status-dot {
  background: #22c55e;
}

/* line 1535, app/assets/stylesheets/admin.scss */
.admin-pill--failed {
  background: rgba(239, 68, 68, 0.2);
  color: #fecaca;
}

/* line 1536, app/assets/stylesheets/admin.scss */
.admin-pill--failed .admin-pill-status-dot {
  background: #ef4444;
}

/* line 1537, app/assets/stylesheets/admin.scss */
.admin-pill--interrupted {
  background: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
}

/* line 1538, app/assets/stylesheets/admin.scss */
.admin-pill--interrupted .admin-pill-status-dot {
  background: #94a3b8;
}

/* line 1539, app/assets/stylesheets/admin.scss */
.admin-pill--paused {
  background: rgba(232, 121, 249, 0.16);
  color: #f5d0fe;
}

/* line 1540, app/assets/stylesheets/admin.scss */
.admin-pill--paused .admin-pill-status-dot {
  background: #e879f9;
}

/* line 1541, app/assets/stylesheets/admin.scss */
.admin-pill--info {
  background: rgba(99, 102, 241, 0.16);
  color: #a5b4fc;
}

/* line 1542, app/assets/stylesheets/admin.scss */
.admin-pill--info .admin-pill-status-dot {
  background: #6366f1;
}

/* line 1543, app/assets/stylesheets/admin.scss */
.admin-pill--source {
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
}

/* line 1544, app/assets/stylesheets/admin.scss */
.admin-pill--source-manual {
  background: rgba(244, 114, 182, 0.16);
  color: #f9a8d4;
}

/* --- 指标条 --- */
/* line 1547, app/assets/stylesheets/admin.scss */
.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 10px;
}

/* line 1553, app/assets/stylesheets/admin.scss */
.admin-stat {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 12px 10px;
}

/* line 1560, app/assets/stylesheets/admin.scss */
.admin-stat-value {
  font-size: 22px;
  font-weight: 650;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

/* line 1567, app/assets/stylesheets/admin.scss */
.admin-stat-label {
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

/* line 1573, app/assets/stylesheets/admin.scss */
.admin-stat-hint {
  margin-top: 2px;
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.75;
}

/* --- 提示条 --- */
/* line 1581, app/assets/stylesheets/admin.scss */
.admin-callout {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.6);
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* line 1591, app/assets/stylesheets/admin.scss */
.admin-callout + .admin-callout {
  margin-top: 10px;
}

/* line 1595, app/assets/stylesheets/admin.scss */
.admin-callout-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  margin-bottom: 6px;
}

/* line 1603, app/assets/stylesheets/admin.scss */
.admin-callout-info {
  border-color: rgba(59, 130, 246, 0.32);
  background: rgba(59, 130, 246, 0.06);
}

/* line 1604, app/assets/stylesheets/admin.scss */
.admin-callout-info .admin-callout-title {
  color: #93c5fd;
}

/* line 1605, app/assets/stylesheets/admin.scss */
.admin-callout-success {
  border-color: rgba(34, 197, 94, 0.32);
  background: rgba(34, 197, 94, 0.06);
}

/* line 1606, app/assets/stylesheets/admin.scss */
.admin-callout-success .admin-callout-title {
  color: #86efac;
}

/* line 1607, app/assets/stylesheets/admin.scss */
.admin-callout-warn {
  border-color: rgba(234, 179, 8, 0.32);
  background: rgba(234, 179, 8, 0.06);
}

/* line 1608, app/assets/stylesheets/admin.scss */
.admin-callout-warn .admin-callout-title {
  color: #facc15;
}

/* line 1609, app/assets/stylesheets/admin.scss */
.admin-callout-danger {
  border-color: rgba(239, 68, 68, 0.32);
  background: rgba(239, 68, 68, 0.06);
}

/* line 1610, app/assets/stylesheets/admin.scss */
.admin-callout-danger .admin-callout-title {
  color: #fca5a5;
}

/* 提示条内的表单行 */
/* line 1613, app/assets/stylesheets/admin.scss */
.admin-form-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

/* line 1620, app/assets/stylesheets/admin.scss */
.admin-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-top: 10px;
}

/* --- 危险操作折叠区 --- */
/* line 1629, app/assets/stylesheets/admin.scss */
.admin-danger-zone {
  margin-top: 12px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-md);
  background: rgba(239, 68, 68, 0.05);
}

/* line 1636, app/assets/stylesheets/admin.scss */
.admin-danger-zone > summary {
  list-style: none;
  cursor: pointer;
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #fca5a5;
  user-select: none;
}

/* line 1646, app/assets/stylesheets/admin.scss */
.admin-danger-zone > summary::-webkit-details-marker {
  display: none;
}

/* line 1647, app/assets/stylesheets/admin.scss */
.admin-danger-zone > summary::marker {
  content: '';
}

/* line 1649, app/assets/stylesheets/admin.scss */
.admin-danger-zone > summary::before {
  content: '▸';
  display: inline-block;
  margin-right: 6px;
  color: #f87171;
  transition: transform 0.15s;
}

/* line 1657, app/assets/stylesheets/admin.scss */
.admin-danger-zone[open] > summary::before {
  transform: rotate(90deg);
}

/* line 1661, app/assets/stylesheets/admin.scss */
.admin-danger-zone > summary:hover {
  background: rgba(239, 68, 68, 0.07);
}

/* line 1665, app/assets/stylesheets/admin.scss */
.admin-danger-zone-body {
  padding: 0 14px 14px;
}

/* --- 复选胶囊（多选筛选 / 多选清除） --- */
/* line 1670, app/assets/stylesheets/admin.scss */
.admin-check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* line 1676, app/assets/stylesheets/admin.scss */
.admin-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.8);
  font-size: 11px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

/* line 1690, app/assets/stylesheets/admin.scss */
.admin-check:hover {
  border-color: rgba(59, 130, 246, 0.5);
  color: var(--text-primary);
}

/* line 1695, app/assets/stylesheets/admin.scss */
.admin-check input {
  margin: 0;
  accent-color: var(--accent);
}

/* line 1700, app/assets/stylesheets/admin.scss */
.admin-check-on {
  border-color: rgba(59, 130, 246, 0.8);
  background: var(--accent-soft);
  color: #dbeafe;
}

/* --- 筛选区 --- */
/* line 1707, app/assets/stylesheets/admin.scss */
.admin-filter-group-full {
  flex-basis: 100%;
}

/* line 1711, app/assets/stylesheets/admin.scss */
.admin-filter-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- 卡片内子表标题 / 表格滚动 / 数字右对齐 --- */
/* line 1719, app/assets/stylesheets/admin.scss */
.tc-subtable-title {
  font-size: 11px;
  color: var(--text-muted);
  margin: 12px 0 6px;
}

/* line 1725, app/assets/stylesheets/admin.scss */
.tc-subtable-title:first-child {
  margin-top: 0;
}

/* line 1729, app/assets/stylesheets/admin.scss */
.tc-scroll {
  overflow-x: auto;
}

/* line 1733, app/assets/stylesheets/admin.scss */
.admin-table th.tc-right,
.admin-table td.tc-right {
  text-align: right;
}

/* --- 机器卡片（两列并排，点击展开） --- */
/* line 1739, app/assets/stylesheets/admin.scss */
.tc-machine-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

@media (max-width: 1200px) {
  /* line 1747, app/assets/stylesheets/admin.scss */
  .tc-machine-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* line 1752, app/assets/stylesheets/admin.scss */
.tc-machine {
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.94));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  align-self: start;
  overflow: hidden;
}

/* line 1761, app/assets/stylesheets/admin.scss */
.tc-machine[open] {
  border-color: rgba(59, 130, 246, 0.38);
}

/* line 1765, app/assets/stylesheets/admin.scss */
.tc-machine > summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  display: block;
  user-select: none;
}

/* line 1773, app/assets/stylesheets/admin.scss */
.tc-machine > summary::-webkit-details-marker {
  display: none;
}

/* line 1774, app/assets/stylesheets/admin.scss */
.tc-machine > summary::marker {
  content: '';
}

/* line 1776, app/assets/stylesheets/admin.scss */
.tc-machine > summary:hover {
  background: rgba(30, 41, 59, 0.3);
}

/* line 1780, app/assets/stylesheets/admin.scss */
.tc-machine[open] > summary {
  border-bottom: 1px solid var(--border-subtle);
}

/* line 1784, app/assets/stylesheets/admin.scss */
.tc-machine-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* line 1791, app/assets/stylesheets/admin.scss */
.tc-machine-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

/* line 1800, app/assets/stylesheets/admin.scss */
.tc-machine-arrow {
  display: inline-block;
  font-size: 11px;
  color: var(--text-muted);
  transition: transform 0.15s;
}

/* line 1807, app/assets/stylesheets/admin.scss */
.tc-machine[open] .tc-machine-arrow {
  transform: rotate(90deg);
}

/* line 1811, app/assets/stylesheets/admin.scss */
.tc-kv-row {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 14px;
  margin-top: 7px;
}

/* line 1818, app/assets/stylesheets/admin.scss */
.tc-kv {
  font-size: 11px;
  color: var(--text-muted);
}

/* line 1823, app/assets/stylesheets/admin.scss */
.tc-kv b {
  margin-left: 4px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* line 1829, app/assets/stylesheets/admin.scss */
.tc-machine-body {
  padding: 12px 14px 14px;
}

/* line 1833, app/assets/stylesheets/admin.scss */
.tc-machine-actions {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* --- 详情页字段网格 --- */
/* line 1842, app/assets/stylesheets/admin.scss */
.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px 18px;
  margin-top: 12px;
}

/* line 1849, app/assets/stylesheets/admin.scss */
.admin-detail-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

/* line 1856, app/assets/stylesheets/admin.scss */
.admin-detail-label {
  font-size: 11px;
  color: var(--text-muted);
}

/* line 1861, app/assets/stylesheets/admin.scss */
.admin-detail-value {
  font-size: 13px;
  color: var(--text-primary);
  word-break: break-all;
}

/* --- 代码块 / 原始 JSON --- */
/* line 1868, app/assets/stylesheets/admin.scss */
.admin-code {
  margin: 0;
  padding: 10px 12px;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.55;
  max-height: 360px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* 去掉外框的纯文本代码块（用于提示条里的长文案） */
/* line 1884, app/assets/stylesheets/admin.scss */
.admin-code-plain {
  background: transparent;
  border: none;
  padding: 0;
  max-height: none;
  overflow: visible;
}

/* line 1892, app/assets/stylesheets/admin.scss */
.admin-code-tall {
  max-height: 420px;
}

/* --- 表格 / 详情页小工具类 --- */
/* line 1897, app/assets/stylesheets/admin.scss */
.admin-gap-top {
  margin-top: 12px;
}

/* line 1898, app/assets/stylesheets/admin.scss */
.admin-field-key {
  width: 200px;
}

/* line 1899, app/assets/stylesheets/admin.scss */
.admin-col-check {
  width: 36px;
}

/* line 1900, app/assets/stylesheets/admin.scss */
.admin-cell-wrap {
  white-space: normal;
  word-break: break-all;
}

/* line 1901, app/assets/stylesheets/admin.scss */
.admin-cell-pre {
  white-space: pre-wrap;
  word-break: break-all;
}

/* line 1902, app/assets/stylesheets/admin.scss */
.admin-detail-hint {
  font-size: 10px;
  opacity: 0.6;
}

/* line 1903, app/assets/stylesheets/admin.scss */
.admin-callout-note {
  margin-top: 8px;
  color: var(--text-muted);
}

/* line 1905, app/assets/stylesheets/admin.scss */
.admin-raw-toggle {
  margin-top: 12px;
}

/* line 1909, app/assets/stylesheets/admin.scss */
.admin-raw-toggle > summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--text-muted);
  user-select: none;
}

/* line 1916, app/assets/stylesheets/admin.scss */
.admin-raw-toggle > summary:hover {
  color: var(--text-primary);
}

/* line 1920, app/assets/stylesheets/admin.scss */
.admin-raw-toggle[open] > summary {
  margin-bottom: 8px;
}

/* --- pill 作为链接（快捷筛选） --- */
/* line 1925, app/assets/stylesheets/admin.scss */
a.admin-chip {
  text-decoration: none;
}

/* line 1929, app/assets/stylesheets/admin.scss */
a.admin-chip:hover {
  border-color: rgba(59, 130, 246, 0.6);
  color: var(--text-primary);
}

/* line 1934, app/assets/stylesheets/admin.scss */
a.admin-tag {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* line 1940, app/assets/stylesheets/admin.scss */
a.admin-tag:hover {
  border-color: rgba(59, 130, 246, 0.6);
  color: var(--text-primary);
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
