/* Reset and Base Styles */
:root {
  --sidebar-width: 280px;
  --primary-color: #0156ce;
  --primary-hover: #014bb5;
  --primary-active: #01419b;
  --text-primary: #172b4d;
  --text-secondary: #6b7a90;
  --border-color: #dfe1e6;
  --bg-hover: #f4f5f7;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #f1f2f4;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 22px;
}

/* Main Container */
.main-container {
  background-color: #f1f2f4;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: auto;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.15);
}

/* 主内容区域 */
.main-content {
  width: 1200px;
  margin: 15px auto 0;
  /* padding: 0 20px 40px; */
  max-width: 100%;
  align-self: center;
  flex: 1;
  position: relative;
  left: 120px;
}

.content-container {
  background: white;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 24px;
  min-height: 900px;
}

.search-content-section {
  margin-bottom: 32px;
}

.search-content-section h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-color);
}

.content-placeholder {
  padding: 60px 20px;
  text-align: center;
  background: #f8f9fa;
  border-radius: 6px;
  color: #6c757d;
  font-size: 16px;
  border: 2px dashed #dee2e6;
}

/* Navigation Bar */
.navbar {
  height: 54px;
  position: relative;
  flex-shrink: 0;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  z-index: 100;
  max-width: 1440px;
  align-self: center;
}

.navbar-content {
  position: absolute;
  background-color: #ffffff;
  display: flex;
  inset: 0;
  align-items: center;
  justify-content: space-between;
  padding-left: 24px;
  padding-right: 24px;
  padding-top: 0;
  padding-bottom: 0;
  min-height: 48px;
}

.navbar-left {
  background: transparent;
  display: flex;
  gap: 32px;
  align-items: center;
  position: relative;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-link-dropdown {
  position: relative;
  display: inline-block;
}

.navbar-right {
  display: flex;
  gap: 16px;
  align-items: center;
  position: relative;
  flex-shrink: 0;
}

.top-command-search {
  position: relative;
  width: 280px;
  max-width: 32vw;
}

.top-command-input {
  width: 100%;
  height: 32px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0 32px 0 12px;
  font-size: 13px;
  background-color: #f5f5f5;
  color: var(--text-primary);
  cursor: pointer;
  box-shadow: none;
  transition: all 0.2s ease;
}

.top-command-input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(1, 86, 206, 0.1);
}

.top-command-input.is-panel-open {
  background: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(1, 86, 206, 0.1);
}

.top-command-search:focus-within .top-command-input {
  cursor: text;
  background-color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(1, 86, 206, 0.1);
}

.top-command-clear {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: #4b5563;
  font-size: 16px;
  line-height: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.top-command-clear:not(.is-visible) {
  display: none;
}

.top-command-clear:hover {
  background: var(--bg-hover);
  border-color: transparent;
  color: var(--text-primary);
}

/* Logo */
.logo {
  display: grid;
  grid-template-columns: max-content;
  grid-template-rows: max-content;
  justify-items: start;
  line-height: 0;
  position: relative;
  flex-shrink: 0;
}

.logo-bg {
  grid-column: 1;
  margin-left: 0;
  margin-top: 0;
  border-radius: 10px;
  grid-row: 1;
  width: 0;
  height: 0;
  display: none;
}

.logo-image {
  grid-column: 1;
  margin-left: 0;
  margin-top: 0;
  position: relative;
  grid-row: 1;
  width: 90px;
  height: 25px;
}

.logo-image img {
  position: absolute;
  inset: 0;
  max-width: none;
  object-position: 50% 50%;
  object-fit: cover;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

/* Navigation Links */
.nav-link {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  line-height: 22px;
  position: relative;
  flex-shrink: 0;
  font-size: 14px;
  color: var(--text-primary);
  text-decoration: none;
  font-variation-settings: 'wdth' 100;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary-color);
}

.dropdown-icon {
  font-size: 16px;
  margin-left: 4px;
  color: var(--text-secondary);
  transition: transform 0.2s ease;
  display: inline-block;
}

.nav-link-dropdown {
  position: relative;
}

.nav-link-dropdown.is-open .dropdown-icon {
  transform: rotate(180deg);
}

/* Unified dropdown menu styles */
.nav-dropdown-menu,
.user-dropdown-menu {
  position: absolute;
  top: 100%;
  margin-top: 8px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 180px;
  padding: 8px 0;
  display: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 1000;
}

.nav-dropdown-menu {
  left: 0;
}

.user-dropdown-menu {
  right: 0;
}

.nav-dropdown-menu ul,
.user-dropdown-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-dropdown-menu li,
.user-dropdown-menu li {
  margin: 0;
}

.nav-dropdown-item,
.user-dropdown-item {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-dropdown-item:hover,
.user-dropdown-item:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.user-dropdown-item.active {
  color: var(--primary-color);
  font-weight: 500;
}

/* Grid layout for Information dropdown */
.nav-dropdown-grid {
  display: flex;
  min-width: 600px;
  padding: 16px 0;
}

.nav-dropdown-section {
  flex: 1;
  padding: 0 16px;
}

.nav-dropdown-section:first-child {
  border-right: 1px solid var(--border-color);
}

.nav-dropdown-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  padding: 0 16px;
}

.nav-dropdown-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-dropdown-section .nav-dropdown-item {
  padding: 6px 16px;
  font-size: 13px;
  white-space: normal;
}

/* User Info */
.user-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.user-info {
  display: flex;
  align-items: center;
  position: relative;
  flex-shrink: 0;
  font-size: 14px;
  color: var(--text-primary);
  gap: 8px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.user-info:hover {
  background-color: var(--bg-hover);
}

.user-dropdown.is-open .user-info {
  background-color: var(--bg-hover);
}

.user-email {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  line-height: 22px;
  position: relative;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text-primary);
  font-variation-settings: 'wdth' 100;
}

.dropdown-arrow {
  position: relative;
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropdown-arrow .material-symbols-rounded {
  font-size: 16px;
  color: var(--text-secondary);
  transition: transform 0.2s ease;
  display: inline-block;
}

.user-dropdown.is-open .dropdown-arrow .material-symbols-rounded,
.nav-link-dropdown.is-open .dropdown-icon {
  transform: rotate(180deg);
}

.submit-btn {
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.submit-btn:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
  text-decoration: none;
}

.submit-btn:active {
  background-color: var(--primary-active);
}

/* Notification Bell */
.notification-bell {
  display: grid;
  grid-template-columns: max-content;
  grid-template-rows: max-content;
  justify-items: start;
  line-height: 0;
  position: relative;
  flex-shrink: 0;
  margin-left: 8px;
}

.bell-icon {
  grid-column: 1;
  height: 18px;
  margin-left: 0;
  margin-top: 7.09px;
  position: relative;
  grid-row: 1;
  width: 16px;
}

.bell-icon img {
  display: block;
  max-width: none;
  width: 100%;
  height: 100%;
}

.notification-badge {
  background-color: #e11900;
  border: 1.5px solid #fff;
  grid-column: 1;
  height: 14px;
  margin-left: 8px;
  margin-top: 0;
  border-radius: 10px;
  grid-row: 1;
  width: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-count {
  text-transform: capitalize;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  line-height: 14px;
  position: relative;
  font-size: 12px;
  color: white;
  font-variation-settings: 'wdth' 100;
}

/* Sidebar Container */
.sidebar-container {
  display: flex;
  align-items: stretch;
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: calc(100vh - 40px);
  height: calc(100vh - 40px);
}

.sidebar {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  max-height: 100%;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  border-right: 1px solid #e2e7ef;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  flex-shrink: 0;
  width: var(--sidebar-width);
  overflow: hidden;
}

.sidebar.is-collapsed {
  width: 60px;
}

.sidebar.is-collapsed .menu-items {
  display: none;
}

.sidebar-content {

  display: flex;
  background-color: white;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
}

/* Menu Items */
.menu-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
  padding: 16px 20px 24px 20px;
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: white;
  scrollbar-gutter: stable both-edges;
}

.menu-items::-webkit-scrollbar {
  width: 7px;
}

.menu-items::-webkit-scrollbar-track {
  background-color: transparent;
}

.menu-items::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.25);
  border-radius: 999px;
}

.menu-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  width: 100%;
}

.menu-item-content {
  
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  position: relative;
  border-radius: 3px;
  flex-shrink: 0;
  width: 100%;
  cursor: pointer;
}

.menu-item-content:hover {
  background-color: #f8f9fd;
}

.menu-text {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  height: 22px;
  line-height: 22px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: relative;
  flex-shrink: 0;
  color: var(--text-primary);
  font-size: 14px;
  font-variation-settings: 'wdth' 100;
}

/* Active Menu Item */
.menu-item.active .menu-item-content {
  background-color: rgba(1, 86, 206, 0.08);
}

.menu-item.active .menu-text {
  color: var(--primary-color);
  font-weight: 600;
}

/* Sub-items */
.menu-item.sub-item .menu-item-content {
  padding-left: 26px;
  padding-right: 8px;
}

.menu-item.sub-item.active .menu-item-content {
  background-color: rgba(1, 86, 206, 0.08);
}

/* Initially hide all sub-items */
.menu-item.sub-item {
  display: none;
}

/* Show sub-items when parent is expanded */
.menu-item.expanded ~ .menu-item.sub-item {
  display: flex;
}

/* Only show sub-items until next main menu item */
.menu-item:not(.sub-item) ~ .menu-item.sub-item:not(.sub-item) {
  display: none;
}

.menu-item.expanded ~ .menu-item.sub-item {
  display: flex;
}

.menu-item.expanded ~ .menu-item:not(.sub-item) ~ .menu-item.sub-item {
  display: none;
}

/* Menu Arrows */
.menu-arrow {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.menu-arrow img {
  display: block;
  max-width: none;
  width: 100%;
  height: 100%;
}

.menu-arrow.rotated {
  transform: rotate(180deg);
}

/* Expanded Menu Item */
.menu-item.expanded .menu-text {
  color: var(--primary-color);
}

/* Sidebar Operations */
.sidebar-operations {
  background-color: #FFFFFF;
  border-top: 1px solid #dde3ef;
  display: flex;
  height: auto;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  position: sticky;
  bottom: 0;
  flex-shrink: 0;
  width: 100%;
  margin-top: auto;
}

.menu-toggle-btn {
  overflow: visible;
  position: relative;
  border-radius: 4px;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle-btn:hover {
  background-color: transparent;
}

.menu-toggle-icon {
  position: relative;
  width: 20px;
  height: 20px;
}

.menu-toggle-icon img {
  display: block;
  max-width: none;
  width: 100%;
  height: 100%;
}

/* Button styling for menu items with buttons */
.menu-item button.menu-item-content {
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  text-align: left;
  width: 100%;
}

.menu-item button.menu-item-content:hover {
  background-color: #f8f9fd;
}

 .global-search {
  position: relative;
  width: 360px;
  flex-shrink: 0;
 }

 .global-search-input {
  width: 100%;
  height: 32px;
  border: 1px solid #dcdfe4;
  border-radius: 4px;
  padding: 0 10px;
  font-size: 13px;
  background-color: #ffffff;
  color: #1f2d3d;
 }

 .global-search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(1, 86, 206, 0.12);
 }

 .global-search-panel {
  position: absolute;
  right: 0;
  top: 40px;
  width: 520px;
  background: #ffffff;
  border: 1px solid #dcdfe4;
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  display: none;
  z-index: 999;
 }

 .global-search-panel.is-open {
  display: block;
 }

 .global-search-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 10px 0 10px;
  border-bottom: 1px solid #eef0f4;
 }

 .global-search-tab {
  border: 1px solid transparent;
  background: transparent;
  color: #506176;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
 }

 .global-search-tab.is-active {
  background: rgba(1, 86, 206, 0.08);
  border-color: rgba(1, 86, 206, 0.2);
  color: var(--primary-color);
 }

 .global-search-results {
  max-height: 340px;
  overflow: auto;
  padding: 6px;
 }

 .global-search-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
 }

 .global-search-item:hover,
 .global-search-item.is-highlighted {
  background: #f8f9fd;
 }

 .global-search-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #1f2d3d;
 }

 .global-search-item-subtitle {
  font-size: 12px;
  color: #6b7a90;
  margin-top: 2px;
 }

 .global-search-item-tag {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef0f4;
  color: #506176;
  flex-shrink: 0;
  height: fit-content;
 }

 .global-search-empty {
  padding: 14px 10px;
  font-size: 13px;
  color: #6b7a90;
 }

 .global-search-hint {
  padding: 8px 10px;
  border-top: 1px solid #eef0f4;
  font-size: 11px;
  color: #8b98ad;
 }

 .susy-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2000;
 }

 .susy-modal.is-open {
  display: block;
 }

 .susy-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
 }

 .susy-modal-dialog {
  position: relative;
  width: 800px;
  max-width: calc(95vw - 32px);
  margin: 80px auto 0 auto;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #dcdfe4;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
 }

 .susy-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #eef0f4;
 }

 .susy-modal-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2d3d;
 }

 .susy-modal-close {
  border: 1px solid #dcdfe4;
  background: #ffffff;
  color: #506176;
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
 }

 .susy-modal-close:hover {
  background: #f8f9fd;
 }

 .susy-modal-body {
  padding: 14px;
  font-size: 13px;
  color: #1f2d3d;
  line-height: 1.55;
  overflow-y: auto;
  max-height: calc(100vh - 180px);
 }

 .susy-modal-footer {
  padding: 12px 14px;
  border-top: 1px solid #eef0f4;
  display: flex;
  justify-content: flex-end;
 }

 .susy-modal-btn {
  border: 1px solid var(--primary-color);
  background: var(--primary-color);
  color: #ffffff;
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.susy-modal-btn + .susy-modal-btn {
  margin-left: 8px;
}

.susy-modal-btn[data-variant="secondary"] {
  border-color: #dcdfe4;
  background: #ffffff;
  color: #506176;
}

.susy-modal-btn[data-variant="secondary"]:hover {
  background: #f8f9fd;
  filter: none;
}

.susy-modal-btn[data-variant="danger"] {
  border-color: #b3261e;
  background: #b3261e;
  color: #ffffff;
}

.susy-modal-btn[data-variant="danger"]:hover {
  filter: brightness(0.96);
}

 .susy-modal-btn:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
 }

 .susy-modal-btn:active {
  background: var(--primary-active);
  border-color: var(--primary-active);
 }

.user-overview-modal {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.user-overview-header {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 12px;
}

.user-overview-title-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.user-overview-title-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-overview-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}

.user-overview-identity {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 13px;
}

.user-overview-name {
  font-weight: 600;
  color: #111827;
}

.user-overview-email {
  font-family: 'Roboto', monospace;
  font-size: 12px;
  color: #374151;
}

.user-overview-separator {
  color: #9ca3af;
}

.user-overview-tag {
  padding: 2px 6px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 11px;
}

.user-overview-header-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.user-overview-link {
  font-size: 12px;
  color: var(--primary-color);
  text-decoration: none;
}

.user-overview-link:hover {
  text-decoration: underline;
  color: var(--primary-hover);
}

.user-overview-meta {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-overview-email-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-overview-email-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
}

.user-overview-email-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: 80px;
  font-size: 11px;
  color: #6b7280;
}

.user-overview-meta-item {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: baseline;
  font-size: 12px;
}

.user-overview-email-label {
  color: #6b7280;
  min-width: 80px;
  flex-shrink: 0;
}

.user-overview-meta-label {
  color: #6b7280;
}

.user-overview-meta-value {
  color: #111827;
}

.user-overview-meta-link {
  color: var(--primary-color);
  text-decoration: none;
}

.user-overview-meta-link:hover {
  text-decoration: underline;
  color: var(--primary-hover);
}

.user-overview-meta-muted {
  color: #9ca3af;
}

.user-overview-main {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 4px;
}

.user-overview-section {
  padding: 12px 0;
  background: transparent;
  margin-bottom: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.user-overview-section-title {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
}

.user-overview-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.user-overview-chip {
  border-radius: 999px;
  border: 1px solid #dbe2ea;
  background: #ffffff;
  font-size: 12px;
  padding: 2px;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  min-height: 20px;
}

.user-overview-chip:hover {
  background: #f8fafc;
}

.user-overview-chip .material-symbols-rounded {
  font-size: 12px;
}

.user-overview-collapsible {
  overflow: hidden;
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.user-overview-collapsible + .user-overview-collapsible {
  margin-top: 0;
}

.user-overview-collapsible-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0;
  cursor: pointer;
  user-select: none;
  background: transparent;
  border: none;
  margin-bottom: 8px;
}

.user-overview-collapsible-summary::-webkit-details-marker {
  display: none;
}

.user-overview-collapsible-summary::before {
  content: '';
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(-45deg);
  transition: transform 150ms ease;
  margin-right: 10px;
}

.user-overview-collapsible[open] > .user-overview-collapsible-summary::before {
  transform: rotate(45deg);
}

.user-overview-collapsible-summary:hover {
  background: transparent;
}

.user-overview-collapsible-title {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  flex: 1;
  min-width: 0;
}

.user-overview-collapsible-meta {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 500;
}

.user-overview-collapsible-body {
  padding: 0;
}

.user-overview-collapsible-summary > span {
  min-width: 0;
}

.user-overview-collapsible-summary .user-overview-meta-muted {
  color: #64748b;
}

.user-overview-roles-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-overview-role-item {
  background: transparent;
  border-left: 2px solid var(--primary-color);
  padding: 4px 8px;
  border-radius: 0;
  transition: all 0.2s ease;
}

.user-overview-role-item:hover {
  background: var(--bg-hover);
  border-left-color: var(--primary-hover);
}

.user-overview-role-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.user-overview-role-title {
  font-weight: 600;
  color: #1e293b;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.user-overview-role-deadline {
  font-size: 9px;
  color: #64748b;
  background: #e2e8f0;
  padding: 1px 3px;
  border-radius: 6px;
  white-space: nowrap;
}

.user-overview-role-detail {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.user-overview-role-journal {
  font-size: 11px;
  color: #0f172a;
  font-weight: 500;
}

.user-overview-role-meta {
  font-size: 9px;
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.user-overview-role-meta a {
  color: var(--primary-color);
  text-decoration: none;
}

.user-overview-role-meta a:hover {
  text-decoration: underline;
  color: var(--primary-hover);
}

.user-overview-role-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.user-overview-role-meta-item::before {
  content: '•';
  color: #cbd5e1;
  font-size: 6px;
}

.user-overview-role-meta-item:first-child::before {
  display: none;
}

.user-overview-section-header-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 6px;
}

.user-overview-section-meta {
  font-size: 11px;
  color: #6b7280;
}

.user-overview-number {
  font-weight: 600;
}

.user-overview-table-wrapper {
  background: #ffffff;
  max-height: 340px;
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  margin-top: 8px;
}

.user-overview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.user-overview-table thead {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.user-overview-table th,
.user-overview-table td {
  padding: 3px 5px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: top;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
}

.user-overview-table th:nth-child(1),
.user-overview-table td:nth-child(1) {
  width: 30%;
  min-width: 250px;
  white-space: normal;
  word-wrap: break-word;
}

.user-overview-table th:nth-child(2),
.user-overview-table td:nth-child(2) {
  width: 8%;
}

.user-overview-table th:nth-child(3),
.user-overview-table td:nth-child(3) {
  width: 6%;
}

.user-overview-table th:nth-child(4),
.user-overview-table td:nth-child(4) {
  width: 6%;
  white-space: normal;
  word-wrap: break-word;
}

.user-overview-table th:nth-child(5),
.user-overview-table td:nth-child(5) {
  width: 10%;
  white-space: normal;
  word-wrap: break-word;
}

.user-overview-table th:nth-child(6),
.user-overview-table td:nth-child(6) {
  width: 16%;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.user-overview-table th:nth-child(7),
.user-overview-table td:nth-child(7) {
  width: 6%;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

/* Editorial decisions table - 6 columns without review columns */
.user-overview-decisions .user-overview-table th:nth-child(1),
.user-overview-decisions .user-overview-table td:nth-child(1) {
  width: 42%;
  min-width: 250px;
  white-space: normal;
  word-wrap: break-word;
}

.user-overview-decisions .user-overview-table th:nth-child(2),
.user-overview-decisions .user-overview-table td:nth-child(2) {
  width: 8%;
  white-space: normal;
  word-wrap: break-word;
}

.user-overview-decisions .user-overview-table th:nth-child(3),
.user-overview-decisions .user-overview-table td:nth-child(3) {
  width: 8%;
  white-space: normal;
  word-wrap: break-word;
}

.user-overview-decisions .user-overview-table th:nth-child(4),
.user-overview-decisions .user-overview-table td:nth-child(4) {
  width: 15%;
  white-space: normal;
  word-wrap: break-word;
}

.user-overview-decisions .user-overview-table th:nth-child(5),
.user-overview-decisions .user-overview-table td:nth-child(5) {
  width: 20%;
  white-space: normal;
  word-wrap: break-word;
}

.user-overview-decisions .user-overview-table th:nth-child(6),
.user-overview-decisions .user-overview-table td:nth-child(6) {
  width: 8%;
  white-space: normal;
  word-wrap: break-word;
}

/* Historical editorial decisions table - 6 columns without review columns */
.user-overview-history .user-overview-table th:nth-child(1),
.user-overview-history .user-overview-table td:nth-child(1) {
  width: 42%;
  min-width: 250px;
  white-space: normal;
  word-wrap: break-word;
}

.user-overview-history .user-overview-table th:nth-child(2),
.user-overview-history .user-overview-table td:nth-child(2) {
  width: 8%;
    white-space: normal;
  word-wrap: break-word;
}

.user-overview-history .user-overview-table th:nth-child(3),
.user-overview-history .user-overview-table td:nth-child(3) {
  width: 8%;
    white-space: normal;
  word-wrap: break-word;
}

.user-overview-history .user-overview-table th:nth-child(4),
.user-overview-history .user-overview-table td:nth-child(4) {
  width: 15%;
  white-space: normal;
  word-wrap: break-word;
}

.user-overview-history .user-overview-table th:nth-child(5),
.user-overview-history .user-overview-table td:nth-child(5) {
  width: 20%;
  white-space: normal;
  word-wrap: break-word;
}

.user-overview-history .user-overview-table th:nth-child(6),
.user-overview-history .user-overview-table td:nth-child(6) {
  width: 8%;
  white-space: normal;
  word-wrap: break-word;
}

/* Submitted manuscripts table - 5 columns without review columns */
.user-overview-submitted .user-overview-table th:nth-child(1),
.user-overview-submitted .user-overview-table td:nth-child(1) {
  width: 42%;
  min-width: 250px;
  white-space: normal;
  word-wrap: break-word;
}

.user-overview-submitted .user-overview-table th:nth-child(2),
.user-overview-submitted .user-overview-table td:nth-child(2) {
  width: 8%;
}

.user-overview-submitted .user-overview-table th:nth-child(3),
.user-overview-submitted .user-overview-table td:nth-child(3) {
  width: 8%;
}

.user-overview-submitted .user-overview-table th:nth-child(4),
.user-overview-submitted .user-overview-table td:nth-child(4) {
  width: 15%;
  white-space: normal;
  word-wrap: break-word;
}

.user-overview-submitted .user-overview-table th:nth-child(5),
.user-overview-submitted .user-overview-table td:nth-child(5) {
  width: 20%;
  white-space: normal;
  word-wrap: break-word;
}

.user-overview-table th {
  font-weight: 600;
  color: #374151;
  position: sticky;
  top: 0;
  background: #f9fafb;
  z-index: 1;
  text-align: left;
}

.user-overview-table tbody tr:nth-child(odd) {
  background: #ffffff;
}

.user-overview-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.user-overview-table tbody tr:hover {
  background: #f3f4f6;
}

.user-overview-cell-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.user-overview-cell-title a:hover {
  text-decoration: underline;
  color: var(--primary-hover);
}

.user-overview-msid {
  margin-top: 2px;
  font-size: 11px;
  color: #6b7280;
}

.user-overview-reviewer-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 0;
}

.user-overview-reviewer-block {
  padding: 0;
}

.user-overview-reviewer-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
}

.user-overview-review-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 8px;
}

.user-overview-review-table th,
.user-overview-review-table td {
  padding: 6px 10px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: top;
}

.user-overview-review-table tr:last-child th,
.user-overview-review-table tr:last-child td {
  border-bottom: 0;
}

.user-overview-review-table th {
  width: 34%;
  color: #374151;
  font-weight: 600;
  background: #f9fafb;
  text-align: left;
}

.user-overview-review-table td {
  color: #0f172a;
  background: #ffffff;
}

.user-overview-notes-initial {
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f9fafb;
  margin-bottom: 8px;
  margin-top: 8px;
}

.user-overview-note-text {
  margin-top: 6px;
  color: #0f172a;
}

.user-overview-notes-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-overview-notes-form textarea {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #374151;
  background: #ffffff;
  outline: none;
}

.user-overview-notes-form textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(1, 86, 206, 0.1);
}

@media (max-width: 640px) {
  .user-overview-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .user-overview-meta {
    grid-template-columns: 1fr;
  }
}

.command-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  transform: none;
  width: min(700px, 92vw);
  max-height: 70vh;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: none;
  flex-direction: column;
  z-index: 1500;
}

.command-panel.is-open {
  display: flex;
}

.command-modal-input {
  padding: 12px 16px 8px;
  border-bottom: 1px solid #e5e7eb;
  /* background: #f9fafb; */
}

.command-modal-body {
  padding: 12px 16px 16px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.command-section-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7a90;
  margin: 10px 0 6px;
}

.command-results + .command-section-title {
  margin-top: 8px;
}

.command-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0.96;
}

.command-filter-bar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  padding: 6px;
  border-radius: 8px;
  /* background: #f9fafb; */
  border: 1px solid #e5e7eb;
  max-width: 100%;
}

.command-filter-chip {
  border: 1px solid transparent;
  background: #ffffff;
  color: #374151;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  line-height: 18px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.command-filter-chip:hover {
  background: #f3f4f6;
}

.command-filter-chip.is-active {
  background: #1f2937;
  border-color: transparent;
  color: #ffffff;
}

.command-filter-chip[data-risk="high"] {
  background: #fef2f2;
  color: #dc2626;
}

.command-filter-chip[data-risk="high"].is-active {
  background: #dc2626;
  border-color: transparent;
  color: #ffffff;
}

.command-card {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.command-card:hover,
.command-card.is-active {
  background: #f8f9fa;
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.command-card[data-risk="high"] {
  border-color: #fca5a5;
  background: #fef2f2;
}

.command-card[data-risk="high"]:hover,
.command-card[data-risk="high"].is-active {
  border-color: #ef4444;
  background: #fee2e2;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15);
}

.command-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.command-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.command-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  line-height: 1.4;
}

.command-card-desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
  margin-top: 2px;
}

.command-card-meta {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 4px;
}

.command-recent-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.command-recent-item {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e3e8f2;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  cursor: pointer;
}

.command-recent-item span:last-child {
  color: #6b7a90;
}

.command-results {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
  font-size: 14px;
  color: #111827;
  order: -10;
}

.command-results-header {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  position: static;
  background: transparent;
  padding: 0;
  z-index: auto;
  margin-bottom: 8px;
  font-weight: 600;
}

.command-results-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.command-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.command-result-item.is-skeleton {
  cursor: default;
}

.command-result-item.is-skeleton:hover {
  background: #ffffff;
  border-color: #e5e7eb;
}

.command-skeleton-label {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 4px;
}

.command-skeleton-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.command-skeleton-line {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 40%, #f3f4f6 80%);
  background-size: 200% 100%;
  animation: command-skeleton-shimmer 1.1s ease-in-out infinite;
}

.command-skeleton-line[data-size="icon"] {
  width: 18px;
  height: 18px;
  border-radius: 6px;
}

.command-skeleton-line[data-size="title"] {
  width: 280px;
  max-width: 52vw;
  height: 10px;
}

.command-skeleton-line[data-size="subtitle"] {
  width: 180px;
  max-width: 44vw;
  height: 10px;
  opacity: 0.9;
}

.command-skeleton-line[data-size="action"] {
  width: 44px;
  height: 12px;
}

.material-symbols-rounded {
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;
  vertical-align: middle;
}

.command-result-icon .material-symbols-rounded,
.command-recent-icon .material-symbols-rounded {
  font-size: 18px;
}

.command-recent-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

@keyframes command-skeleton-shimmer {
  0% {
    background-position: 0% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.command-result-item:hover {
  background: #f8f9fa;
  border-color: #d1d5db;
}

.command-result-item[data-risk="high"] {
  border-color: rgba(179, 38, 30, 0.4);
  background: rgba(179, 38, 30, 0.04);
}

.command-result-item[data-risk="high"]:hover {
  border-color: #b3261e;
  background: rgba(179, 38, 30, 0.09);
}

.command-result-main {
  display: flex;
  gap: 10px;
  align-items: center;
}

.command-result-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.command-result-title {
  font-weight: 600;
  font-size: 12px;
  color: #111827;
  line-height: 1.4;
}

.command-result-subtitle {
  font-size: 11px;
  color: #6b7280;
  margin-top: 2px;
  line-height: 1.4;
}

.command-result-action {
  font-size: 10px;
  color: #374151;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 6px;
  border-radius: 4px;
  background: #f3f4f6;
}

.command-results-empty {
  font-size: 12px;
  text-align: center;
  color: #9ca3af;
  margin-top: 8px;
  margin-bottom: 8px;
  padding: 8px 0;
  background: transparent;
  border-radius: 0;
  border: none;
}
.command-recent-header {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  position: static;
  background: transparent;
  padding: 0;
  z-index: auto;
  margin-bottom: 6px;
  font-weight: 600;
}

.command-recent-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.command-recent-header-row .command-recent-header {
  margin-bottom: 0;
}

.command-recent-clear {
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.command-recent-clear:hover {
  color: #111827;
}

.command-recent-clear:disabled {
  opacity: 0.5;
  cursor: default;
}

.command-recent-item {
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  cursor: pointer;
  gap: 10px;
  align-items: center;
  background: #ffffff;
  transition: all 0.15s ease;
}

.command-recent-item:hover {
  background: #f8f9fa;
  border-color: #d1d5db;
}

.command-recent-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.command-recent-texts {
  flex: 1;
}

.command-recent-title {
  font-weight: 600;
  font-size: 12px;
  color: #111827;
  line-height: 1.4;
}

.command-recent-desc {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.4;
  margin-top: 2px;
}

.command-recent-meta {
  font-size: 10px;
  color: #9ca3af;
}

@media (max-width: 960px) {
  .command-panel {
    right: 0;
    left: auto;
    width: min(92vw, 560px);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .navbar-content {
    padding-left: 16px;
    padding-right: 8px;
  }
  
  .navbar-left {
    gap: 16px;
  }
  
  .nav-links {
    gap: 16px;
  }
  
  .sidebar {
    width: 200px;
  }
  
  .menu-items {
    padding-left: 4px;
    padding-right: 4px;
  }

  .top-command-search {
    width: 200px;
  }

  .nav-dropdown-grid {
    flex-direction: column;
    min-width: 320px;
  }
  
  .nav-dropdown-section:first-child {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 12px;
  }
  
  .user-dropdown-menu {
    right: -8px;
  }
}

@media (max-width: 1024px) {
  .nav-links {
    gap: 20px;
  }
  
  .nav-dropdown-grid {
    min-width: 480px;
  }
}
