.menus-page {
  color: #10213d;
  font-size: 14px;
  line-height: 22px;
}

.menus-page .page-toolbar {
  min-height: 40px;
  margin-bottom: 16px;
}

.menus-page .page-actions,
.menus-page .filter-bar {
  gap: 12px;
}

.menus-page .btn {
  height: 40px;
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  line-height: 20px;
  border-radius: 6px;
  box-shadow: none;
}

.menus-page .btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 2px #e6f4ff, 0 0 0 4px #1677ff;
}

.menus-page .badge {
  min-height: 24px;
  height: 24px;
  padding: 0 8px;
  font-size: 12px;
  line-height: 18px;
  border-radius: 12px;
}

.menus-page .page-toolbar .badge.gray {
  color: #526278;
  background: #f8fafc;
  border-color: #cbd5e1;
}

.menus-page .report-hero {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 20px;
  margin-bottom: 16px;
  color: #10213d;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #1677ff;
  border-radius: 8px;
}

.menus-page .report-hero h3,
.menus-page .report-hero p {
  margin: 0;
}

.menus-page .report-hero h3 {
  color: #10213d;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.menus-page .report-hero p {
  margin-top: 4px;
  color: #526278;
  font-size: 14px;
  line-height: 22px;
}

.menus-page .panel {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: none;
}

.menus-page .panel-head {
  min-height: 52px;
  padding: 0 20px;
  border-bottom: 1px solid #e2e8f0;
}

.menus-page .panel-head h3 {
  color: #10213d;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.menus-page .panel-head > span {
  color: #526278;
  font-size: 12px;
  line-height: 18px;
}

.menus-page .menus-directory-panel .panel-body {
  padding: 16px 20px 0;
}

.menus-page .filter-bar {
  padding: 12px;
  margin-bottom: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: none;
}

.menus-page :is(.filter-input, .filter-select) {
  height: 40px;
  padding: 0 12px;
  color: #10213d;
  font-size: 14px;
  line-height: 20px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}

.menus-page .filter-input {
  width: 240px;
}

.menus-page .filter-select {
  min-width: 144px;
}

.menus-page :is(.filter-input, .filter-select):hover {
  border-color: #b8c4d4;
}

.menus-page :is(.filter-input, .filter-select):focus {
  border-color: #1677ff;
  box-shadow: 0 0 0 2px #e6f4ff;
  outline: 0;
}

.menus-page .menus-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.menus-page .data-table {
  width: 100%;
  min-width: 980px;
  table-layout: fixed;
}

.menus-page .data-table :is(th, td) {
  height: 50px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 22px;
  border-bottom: 1px solid #e2e8f0;
}

.menus-page .data-table th {
  height: 44px;
  color: #526278;
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  background: #f8fafc;
}

.menus-page .data-table td {
  overflow: hidden;
  color: #10213d;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menus-page .data-table td:first-child {
  font-weight: 600;
  white-space: pre;
}

.menus-page .data-table td:nth-child(5) {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.menus-page .data-table tbody tr:hover td {
  background: #f7fbff;
}

.menus-page .pagination {
  min-height: 60px;
  padding: 14px 16px;
  color: #526278;
  font-size: 13px;
  line-height: 20px;
  border: 1px solid #e2e8f0;
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.menus-page .page-number {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

@media (max-width: 1180px) {
  .menus-page .data-table {
    min-width: 1040px;
  }
}

@media (max-width: 960px) {
  html:has(.menus-page),
  body:has(.menus-page),
  #app:has(.menus-page) {
    min-width: 0;
  }

  body:has(.menus-page) {
    overflow-x: hidden;
    background: #f5f7fa;
  }

  .admin-shell:has(.menus-page) .sidebar {
    width: 64px;
  }

  .admin-shell:has(.menus-page) .sidebar :is(.brand > div, .nav-group__label, .nav-item > span:not(.nav-icon), .sidebar-foot) {
    display: none;
  }

  .admin-shell:has(.menus-page) .brand,
  .admin-shell:has(.menus-page) .nav-item {
    justify-content: center;
    padding-inline: 0;
  }

  .admin-shell:has(.menus-page) .main-shell {
    margin-left: 64px;
  }

  .admin-shell:has(.menus-page) .topbar {
    padding: 0 16px;
  }

  .admin-shell:has(.menus-page) .context-pill {
    width: 150px;
    min-width: 150px;
  }

  .admin-shell:has(.menus-page) .user-chip {
    padding-right: 5px;
  }

  .admin-shell:has(.menus-page) .user-chip b {
    display: none;
  }

  .admin-shell:has(.menus-page) .page-content {
    padding: 16px;
  }

  .menus-page .filter-spacer {
    display: none;
  }

  .menus-page .filter-input {
    flex: 1 1 100%;
    width: 100%;
  }

  .menus-page .filter-select {
    flex: 1 1 160px;
  }
}

@media (max-width: 760px) {
  .admin-shell:has(.menus-page) .top-actions .context-pill {
    display: none;
  }

  .menus-page .page-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .menus-page .report-hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .menus-page .panel-head,
  .menus-page .menus-directory-panel .panel-body {
    padding-inline: 16px;
  }

  .menus-page .filter-select,
  .menus-page .filter-bar .btn {
    flex: 1 1 100%;
    width: 100%;
  }

  .menus-page .menus-table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  .menus-page .data-table,
  .menus-page .data-table tbody,
  .menus-page .data-table tr,
  .menus-page .data-table td {
    display: block;
    width: 100%;
  }

  .menus-page .data-table {
    min-width: 0;
  }

  .menus-page .data-table thead {
    display: none;
  }

  .menus-page .data-table tr {
    padding: 14px 16px;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
  }

  .menus-page .data-table :is(td, td:first-child) {
    display: grid;
    height: auto;
    min-height: 34px;
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: center;
    overflow: visible;
    padding: 6px 0;
    text-align: left;
    text-overflow: clip;
    white-space: normal;
    border: 0;
  }

  .menus-page .data-table td::before {
    color: #7a889c;
    font-size: 12px;
    line-height: 18px;
    font-weight: 400;
  }

  .menus-page .data-table td:nth-child(1)::before { content: "菜单名称"; }
  .menus-page .data-table td:nth-child(2)::before { content: "类型"; }
  .menus-page .data-table td:nth-child(3)::before { content: "可见范围"; }
  .menus-page .data-table td:nth-child(4)::before { content: "状态"; }
  .menus-page .data-table td:nth-child(5)::before { content: "排序"; }
  .menus-page .data-table td:nth-child(6)::before { content: "配置来源"; }
  .menus-page .data-table td:nth-child(7)::before { content: "更新时间"; }

  .menus-page .data-table td:first-child {
    min-height: 42px;
    padding-top: 0;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
  }

  .menus-page .pagination {
    flex-wrap: wrap;
    justify-content: flex-start;
    border-top: 1px solid #e2e8f0;
    border-radius: 8px;
  }
}

@media (max-width: 520px) {
  .admin-shell:has(.menus-page) .sidebar {
    width: 56px;
  }

  .admin-shell:has(.menus-page) .main-shell {
    margin-left: 56px;
  }

  .admin-shell:has(.menus-page) .topbar {
    padding-inline: 10px;
  }

  .admin-shell:has(.menus-page) .page-content {
    padding: 12px;
  }

  .menus-page .page-toolbar .btn {
    flex: 1 1 160px;
    justify-content: center;
  }

  .menus-page .report-hero {
    padding: 14px 16px;
  }

  .menus-page .report-hero p {
    font-size: 13px;
    line-height: 20px;
  }

  .menus-page .data-table tr {
    padding-inline: 14px;
  }
}
