:root {
  --sidebar-width: 220px;
  --primary: #1890ff;
  --primary-dark: #096dd9;
  --page-bg: #f5f7fa;
  --card-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 2px 8px rgba(15, 23, 42, 0.04);
}

* { box-sizing: border-box; }

body.admin-body {
  margin: 0;
  min-height: 100vh;
  background: var(--page-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #262626;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: #fff;
  color: #595959;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  border-right: 1px solid #eef0f3;
}

.admin-brand {
  padding: 20px 18px 18px;
  border-bottom: 1px solid #f0f0f0;
}

.admin-brand-logo {
  width: 40px;
  height: 40px;
  display: block;
  object-fit: contain;
  margin-bottom: 10px;
  background: transparent;
}

.admin-brand-title {
  color: #262626;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

.admin-brand-sub {
  color: #8c8c8c;
  font-size: 0.75rem;
  margin: 4px 0 0;
}

.admin-nav {
  padding: 12px 10px;
  flex: 1;
}

.admin-nav-label {
  padding: 12px 12px 6px;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: #bfbfbf;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 2px;
  border-radius: 8px;
  color: #595959;
  text-decoration: none;
  font-size: 0.875rem;
  transition: background 0.15s, color 0.15s;
}

.admin-nav-link:hover {
  background: #f5f7fa;
  color: #262626;
}

.admin-nav-link.active {
  background: #e6f4ff;
  color: #1677ff;
  font-weight: 500;
}

.admin-nav-icon {
  width: 20px;
  text-align: center;
  font-size: 0.875rem;
}

.admin-sidebar-footer {
  padding: 14px 18px;
  border-top: 1px solid #f0f0f0;
  font-size: 0.75rem;
  color: #bfbfbf;
}

.admin-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-header {
  min-height: 64px;
  padding: 12px 32px;
  background: #fff;
  border-bottom: 1px solid #eef0f3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-header-left {
  min-width: 0;
}

.admin-header-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #262626;
  margin: 0;
  line-height: 1.3;
}

.admin-header-sub {
  margin: 4px 0 0;
  font-size: 0.8125rem;
  color: #8c8c8c;
  line-height: 1.2;
}

.admin-header-user {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.admin-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e6f4ff;
  color: #1677ff;
  font-size: 0.8125rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-header-sub:empty {
  display: none;
}

.admin-user-name {
  font-size: 0.875rem;
  color: #595959;
}

/* List page (reference layout) */
.list-card {
  border-radius: 12px;
}

.list-card-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 20px 24px;
  border-bottom: 1px solid #f5f5f5;
}

.list-search-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 280px;
}

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 360px;
}

.search-input-wrap .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #bfbfbf;
  font-size: 1rem;
  pointer-events: none;
}

.search-input-wrap .form-control {
  padding-left: 36px;
}

.filter-select {
  width: 160px;
  flex-shrink: 0;
}

.status-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid #f5f5f5;
}

.status-filter-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 132px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #f0f0f0;
  background: #fafafa;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.status-filter-item:hover {
  border-color: #d6e4ff;
  background: #fff;
  color: inherit;
}

.status-filter-item.active {
  background: #e6f4ff;
  border-color: #91caff;
  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.08);
}

.status-filter-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}

.status-filter-icon.all { background: #f0f0f0; color: #595959; }
.status-filter-icon.processing { background: #e6f4ff; color: #1677ff; }
.status-filter-icon.completed { background: #f6ffed; color: #389e0d; }
.status-filter-icon.abnormal { background: #fff7e6; color: #d46b08; }

.status-filter-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.status-filter-label {
  font-size: 0.8125rem;
  color: #8c8c8c;
}

.status-filter-count {
  font-size: 1.375rem;
  font-weight: 700;
  color: #262626;
  line-height: 1.1;
}

.order-link {
  color: #1677ff;
  text-decoration: none;
  font-weight: 500;
}

.order-link:hover {
  color: #0958d9;
  text-decoration: underline;
}

.table-link-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-link-actions a,
.table-link-actions .btn-link {
  color: #1677ff;
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.table-link-actions a:hover,
.table-link-actions .btn-link:hover {
  color: #0958d9;
  text-decoration: underline;
}

.table-link-actions .btn-link.danger {
  color: #ff4d4f;
}

.table-link-actions .btn-link.danger:hover {
  color: #cf1322;
}

.table-link-actions .inline-form {
  display: inline;
  margin: 0;
}

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

.admin-table tbody tr:hover td:first-child {
  box-shadow: inset 3px 0 0 #1677ff;
}

.admin-content {
  padding: 28px 32px 40px;
  flex: 1;
}

.admin-content > .alert {
  margin-bottom: 24px;
}

.admin-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  margin-bottom: 24px;
  overflow: hidden;
}

.admin-card-header {
  padding: 18px 24px;
  border-bottom: 1px solid #f0f0f0;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #262626;
  background: #fafafa;
}

.admin-card-body {
  padding: 24px;
}

.admin-card-header.d-flex {
  gap: 16px;
}

.admin-card-header .badge {
  font-weight: 500;
}

.admin-table {
  margin: 0;
}

.admin-table thead th {
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
  font-weight: 600;
  font-size: 0.8125rem;
  color: #595959;
  padding: 12px 16px;
  white-space: nowrap;
}

.admin-table tbody td {
  padding: 14px 16px;
  vertical-align: middle;
  border-bottom: 1px solid #f5f5f5;
  font-size: 0.875rem;
}

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

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

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.table-actions--stack {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  min-width: 240px;
}

.table-action-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.table-action-row .form-control {
  flex: 1;
  min-width: 0;
}

.admin-actions .form-control {
  width: 140px;
  min-width: 120px;
}

/* Buttons & forms */
.btn {
  border-radius: 8px;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  line-height: 1.4;
}

.btn-sm {
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
}

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

.btn-primary:hover,
.btn-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.form-label {
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.875rem;
  color: #595959;
}

.form-control,
.form-select {
  border-radius: 8px;
  border-color: #d9d9d9;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.12);
}

.form-control-sm {
  padding: 0.375rem 0.75rem;
}

.admin-form-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}

.alert {
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  padding: 12px 16px;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 24px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}

.admin-toolbar form.row {
  flex: 1;
  min-width: 280px;
  --bs-gutter-x: 16px;
  --bs-gutter-y: 12px;
}

.admin-toolbar > .btn {
  flex-shrink: 0;
  margin-left: auto;
}

.admin-pagination {
  padding: 18px 24px;
  border-top: 1px solid #f0f0f0;
}

.admin-pagination .pagination {
  margin: 0;
}

.badge.status-processing {
  background: #e6f4ff;
  color: #1677ff;
  border: 1px solid #91caff;
}

.badge.status-completed {
  background: #f6ffed;
  color: #389e0d;
  border: 1px solid #b7eb8f;
}

.badge.status-abnormal {
  background: #fff2e8;
  color: #d4380d;
  border: 1px solid #ffbb96;
}

/* Login */
.login-body {
  margin: 0;
  min-height: 100vh;
  background: #f0f2f5;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background-color: #f0f2f5;
  background-image:
    radial-gradient(circle at 15% 10%, rgba(24, 144, 255, 0.12) 0%, transparent 42%),
    radial-gradient(circle at 85% 90%, rgba(24, 144, 255, 0.08) 0%, transparent 40%);
}

.login-card {
  width: 100%;
  max-width: 420px;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.login-card-inner {
  padding: 40px 36px 36px;
  background: #fff;
}

.login-brand {
  text-align: center;
  margin-bottom: 28px;
}

.login-brand-logo {
  width: 72px;
  height: 72px;
  display: block;
  margin: 0 auto 16px;
  object-fit: contain;
  background: transparent;
}

.login-brand h1 {
  font-size: 1.25rem;
  color: #262626;
  margin: 0 0 6px;
  font-weight: 600;
}

.login-brand p {
  color: #8c8c8c;
  font-size: 0.875rem;
  margin: 0;
}

.login-card .form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #595959;
}

.login-card .form-control {
  padding: 10px 14px;
  border-radius: 8px;
  border-color: #d9d9d9;
}

.login-card .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.12);
}

.login-card .btn-primary {
  padding: 10px;
  border-radius: 8px;
  font-weight: 500;
  margin-top: 8px;
}

/* Dashboard */
.dashboard-page {
  width: 100%;
  max-width: 100%;
}

.dashboard-page > .row {
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 8px;
}

.dashboard-page > .row.g-3 {
  --bs-gutter-y: 1.25rem;
  --bs-gutter-x: 1.25rem;
}

.dashboard-page > .row > [class*="col-"] {
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  padding-right: calc(var(--bs-gutter-x) * 0.5);
}

.dashboard-card {
  height: 100%;
}

.dashboard-empty,
.dashboard-empty-sm {
  text-align: center;
  color: #8c8c8c;
  padding: 48px 20px;
}

.dashboard-empty-sm {
  padding: 32px 20px;
}

.dashboard-link {
  font-size: 0.8125rem;
  color: var(--primary);
  text-decoration: none;
}

.dashboard-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.dashboard-order-link {
  text-decoration: none;
}

.dashboard-order-link code {
  color: var(--primary);
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  min-height: 108px;
  padding: 20px 22px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #f0f0f0;
  box-shadow: var(--card-shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  color: inherit;
}

.stat-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 700;
  flex-shrink: 0;
}

.stat-card-body {
  min-width: 0;
}

.stat-label {
  font-size: 0.8125rem;
  color: #8c8c8c;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  color: #262626;
}

.stat-hint {
  font-size: 0.75rem;
  color: #bfbfbf;
  margin-top: 6px;
}

.stat-processing {
  border-left: 4px solid #1890ff;
}

.stat-processing .stat-card-icon {
  background: #e6f4ff;
  color: #1677ff;
}

.stat-processing:hover {
  border-color: #91caff;
}

.stat-completed {
  border-left: 4px solid #52c41a;
}

.stat-completed .stat-card-icon {
  background: #f6ffed;
  color: #389e0d;
}

.stat-completed:hover {
  border-color: #b7eb8f;
}

.stat-abnormal {
  border-left: 4px solid #fa8c16;
}

.stat-abnormal .stat-card-icon {
  background: #fff7e6;
  color: #d46b08;
}

.stat-abnormal:hover {
  border-color: #ffd591;
}

.mini-stat-card {
  height: 100%;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: var(--card-shadow);
}

.mini-stat-label {
  font-size: 0.8125rem;
  color: #8c8c8c;
  margin-bottom: 8px;
}

.mini-stat-value {
  font-size: 1.625rem;
  font-weight: 700;
  color: #262626;
  line-height: 1.2;
}

.mini-stat-sub {
  font-size: 0.9375rem;
  font-weight: 400;
  color: #bfbfbf;
  margin-left: 2px;
}

.todo-section + .todo-section {
  border-top: 1px solid #f0f0f0;
}

.todo-section-title {
  padding: 10px 20px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.todo-overdue { background: #fff1f0; color: #cf1322; }
.todo-today { background: #fff7e6; color: #d46b08; }
.todo-tomorrow { background: #f6ffed; color: #389e0d; }

.todo-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 20px;
  border-top: 1px solid #f5f5f5;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.todo-item:hover {
  background: #fafcff;
  color: inherit;
}

.todo-item-main {
  min-width: 0;
  flex: 1;
}

.todo-order {
  font-weight: 600;
  font-size: 0.875rem;
  color: #1677ff;
}

.todo-product {
  font-size: 0.8125rem;
  color: #595959;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.todo-meta {
  font-size: 0.8125rem;
  color: #8c8c8c;
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}

.todo-date {
  margin-top: 4px;
}

.follower-stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 20px;
  border-top: 1px solid #f5f5f5;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.follower-stat-item:first-child {
  border-top: none;
}

.follower-stat-item:hover {
  background: #fafcff;
  color: inherit;
}

.log-item {
  padding: 13px 20px;
  border-top: 1px solid #f5f5f5;
}

.log-item:first-child {
  border-top: none;
}

.log-content {
  font-size: 0.8125rem;
  color: #262626;
  line-height: 1.5;
}

.log-time {
  font-size: 0.75rem;
  color: #bfbfbf;
  margin-top: 4px;
}

.badge.status-processing,
.badge.status-completed,
.badge.status-abnormal {
  font-weight: 500;
  padding: 4px 10px;
}

.modal-content {
  border: none;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.16);
}

.modal-header {
  border-bottom: 1px solid #f0f0f0;
  padding: 16px 20px;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  border-top: 1px solid #f0f0f0;
  padding: 16px 24px;
  gap: 12px;
}

.modal-footer .btn + .btn {
  margin-left: 0;
}

/* Dashboard v2 */
.dashboard-page > .row.g-3 {
  --bs-gutter-y: 1.5rem;
}

.dashboard-kpi-row {
  margin-bottom: 0;
}

.dash-kpi-card {
  display: block;
  height: 100%;
  min-height: 132px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
  border-left-width: 3px;
  border-left-style: solid;
}

.dash-kpi-total { border-left-color: #d9d9d9; }
.dash-kpi-processing { border-left-color: #1677ff; }
.dash-kpi-completed { border-left-color: #52c41a; }
.dash-kpi-abnormal { border-left-color: #fa8c16; }

.dash-kpi-card:hover {
  color: inherit;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.dash-kpi-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.dash-kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}

.dash-kpi-icon.total { background: #f5f5f5; color: #595959; }
.dash-kpi-icon.processing { background: #e6f4ff; color: #1677ff; }
.dash-kpi-icon.completed { background: #f6ffed; color: #389e0d; }
.dash-kpi-icon.abnormal { background: #fff7e6; color: #d46b08; }

.dash-kpi-title {
  font-size: 0.875rem;
  color: #8c8c8c;
}

.dash-kpi-value {
  font-size: 2rem;
  font-weight: 700;
  color: #262626;
  line-height: 1.1;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.dash-kpi-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.75rem;
  color: #bfbfbf;
}

.dash-kpi-foot strong {
  color: #595959;
  font-weight: 600;
}

.dash-kpi-alert strong {
  color: #cf1322;
}

.dashboard-side-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dashboard-panel-donut {
  flex: 1;
}

.dashboard-panel {
  margin-bottom: 0;
}

.dashboard-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid #f5f5f5;
}

.dashboard-panel-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #262626;
}

.dashboard-panel-desc {
  margin: 4px 0 0;
  font-size: 0.75rem;
  color: #bfbfbf;
}

.dashboard-panel-body {
  padding: 20px 24px 24px;
}

.chart-wrap {
  position: relative;
  width: 100%;
}

.chart-wrap-lg {
  height: 260px;
}

.chart-wrap-md {
  height: 220px;
}

.chart-donut-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.donut-chart-box {
  position: relative;
  width: 160px;
  height: 160px;
}

.donut-chart-box canvas {
  width: 100% !important;
  height: 100% !important;
}

.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.donut-center-value {
  font-size: 1.375rem;
  font-weight: 700;
  color: #262626;
  line-height: 1.2;
}

.donut-center-label {
  font-size: 0.6875rem;
  color: #bfbfbf;
  margin-top: 2px;
}

.donut-legend {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.8125rem;
  color: #595959;
}

.donut-legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.donut-legend-val {
  font-weight: 600;
  color: #262626;
  white-space: nowrap;
}

.donut-legend-val em {
  font-style: normal;
  font-weight: 400;
  color: #bfbfbf;
  margin-left: 4px;
}

.donut-legend .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

.donut-legend .dot.processing { background: #1677ff; }
.donut-legend .dot.completed { background: #52c41a; }
.donut-legend .dot.abnormal { background: #fa8c16; }

.dashboard-cta {
  background: linear-gradient(135deg, #e6f4ff 0%, #f0f7ff 100%);
  border-color: #d6e4ff;
}

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

.dashboard-cta-text h3 {
  margin: 0 0 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #262626;
}

.dashboard-cta-text p {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  color: #8c8c8c;
}

.dashboard-cta-deco {
  font-size: 2.5rem;
  opacity: 0.35;
  line-height: 1;
  flex-shrink: 0;
}

.dashboard-rank-table thead th {
  background: #fafafa;
  font-size: 0.75rem;
  color: #8c8c8c;
  font-weight: 600;
  padding: 12px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.dashboard-rank-table tbody td {
  padding: 12px 20px;
  font-size: 0.875rem;
  border-bottom: 1px solid #f5f5f5;
  vertical-align: middle;
}

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

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 6px;
  background: #f5f7fa;
  color: #8c8c8c;
  font-size: 0.75rem;
  font-weight: 600;
}

.rank-badge.rank-1 {
  background: #fff7e6;
  color: #d48806;
}

.rank-badge.rank-2 {
  background: #f5f5f5;
  color: #595959;
}

.rank-badge.rank-3 {
  background: #fff7e6;
  color: #ad6800;
}

.rank-name {
  display: inline-block;
  margin-bottom: 6px;
}

.load-bar {
  height: 4px;
  background: #f0f0f0;
  border-radius: 2px;
  overflow: hidden;
}

.load-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #69b1ff, #1677ff);
  border-radius: 2px;
  min-width: 4px;
  transition: width 0.3s ease;
}

.feed-scroll {
  max-height: 340px;
  overflow-y: auto;
}

.feed-item {
  display: flex;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.12s;
}

.feed-item:hover {
  background: #fafcff;
}

.feed-item:last-child {
  border-bottom: none;
}

.feed-main {
  flex: 1;
  min-width: 0;
}

.feed-tag {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  height: fit-content;
  margin-top: 2px;
}

.feed-create { background: #e6f4ff; color: #1677ff; }
.feed-edit { background: #fff7e6; color: #d46b08; }
.feed-delete { background: #fff1f0; color: #cf1322; }
.feed-login { background: #f5f5f5; color: #8c8c8c; }
.feed-default { background: #f5f5f5; color: #8c8c8c; }

.feed-content {
  font-size: 0.8125rem;
  color: #262626;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.feed-time {
  font-size: 0.75rem;
  color: #bfbfbf;
  margin-top: 4px;
}

.todo-date-overdue {
  color: #cf1322;
  font-weight: 500;
}

.dashboard-cell-truncate {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-table thead th {
  padding: 12px 20px;
  font-size: 0.75rem;
  color: #8c8c8c;
  background: #fafafa;
}

.dashboard-table tbody td {
  padding: 12px 20px;
  font-size: 0.8125rem;
}

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

@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }

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

  .admin-content {
    padding: 16px;
  }

  .admin-header {
    padding: 0 16px;
  }

  .dash-kpi-value {
    font-size: 1.625rem;
  }

  .chart-wrap-lg {
    height: 220px;
  }

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

  .dashboard-cta-deco {
    display: none;
  }
}
