:root {
  --sidebar-bg: #111827;
  --sidebar-text: #cbd5e1;
  --sidebar-hover: #1f2937;
  --sidebar-active: #2563eb;
  --bg: #f3f4f6;
  --surface: #ffffff;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --text: #111827;
  --muted: #6b7280;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eff6ff;
  --success: #16a34a;
  --success-soft: #f0fdf4;
  --warning: #d97706;
  --warning-soft: #fffbeb;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --info: #0284c7;
  --info-soft: #f0f9ff;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.1);
  font-family: "Segoe UI", "Microsoft JhengHei", "PingFang TC", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  flex-shrink: 0;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 248px;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  padding: 0 14px;
  z-index: 30;
}

.logo {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  color: #fff;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.45);
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 14px;
}

.nav-group {
  padding: 18px 12px 6px;
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0;
}

.nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.nav-dot.primary { background: #3b82f6; }
.nav-dot.green { background: #22c55e; }
.nav-dot.blue { background: #0ea5e9; }
.nav-dot.amber { background: #f59e0b; }
.nav-dot.red { background: #ef4444; }
.nav-dot.slate { background: #94a3b8; }
.nav-dot.violet { background: #8b5cf6; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--sidebar-text);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.nav-item svg {
  width: 18px;
  height: 18px;
}

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

.nav-item.active {
  background: var(--sidebar-active);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.sidebar-foot {
  margin-top: auto;
  padding: 16px 8px;
  font-size: 12px;
  color: #6b7280;
}

.main {
  margin-left: 248px;
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  height: 64px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 20;
}

.breadcrumb {
  font-size: 15px;
  font-weight: 600;
}

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

.global-search {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  width: 280px;
  height: 38px;
  padding: 0 12px;
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  transition: border 0.15s, background 0.15s;
}

.global-search:focus-within {
  background: var(--surface);
  border-color: var(--primary);
}

.global-search svg {
  width: 17px;
  height: 17px;
}

.global-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.search-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 420px;
  max-height: 460px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  z-index: 80;
}

.search-popover-head {
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0;
  border-bottom: 1px solid var(--border);
}

.search-popover-item {
  display: block;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
}

.search-popover-item:hover {
  background: var(--bg);
}

.search-popover-item strong {
  font-weight: 600;
}

.search-popover-item .sp-muted {
  color: var(--muted);
  font-size: 12px;
}

.search-popover-foot {
  padding: 9px 12px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
}

.icon-btn:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.notify-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger);
  border: 2px solid var(--surface);
}

.notify-dot.count {
  top: 4px;
  right: 4px;
  width: auto;
  height: auto;
  min-width: 16px;
  padding: 0 4px;
  border-radius: 999px;
  border-width: 1px;
  font-size: 10px;
  line-height: 14px;
  text-align: center;
}

.notify-wrap {
  position: relative;
}

.notify-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  max-height: 440px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  z-index: 80;
}

.notify-dropdown-item {
  display: block;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.notify-dropdown-item:hover {
  background: var(--bg);
}

.notify-dropdown-item.unread {
  border-left: 3px solid var(--primary);
}

.notify-dropdown-item .nd-title {
  font-weight: 600;
  font-size: 13px;
}

.notify-dropdown-item .nd-content {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notify-dropdown-item .nd-meta {
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}

.notify-dropdown-head,
.notify-dropdown-foot {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.notify-dropdown-head strong {
  color: var(--text);
  font-size: 13px;
}

.notify-dropdown-foot {
  border-top: 1px solid var(--border);
  border-bottom: 0;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #2563eb);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.operator-select {
  width: 150px;
  height: 38px;
  font-size: 13px;
}

.view {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.page-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}

.page-sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

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

.btn svg {
  width: 16px;
  height: 16px;
}

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

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

.btn-danger {
  color: var(--danger);
}

.btn-danger:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.btn-sm {
  height: 30px;
  padding: 0 10px;
  font-size: 12.5px;
  gap: 5px;
}

.btn-sm svg {
  width: 14px;
  height: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.metric-card {
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.metric-link {
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.metric-link:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.14);
}

.metric-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.metric-icon svg {
  width: 20px;
  height: 20px;
}

.metric-icon.blue { background: var(--primary-soft); color: var(--primary); }
.metric-icon.green { background: var(--success-soft); color: var(--success); }
.metric-icon.amber { background: var(--warning-soft); color: var(--warning); }
.metric-icon.red { background: var(--danger-soft); color: var(--danger); }

.metric-value {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}

.metric-label {
  color: var(--muted);
  font-size: 13px;
  margin-top: 5px;
}

.metric-foot {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-size: 15px;
  font-weight: 700;
}

.card-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.card-body {
  padding: 16px 18px;
}

.status-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.status-bar-row {
  display: grid;
  grid-template-columns: 90px 1fr 42px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  position: relative;
}

.status-link {
  text-decoration: none;
  color: var(--text);
  border-radius: 6px;
  transition: background 0.15s;
}

.status-link:hover {
  background: var(--primary-soft);
}

.status-bar-track {
  height: 8px;
  border-radius: 999px;
  background: #eef0f3;
  overflow: hidden;
}

.status-bar-fill {
  height: 100%;
  border-radius: 999px;
}

.status-count {
  text-align: right;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.status-bar-tip {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 20;
  max-width: 260px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #111827;
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.status-bar-row:hover .status-bar-tip {
  opacity: 1;
  transform: translateY(0);
}

.table-card {
  overflow: hidden;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

th {
  text-align: left;
  padding: 11px 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
  background: #f9fafb;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 12px 14px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

tbody tr {
  transition: background 0.12s;
}

tbody tr:hover {
  background: #f9fafb;
}

tr:last-child td {
  border-bottom: 0;
}

.asset-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.asset-link:hover {
  text-decoration: underline;
}

.muted {
  color: var(--muted);
}

.money {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge-use { background: var(--success-soft); color: var(--success); }
.badge-stock { background: #f3f4f6; color: #4b5563; }
.badge-maint { background: var(--warning-soft); color: var(--warning); }
.badge-loan { background: var(--info-soft); color: var(--info); }
.badge-disposed { background: var(--danger-soft); color: var(--danger); }
.badge-pending { background: var(--warning-soft); color: var(--warning); }
.badge-count { background: var(--info-soft); color: var(--info); }
.badge-default { background: #f3f4f6; color: #4b5563; }

.filter-bar {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr) auto;
  gap: 10px;
  padding: 14px;
  margin-bottom: 16px;
}

.warranty-filter {
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
}

.dep-filter {
  grid-template-columns: 1.2fr repeat(3, auto);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.field-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.field-error {
  font-size: 12px;
  color: var(--danger);
  line-height: 1.4;
}

.field-error:not([hidden]) {
  display: block;
}

.input,
.select {
  width: 100%;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  outline: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input:focus,
.select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.pager button:disabled {
  opacity: 0.45;
  cursor: default;
}

.detail-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.detail-avatar {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.detail-title {
  font-size: 19px;
  font-weight: 700;
}

.detail-code {
  color: var(--muted);
  font-family: Consolas, monospace;
  font-size: 13px;
}

.detail-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.more-menu-wrap {
  position: relative;
}

.more-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 90;
  width: 220px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

.more-menu[hidden] {
  display: none;
}

.more-menu-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.more-menu-item:hover {
  background: var(--bg);
}

.more-menu-item svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  overflow-x: auto;
}

.tab {
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.tab:hover {
  color: var(--text);
}

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px 18px;
}

.info-item label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 3px;
}

.info-item div {
  font-weight: 500;
  word-break: break-word;
}

.form-card {
  padding: 20px;
  margin-bottom: 16px;
}

.crud-form {
  margin-bottom: 16px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.check-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fafafa;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.check-line input {
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}

.check-line-wrap {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.check-line-wrap .field {
  flex: 0 0 180px;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
}

.form-card-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 16px;
}

.form-grid .span-2 { grid-column: span 2; }
.form-grid .span-3 { grid-column: span 3; }

.form-sub-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  margin: 2px 0 4px;
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  background: var(--bg);
}

.form-sub-panel[hidden] {
  display: none;
}

.form-sub-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.attachment-upload-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.attachment-upload-row .input,
.attachment-upload-row .select {
  flex: 1 1 170px;
  min-width: 0;
}

.attachment-upload-row .btn {
  white-space: nowrap;
}

.attachment-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.attachment-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}

.attachment-item .muted {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.form-error-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 13px;
}

.form-error-summary[hidden] {
  display: none;
}

.form-error-summary strong {
  font-weight: 700;
}

.form-error-summary a {
  color: var(--danger);
  font-weight: 600;
}

.form-sticky-bar {
  position: sticky;
  bottom: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 -24px -24px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
}

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

.form-save-status {
  color: var(--muted);
  font-size: 13px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.55);
}

.modal-panel {
  width: min(440px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}

.modal-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  font-weight: 700;
}

.modal-head svg {
  width: 18px;
  height: 18px;
  color: var(--warning);
}

.modal-body {
  padding: 16px 18px;
  font-size: 13.5px;
  line-height: 1.55;
}

.modal-body p {
  margin: 0 0 12px;
}

.conflict-versions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.conflict-versions div {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}

.conflict-versions span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.conflict-versions code {
  font-family: Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
}

.code-block {
  width: 100%;
  min-height: 84px;
  margin: 0;
  padding: 10px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: 12px/1.55 Consolas, "Courier New", monospace;
  white-space: pre-wrap;
  word-break: break-word;
  overflow: auto;
  max-height: 220px;
}

.textarea {
  width: 100%;
  min-height: 84px;
  padding: 10px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  resize: vertical;
  outline: 0;
  font: inherit;
}

.textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.empty,
.loading,
.error {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
}

.error {
  color: var(--danger);
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: 440px;
  padding: 11px 15px;
  border-radius: 9px;
  background: #111827;
  color: #fff;
  font-size: 13px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  z-index: 60;
}

.toast.error {
  background: var(--danger);
}

.db-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

.db-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  font-family: Consolas, monospace;
  font-size: 13px;
}

.db-item:hover {
  border-color: var(--primary);
}

.feature-name {
  font-weight: 600;
}

.route-code {
  font-family: Consolas, monospace;
  font-size: 12px;
  background: #f3f4f6;
  padding: 2px 7px;
  border-radius: 5px;
  color: #374151;
}

.raw-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  flex-wrap: wrap;
}

.raw-card {
  margin-bottom: 16px;
}

.raw-table th,
.raw-table td {
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.raw-table td {
  font-family: Consolas, monospace;
  font-size: 12px;
}

.col-type {
  color: #9ca3af;
  font-size: 10px;
  font-weight: 400;
  margin-top: 2px;
  text-transform: lowercase;
}

.dict-bar {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 16px;
  align-items: start;
}

.dict-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  position: sticky;
  top: 80px;
}

.dict-menu-item {
  height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  text-align: left;
}

.dict-menu-item:hover {
  background: var(--bg);
  color: var(--text);
}

.dict-menu-item.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.dict-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.doc-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px 18px;
  margin-bottom: 16px;
}

.doc-meta-item label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 3px;
}

.doc-meta-item div {
  font-weight: 500;
  word-break: break-word;
}

.approval-panel {
  padding: 16px 18px;
  margin-top: 16px;
}

.approval-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.approval-row .input {
  flex: 1;
  min-width: 240px;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.42);
  display: flex;
  justify-content: flex-end;
}

.drawer-backdrop[hidden] {
  display: none;
}

.drawer-panel {
  width: min(520px, 100vw);
  height: 100%;
  background: var(--surface);
  box-shadow: -18px 0 40px rgba(15, 23, 42, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.drawer-title {
  font-size: 17px;
  font-weight: 700;
}

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

.drawer-remarks {
  color: #374151;
  line-height: 1.6;
  white-space: pre-line;
}

.kit-rows {
  display: grid;
  gap: 8px;
  margin: 8px 0 12px;
}

.kit-row {
  display: grid;
  grid-template-columns: 110px 80px 1fr 36px;
  gap: 8px;
  align-items: center;
}

.kit-row .input {
  min-width: 0;
}

.kit-row-del {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kit-summary {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.kit-summary-item {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 13px;
  min-width: 0;
}

.kit-summary-item span:first-child {
  font-weight: 600;
  white-space: nowrap;
}

.kit-summary-item span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kit-summary-item .muted {
  margin-left: auto;
  white-space: nowrap;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.image-card {
  padding: 12px;
  min-width: 0;
}

.image-preview {
  position: relative;
  overflow: hidden;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-fallback {
  color: #64748b;
  font-size: 12px;
  text-align: center;
  padding: 0 8px;
  word-break: break-all;
}

.image-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.image-actions {
  display: flex;
  gap: 6px;
}

.image-actions .btn {
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.image-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(2, 8, 23, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-figure {
  margin: 0;
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  background: #0f172a;
}

.lightbox-fallback {
  width: min(480px, 80vw);
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  background: #0f172a;
  border-radius: 8px;
  font-size: 16px;
  text-align: center;
  word-break: break-all;
  padding: 16px;
}

.lightbox-figure figcaption {
  color: #cbd5e1;
  font-size: 13px;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(15, 23, 42, 0.75);
  color: #f8fafc;
  border-radius: 8px;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-nav:hover:not(:disabled) {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(255, 255, 255, 0.5);
}

.lightbox-close {
  top: 18px;
  right: 18px;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.lightbox-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.image-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.row-actions {
  white-space: nowrap;
  width: 1%;
}

.row-actions .btn + .btn {
  margin-left: 6px;
}

.notice-users {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
}

.notice-user-option {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.35;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 20px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.stepper-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.stepper-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e5e7eb;
  color: #6b7280;
  font-size: 12px;
}

.stepper-step.done .stepper-dot {
  background: var(--success-soft);
  color: var(--success);
}

.stepper-step.active .stepper-dot {
  background: var(--primary);
  color: #fff;
}

.stepper-step.rejected .stepper-dot {
  background: var(--danger-soft);
  color: var(--danger);
}

.stepper-line {
  flex: 1;
  min-width: 28px;
  height: 2px;
  background: #e5e7eb;
}

.stepper-step.done + .stepper-line,
.stepper-step.active + .stepper-line {
  background: var(--primary);
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.compare-card {
  padding: 16px 18px;
}

.compare-card .form-card-title {
  margin-bottom: 10px;
}

.compare-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 3px;
}

.compare-value {
  font-weight: 600;
  margin-bottom: 10px;
  word-break: break-word;
}

.scope-builder {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  max-height: 260px;
  overflow-y: auto;
  background: #fafafa;
}

.scope-group {
  margin-bottom: 12px;
}

.scope-group-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 4px;
}

.scope-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  min-height: 26px;
}

.scope-check input {
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
}

.report-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.report-toolbar .field {
  min-width: 150px;
}

.report-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.label-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.label-preview {
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  background: #f8fafc;
  padding: 18px;
}

.label-preview-card {
  width: min(280px, 100%);
  margin: 0 auto;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.label-preview-card .lp-code {
  font-family: Consolas, monospace;
  font-size: 16px;
  font-weight: 800;
}

.label-preview-card .lp-name {
  font-size: 12.5px;
  margin-top: 4px;
  line-height: 1.4;
  min-height: 34px;
}

.label-preview-card .lp-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 8px;
  margin-top: 10px;
  font-size: 10.5px;
  color: var(--muted);
}

.label-preview-card .lp-rfid {
  margin-top: 8px;
  text-align: center;
  font-family: Consolas, monospace;
  font-size: 10.5px;
  letter-spacing: 1px;
  color: var(--primary);
}

.label-preview-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--muted);
}

.print-user {
  color: var(--primary);
  font-weight: 600;
}

.label-print-result {
  margin: 12px 0 16px;
  padding: 10px 14px;
  border: 1px solid var(--success-soft);
  border-radius: 8px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 13px;
}

.label-print-result.error {
  border-color: var(--danger-soft);
  background: var(--danger-soft);
  color: var(--danger);
}

.printer-file-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.printer-file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.printer-file-pre {
  max-height: 340px;
  overflow: auto;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #f1f5f9;
  font: 11.5px/1.55 Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-all;
  color: #374151;
}

.job-params td {
  background: #f8fafc;
  padding: 12px 16px;
}

.job-params-pre {
  max-height: 220px;
  overflow: auto;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #f1f5f9;
  font: 11.5px/1.55 Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-all;
  color: #374151;
}

.asset-pick-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.asset-pick-row .input {
  flex: 1;
}

.asset-pick-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.asset-pick-results .asset-pick-row {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fafafa;
}

.picked-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.picked-item {
  display: grid;
  grid-template-columns: minmax(200px, 1.4fr) 110px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fafafa;
}

.picked-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.picked-main span {
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.picked-item label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11.5px;
  color: var(--muted);
}

.input-sm {
  height: 30px;
  font-size: 12.5px;
}

.resolve-row {
  display: flex;
  gap: 6px;
  align-items: center;
  min-width: 360px;
  flex-wrap: wrap;
}

.resolve-row .select,
.resolve-row .input {
  flex: 1;
  min-width: 110px;
}

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

.report-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.report-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.report-icon svg {
  width: 18px;
  height: 18px;
}

.report-name {
  font-size: 15px;
  font-weight: 700;
}

.report-name2 {
  color: var(--muted);
  font-size: 12.5px;
}

.report-desc {
  color: var(--muted);
  font-size: 13px;
  min-height: 36px;
}

.report-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.notice-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notice-item {
  padding: 16px 18px;
}

.notice-item.unread {
  border-left: 3px solid var(--primary);
}

.notice-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.notice-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}

.notice-content {
  margin: 10px 0;
  color: #374151;
  line-height: 1.55;
  white-space: pre-line;
}

.notice-actions {
  display: flex;
  justify-content: flex-end;
}

.notice-source {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 5px 10px;
  margin: 2px 0 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12.5px;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-source:hover {
  border-color: var(--primary);
}

.menu-tree {
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-check-item {
  border: 0;
  background: transparent;
  min-height: 30px;
  padding: 0 8px;
  font-size: 13px;
}

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

.setting-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 1.2fr 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fafafa;
}

.setting-key {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.setting-key strong {
  word-break: break-word;
}

.setting-key span {
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.setting-meta {
  color: var(--muted);
  font-size: 11px;
}

.setting-value-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.setting-value-wrap .input {
  width: 100%;
}

.setting-preview {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.split-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.login-wrap {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: min(420px, 100%);
  padding: 34px;
  text-align: center;
}

.login-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.login-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}

.login-card .form-grid {
  margin-top: 22px;
  grid-template-columns: 1fr 1fr;
  text-align: left;
}

.label-check {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

@media (max-width: 1100px) {
  .grid-2,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .split-view {
    grid-template-columns: 1fr;
  }

  .setting-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .grid-2 > .card,
  .work-queue-tables > .card,
  .work-queue-grid > .work-queue {
    min-width: 0;
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 0 12px;
  }

  .nav {
    flex-direction: row;
    margin: 0;
    overflow-x: auto;
  }

  .nav-item {
    height: 44px;
    white-space: nowrap;
  }

  .sidebar-foot {
    display: none;
  }

  .main {
    margin-left: 0;
    width: 100%;
  }

  .topbar {
    padding: 0 14px;
  }

  .global-search {
    width: 170px;
  }

  .search-popover {
    width: min(420px, calc(100vw - 40px));
    right: 0;
  }

  .notify-dropdown {
    width: min(360px, calc(100vw - 28px));
  }

  .view {
    padding: 16px 14px;
  }

  .form-sticky-bar {
    margin: 0 -14px -16px;
    padding: 12px 14px;
  }

  .filter-bar,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .label-preview-grid {
    grid-template-columns: 1fr;
  }

  .warranty-filter,
  .dep-filter {
    grid-template-columns: 1fr;
  }

  .form-grid .span-2,
  .form-grid .span-3 {
    grid-column: span 1;
  }

  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .dict-bar {
    grid-template-columns: 1fr;
  }

  .dict-menu {
    position: static;
    flex-direction: row;
    overflow-x: auto;
  }

  .dict-menu-item {
    white-space: nowrap;
  }

  .picked-item {
    grid-template-columns: 1fr 1fr;
  }

  .picked-item .btn-sm {
    grid-column: span 2;
    justify-self: start;
  }

  .setting-row {
    grid-template-columns: 1fr;
  }

  .resolve-row {
    min-width: 0;
  }

  .notice-head {
    flex-direction: column;
  }

  .login-card .form-grid {
    grid-template-columns: 1fr;
  }
}

.asset-filter-bar {
  grid-template-columns: 2fr repeat(4, 1fr);
}

.asset-filter-bar .span-filter-keyword {
  grid-column: span 2;
}

.asset-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.asset-toolbar-left,
.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.column-picker {
  position: relative;
}

.column-picker summary {
  list-style: none;
  cursor: pointer;
}

.column-picker summary::-webkit-details-marker {
  display: none;
}

.column-picker-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  width: 230px;
  max-height: 320px;
  overflow: auto;
  display: grid;
  gap: 7px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.column-picker-pop .check-line {
  background: #f8fafc;
}

.saved-view-pop {
  width: 264px;
}

.saved-view-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.saved-view-field .input {
  flex: 1;
  min-width: 0;
}

.saved-view-list {
  display: grid;
  gap: 6px;
  max-height: 230px;
  overflow: auto;
  padding-top: 2px;
}

.saved-view-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.saved-view-apply {
  flex: 1;
  min-width: 0;
  text-align: left;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-view-apply:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.saved-view-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}

.saved-view-delete:hover {
  color: var(--danger);
  border-color: var(--danger);
}

.saved-view-delete svg {
  width: 15px;
  height: 15px;
}

.saved-view-empty {
  color: var(--muted);
  font-size: 13px;
  padding: 10px 4px;
}

.sort-col {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.sort-col svg {
  width: 12px;
  height: 12px;
  margin-left: 4px;
  vertical-align: -2px;
  opacity: 0.75;
}

.sort-col.sorted {
  color: var(--primary);
}

.sort-col.sorted svg {
  opacity: 1;
}

.btn-file {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.batch-bar:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: #f8fafc;
  flex-wrap: wrap;
}

.batch-count {
  font-size: 13px;
  font-weight: 700;
  margin-right: auto;
  color: var(--text);
}

.check-col {
  width: 42px;
}

.asset-check {
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
}

.row-selected {
  background: var(--primary-soft);
}

.warranty-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid var(--warning);
  background: var(--warning-soft);
  color: var(--text);
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
}

.warranty-banner svg {
  width: 20px;
  height: 20px;
  color: var(--warning);
  flex: 0 0 auto;
}

.warranty-banner span {
  flex: 1;
  min-width: 0;
}

.warranty-banner strong {
  flex: 0 0 auto;
  color: var(--warning-dark, #b45309);
  font-weight: 700;
}

.warranty-banner:hover {
  border-color: var(--warning);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.15);
}

.work-queue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.work-queue {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.work-queue:hover {
  border-color: var(--border-strong);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.work-queue-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.work-queue-icon svg {
  width: 20px;
  height: 20px;
}

.work-queue.amber .work-queue-icon {
  background: var(--warning-soft);
  color: var(--warning);
}

.work-queue.red .work-queue-icon {
  background: var(--danger-soft);
  color: var(--danger);
}

.work-queue.blue .work-queue-icon {
  background: var(--info-soft);
  color: var(--info);
}

.work-queue-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.work-queue-count {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.work-queue-tables {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.work-queue-table {
  min-width: 0;
  border-top: 3px solid var(--border-strong);
}

.work-queue-table.amber {
  border-top-color: #d97706;
}

.work-queue-table.red {
  border-top-color: #dc2626;
}

.work-queue-table.blue {
  border-top-color: #2563eb;
}

.work-queue-table .table-wrap {
  max-height: 330px;
  overflow: auto;
}

.work-queue-table th,
.work-queue-table td {
  white-space: nowrap;
}

.queue-date {
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .work-queue-tables {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .asset-filter-bar {
    grid-template-columns: 1fr 1fr;
  }

  .asset-filter-bar .span-filter-keyword {
    grid-column: span 2;
  }

  .work-queue-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .asset-filter-bar {
    grid-template-columns: 1fr;
  }

  .asset-filter-bar .span-filter-keyword {
    grid-column: span 1;
  }

  .asset-toolbar,
  .asset-toolbar-left,
  .toolbar-actions {
    align-items: stretch;
    width: 100%;
  }

  .column-picker-pop {
    right: auto;
    left: 0;
    width: min(230px, calc(100vw - 60px));
  }

  .more-menu {
    right: auto;
    left: 0;
    width: min(220px, calc(100vw - 60px));
  }

  .batch-bar:not([hidden]) {
    align-items: stretch;
  }

  .batch-count {
    width: 100%;
    margin-bottom: 2px;
  }
}

.master-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.master-tree-card {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
}

.master-tree-wrap {
  min-height: 240px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.master-tree {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.master-node {
  display: block;
}

.master-node-children {
  margin-left: 18px;
  padding-left: 10px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.master-node-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
}

.master-node-link:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.master-node-code {
  flex: 0 0 auto;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 1px 6px;
  border-radius: 4px;
}

.master-node-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.master-node-count {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--muted);
  background: var(--bg);
  padding: 1px 7px;
  border-radius: 999px;
}

.master-node[draggable="true"] {
  cursor: grab;
}

.master-node[draggable="true"]:active {
  cursor: grabbing;
}

.master-node.dragging {
  opacity: 0.45;
}

/* Next Admin-like polish: flatter chrome, cleaner cards, tighter admin density. */
:root {
  --primary: #1677ff;
  --primary-dark: #0958d9;
  --primary-soft: #e6f4ff;
  --sidebar-bg: #ffffff;
  --sidebar-text: #475467;
  --sidebar-hover: #f2f4f7;
  --sidebar-active: #e6f4ff;
  --border: #e4e7ec;
  --border-strong: #d0d5dd;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --muted: #667085;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.08);
}

.sidebar {
  width: 232px;
  border-right: 1px solid var(--border);
  padding: 0 10px;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
}

.main {
  margin-left: 232px;
}

.logo {
  height: 60px;
  color: var(--text);
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--primary);
  box-shadow: none;
}

.logo-text {
  color: #101828;
  font-size: 18px;
  font-weight: 700;
}

.nav {
  margin-top: 10px;
}

.nav-group {
  color: #98a2b3;
  font-size: 10px;
  padding: 16px 10px 6px;
}

.nav-item {
  height: 38px;
  padding: 0 10px;
  border-radius: 7px;
  color: var(--sidebar-text);
  font-weight: 500;
  font-size: 13px;
}

.nav-item svg {
  width: 17px;
  height: 17px;
  color: #98a2b3;
}

.nav-item:hover {
  background: var(--sidebar-hover);
  color: #101828;
}

.nav-item:hover svg {
  color: var(--primary);
}

.nav-item.active {
  background: var(--sidebar-active);
  color: var(--primary-dark);
  box-shadow: none;
  font-weight: 600;
}

.nav-item.active svg {
  color: var(--primary);
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: #d0d5dd;
}

.sidebar-foot {
  color: #98a2b3;
  padding: 14px 10px;
}

.topbar {
  height: 60px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  color: #101828;
  font-size: 15px;
}

.global-search {
  background: #f2f4f7;
  border: 1px solid transparent;
  height: 36px;
}

.global-search:focus-within {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}

.icon-btn,
.operator-select {
  height: 36px;
  border-radius: 8px;
}

.avatar {
  background: var(--primary);
  box-shadow: none;
}

.view {
  padding: 20px 24px 28px;
}

.page-title {
  font-size: 20px;
  letter-spacing: 0;
}

.page-sub {
  font-size: 12.5px;
}

.btn {
  height: 36px;
  border-radius: 8px;
  border-color: var(--border-strong);
}

.btn-sm {
  height: 28px;
  border-radius: 6px;
}

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

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

.card {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.card-head {
  padding: 14px 16px;
}

.card-title,
.form-card-title {
  font-size: 14px;
}

.form-card {
  padding: 18px;
  margin-bottom: 14px;
}

.form-grid {
  gap: 12px 14px;
}

.field label {
  color: #475467;
  font-size: 12px;
}

.input,
.select,
.textarea {
  border-color: var(--border-strong);
  border-radius: 8px;
  height: 36px;
}

.textarea {
  min-height: 76px;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}

.check-line {
  border-radius: 8px;
  background: #f9fafb;
}

table {
  font-size: 13px;
}

th {
  background: #fafafa;
  color: #667085;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
}

td {
  padding: 10px 14px;
}

.tabs {
  margin-bottom: 14px;
}

.tab {
  height: 38px;
  font-size: 13px;
}

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.metric-value {
  font-size: 22px;
}

.legacy-card .form-card-title {
  gap: 8px;
}

.legacy-toolbar .input {
  height: 32px;
}

.legacy-fields-grid {
  gap: 8px;
}

.legacy-field {
  min-width: 0;
}

.legacy-field label {
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
}

.legacy-field label code {
  color: #98a2b3;
  font-size: 10.5px;
}

.legacy-source {
  margin-top: 1px;
  font-size: 10.5px;
  line-height: 1.35;
  color: #7a8699;
  word-break: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legacy-field.legacy-rebuilt {
  padding: 8px 9px;
  border: 1px solid #d9e8ff;
  border-radius: 8px;
  background: #f7fbff;
}

.legacy-field.legacy-rebuilt .legacy-input {
  background: #fff;
}

.form-sticky-bar {
  background: rgba(255, 255, 255, 0.96);
  border-top-color: var(--border);
}

@media (max-width: 760px) {
  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
}

.master-node.drop-target .master-node-link {
  background: var(--warning-soft);
  outline: 2px dashed var(--warning);
  outline-offset: 1px;
}

.master-tree.drop-root {
  outline: 2px dashed var(--primary);
  outline-offset: 3px;
  border-radius: 8px;
}

.master-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.master-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.master-chain-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.master-chain-link:hover {
  text-decoration: underline;
}

.master-chain-current {
  font-weight: 700;
}

.master-chain-sep {
  color: var(--muted);
}

.workflow-card {
  margin-top: 16px;
}

.workflow-timeline {
  display: flex;
  flex-direction: column;
  padding: 4px 2px;
}

.workflow-item {
  display: flex;
  gap: 12px;
}

.workflow-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.workflow-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--border);
  flex: 0 0 auto;
}

.workflow-dot svg {
  width: 14px;
  height: 14px;
}

.workflow-line {
  width: 2px;
  flex: 1;
  min-height: 18px;
  background: var(--border);
}

.workflow-item.done .workflow-dot {
  background: var(--success-soft);
  color: var(--success);
  border-color: #bbf7d0;
}

.workflow-item.active .workflow-dot {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: #bfdbfe;
}

.workflow-item.rejected .workflow-dot {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: #fecaca;
}

.workflow-item.pending .workflow-dot {
  background: var(--bg);
  color: var(--muted);
}

.workflow-body {
  padding-bottom: 18px;
  min-width: 0;
}

.workflow-item:last-child .workflow-body {
  padding-bottom: 0;
}

.workflow-title {
  font-size: 13px;
  font-weight: 700;
}

.workflow-actor {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.workflow-comment {
  font-size: 13px;
  margin-top: 4px;
  color: var(--text);
  white-space: pre-wrap;
}

.diff-grid {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  font-size: 13px;
}

.diff-head {
  font-weight: 700;
  color: var(--muted);
  font-size: 12px;
  padding: 6px 8px;
  background: var(--bg);
  border-radius: 6px;
}

.diff-row {
  display: contents;
}

.diff-key {
  padding: 6px 8px;
  word-break: break-word;
}

.diff-before,
.diff-after {
  padding: 6px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  word-break: break-word;
}

.diff-changed .diff-before {
  color: var(--danger);
  background: var(--danger-soft);
}

.diff-changed .diff-after {
  color: var(--success);
  background: var(--success-soft);
  font-weight: 600;
}

.diff-span {
  grid-column: 1 / -1;
}

.diff-note {
  font-size: 12px;
  color: var(--muted);
  padding: 8px 10px;
  background: var(--info-soft);
  border-radius: 6px;
}

.batch-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.batch-preview {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.batch-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg);
  font-size: 12px;
}

.batch-preview-list {
  max-height: 220px;
  overflow: auto;
  display: flex;
  flex-direction: column;
}

.batch-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 10px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.batch-line.known {
  background: var(--success-soft);
}

.batch-line.unknown {
  background: var(--danger-soft);
}

.scan-batch-history {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.batch-history-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--bg);
  border-radius: 6px;
  font-size: 12px;
}

.sync-summary {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.sync-metrics {
  margin-bottom: 0;
}

.conflict-card {
  border-color: var(--border-strong);
}

.conflict-table {
  font-size: 13px;
}

.sso-start {
  width: 100%;
  justify-content: center;
}

.sso-panel {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
}

.sso-rows {
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sso-row,
.sso-claim {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  padding: 7px 8px;
  background: var(--bg);
  border-radius: 6px;
}

.sso-row span,
.sso-claim span {
  color: var(--muted);
  flex: 0 0 auto;
}

.sso-row code,
.sso-claim code {
  min-width: 0;
  word-break: break-all;
  text-align: right;
}

.sso-claims {
  margin: 10px 0;
}

.sso-claim-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}

.sso-token-details {
  margin: 10px 0;
  font-size: 12px;
}

.sso-token {
  display: block;
  margin-top: 6px;
  padding: 8px;
  word-break: break-all;
  white-space: pre-wrap;
  font-size: 11px;
  background: var(--bg);
  border-radius: 6px;
}

.sso-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 12px;
  color: var(--muted);
  font-size: 12px;
}

.login-divider::before,
.login-divider::after {
  content: '';
  height: 1px;
  flex: 1;
  background: var(--border);
}

@media (max-width: 760px) {
  .master-layout {
    grid-template-columns: 1fr;
  }

  .master-tree-card {
    position: static;
    max-height: none;
  }

  .diff-grid {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .diff-key {
    grid-column: 1 / -1;
  }

  .diff-head:nth-child(2),
  .diff-before {
    grid-column: 1;
  }

  .diff-head:nth-child(3),
  .diff-after {
    grid-column: 2;
  }
}

.report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 12px;
}

.ad-connect-card {
  margin-bottom: 16px;
}

.ad-connect-card .form-grid {
  align-items: end;
}

.ad-result {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface);
}

.ad-result.ok {
  border-color: var(--success);
  background: var(--success-soft);
}

.ad-result.fail {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.ad-result-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.ad-result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  background: var(--bg);
  padding: 10px;
  border-radius: 6px;
}

.ad-result .table-wrap {
  margin-top: 10px;
  background: var(--surface);
}

.connection-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

.legacy-card .form-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

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

.legacy-toolbar .input {
  max-width: 360px;
}

.legacy-note {
  margin-bottom: 10px;
  font-size: 12px;
}

.legacy-fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.legacy-field[hidden] {
  display: none !important;
}

.legacy-field label {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
}

.legacy-field label code {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}

.legacy-input {
  color: var(--text);
}


/* Parent-child navigation (sidebar) */
.nav-parent {
  background: transparent;
  border: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.nav-chevron {
  margin-left: auto;
  font-size: 10px;
  line-height: 1;
  opacity: 0.65;
  transition: transform 0.2s ease;
}

.nav-parent.open .nav-chevron {
  transform: rotate(-180deg);
  opacity: 0.95;
}

.nav-children {
  display: block;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.nav-children.open {
  max-height: 1200px;
}

.nav-children .nav-leaf:hover {
  background: var(--sidebar-hover);
  color: #fff;
}

.nav-children .nav-leaf.active {
  background: var(--sidebar-active);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.nav-parent.has-active {
  color: #fff;
}

.nav-parent.has-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #3b82f6;
}

.nav-parent {
  margin-top: 8px;
}

.nav-parent:first-child {
  margin-top: 0;
}

.nav-parent .nav-item-body,
.nav-parent {
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}

.nav-parent.open {
  color: var(--sidebar-active, #2563eb);
}