﻿:root {
  --paper: #f5efe4;
  --paper-dark: #ebe2d2;
  --ink: #1f2a3a;
  --ink-soft: #4a596b;
  --seal: #b43b2f;
  --seal-dark: #8f2d24;
  --jade: #1c7a63;
  --gold: #c5a154;
  --shadow: 0 22px 45px rgba(22, 25, 30, 0.12);
  --radius: 16px;
  --font-body: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", "Heiti TC", sans-serif;
  --font-display: "Noto Serif TC", "PMingLiU", "MingLiU", "Microsoft JhengHei", serif;

  --dark-ink: #f5ead2;
  --dark-ink-soft: #d6c7ad;
  --dark-bg: #070605;
  --dark-bg-2: #0f0c09;
  --dark-panel: #1b140c;
  --dark-panel-2: #251b10;
  --dark-border: rgba(222, 187, 104, 0.38);
  --dark-shadow: 0 22px 52px rgba(0, 0, 0, 0.62);
  --dark-accent: #deb968;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: var(--font-body);
  color: var(--dark-ink);
  background: radial-gradient(circle at 12% 15%, rgba(222, 185, 104, 0.28), transparent 46%),
    linear-gradient(120deg, var(--dark-bg), var(--dark-bg-2) 42%, #050403 90%);
  min-height: 100vh;
  position: relative;
  margin-bottom: 140px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%),
    linear-gradient(315deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%);
  background-position: 12px 0, 12px 0, 0 0, 0 0;
  background-size: 24px 24px;
  z-index: 0;
}

/* Slice 1c-帠 Batch 7 (2026-05-13): .site-header / .site-nav (legacy, 0 view refs) deleted as dead CSS */

.navbar .nav-link {
  color: var(--dark-ink-soft);
  font-weight: 500;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--dark-ink);
  background: rgba(222, 185, 104, 0.24);
}

.nav-underline {
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(222, 185, 104, 0.2), var(--dark-accent), rgba(222, 185, 104, 0.2), transparent);
}

.breadcrumb-slot {
  padding: 8px 0;
  background: rgba(8, 8, 9, 0.6);
  border-bottom: 1px solid rgba(211, 172, 44, 0.2);
}

.breadcrumb-slot .container {
  max-width: none;
  padding-left: 16px;
  padding-right: 16px;
}

.breadcrumb-text {
  font-size: 20px;
  color: var(--dark-ink);
  letter-spacing: 0.02em;
}

.breadcrumb-link {
  color: #4da3ff;
  text-decoration: none;
  cursor: pointer;
}

.breadcrumb-link:hover {
  color: #79b8ff;
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--dark-ink-soft);
}

.user-chip {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(211, 172, 44, 0.35);
  background: rgba(10, 10, 10, 0.65);
  color: var(--dark-ink);
  font-size: 0.95rem;
}

.user-chip .user-label {
  color: var(--dark-ink-soft);
  margin-right: 0.35rem;
}

.user-chip .user-meta {
  color: var(--dark-ink-soft);
  font-size: 0.85rem;
}

/* Slice 4 (2026-05-13): tenant-switch-form + tenant-switch-select (0 view refs) deleted as dead CSS */

.nav-role-menu .nav-role-title {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-ink-soft);
  border: 1px solid rgba(211, 172, 44, 0.28);
  border-radius: 999px;
  padding: 0.22rem 0.58rem;
  margin-right: 0.2rem;
}

.nav-role-menu .nav-role-divider {
  width: 1px;
  height: 20px;
  margin: 0 0.25rem;
  background: rgba(211, 172, 44, 0.35);
}

.user-link-btn {
  color: #4da3ff;
  text-decoration: none;
  cursor: pointer;
}

.user-link-btn:hover {
  color: #79b8ff;
  text-decoration: underline;
}

.api-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 2100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.api-progress::before {
  content: "";
  display: block;
  width: 32%;
  height: 100%;
  background: linear-gradient(90deg, rgba(77, 163, 255, 0), #4da3ff, rgba(77, 163, 255, 0));
  animation: api-progress-slide 1s linear infinite;
}

.api-progress.is-active {
  opacity: 1;
}

@keyframes api-progress-slide {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(340%);
  }
}

/* Slice 1c-帠 Batch 7 (2026-05-13): .site-footer-fixed (0 view refs) deleted as dead CSS */
.page-shell {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 2rem 16px 4rem;
  animation: rise 420ms ease-out;
}

/* Slice 1c-帠 Batch 6 (2026-05-13): erp-page + page-head + page-title + page-subtitle + page-actions (early defs) 撌脤??02-shell.css / 04-surfaces.css canonical */

.module-segments {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.35rem;
  border: 1px solid rgba(240, 195, 110, 0.26);
  border-radius: 12px;
  background: rgba(10, 13, 18, 0.62);
}

.module-segment-btn {
  border: 1px solid rgba(240, 195, 110, 0.34);
  border-radius: 9px;
  background: rgba(14, 18, 24, 0.78);
  color: var(--dark-ink-soft);
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.module-segment-btn:hover {
  color: var(--dark-ink);
  border-color: rgba(240, 195, 110, 0.58);
}

.module-segment-btn.is-active {
  color: #201508;
  border-color: rgba(249, 212, 133, 0.9);
  background: linear-gradient(130deg, #ffd788, #f0c36e 58%, #ddae55);
}

.module-pane {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-note {
  color: var(--dark-ink-soft);
  font-size: 0.9rem;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.75rem;
}

.filter-col-3 {
  grid-column: span 3;
}

.filter-col-4 {
  grid-column: span 4;
}

.filter-col-6 {
  grid-column: span 6;
}

.filter-col-actions {
  grid-column: span 12;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 0.5rem;
}

@media (max-width: 1200px) {
  .filter-col-3,
  .filter-col-4 {
    grid-column: span 6;
  }

  .filter-col-6 {
    grid-column: span 12;
  }
}

.table-summary {
  color: var(--dark-ink-soft);
  font-size: 0.88rem;
}

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

.stat-card {
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(197, 161, 84, 0.25);
  background: rgba(22, 17, 11, 0.9);
  min-width: 120px;
  text-align: right;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--dark-ink-soft);
}

.stat-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark-ink);
}

.erp-offcanvas {
  background: linear-gradient(160deg, rgba(24, 20, 14, 0.98), rgba(12, 10, 8, 0.98));
  color: var(--dark-ink);
  border-left: 1px solid rgba(211, 172, 44, 0.35);
}

.erp-offcanvas .offcanvas-header {
  border-bottom: 1px solid rgba(211, 172, 44, 0.25);
}

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

@media (max-width: 992px) {
  .tag-drawer-toolbar {
    grid-template-columns: 1fr;
  }

  .tag-drawer-stats {
    grid-template-columns: 1fr;
  }
}

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

@media (max-width: 992px) {
  .tag-manager-toolbar {
    grid-template-columns: 1fr;
  }

  .tag-manager-body {
    grid-template-columns: 1fr;
  }
}

/* Slice 2 Phase 2b (2026-05-13): admin-nav-* + admin-section-pane + admin-rule-* 撌脤??04-surfaces.css + pages/admin-index.css */
/* home-section-pane ?怎? (敺?Slice 9 Outer Surface) */
/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

.settings-card {
  border: 1px solid rgba(222, 185, 104, 0.24);
  border-radius: 12px;
  background: rgba(16, 13, 10, 0.78);
  padding: 0.9rem;
}

.settings-title {
  margin: 0 0 0.75rem;
  color: var(--dark-ink);
  font-weight: 700;
}

/* Slice 2 Phase 2b (2026-05-13): admin-quick-nav-* + admin-alert-* 撌脤??03-navigation.css + 09-status.css */

#adminIndexApp.admin-dashboard-page .admin-dashboard-head {
  margin-bottom: 1rem;
}

#adminIndexApp.admin-dashboard-page .admin-filter-card {
  border-color: rgba(240, 195, 110, 0.32);
  background: linear-gradient(165deg, rgba(18, 24, 33, 0.95), rgba(13, 18, 26, 0.96));
}

#adminIndexApp.admin-dashboard-page .admin-summary-grid {
  margin-top: 0.1rem;
}

#adminIndexApp.admin-dashboard-page .admin-summary-card {
  border: 1px solid rgba(240, 195, 110, 0.28);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(18, 24, 34, 0.94), rgba(12, 17, 24, 0.95));
  padding: 0.68rem 0.82rem;
  min-height: 88px;
  box-shadow: 0 8px 18px rgba(7, 10, 16, 0.42);
}

#adminIndexApp.admin-dashboard-page .admin-summary-label {
  font-size: 0.82rem;
  color: #cdbf9e;
}

#adminIndexApp.admin-dashboard-page .admin-summary-value {
  font-size: 1.08rem;
  font-weight: 700;
  color: #f6dfb4;
  margin-top: 0;
}

#adminIndexApp.admin-dashboard-page .admin-summary-sub {
  font-size: 0.76rem;
  color: #a99e87;
  margin-top: 0.12rem;
}

#adminIndexApp.admin-dashboard-page .admin-group-tabs {
  margin-bottom: 0.6rem;
}

#adminIndexApp.admin-dashboard-page .admin-group-tabs .el-tabs__item {
  color: #d8c9ab;
}

#adminIndexApp.admin-dashboard-page .admin-group-tabs .el-tabs__item.is-active {
  color: #ffd788;
}

#adminIndexApp.admin-dashboard-page .admin-group-tabs .el-tabs__active-bar {
  background-color: #f0c36e;
}

#adminIndexApp.admin-dashboard-page .admin-module-table-wrap {
  border: 1px solid rgba(240, 195, 110, 0.22);
  border-radius: 12px;
  overflow: hidden;
}

#adminIndexApp.admin-dashboard-page .admin-module-desc {
  color: #cec4af;
  line-height: 1.35;
}

#adminIndexApp.admin-dashboard-page .admin-alert-collapse {
  border-color: rgba(240, 195, 110, 0.24);
}

#adminIndexApp.admin-dashboard-page .admin-alert-collapse .el-collapse-item__header {
  background: rgba(17, 23, 32, 0.9);
  color: #e5d5b8;
  border-bottom-color: rgba(240, 195, 110, 0.2);
}

#adminIndexApp.admin-dashboard-page .admin-alert-collapse .el-collapse-item__wrap {
  background: rgba(12, 17, 24, 0.88);
  border-bottom-color: rgba(240, 195, 110, 0.2);
}

#adminIndexApp.admin-dashboard-page .admin-alert-scroll {
  max-height: 280px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

#adminIndexApp.admin-dashboard-page .admin-alert-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
  border: 1px solid rgba(240, 195, 110, 0.2);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: rgba(16, 22, 32, 0.9);
}

.table-action-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.table-action-group .btn {
  min-width: 60px;
}

.entry-modal-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.entry-form-grid {
  align-items: end;
}

.entry-sticky-tools {
  position: sticky;
  top: -1px;
  z-index: 3;
  border: 1px solid rgba(240, 195, 110, 0.3);
  border-radius: 12px;
  background: rgba(16, 20, 28, 0.92);
  padding: 0.6rem 0.75rem;
}

.modal-dialog.modal-xl .modal-content {
  max-height: calc(100vh - 2.2rem);
}

.modal-dialog.modal-xl .entry-modal-body {
  overflow-y: auto;
}

.modal-footer.modal-footer-sticky {
  position: sticky;
  bottom: 0;
  z-index: 4;
  background: rgba(14, 12, 10, 0.96);
  border-top: 1px solid rgba(211, 172, 44, 0.3);
}

.status-pill {
  border-radius: 999px;
  font-size: 0.75rem;
  padding: 0.35rem 0.55rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  border-radius: var(--radius);
  border: 1px solid rgba(222, 185, 104, 0.3);
  box-shadow: var(--dark-shadow);
  background: linear-gradient(160deg, rgba(40, 30, 18, 0.98), rgba(26, 20, 12, 0.96));
}

.card-header,
.card-body {
  background: transparent;
}

.card-header {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(222, 185, 104, 0.4);
  background: linear-gradient(180deg, rgba(32, 24, 16, 0.98), rgba(16, 12, 10, 0.98));
}

.card-header h5,
.card-header h6 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  color: var(--dark-ink);
}

.card-body .border.rounded {
  border-color: rgba(222, 185, 104, 0.35) !important;
  background: rgba(12, 10, 8, 0.65);
  box-shadow: inset 0 0 0 1px rgba(222, 185, 104, 0.12);
}

.text-primary {
  color: var(--dark-accent) !important;
}

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

.text-link {
  color: #4da3ff;
  cursor: pointer;
  font-size: 0.85rem;
}

.text-link:hover {
  text-decoration: underline;
}

.empty-state {
  padding: 16px;
  border: 1px dashed rgba(222, 185, 104, 0.4);
  border-radius: 12px;
  color: var(--dark-ink-soft);
  text-align: center;
}

.table {
  background-color: transparent;
}

.table-responsive {
  overflow-x: auto;
}

.table-responsive .erp-el-table {
  min-width: 100%;
}

.table > :not(caption) > * > * {
  background-color: transparent !important;
  color: inherit;
}

.table thead th {
  font-weight: 600;
  color: var(--dark-ink);
  border-bottom-color: rgba(222, 185, 104, 0.5);
}

.table thead tr {
  background: linear-gradient(180deg, rgba(44, 32, 18, 0.98), rgba(24, 18, 10, 0.98));
  box-shadow: inset 0 -1px 0 rgba(222, 185, 104, 0.6);
}

.table thead th {
  border-top-color: rgba(222, 185, 104, 0.35);
}

.table tbody tr {
  transition: background-color 0.2s ease;
}

.table tbody tr:nth-child(even) > * {
  background-color: rgba(222, 185, 104, 0.08) !important;
}

.table tbody td,
.table tbody th {
  border-top-color: rgba(197, 161, 84, 0.12);
}

.table-hover > tbody > tr:hover > * {
  color: var(--dark-ink);
  background-color: rgba(222, 185, 104, 0.22) !important;
}

.btn-primary {
  background: var(--dark-accent-2);
  border-color: var(--dark-accent-2);
}

.btn-primary:hover,
.btn-primary:focus {
  background: #7a2a21;
  border-color: #7a2a21;
}

.btn-outline-secondary {
  border-color: rgba(222, 185, 104, 0.55);
  color: var(--dark-ink-soft);
}

.btn-outline-secondary:hover {
  background: rgba(222, 185, 104, 0.28);
  color: var(--dark-ink);
}

/* Slice 1c-帠 Batch 7 (2026-05-13): .site-footer (legacy, 0 view refs) deleted as dead CSS */

.form-control,
.form-select {
  border-radius: 12px;
  border-color: rgba(222, 185, 104, 0.45);
  background-color: rgba(20, 14, 10, 0.95);
  color: var(--dark-ink);
}

.form-control::placeholder {
  color: rgba(230, 226, 215, 0.5);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--dark-accent);
  box-shadow: 0 0 0 0.25rem rgba(222, 185, 104, 0.28);
  background-color: rgba(24, 18, 12, 0.98);
  color: var(--dark-ink);
}

.text-muted {
  color: rgba(184, 178, 166, 0.7) !important;
}

.badge {
  border-radius: 999px;
}

/* Element Plus table/pagination theme alignment */
.erp-el-table {
  --el-table-bg-color: rgba(18, 14, 10, 0.95);
  --el-table-tr-bg-color: rgba(18, 14, 10, 0.95);
  --el-table-row-hover-bg-color: rgba(222, 185, 104, 0.2);
  --el-table-current-row-bg-color: rgba(222, 185, 104, 0.2);
  --el-table-striped-bg-color: rgba(52, 39, 24, 0.55);
  --el-table-border-color: rgba(197, 161, 84, 0.2);
  --el-table-text-color: var(--dark-ink);
  --el-table-header-text-color: var(--dark-ink);
  --el-table-header-bg-color: rgba(36, 27, 16, 0.95);
  --el-fill-color-blank: rgba(18, 14, 10, 0.95);
  --el-color-primary: var(--dark-accent);
  --el-bg-color: rgba(18, 14, 10, 0.95);
  --el-text-color-regular: var(--dark-ink);
  --el-fill-color-light: rgba(222, 185, 104, 0.18);
  --el-fill-color-lighter: rgba(222, 185, 104, 0.12);
  --el-fill-color-dark: rgba(12, 10, 8, 0.95);
  --el-disabled-text-color: rgba(214, 199, 173, 0.6);
  width: 100% !important;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(197, 161, 84, 0.2);
}

.erp-el-table .el-table__inner-wrapper {
  width: 100%;
}

.erp-el-table .el-table__empty-block,
.erp-el-table .el-table__empty-text {
  color: var(--dark-ink-soft);
  background: rgba(18, 14, 10, 0.95);
}

.erp-el-table .el-table__cell {
  background: transparent;
  padding: 10px 12px;
}

.erp-el-table .el-table__body tr > td.el-table__cell {
  background: rgba(18, 14, 10, 0.95) !important;
  color: var(--dark-ink) !important;
}

.erp-el-table .el-table__body tr.el-table__row--striped > td.el-table__cell {
  background: rgba(52, 39, 24, 0.55) !important;
}

.erp-el-table .el-table__header .el-table__cell {
  background: rgba(36, 27, 16, 0.95) !important;
  color: var(--dark-ink) !important;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.erp-el-table .cell {
  line-height: 1.4;
  word-break: break-word;
}

.erp-el-table .el-table__row:hover > td.el-table__cell {
  background: rgba(222, 185, 104, 0.2) !important;
}

.erp-el-table .el-table__body tr.current-row > td.el-table__cell {
  background: rgba(222, 185, 104, 0.24) !important;
}

.erp-el-table .el-table__header-wrapper th.el-table__cell > .cell,
.erp-el-table .el-table__body-wrapper td.el-table__cell > .cell {
  color: var(--dark-ink) !important;
}

.el-pagination.is-background .btn-next,
.el-pagination.is-background .btn-prev,
.el-pagination.is-background .el-pager li {
  background-color: rgba(22, 17, 11, 0.92);
  border: 1px solid rgba(197, 161, 84, 0.28);
  color: var(--dark-ink-soft);
}

.el-pagination.is-background .el-pager li.is-active {
  color: #21170d;
  background-color: var(--dark-accent);
}

.el-pagination.is-background .btn-prev.is-disabled,
.el-pagination.is-background .btn-next.is-disabled {
  color: rgba(214, 199, 173, 0.45);
}

.el-select .el-select__wrapper,
.el-input .el-input__wrapper,
.el-textarea .el-textarea__inner {
  background: rgba(20, 14, 10, 0.95);
  box-shadow: 0 0 0 1px rgba(222, 185, 104, 0.45) inset;
  color: var(--dark-ink);
}

.el-select .el-select__placeholder,
.el-input .el-input__inner::placeholder,
.el-textarea .el-textarea__inner::placeholder {
  color: rgba(230, 226, 215, 0.5);
}

.el-select-dropdown {
  border-color: rgba(197, 161, 84, 0.3);
  background: rgba(20, 14, 10, 0.98);
}

.el-select-dropdown__item {
  color: var(--dark-ink-soft);
}

.el-select-dropdown__item.is-hovering,
.el-select-dropdown__item:hover {
  background: rgba(222, 185, 104, 0.14);
  color: var(--dark-ink);
}

/* Modal styling for dark/gold theme.
   2026-06-08 FIX: removed `.modal-backdrop.show { z-index: 1059 }` + `.modal { z-index: 1060 }`
   overrides — they inverted Bootstrap's backdrop(1050)/modal(1055) hierarchy when combined
   with design-system/08-modals.css which sets `.erp-modal { z-index: var(--erp-z-modal=1055) }`.
   Result: modal(1055) < backdrop(1059) → click hit the backdrop, not modal buttons (user
   complaint「按下送出 遮罩擋住」). Restoring Bootstrap defaults fixes the click flow. */
.modal-dialog {
  pointer-events: auto;
}

.modal-content {
  background: linear-gradient(160deg, rgba(24, 20, 14, 0.98), rgba(12, 10, 8, 0.98));
  border: 1px solid rgba(211, 172, 44, 0.35);
  color: var(--dark-ink);
  box-shadow: var(--dark-shadow);
}

.modal-header,
.modal-footer {
  border-color: rgba(211, 172, 44, 0.25);
  background: rgba(14, 12, 10, 0.7);
}

.modal-title {
  font-family: var(--font-display);
  color: var(--dark-ink);
}

.modal .btn-close {
  filter: invert(1) brightness(0.85);
}

/* Custom app modal (replace alert) */
.app-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2000;
}

.app-modal.is-open {
  display: block;
}

.app-modal-backdrop {
  position: fixed;
  inset: 0;
  background: #000;
  opacity: 0.75;
  z-index: 2001;
}

.app-modal-dialog {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 2002;
}

.app-modal-content {
  width: min(560px, 100%);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(24, 20, 14, 0.98), rgba(12, 10, 8, 0.98));
  border: 1px solid rgba(211, 172, 44, 0.35);
  color: var(--dark-ink);
  box-shadow: var(--dark-shadow);
}

.app-modal-header,
.app-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(211, 172, 44, 0.25);
  background: rgba(14, 12, 10, 0.7);
}

.app-modal-footer {
  border-top: 1px solid rgba(211, 172, 44, 0.25);
  border-bottom: 0;
}

.app-modal-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--dark-ink);
}

.app-modal-body {
  padding: 1.25rem;
  color: var(--dark-ink);
}

.app-modal-close {
  border: 0;
  background: transparent;
  color: var(--dark-ink);
  font-size: 1.2rem;
  line-height: 1;
}

@media (max-width: 768px) {
  .site-nav {
    padding: 0.75rem 1rem;
  }

  .page-shell {
    padding: 1.5rem 16px 3rem;
  }

  .page-title {
    font-size: 1.35rem;
  }

  .module-segments {
    width: 100%;
  }

  .module-segment-btn {
    flex: 1 1 auto;
    text-align: center;
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }

  .filter-col-3,
  .filter-col-4,
  .filter-col-6,
  .filter-col-actions {
    grid-column: auto;
  }

  .filter-col-actions {
    justify-content: flex-start;
  }

  .nav-role-menu .nav-role-title {
    margin-top: 0.35rem;
  }

  .nav-role-menu .nav-role-divider {
    display: none;
  }
}

/* ----------------------------------------------------
   UI_UX_DESIGN Theme Refresh (Black + Bright Gold)
   ---------------------------------------------------- */
:root {
  --dark-bg: #050506;
  --dark-bg-2: #0e1014;
  --dark-panel: #141820;
  --dark-panel-2: #1a202b;
  --dark-ink: #f5f2e9;
  --dark-ink-soft: #c4bca9;
  --dark-accent: #f0c36e;
  --dark-accent-strong: #ffd788;
  --dark-accent-2: #d24f3c;
  --dark-border: rgba(240, 195, 110, 0.42);
  --dark-shadow: 0 24px 46px rgba(0, 0, 0, 0.48);
}

body.theme-mandarin {
  color: var(--dark-ink);
  background:
    radial-gradient(circle at 18% 16%, rgba(240, 195, 110, 0.26), transparent 42%),
    radial-gradient(circle at 84% 9%, rgba(210, 79, 60, 0.18), transparent 44%),
    linear-gradient(125deg, #040406 0%, #0b0e14 50%, #05060b 100%);
}

body.theme-mandarin::before {
  opacity: 0.18;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%);
  background-size: 22px 22px;
}

/* Slice 1c-帠 Batch 7 (2026-05-13): .site-nav (legacy, 0 view refs) deleted as dead CSS */

.navbar .nav-link {
  color: #ddd4c0;
  font-weight: 600;
  border-radius: 10px;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #fff6df;
  background: rgba(240, 195, 110, 0.2);
}

.navbar-toggler {
  border-color: rgba(240, 195, 110, 0.42);
}

.navbar-toggler-icon {
  filter: invert(0.92) sepia(0.18) saturate(0.9);
}

.brand-mark {
  background: linear-gradient(145deg, #d24f3c, #9b3126);
  color: #fff;
  box-shadow: 0 10px 22px rgba(210, 79, 60, 0.45);
}

.brand-text {
  color: #f8e2ad;
  letter-spacing: 0.06em;
}

/* Slice 1c-帠 Batch 7 (2026-05-13): .site-nav-shell + .site-nav-main (0 view refs) deleted as dead CSS */

.nav-quickbar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(240, 195, 110, 0.18);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(14, 18, 24, 0.78), rgba(10, 13, 18, 0.9));
  box-shadow: inset 0 0 0 1px rgba(240, 195, 110, 0.04);
}

.nav-quickbar-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 0 0 auto;
}

.nav-quickbar-marker {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 74px;
}

.nav-quickbar-title {
  color: #f5deb0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-quickbar-subtitle {
  color: #bba984;
  font-size: 0.72rem;
}

.nav-directory-btn {
  min-height: 42px;
  padding: 0.55rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(240, 195, 110, 0.34);
  background: linear-gradient(180deg, rgba(20, 25, 33, 0.98), rgba(10, 14, 20, 0.98));
  color: #f0dfbb;
  font-weight: 700;
  white-space: nowrap;
}

.nav-directory-btn:hover,
.nav-directory-btn:focus {
  color: #fff3d7;
  border-color: rgba(255, 224, 162, 0.72);
  background: rgba(20, 25, 33, 0.94);
}

.nav-shortcuts-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  margin: 0;
  padding-bottom: 0.1rem;
  scrollbar-width: thin;
}

.nav-shortcuts-list-tight {
  flex-wrap: nowrap;
}

.nav-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.48rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(240, 195, 110, 0.18);
  background: rgba(9, 13, 18, 0.44);
  color: #ddd4c0;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.nav-shortcut:hover,
.nav-shortcut:focus {
  color: #fff3d7;
  background: rgba(240, 195, 110, 0.18);
}

.nav-shortcut.is-current {
  color: #1f1508;
  background: linear-gradient(130deg, #ffe0a2, #f2c774 60%, #e2b15a);
  border-color: rgba(255, 224, 162, 0.92);
  box-shadow: 0 8px 20px rgba(240, 195, 110, 0.18);
}

.nav-directory-drawer {
  --bs-offcanvas-width: min(420px, 92vw);
  color: var(--dark-ink);
  background: linear-gradient(180deg, rgba(8, 12, 18, 0.98), rgba(12, 16, 22, 0.98));
  border-right: 1px solid rgba(240, 195, 110, 0.24);
}

.nav-directory-drawer .offcanvas-header {
  border-bottom: 1px solid rgba(240, 195, 110, 0.18);
}

.nav-directory-drawer .btn-close {
  filter: invert(0.9);
}

.nav-directory-subtitle {
  color: #bba984;
  font-size: 0.82rem;
  margin-top: 0.2rem;
}

.nav-directory-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.nav-directory-section {
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(240, 195, 110, 0.14);
  background: linear-gradient(180deg, rgba(8, 12, 18, 0.72), rgba(7, 11, 17, 0.92));
}

.nav-directory-section-title {
  margin-bottom: 0.65rem;
  color: #f6dfb4;
  font-weight: 700;
  font-size: 1rem;
}

.nav-directory-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.nav-directory-link {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  color: #ddd4c0;
  text-decoration: none;
  font-weight: 600;
}

.nav-directory-link:hover,
.nav-directory-link:focus {
  color: #fff3d7;
  background: rgba(240, 195, 110, 0.18);
}

.nav-directory-link.is-current {
  color: #1f1508;
  background: linear-gradient(130deg, #ffe0a2, #f2c774 60%, #e2b15a);
}

/* Slice 1c-帠 Batch 7 (2026-05-13): .site-nav-tools + .site-nav descendant chain (0 view refs) deleted as dead CSS */

.nav-account-menu {
  flex: 0 0 auto;
}

.nav-account-toggle {
  min-height: 42px;
  min-width: 160px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.45rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(240, 195, 110, 0.3);
  background: rgba(12, 15, 21, 0.92);
  color: #f5e8c9;
}

.nav-account-toggle:hover,
.nav-account-toggle:focus,
.nav-account-toggle.show {
  color: #fff3d7;
  border-color: rgba(240, 195, 110, 0.48);
  background: rgba(20, 25, 33, 0.98);
}

.nav-account-name,
.nav-account-meta {
  display: block;
  text-align: left;
  line-height: 1.2;
}

.nav-account-name {
  font-weight: 700;
}

.nav-account-meta,
.nav-account-header-meta {
  color: #bba984;
  font-size: 0.78rem;
}

.nav-account-header {
  padding: 0.55rem 0.8rem 0.7rem;
  color: #f8e3b2;
}

.user-chip {
  border-color: rgba(240, 195, 110, 0.3);
  background: rgba(12, 15, 21, 0.9);
  color: #f5e8c9;
}

.breadcrumb-slot {
  background: rgba(10, 12, 18, 0.74);
  border-bottom: 1px solid rgba(240, 195, 110, 0.18);
}

.breadcrumb-text {
  color: #f1e2bf;
  font-weight: 600;
}

.page-shell {
  padding: 1.5rem 16px 5.25rem;
}

.page-title {
  font-size: 1.78rem;
  color: #fae6ba;
}

.page-subtitle {
  color: #c4bca9;
}

.card {
  border: 1px solid rgba(240, 195, 110, 0.3);
  background: linear-gradient(170deg, rgba(20, 24, 32, 0.95), rgba(14, 18, 24, 0.96));
  box-shadow: var(--dark-shadow);
}

.card-header {
  border-bottom: 1px solid rgba(240, 195, 110, 0.28);
  background: linear-gradient(180deg, rgba(26, 31, 40, 0.95), rgba(16, 20, 28, 0.95));
}

.card-header h5,
.card-header h6 {
  color: #f7dfad;
}

.section-note,
.table-summary,
.text-muted,
.form-text {
  color: #c4bca9 !important;
}

.empty-state {
  border-color: rgba(240, 195, 110, 0.3);
  background: rgba(12, 16, 22, 0.72);
  color: #c8bfa9;
}

.btn {
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.btn-primary {
  color: #201508;
  background: linear-gradient(130deg, #ffd788, #f0c36e 58%, #ddae55);
  border-color: rgba(249, 212, 133, 0.9);
}

.btn-primary:hover,
.btn-primary:focus {
  color: #1a1105;
  background: linear-gradient(130deg, #ffe0a2, #f5c876 60%, #e8b65a);
  border-color: #ffe0a2;
}

.btn-outline-secondary {
  color: #e3d5b8;
  border-color: rgba(240, 195, 110, 0.52);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  color: #fff3da;
  background: rgba(240, 195, 110, 0.18);
  border-color: rgba(240, 195, 110, 0.72);
}

.btn-outline-success {
  color: #9be3bb;
  border-color: rgba(109, 215, 152, 0.65);
}

.btn-outline-success:hover,
.btn-outline-success:focus {
  color: #092012;
  background: rgba(109, 215, 152, 0.95);
  border-color: rgba(109, 215, 152, 1);
}

.btn-outline-danger {
  color: #ffb8a8;
  border-color: rgba(230, 104, 84, 0.7);
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
  color: #2a0b06;
  background: rgba(230, 104, 84, 0.95);
}

.form-control,
.form-select {
  min-height: 40px;
  border-radius: 10px;
  border-color: rgba(240, 195, 110, 0.34);
  background: rgba(14, 18, 24, 0.9);
  color: #f5f2e9;
}

.form-control::placeholder,
.form-select::placeholder {
  color: rgba(214, 203, 178, 0.62);
}

.form-control:hover,
.form-select:hover {
  border-color: rgba(240, 195, 110, 0.58);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--dark-accent);
  box-shadow: 0 0 0 0.24rem rgba(240, 195, 110, 0.22);
  background: rgba(16, 21, 30, 0.98);
  color: #fff8eb;
}

.form-control:disabled,
.form-select:disabled {
  background: rgba(12, 15, 21, 0.7);
  color: rgba(195, 185, 160, 0.66);
  border-color: rgba(168, 145, 95, 0.22);
}

.form-check-input {
  border-color: rgba(240, 195, 110, 0.55);
  background-color: rgba(12, 17, 22, 0.9);
}

.form-check-input:checked {
  background-color: #f0c36e;
  border-color: #f0c36e;
}

.table-responsive {
  border-radius: 12px;
}

.erp-el-table {
  --el-table-bg-color: rgba(14, 18, 24, 0.96);
  --el-table-tr-bg-color: rgba(14, 18, 24, 0.96);
  --el-table-header-bg-color: rgba(28, 34, 45, 0.96);
  --el-table-header-text-color: #f5deb0;
  --el-table-text-color: #f4f1e7;
  --el-table-border-color: rgba(240, 195, 110, 0.22);
  --el-table-row-hover-bg-color: rgba(240, 195, 110, 0.16);
  --el-table-striped-bg-color: rgba(31, 38, 51, 0.94);
  --el-color-primary: #f0c36e;
  --el-bg-color-overlay: rgba(24, 30, 40, 0.98);
  --el-fill-color-blank: rgba(14, 18, 24, 0.96);
}

.erp-el-table .el-table__header .el-table__cell {
  color: #f6dfb4 !important;
}

.erp-el-table .el-table__body tr > td.el-table__cell,
.erp-el-table .el-table__body-wrapper td.el-table__cell > .cell {
  color: #f4f1e7 !important;
}

.el-pagination.is-background .btn-next,
.el-pagination.is-background .btn-prev,
.el-pagination.is-background .el-pager li {
  background-color: rgba(20, 25, 34, 0.95);
  border: 1px solid rgba(240, 195, 110, 0.35);
  color: #d8ccb1;
}

.el-pagination.is-background .el-pager li.is-active {
  background: linear-gradient(130deg, #ffd788, #f0c36e);
  color: #241708;
}

.el-select .el-select__wrapper,
.el-input .el-input__wrapper,
.el-textarea .el-textarea__inner {
  background: rgba(14, 18, 24, 0.92);
  box-shadow: 0 0 0 1px rgba(240, 195, 110, 0.35) inset;
  color: #f5f2e9;
}

.el-select .el-select__wrapper.is-focused,
.el-input .el-input__wrapper.is-focus {
  box-shadow: 0 0 0 1px rgba(240, 195, 110, 0.75) inset;
}

.el-select-dropdown,
.el-popper.is-light {
  border-color: rgba(240, 195, 110, 0.34) !important;
  background: rgba(20, 26, 35, 0.97) !important;
}

.el-select-dropdown__item {
  color: #ddd6c5;
}

.el-select-dropdown__item.is-hovering,
.el-select-dropdown__item:hover {
  background: rgba(240, 195, 110, 0.2);
  color: #fff1d4;
}

.modal-backdrop.show {
  opacity: 0.72;
}

.modal-content,
.app-modal-content {
  border: 1px solid rgba(240, 195, 110, 0.36);
  background: linear-gradient(170deg, rgba(24, 30, 40, 0.98), rgba(16, 22, 30, 0.98));
}

/* Slice 1c-帠 Batch 7 (2026-05-13): .site-footer (cyber gold late def, 0 view refs) deleted as dead CSS */

.contrast-toggle {
  min-width: 102px;
  white-space: nowrap;
}

.contrast-toggle.is-on {
  color: #1e1307;
  background: linear-gradient(120deg, #ffe3a6, #ffcc72);
  border-color: rgba(255, 225, 156, 0.95);
}

@media (min-width: 992px) {
  .dropdown-menu-end-lg {
    right: 0;
    left: auto;
  }
}

@media (max-width: 1199px) {
  .site-nav-shell {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav-tools {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .tenant-switch-select {
    max-width: 320px;
  }
}

@media (max-width: 991.98px) {
  .site-nav .container-fluid {
    row-gap: 0.75rem;
  }

  .site-nav-shell {
    padding-top: 0.85rem;
  }

  .nav-quickbar {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-quickbar-head,
  .nav-account-toggle {
    width: 100%;
  }

  .nav-quickbar-head {
    justify-content: space-between;
  }

  .nav-shortcuts-list,
  .nav-shortcuts-list-tight {
    width: 100%;
    flex-wrap: wrap;
  }

  .nav-shortcuts-list {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav .dropdown-menu {
    position: static !important;
    transform: none !important;
    margin-top: 0.35rem;
    width: 100%;
  }

  .site-nav-tools {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-shortcut,
  .nav-directory-btn,
  .tenant-switch-select,
  .contrast-toggle {
    width: 100%;
    max-width: none;
  }
}

/* ??撖漲???湔改?銵典擃漲????????蝒蝺刻摩???*/
.erp-page .form-control,
.erp-page .form-select,
.erp-page .el-select .el-select__wrapper,
.erp-page .el-input .el-input__wrapper {
  min-height: 42px;
}

.erp-page .btn-sm {
  min-height: 34px;
  padding-inline: 0.7rem;
}

.erp-page .modal-body {
  max-height: min(72vh, 860px);
  overflow-y: auto;
}

#purchaseApp .modal-xl .modal-body,
#receiptApp .modal-xl .modal-body {
  max-height: min(76vh, 920px);
}

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

#itemsApp .category-card,
#mastersApp .stat-card,
#purchaseApp .border.rounded,
#receiptApp .border.rounded {
  backdrop-filter: blur(2px);
}

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

#purchaseApp .table-responsive,
#receiptApp .table-responsive {
  border: 1px solid rgba(240, 195, 110, 0.18);
  background: rgba(9, 13, 18, 0.35);
}

#purchaseApp .modal-footer .me-auto,
#receiptApp .modal-footer .me-auto {
  font-weight: 600;
  color: #ebddb8 !important;
}

/* Purchases / Receipts: Element Plus tabs & collapse dark-theme alignment */
#purchaseApp .el-tabs,
#receiptApp .el-tabs,
#itemsApp .el-tabs,
#inventoryApp .el-tabs {
  background: rgba(9, 13, 18, 0.3);
  border: 1px solid rgba(240, 195, 110, 0.16);
  border-radius: 12px;
  padding: 0.35rem 0.65rem 0;
}

#purchaseApp .el-tabs__header,
#receiptApp .el-tabs__header,
#itemsApp .el-tabs__header,
#inventoryApp .el-tabs__header {
  margin: 0;
}

#purchaseApp .el-tabs__nav-wrap::after,
#receiptApp .el-tabs__nav-wrap::after,
#itemsApp .el-tabs__nav-wrap::after,
#inventoryApp .el-tabs__nav-wrap::after {
  background-color: rgba(240, 195, 110, 0.14);
  height: 1px;
}

#purchaseApp .el-tabs__item,
#receiptApp .el-tabs__item,
#itemsApp .el-tabs__item,
#inventoryApp .el-tabs__item {
  color: #bdb7a7;
  font-weight: 600;
  padding-left: 14px;
  padding-right: 14px;
}

#purchaseApp .el-tabs__item:hover,
#receiptApp .el-tabs__item:hover,
#itemsApp .el-tabs__item:hover,
#inventoryApp .el-tabs__item:hover {
  color: #f2d89a;
}

#purchaseApp .el-tabs__item.is-active,
#receiptApp .el-tabs__item.is-active,
#itemsApp .el-tabs__item.is-active,
#inventoryApp .el-tabs__item.is-active {
  color: #f0c36e;
}

#purchaseApp .el-tabs__active-bar,
#receiptApp .el-tabs__active-bar,
#itemsApp .el-tabs__active-bar,
#inventoryApp .el-tabs__active-bar {
  background-color: #f0c36e;
  height: 2px;
  border-radius: 999px;
}

#purchaseApp .el-collapse,
#receiptApp .el-collapse {
  border-top: 1px solid rgba(240, 195, 110, 0.16);
  border-bottom: 1px solid rgba(240, 195, 110, 0.16);
}

#purchaseApp .el-collapse-item__header,
#receiptApp .el-collapse-item__header {
  background: rgba(10, 14, 19, 0.88);
  color: #efe4c7;
  border-bottom: 1px solid rgba(240, 195, 110, 0.12);
  min-height: 44px;
  padding: 0.15rem 0.75rem;
}

#purchaseApp .el-collapse-item__header.is-active,
#receiptApp .el-collapse-item__header.is-active {
  color: #ffd98f;
}

#purchaseApp .el-collapse-item__arrow,
#receiptApp .el-collapse-item__arrow {
  color: #d9b56f;
}

#purchaseApp .el-collapse-item__wrap,
#receiptApp .el-collapse-item__wrap {
  background: transparent;
  border-bottom: 1px solid rgba(240, 195, 110, 0.12);
}

#purchaseApp .el-collapse-item__content,
#receiptApp .el-collapse-item__content {
  padding-bottom: 0;
  color: inherit;
}

#purchaseApp .el-collapse-item__content .card,
#receiptApp .el-collapse-item__content .card {
  margin-bottom: 0;
}

/* Items page refresh + footer overlap fix */
body {
  margin-bottom: 0;
}

/* Slice 1c-帠 Batch 7 (2026-05-13): .site-footer-fixed override (0 view refs) deleted as dead CSS */

.page-shell {
  padding-bottom: 2.5rem;
}

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

@media (max-width: 992px) {
  #itemsApp .module-segments {
    width: 100%;
  }

  #itemsApp .items-mobile-nav {
    position: sticky;
    top: 80px;
    z-index: 6;
  }

  #itemsApp .items-category-lanes .card-header h5 {
    font-size: 1.02rem;
  }
}

/* 擃?瘥芋撘??撥??????瘥?*/
body.ui-mode-high-contrast {
  --dark-ink: #fffdf6;
  --dark-ink-soft: #ece0c2;
  --dark-accent: #ffd983;
  --dark-border: rgba(255, 217, 131, 0.68);
}

body.ui-mode-high-contrast .erp-el-table {
  --el-table-header-text-color: #fff2cd;
  --el-table-text-color: #fffef9;
  --el-table-border-color: rgba(255, 217, 131, 0.36);
  --el-table-row-hover-bg-color: rgba(255, 217, 131, 0.26);
}

body.ui-mode-high-contrast .btn-outline-secondary {
  color: #fff4d8;
  border-color: rgba(255, 217, 131, 0.74);
}

/* 靽格迤 Element Plus 銵冽甈??函?撖祆???憯?敶Ｕ????瑁??航???*/
.erp-el-table .el-table__header table,
.erp-el-table .el-table__body table {
  width: 100% !important;
  table-layout: auto !important;
}

.erp-el-table .el-table__header .cell {
  white-space: nowrap;
}

.erp-el-table .el-table__body .cell {
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
  line-height: 1.45;
}


body,
.erp-page,
.card,
.card-body,
.card-header,
.modal-content,
.app-modal-content {
  color: var(--bs-body-color);
}

.erp-page h1,
.erp-page h2,
.erp-page h3,
.erp-page h4,
.erp-page h5,
.erp-page h6,
.erp-page .card-title,
.erp-page .modal-title {
  color: var(--bs-heading-color);
}

.erp-page .text-dark,
.erp-page .text-black,
.erp-page .text-body,
.erp-page .text-body-emphasis,
.erp-page .text-body-secondary {
  color: #e8dcc1 !important;
}

.erp-page a:not(.btn):not(.nav-link):not(.dropdown-item) {
  color: var(--bs-link-color);
}

.erp-page a:not(.btn):not(.nav-link):not(.dropdown-item):hover {
  color: var(--bs-link-hover-color);
}

/* Slice 1c-帠 Batch 7 (2026-05-13): .site-footer a / a:hover (0 view refs) deleted as dead CSS */

.erp-page .form-select option {
  color: #f5f2e9;
  background-color: #121924;
}

.erp-page .dropdown-menu {
  background: rgba(18, 24, 34, 0.98);
  border-color: rgba(240, 195, 110, 0.28);
}

.erp-page .dropdown-item {
  color: #efe5cd;
}

.erp-page .dropdown-item:hover,
.erp-page .dropdown-item:focus {
  color: #fff4d9;
  background: rgba(240, 195, 110, 0.2);
}

/* ========================================================================
   :: Cyber-Mandarin (蝘劂皛踹之鈭? 暺?憸冽?詨?璅?? CSS
   :: Base on Mandarine ERP L2/L3 Design System
   ======================================================================== */

/* Slice 1b D1 (2026-05-13): --cyber-* tokens 撌脤??design-system/00-tokens.css */
/* --font-body / --font-display ??00-tokens.css 撌脫? --erp-font-body / --erp-font-mono嚗?
   ???鋡?site.css 憭?撘???蝪∪ alias ?冽迨 :root */
:root {
  --font-body: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", "Heiti TC", sans-serif;
  --font-display: "Noto Serif TC", "PMingLiU", "MingLiU", "Microsoft JhengHei", serif;
}

/* ========================================================================
   :: 2. ?典?????耨敺?:: Cyber ?箇?
   ======================================================================== */
html {
  font-size: 15px; /* 擃?瘥?摨?*/
}

/* 蝘駁蝒????賣迤?耨敺?(Site.css ????) */
.erp-page .text-dark, 
.erp-page .text-black,
.erp-page .text-body,
.erp-page .text-body-emphasis,
.erp-page .text-body-secondary {
  color: var(--cyber-text-main) !important;
}

/* ========================================================================
   :: 3. ?詨???嚗ite Header & Navbar ( Cyber??憸?)
   ======================================================================== */
.site-header-cyber {
  position: sticky;
  top: -1px; /* 靽桀儔蝎折朣?*/
  z-index: 1020;
}

.site-nav-glass {
  background: var(--cyber-bg-glass);
  backdrop-filter: var(--cyber-glass-blur);
  -webkit-backdrop-filter: var(--cyber-glass-blur);
  border-bottom: 1px solid var(--cyber-divider);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* ?? Logo 憸冽 Cyber ??:: Cyber-Mandarin klassic */
.cyber-brand-mark {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  /* 蝝???詨嗾雿?獢???:: 蝘劂???貊???*/
  background: linear-gradient(145deg, #d24f3c, #9b3126);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: var(--cyber-glow-red);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.cyber-brand-mark-sm {
  width: 24px; height: 24px;
  font-size: 0.7rem; border-radius: 5px;
  background: linear-gradient(145deg, #d24f3c, #9b3126);
  box-shadow: 0 0 5px rgba(210, 79, 60, 0.6);
  color: #FFFFFF; display: flex; align-items: center; justify-content: center;
}

.cyber-brand-text {
  font-family: var(--font-display);
  color: #f8e2ad; /* 鈭桀漲頛????? */
  font-weight: 700;
  letter-spacing: 0.08em; /* 憓撥銝剜????澆??:: 1.1 ?雿喳?撱箄降 */
}

/* L1 撠汗??瑽?:: 閬死? (蝘駁??獢??寧??+?冽摨?) */
.erp-main-nav-link {
  color: #ddd4c0 !important; /* Muted Gold Text */
  font-weight: 600;
  font-size: 0.96rem;
  padding: 0.5rem 0.2rem !important;
  margin: 0 0.5rem; /* 憓撥?澆蝛粹? :: ???雯?潸?蝭?*/
  position: relative;
  background: transparent !important;
  border-radius: 0 !important;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.erp-main-nav-link:hover {
  color: #fff6df !important;
  text-shadow: var(--cyber-glow-gold); /* Hover ??摮?臬凝??*/
}

/* ?????冽??摨? indicator :: 1.3 B 閬?撠? */
.erp-main-nav-link.active {
  color: #ffd788 !important; /* Brightest Glow Gold */
  text-shadow: var(--cyber-glow-gold-strong);
}

.erp-main-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px; /* 撠?蝺票??閬賢?摨???蝺?*/
  left: -5%; /* 摨?蝔祝?潭?摮?憓撥閮剛??身閮? */
  width: 110%;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--cyber-gold-muted), 
    var(--cyber-gold-glow) 50%, 
    var(--cyber-gold-muted), 
    transparent);
  border-radius: 4px 4px 0 0;
  box-shadow: 0 -1px 8px var(--cyber-gold-glow); /* ??敺桀? */
  animation: cyber-active-pulse 1.8s infinite;
}

@keyframes cyber-active-pulse {
  0% { box-shadow: 0 -1px 4px var(--cyber-gold-muted); opacity: 0.7; }
  50% { box-shadow: 0 -1px 12px var(--cyber-gold-bright); opacity: 1; }
  100% { box-shadow: 0 -1px 4px var(--cyber-gold-muted); opacity: 0.7; }
}

/* 蝘劂瞍Ｗ瞍Ｗ?內靽桀儔靽桀儔靽桀儔靽桀儔靽桀儔 */
.cyber-toggler {
    padding: 0.25rem;
}
.cyber-toggler .navbar-toggler-icon {
    filter: invert(1) sepia(1) saturate(5) hue-rotate(-20deg) brightness(1.2); /* 雿踵慰?∟??漁????*/
}

/* ========================================================================
   :: 4. ?詨???嚗極?瑁?撣單撌亙?董?嗅? ( Cyber-Tools 憸?
   ======================================================================== */
.site-nav-tools-cyber .btn-cyber-hollow {
  border: 1px solid var(--cyber-divider);
  color: var(--cyber-text-soft);
  background: transparent;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.site-nav-tools-cyber .btn-cyber-hollow:hover,
.site-nav-tools-cyber .btn-cyber-hollow.active {
  color: #fff3d7;
  border-color: rgba(255, 224, 162, 0.6);
  background: rgba(240, 195, 110, 0.1);
  box-shadow: inset 0 0 5px rgba(240, 195, 110, 0.2);
}

.cyber-btn-icon {
  background: rgba(14, 18, 26, 0.5);
  border: 1px solid var(--cyber-divider-soft);
  color: var(--cyber-text-soft);
  width: 38px; height: 38px;
  padding: 0; display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.cyber-btn-icon:hover {
  border-color: var(--cyber-divider);
  color: #fff;
  background: rgba(14, 18, 26, 0.8);
  box-shadow: 0 0 10px rgba(240, 195, 110, 0.15);
}

/* 蝘劂憸典董?嗅??? :: Cyber-Avatar */
.cyber-avatar {
  position: relative;
  width: 36px; height: 36px;
  background: var(--cyber-bg-panel);
  border: 1px solid var(--cyber-gold-muted);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}

.cyber-avatar .avatar-text {
  color: #FFFFFF; font-family: var(--font-display);
  font-size: 1.1rem; z-index: 1;
}

.cyber-avatar .avatar-glow {
  position: absolute; inset: 0;
  /* 撣單?賡???:: 皛踹之鈭箇??貊??貊?蝬蝬蝝??貊??貊滯 */
  box-shadow: inset 0 0 12px rgba(210, 79, 60, 0.6);
  background: linear-gradient(135deg, transparent, rgba(210, 79, 60, 0.2));
  animation: cyber-avatar-pulse 2.5s infinite;
}

@keyframes cyber-avatar-pulse {
  0%, 100% { opacity: 0.5; } 50% { opacity: 1; }
}

.cyber-text-glow {
  color: #FFFFFF; text-shadow: var(--cyber-glow-gold);
}
.cyber-text-glow-gold {
  color: #fff; text-shadow: var(--cyber-glow-gold-strong);
}
.user-meta {
  color: var(--cyber-text-soft) !important;
}

/* ========================================================================
   :: 5. Breadcrumb & Page Shell ( ???撟餃? )
   ======================================================================== */
.site-nav-underline-cyber {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyber-gold-muted), transparent);
  opacity: 0.4;
}

.breadcrumb-slot-cyber {
  background: linear-gradient(180deg, rgba(5, 6, 9, 0.8), rgba(12, 16, 22, 0.0));
  margin-top: -1px; /* 鞎澆? site header */
}

/* ========================================================================
   :: 6. Offcanvas ?餌??祆?璅∠? ?冽?冽??桅? ( ?蝯?蝯?蝯???撟餃?????)
   ======================================================================== */
.nav-directory-glass {
  background: var(--cyber-bg-glass);
  backdrop-filter: var(--cyber-glass-blur);
  -webkit-backdrop-filter: var(--cyber-glass-blur);
  border-right: 1px solid var(--cyber-divider);
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.4);
}

.cyber-btn-close {
  filter: invert(1) brightness(0.9) sepia(1) hue-rotate(-30deg); /* ?????????????? */
  opacity: 0.8;
}
.cyber-btn-close:hover {
  opacity: 1;
}

.cyber-panel-dark {
  background: rgba(6, 8, 12, 0.6);
  border: 1px solid var(--cyber-divider-soft);
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.cyber-divider-soft {
  border-color: var(--cyber-divider-soft) !important;
}

/* ?桅??嚗yber-Mandarin L2 憸冽 :: ???嚗?箏?銵典?銵典?銵冽見撘?銵典?銵典?銵冽見撘?*/
.cyber-nav-item {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--cyber-text-soft);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  background: transparent;
  border-left: 2px solid transparent;
}

.cyber-nav-item:hover {
  color: #fffef8;
  background: rgba(240, 195, 110, 0.1);
  border-left-color: var(--cyber-gold-muted);
}

.cyber-nav-item.active {
  color: var(--cyber-bg-base) !important; /* 暺暺暺??暺暺暺??憿??憿??憿 */
  font-weight: 700;
  background: linear-gradient(90deg, var(--cyber-gold-muted), var(--cyber-gold-glow));
  box-shadow: var(--cyber-glow-gold);
  border-left-color: var(--cyber-gold-bright);
}

/* ========================================================================
   :: 7. ?辣閬??? :: Element Plus & Bootstrap Cyber ??
   ======================================================================== */

/* HD 擃?瘥???:: Hd 擃?瘥D Hd 擃?瘥?*/
.contrast-toggle {
    color: var(--cyber-text-soft);
    border: 1px solid rgba(197, 161, 84, 0.4);
    background: transparent;
}
.contrast-toggle:hover {
    background: rgba(197, 161, 84, 0.1);
    color: #fff;
    border-color: rgba(197, 161, 84, 0.6);
}
.contrast-toggle.active {
    color: var(--cyber-bg-base);
    background: var(--cyber-gold-bright);
    font-weight: 700;
    box-shadow: 0 0 10px rgba(240, 195, 110, 0.5);
}

/* ?銝餅???:: ?賡??????賡???? */
.btn-cyber-gold,
.btn-primary.rounded-pill:not(.btn-cyber-outline):not(.btn-sm) {
  color: #201508;
  border-color: rgba(249, 212, 133, 0.9);
  background: linear-gradient(130deg, #ffd788, #f0c36e 58%, #ddae55);
  box-shadow: 0 4px 10px rgba(240, 195, 110, 0.1);
  letter-spacing: 0.03em;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-cyber-gold:hover,
.btn-primary.rounded-pill:hover {
  background: linear-gradient(130deg, #ffe0a2, #f5c876 60%, #e8b65a);
  border-color: #ffe0a2;
  box-shadow: 0 0 15px rgba(240, 195, 110, 0.4); /* ?賡??Ｗ? glow :: Hd擃?瘥?*/
  color: #1a1105;
}

/* 撟賡?撟賡?撟賡?撟賡???撟賡?撟賡? */
.btn-cyber-outline {
  border: 1px solid rgba(222, 185, 104, 0.52);
  color: #f7dfac;
  background: transparent;
  backdrop-filter: blur(5px);
}
.btn-cyber-outline:hover {
  background: rgba(222, 185, 104, 0.16);
  color: #FFFFFF;
  border-color: rgba(222, 185, 104, 0.82);
  box-shadow: inset 0 0 10px rgba(222, 185, 104, 0.15);
}

/* ?餌??祆??? 敶?霅血?敶?霅血? */
.modal-content-glass {
  background: rgba(18, 22, 33, 0.94);
  backdrop-filter: var(--cyber-glass-blur);
  -webkit-backdrop-filter: var(--cyber-glass-blur);
  border: 1px solid rgba(211, 172, 44, 0.38);
  box-shadow: var(--cyber-glow-gold);
}

.modal-header-cyber {
    background: rgba(10, 13, 19, 0.7);
    border-bottom: 1px solid rgba(211, 172, 44, 0.22);
}

.modal-body-cyber {
    color: var(--cyber-text-main);
    line-height: 1.6;
}

.modal-footer-cyber {
    background: rgba(10, 13, 19, 0.8);
    border-top: 1px solid rgba(211, 172, 44, 0.22);
}

.cyber-divider {
  border-top-color: var(--cyber-divider) !important;
}

/* 靽桀儔 Element Plus ?身?身?身?身?身?身璅??璅??璅??璅?? */
.site-nav-tools-cyber .cyber-select {
  border-radius: 999px;
  background-color: rgba(12, 17, 24, 0.8) !important;
  color: var(--cyber-text-soft) !important;
  border-color: rgba(240, 195, 110, 0.35);
  font-size: 0.8rem;
  min-width: 180px;
}
.site-nav-tools-cyber .cyber-select:focus {
  border-color: rgba(240, 195, 110, 0.8);
  box-shadow: 0 0 10px rgba(240, 195, 110, 0.2);
}
.site-nav-tools-cyber .cyber-select option {
    background-color: #1a202e;
    color: #e8dcc1;
}

/* 暺?銝?銝?銝?銝? */
.cyber-dropdown {
  background: rgba(18, 22, 31, 0.97);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(240, 195, 110, 0.3);
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
  border-radius: 12px;
}

.cyber-dropdown-item {
  color: #e6dcc7 !important;
  padding: 0.65rem 1rem !important;
}

.cyber-dropdown-item:hover,
.cyber-dropdown-item:focus {
  background: rgba(240, 195, 110, 0.16) !important;
  color: #FFFFFF !important;
  text-shadow: 0 0 5px rgba(240, 195, 110, 0.3);
}

.hover-gold-text:hover {
    color: #ffd983 !important;
    text-shadow: 0 0 5px rgba(240, 195, 110, 0.4);
}

/* ========================================================================
   :: Cyber-Mandarin (蝘劂皛踹之鈭? 暺?憸冽?詨?璅?? CSS
   :: ? L2/L3 Design System ??????Ｘ???
   ======================================================================== */

/* Slice 1b D1 (2026-05-13): 銝膩 --cyber-* + --bs-* token duplicate 撌脫? 00-tokens.css */

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 15px; /* 蝔凝???箇?憭批??拇?擃?瘥?*/
  }
}

/* ========================================================================
   :: ?典? API ?脣漲璇?(靽????銝?Cyber ??
   ======================================================================== */
.api-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  z-index: 2100; opacity: 0; pointer-events: none; transition: opacity 120ms ease;
}
.api-progress::before {
  content: ""; display: block; width: 32%; height: 100%;
  background: linear-gradient(90deg, rgba(240, 195, 110, 0), var(--cyber-gold-bright), rgba(240, 195, 110, 0));
  animation: api-progress-slide 1s linear infinite;
  box-shadow: 0 0 10px var(--cyber-gold-glow);
}
.api-progress.is-active { opacity: 1; }
@keyframes api-progress-slide {
  from { transform: translateX(-120%); } to { transform: translateX(340%); }
}

/* ========================================================================
   :: Navbar & Site Header (蝘劂??
   ======================================================================== */
.site-header-cyber { position: sticky; top: -1px; z-index: 1020; }

.site-nav-glass {
  background: var(--cyber-bg-glass);
  backdrop-filter: var(--cyber-glass-blur);
  -webkit-backdrop-filter: var(--cyber-glass-blur);
  border-bottom: 1px solid var(--cyber-divider);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cyber-brand-mark {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border-radius: 10px; background: linear-gradient(145deg, #d24f3c, #9b3126); color: #FFFFFF;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  box-shadow: var(--cyber-glow-red); text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.cyber-brand-mark-sm {
  width: 24px; height: 24px; font-size: 0.7rem; border-radius: 5px;
  background: linear-gradient(145deg, #d24f3c, #9b3126); box-shadow: 0 0 5px rgba(210, 79, 60, 0.6);
  color: #FFFFFF; display: flex; align-items: center; justify-content: center;
}

.cyber-brand-text {
  font-family: var(--font-display); color: #f8e2ad; font-weight: 700;
  letter-spacing: 0.08em; margin-left: 0.5rem;
}

.erp-main-nav-link {
  color: #ddd4c0 !important; font-weight: 600; font-size: 0.96rem;
  padding: 0.5rem 0.2rem !important; margin: 0 0.5rem; position: relative;
  background: transparent !important; transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.erp-main-nav-link:hover { color: #fff6df !important; text-shadow: var(--cyber-glow-gold); }
.erp-main-nav-link.active { color: #ffd788 !important; text-shadow: var(--cyber-glow-gold-strong); }
.erp-main-nav-link.active::after {
  content: ''; position: absolute; bottom: -4px; left: -5%; width: 110%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--cyber-gold-muted), var(--cyber-gold-glow) 50%, var(--cyber-gold-muted), transparent);
  border-radius: 4px 4px 0 0; box-shadow: 0 -1px 8px var(--cyber-gold-glow);
  animation: cyber-active-pulse 1.8s infinite;
}
@keyframes cyber-active-pulse {
  0% { box-shadow: 0 -1px 4px var(--cyber-gold-muted); opacity: 0.7; }
  50% { box-shadow: 0 -1px 12px var(--cyber-gold-bright); opacity: 1; }
  100% { box-shadow: 0 -1px 4px var(--cyber-gold-muted); opacity: 0.7; }
}

.cyber-toggler { padding: 0.25rem; }
.cyber-toggler .navbar-toggler-icon { filter: invert(1) sepia(1) saturate(5) hue-rotate(-20deg) brightness(1.2); }

.site-nav-tools-cyber .btn-cyber-hollow {
  border: 1px solid var(--cyber-divider); color: var(--cyber-text-soft);
  background: transparent; font-size: 0.8rem; font-weight: 500;
}
.site-nav-tools-cyber .btn-cyber-hollow:hover, .site-nav-tools-cyber .btn-cyber-hollow.active {
  color: #fff3d7; border-color: rgba(255, 224, 162, 0.6);
  background: rgba(240, 195, 110, 0.1); box-shadow: inset 0 0 5px rgba(240, 195, 110, 0.2);
}

.cyber-btn-icon {
  background: rgba(14, 18, 26, 0.5); border: 1px solid var(--cyber-divider-soft);
  color: var(--cyber-text-soft); width: 38px; height: 38px; padding: 0;
  display: flex; align-items: center; justify-content: center; border-radius: 8px; transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.cyber-btn-icon:hover {
  border-color: var(--cyber-divider); color: #fff;
  background: rgba(14, 18, 26, 0.8); box-shadow: 0 0 10px rgba(240, 195, 110, 0.15);
}

.cyber-avatar {
  position: relative; width: 36px; height: 36px; background: var(--cyber-bg-panel);
  border: 1px solid var(--cyber-gold-muted); overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.cyber-avatar .avatar-text { color: #FFFFFF; font-family: var(--font-display); font-size: 1.1rem; z-index: 1; }
.cyber-avatar .avatar-glow {
  position: absolute; inset: 0; box-shadow: inset 0 0 12px rgba(210, 79, 60, 0.6);
  background: linear-gradient(135deg, transparent, rgba(210, 79, 60, 0.2)); animation: cyber-avatar-pulse 2.5s infinite;
}
@keyframes cyber-avatar-pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

.cyber-text-glow { color: #FFFFFF; text-shadow: var(--cyber-glow-gold); }
.cyber-text-glow-gold { color: #fff; text-shadow: var(--cyber-glow-gold-strong); }
.user-meta { color: var(--cyber-text-soft) !important; }
.nav-account-toggle-cyber { border: none; background: transparent; }

.site-nav-underline-cyber { height: 2px; background: linear-gradient(90deg, transparent, var(--cyber-gold-muted), transparent); opacity: 0.4; }
.breadcrumb-slot-cyber { background: linear-gradient(180deg, rgba(5, 6, 9, 0.8), rgba(12, 16, 22, 0.0)); margin-top: -1px; }
.breadcrumb-text { color: #f1e2bf; font-weight: 600; font-size: 0.9rem; }
.breadcrumb-link { color: var(--bs-link-color); text-decoration: none; cursor: pointer; }
.breadcrumb-link:hover { color: var(--bs-link-hover-color); text-decoration: underline; }

/* ========================================================================
   :: ???撅 (摰靽???閮剖?)
   ======================================================================== */
.page-shell-cyber { padding: 1.5rem 16px 2.5rem; animation: rise 420ms ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* Slice 1c-帠 Batch 6 (2026-05-13): erp-page + page-head + page-title + page-subtitle + page-actions (late defs / cascade winners) 撌脤??02-shell.css + 04-surfaces.css */

.module-segments {
  display: inline-flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.35rem;
  border: 1px solid var(--cyber-divider); border-radius: 14px; background: rgba(12, 17, 24, 0.75);
}
.module-segment-btn {
  border: 1px solid rgba(240, 195, 110, 0.34); border-radius: 9px; background: rgba(14, 18, 24, 0.78);
  color: var(--cyber-text-soft); padding: 0.4rem 1rem; font-size: 0.9rem; font-weight: 600; min-width: 108px; transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.module-segment-btn:hover { color: #fff; border-color: rgba(240, 195, 110, 0.58); }
.module-segment-btn.is-active {
  color: #201508; border-color: rgba(249, 212, 133, 0.9);
  background: linear-gradient(130deg, #ffd788, #f0c36e 58%, #ddae55);
}

.module-pane { display: flex; flex-direction: column; gap: 1rem; }
.section-note { color: var(--cyber-text-soft); font-size: 0.9rem; }

.filter-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0.75rem; }
.filter-col-3 { grid-column: span 3; }
.filter-col-4 { grid-column: span 4; }
.filter-col-6 { grid-column: span 6; }
.filter-col-actions { grid-column: span 12; display: flex; justify-content: flex-end; align-items: flex-end; gap: 0.5rem; }
@media (max-width: 1200px) { .filter-col-3, .filter-col-4 { grid-column: span 6; } .filter-col-6 { grid-column: span 12; } }
@media (max-width: 768px) { .filter-grid { grid-template-columns: 1fr; } .filter-col-3, .filter-col-4, .filter-col-6, .filter-col-actions { grid-column: auto; } .filter-col-actions { justify-content: flex-start; } }

.table-summary { color: var(--cyber-text-soft); font-size: 0.88rem; }
.master-toolbar { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.master-switcher { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.master-stats { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.stat-card {
  padding: 0.6rem 0.9rem; border-radius: 12px; border: 1px solid var(--cyber-divider);
  background: rgba(22, 17, 11, 0.9); min-width: 120px; text-align: right; backdrop-filter: blur(2px);
}
.stat-label { font-size: 0.75rem; color: var(--cyber-text-soft); }
.stat-value { font-size: 1.05rem; font-weight: 600; color: var(--cyber-text-main); }

/* Tag Manager & Drawer */
.tag-drawer-toolbar { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 0.75rem; align-items: end; }
.tag-drawer-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin: 1rem 0; }
.tag-drawer-table { margin-top: 0.5rem; }
@media (max-width: 992px) { .tag-drawer-toolbar, .tag-drawer-stats { grid-template-columns: 1fr; } }

.tag-manager { display: flex; flex-direction: column; gap: 1rem; }
.tag-manager-toolbar { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0.75rem; align-items: end; }
.tag-field-wide { min-width: 240px; }
.tag-manager-body { display: grid; grid-template-columns: 220px 1fr; gap: 1rem; }
.tag-stats { display: grid; gap: 0.6rem; }
.tag-stat {
  padding: 0.75rem; border-radius: 12px; border: 1px solid var(--cyber-divider);
  background: rgba(22, 17, 11, 0.9); box-shadow: inset 0 0 0 1px rgba(222, 185, 104, 0.08);
}
/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */
#adminIndexApp.admin-dashboard-page .admin-summary-card-button { width: 100%; border-radius: 16px; transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; }
#adminIndexApp.admin-dashboard-page .admin-summary-card-button:hover { transform: translateY(-1px); border-color: rgba(240, 195, 110, 0.46); }
#adminIndexApp.admin-dashboard-page .admin-summary-card-button.is-active { border-color: rgba(240, 195, 110, 0.62); box-shadow: 0 12px 22px rgba(7, 10, 16, 0.5); }
#adminIndexApp.admin-dashboard-page .admin-summary-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.72rem; }
#adminIndexApp.admin-dashboard-page .admin-summary-copy { min-width: 0; }
#adminIndexApp.admin-dashboard-page .admin-summary-label { font-size: 0.78rem; color: #cdbf9e; }
#adminIndexApp.admin-dashboard-page .admin-summary-value { font-size: 1.08rem; font-weight: 700; color: #f6dfb4; line-height: 1; text-align: right; white-space: nowrap; }
#adminIndexApp.admin-dashboard-page .admin-summary-sub { font-size: 0.74rem; color: #a99e87; margin-top: 0.12rem; line-height: 1.2; }
#adminIndexApp.admin-dashboard-page .admin-group-tabs { margin-bottom: 0.6rem; }
#adminIndexApp.admin-dashboard-page .admin-module-table-wrap { border: 1px solid rgba(240, 195, 110, 0.22); border-radius: 12px; overflow: hidden; }
#adminIndexApp.admin-dashboard-page .admin-module-desc { color: #cec4af; line-height: 1.35; }
#adminIndexApp.admin-dashboard-page .admin-alert-collapse { border-color: rgba(240, 195, 110, 0.24); }
#adminIndexApp.admin-dashboard-page .admin-alert-collapse .el-collapse-item__header { background: rgba(17, 23, 32, 0.9); color: #e5d5b8; border-bottom-color: rgba(240, 195, 110, 0.2); }
#adminIndexApp.admin-dashboard-page .admin-alert-collapse .el-collapse-item__wrap { background: rgba(12, 17, 24, 0.88); border-bottom-color: rgba(240, 195, 110, 0.2); }
#adminIndexApp.admin-dashboard-page .admin-alert-scroll { max-height: 280px; overflow-y: auto; padding-right: 0.25rem; }
#adminIndexApp.admin-dashboard-page .admin-alert-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 0.6rem; border: 1px solid rgba(240, 195, 110, 0.2);
  border-radius: 10px; padding: 0.65rem 0.75rem; background: rgba(16, 22, 32, 0.9);
}

#adminIndexApp.admin-dashboard-page .erp-workstation-grid {
  align-items: start;
}

#adminIndexApp.admin-dashboard-page .erp-list-shell,
#adminIndexApp.admin-dashboard-page .erp-workstation-side .card {
  height: 100%;
}

#adminIndexApp.admin-dashboard-page .erp-context-pill strong {
  color: #f7dfad;
}

#adminIndexApp.admin-dashboard-page .page-subtitle {
  max-width: 720px;
}

@media (max-width: 1199.98px) {
  #adminIndexApp.admin-dashboard-page .admin-summary-row-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #adminIndexApp.admin-dashboard-page .admin-summary-row-workspaces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  .tenant-governance-metric-grid { grid-template-columns: 1fr; }
  .tenant-governance-toolbar { align-items: stretch; }
  .tenant-governance-quick-filters { justify-content: flex-start; }
  .tenant-governance-page .erp-workstation-side > .card { position: static; }
  #adminIndexApp.admin-dashboard-page .admin-summary-row-metrics { grid-template-columns: 1fr; }
  #adminIndexApp.admin-dashboard-page .admin-summary-row-workspaces { grid-template-columns: 1fr; }
}

.table-action-group { display: inline-flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.table-action-group .btn { min-width: 60px; }

/* Entry Forms / Modals */
.entry-modal-body { display: flex; flex-direction: column; gap: 0.85rem; }
.entry-form-grid { align-items: end; }
.entry-sticky-tools {
  position: sticky; top: -1px; z-index: 3; border: 1px solid rgba(240, 195, 110, 0.3);
  border-radius: 12px; background: rgba(16, 20, 28, 0.92); padding: 0.6rem 0.75rem;
}
.modal-dialog.modal-xl .modal-content { max-height: calc(100vh - 2.2rem); }
.modal-dialog.modal-xl .entry-modal-body { overflow-y: auto; }
.modal-footer.modal-footer-sticky { position: sticky; bottom: 0; z-index: 4; background: rgba(14, 12, 10, 0.96); border-top: 1px solid rgba(211, 172, 44, 0.3); }

.status-pill { border-radius: 999px; font-size: 0.75rem; padding: 0.35rem 0.55rem; }

/* General Cards */
.card {
  border-radius: 16px; border: 1px solid rgba(240, 195, 110, 0.3);
  background: linear-gradient(170deg, rgba(20, 24, 32, 0.95), rgba(14, 18, 24, 0.96)); box-shadow: var(--cyber-panel-shadow);
}
.card-header, .card-body { background: transparent; }
.card-header {
  padding: 0.85rem 1.25rem; border-bottom: 1px solid rgba(240, 195, 110, 0.28);
  background: linear-gradient(180deg, rgba(26, 31, 40, 0.95), rgba(16, 20, 28, 0.95));
}
.card-header h5, .card-header h6 { margin: 0; font-family: var(--font-display); letter-spacing: 0.03em; color: #f7dfad; }
.card-body .border.rounded { border-color: rgba(222, 185, 104, 0.35) !important; background: rgba(12, 10, 8, 0.65); box-shadow: inset 0 0 0 1px rgba(222, 185, 104, 0.12); }

/* Category Grid */
.category-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.category-toolbar { display: flex; align-items: center; gap: 0.5rem; }
.category-toolbar .form-control { flex: 1; }
.category-scroll { max-height: 430px; overflow-y: auto; padding-right: 0.25rem; }
.category-pager { display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem; margin-top: 0.75rem; }
.category-card {
  border: 1px solid rgba(222, 185, 104, 0.35); border-radius: 14px; background: rgba(10, 8, 6, 0.7);
  color: var(--cyber-text-main); text-align: left; padding: 14px; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */
.form-control::placeholder, .form-select::placeholder { color: rgba(214, 203, 178, 0.62); }
.form-control:hover, .form-select:hover { border-color: rgba(240, 195, 110, 0.58); }
.form-control:focus, .form-select:focus {
  border-color: var(--cyber-gold-bright); box-shadow: 0 0 0 0.24rem rgba(240, 195, 110, 0.22);
  background: rgba(16, 21, 30, 0.98); color: #fff8eb;
}
.form-control:disabled, .form-select:disabled { background: rgba(12, 15, 21, 0.7); color: rgba(195, 185, 160, 0.66); border-color: rgba(168, 145, 95, 0.22); }
.form-check-input { border-color: rgba(240, 195, 110, 0.55); background-color: rgba(12, 17, 22, 0.9); }
.form-check-input:checked { background-color: #f0c36e; border-color: #f0c36e; }

/* ========================================================================
   :: Element Plus 瘛梯銝駁??券閬神 (Cyber ??
   ======================================================================== */
.erp-el-table {
  --el-table-bg-color: rgba(14, 18, 24, 0.96);
  --el-table-tr-bg-color: rgba(14, 18, 24, 0.96);
  --el-table-header-bg-color: rgba(28, 34, 45, 0.96);
  --el-table-header-text-color: #f5deb0;
  --el-table-text-color: #f4f1e7;
  --el-table-border-color: rgba(240, 195, 110, 0.22);
  --el-table-row-hover-bg-color: rgba(240, 195, 110, 0.16);
  --el-table-striped-bg-color: rgba(31, 38, 51, 0.94);
  --el-color-primary: #f0c36e;
  --el-bg-color-overlay: rgba(24, 30, 40, 0.98);
  --el-fill-color-blank: rgba(14, 18, 24, 0.96);
  width: 100% !important; border-radius: 12px; overflow: hidden; border: 1px solid rgba(197, 161, 84, 0.2);
}
.erp-el-table .el-table__inner-wrapper { width: 100%; }
.erp-el-table .el-table__empty-block { background: rgba(18, 14, 10, 0.95); }
.erp-el-table .el-table__header .el-table__cell { color: #f6dfb4 !important; font-weight: 700; }
.erp-el-table .el-table__body tr > td.el-table__cell { background: rgba(14, 18, 24, 0.96) !important; color: #f4f1e7 !important; }
.erp-el-table .el-table__body tr.el-table__row--striped > td.el-table__cell { background: rgba(31, 38, 51, 0.94) !important; }
.erp-el-table .el-table__row:hover > td.el-table__cell { background: rgba(240, 195, 110, 0.16) !important; }

.el-pagination.is-background .btn-next, .el-pagination.is-background .btn-prev, .el-pagination.is-background .el-pager li {
  background-color: rgba(20, 25, 34, 0.95); border: 1px solid rgba(240, 195, 110, 0.35); color: #d8ccb1;
}
.el-pagination.is-background .el-pager li.is-active { background: linear-gradient(130deg, #ffd788, #f0c36e); color: #241708; }

.el-select .el-select__wrapper, .el-input .el-input__wrapper, .el-textarea .el-textarea__inner {
  background: rgba(14, 18, 24, 0.92); box-shadow: 0 0 0 1px rgba(240, 195, 110, 0.35) inset; color: #f5f2e9;
}
.el-select .el-select__wrapper.is-focused, .el-input .el-input__wrapper.is-focus { box-shadow: 0 0 0 1px rgba(240, 195, 110, 0.75) inset; }
.el-select-dropdown, .el-popper.is-light { border-color: rgba(240, 195, 110, 0.34) !important; background: rgba(20, 26, 35, 0.97) !important; }
.el-select-dropdown__item { color: #ddd6c5; }
.el-select-dropdown__item.is-hovering, .el-select-dropdown__item:hover { background: rgba(240, 195, 110, 0.2); color: #fff1d4; }

/* ?箏?甈??蜓銵?body ??hover / ?收??/ ?桀????航?銝?湛??踹?皛?蝘餃???暹?敶望???*/
.erp-el-table .el-table__fixed,
.erp-el-table .el-table__fixed-right,
.erp-el-table .el-table__fixed-body-wrapper,
.erp-el-table .el-table__fixed-header-wrapper {
  background: transparent !important;
  box-shadow: none !important;
}

.erp-el-table .el-table__fixed-right::before,
.erp-el-table .el-table__fixed::before,
.erp-el-table .el-table__fixed-right-patch {
  background: rgba(14, 18, 24, 0.96) !important;
  box-shadow: none !important;
}

.erp-el-table .el-table__inner-wrapper::before,
.erp-el-table .el-table__border-left-patch {
  background: rgba(14, 18, 24, 0.96) !important;
}

.erp-el-table .el-table__body tr > td.el-table__cell,
.erp-el-table .el-table__fixed .el-table__body tr > td.el-table__cell,
.erp-el-table .el-table__fixed-right .el-table__body tr > td.el-table__cell {
  transition: background-color 0s linear !important;
}

.erp-el-table .el-table__fixed .el-table__body tr > td.el-table__cell,
.erp-el-table .el-table__fixed-right .el-table__body tr > td.el-table__cell {
  background: rgba(14, 18, 24, 0.96) !important;
}

.erp-el-table .el-table__fixed .el-table__body tr.el-table__row--striped > td.el-table__cell,
.erp-el-table .el-table__fixed-right .el-table__body tr.el-table__row--striped > td.el-table__cell {
  background: rgba(31, 38, 51, 0.94) !important;
}

.erp-el-table .el-table__fixed .el-table__row:hover > td.el-table__cell,
.erp-el-table .el-table__fixed-right .el-table__row:hover > td.el-table__cell,
.erp-el-table .el-table__fixed .el-table__body tr.current-row > td.el-table__cell,
.erp-el-table .el-table__fixed-right .el-table__body tr.current-row > td.el-table__cell {
  background: rgba(240, 195, 110, 0.16) !important;
}

.erp-el-table .el-table__body tr:hover > td.el-table__cell,
.erp-el-table .el-table__body tr.hover-row > td.el-table__cell,
.erp-el-table .el-table__body tr.current-row:hover > td.el-table__cell,
.erp-el-table .el-table__fixed .el-table__body tr:hover > td.el-table__cell,
.erp-el-table .el-table__fixed .el-table__body tr.hover-row > td.el-table__cell,
.erp-el-table .el-table__fixed-right .el-table__body tr:hover > td.el-table__cell,
.erp-el-table .el-table__fixed-right .el-table__body tr.hover-row > td.el-table__cell {
  background: rgba(240, 195, 110, 0.16) !important;
}

/* ========================================================================
   :: Modals & Offcanvas
   ======================================================================== */
.modal-backdrop.show { opacity: 0.75; background-color: #000; }
.modal-content-glass {
  background: rgba(18, 22, 33, 0.94); backdrop-filter: var(--cyber-glass-blur); -webkit-backdrop-filter: var(--cyber-glass-blur);
  border: 1px solid rgba(211, 172, 44, 0.38); box-shadow: var(--cyber-glow-gold);
}
.modal-header-cyber { background: rgba(10, 13, 19, 0.7); border-bottom: 1px solid rgba(211, 172, 44, 0.22); }
.modal-body-cyber { color: var(--cyber-text-main); line-height: 1.6; }
.modal-footer-cyber { background: rgba(10, 13, 19, 0.8); border-top: 1px solid rgba(211, 172, 44, 0.22); }
.cyber-divider { border-top-color: var(--cyber-divider) !important; }

.nav-directory-glass {
  background: var(--cyber-bg-glass); backdrop-filter: var(--cyber-glass-blur); -webkit-backdrop-filter: var(--cyber-glass-blur);
  border-right: 1px solid var(--cyber-divider); box-shadow: 2px 0 20px rgba(0, 0, 0, 0.4);
}
.cyber-btn-close { filter: invert(1) brightness(0.9) sepia(1) hue-rotate(-30deg); opacity: 0.8; }
.cyber-btn-close:hover { opacity: 1; }
.cyber-panel-dark { background: rgba(6, 8, 12, 0.6); border: 1px solid var(--cyber-divider-soft); box-shadow: inset 0 0 10px rgba(0,0,0,0.5); }
.cyber-divider-soft { border-color: var(--cyber-divider-soft) !important; }
.cyber-nav-item {
  display: block; padding: 0.5rem 0.75rem; color: var(--cyber-text-soft);
  font-weight: 500; text-decoration: none; font-size: 0.9rem; border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; background: transparent; border-left: 2px solid transparent;
}
.cyber-nav-item:hover { color: #fffef8; background: rgba(240, 195, 110, 0.1); border-left-color: var(--cyber-gold-muted); }
.cyber-nav-item.active {
  color: var(--cyber-bg-base) !important; font-weight: 700; background: linear-gradient(90deg, var(--cyber-gold-muted), var(--cyber-gold-glow));
  box-shadow: var(--cyber-glow-gold); border-left-color: var(--cyber-gold-bright);
}

/* ========================================================================
   :: ?孵?璅∠??孵? (摰蝜潭?函? Items / Purchase / Receipt 閮剖?)
   ======================================================================== */
.erp-page .form-control, .erp-page .form-select, .erp-page .el-select .el-select__wrapper, .erp-page .el-input .el-input__wrapper { min-height: 42px; }
.erp-page .btn-sm { min-height: 34px; padding-inline: 0.7rem; }
.erp-page .modal-body { max-height: min(72vh, 860px); overflow-y: auto; }

#purchaseApp .modal-xl .modal-body, #receiptApp .modal-xl .modal-body { max-height: min(76vh, 920px); }
#itemsApp .category-scroll { max-height: 360px; }
#itemsApp .category-card, #mastersApp .stat-card, #purchaseApp .border.rounded, #receiptApp .border.rounded { backdrop-filter: blur(2px); }
#mastersApp .offcanvas { width: min(700px, 95vw); }
#purchaseApp .table-responsive, #receiptApp .table-responsive { border: 1px solid rgba(240, 195, 110, 0.18); background: rgba(9, 13, 18, 0.35); }
#purchaseApp .modal-footer .me-auto, #receiptApp .modal-footer .me-auto { font-weight: 600; color: #ebddb8 !important; }
#purchaseApp .purchase-usage-card {
  border: 1px solid rgba(240, 195, 110, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(16, 22, 31, 0.92), rgba(10, 15, 22, 0.9));
  padding: 1rem 1.05rem;
}
/* Slice 5c (2026-05-13): pure #purchaseApp rule migrated to pages/purchases-index.css */
#purchaseApp .purchase-history-filter-grid .filter-col-actions,
#orderHistoryApp .purchase-history-filter-grid .filter-col-actions {
  display: flex;
  align-items: end;
  gap: 0.6rem;
  flex-wrap: wrap;
}
#purchaseApp .purchase-history-summary-grid,
#orderHistoryApp .purchase-history-summary-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}
#purchaseApp .purchase-history-spark-card,
#purchaseApp .purchase-history-insight-card,
#orderHistoryApp .purchase-history-spark-card,
#orderHistoryApp .purchase-history-insight-card {
  border: 1px solid rgba(240, 195, 110, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(16, 22, 31, 0.92), rgba(10, 15, 22, 0.9));
  padding: 1rem 1.05rem;
  min-height: 168px;
}
#purchaseApp .purchase-history-spark-card,
#orderHistoryApp .purchase-history-spark-card { grid-column: span 3; }
#purchaseApp .purchase-history-insight-card,
#orderHistoryApp .purchase-history-insight-card { grid-column: span 4; }
#purchaseApp .purchase-history-spark-card__head,
#orderHistoryApp .purchase-history-spark-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}
#purchaseApp .purchase-history-spark-card__label,
#purchaseApp .purchase-history-insight-card__label,
#orderHistoryApp .purchase-history-spark-card__label,
#orderHistoryApp .purchase-history-insight-card__label {
  color: #bdb7a7;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
#purchaseApp .purchase-history-spark-card__value,
#purchaseApp .purchase-history-insight-card__value,
#orderHistoryApp .purchase-history-spark-card__value,
#orderHistoryApp .purchase-history-insight-card__value {
  margin-top: 0.3rem;
  color: #f7eed7;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
}
#purchaseApp .purchase-history-spark-card__delta,
#orderHistoryApp .purchase-history-spark-card__delta {
  flex: 0 0 auto;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #e7d4ac;
  font-size: 0.76rem;
  font-weight: 700;
}
#purchaseApp .purchase-history-spark-card__meta,
#purchaseApp .purchase-history-insight-card__meta,
#orderHistoryApp .purchase-history-spark-card__meta,
#orderHistoryApp .purchase-history-insight-card__meta {
  margin-top: 0.55rem;
  color: #9fb4c7;
  font-size: 0.84rem;
}
#purchaseApp .purchase-history-spark-card__chart,
#orderHistoryApp .purchase-history-spark-card__chart {
  margin-top: 0.9rem;
  height: 52px;
}
#purchaseApp .purchase-history-spark-card__chart svg,
#orderHistoryApp .purchase-history-spark-card__chart svg {
  width: 100%;
  height: 100%;
}
#purchaseApp .purchase-history-spark-card__chart polyline,
#orderHistoryApp .purchase-history-spark-card__chart polyline {
  fill: none;
  stroke: #8dd6ff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#purchaseApp .purchase-history-spark-card__chart circle,
#orderHistoryApp .purchase-history-spark-card__chart circle { fill: #f0c36e; }
#purchaseApp .purchase-history-spark-card.is-up .purchase-history-spark-card__delta,
#orderHistoryApp .purchase-history-spark-card.is-up .purchase-history-spark-card__delta {
  color: #92dec9;
  background: rgba(25, 108, 87, 0.22);
}
#purchaseApp .purchase-history-spark-card.is-down .purchase-history-spark-card__delta,
#orderHistoryApp .purchase-history-spark-card.is-down .purchase-history-spark-card__delta {
  color: #ffb6a0;
  background: rgba(123, 54, 41, 0.24);
}
#purchaseApp .purchase-history-spark-card.is-flat .purchase-history-spark-card__delta,
#orderHistoryApp .purchase-history-spark-card.is-flat .purchase-history-spark-card__delta { color: #d7c7a2; }
#purchaseApp .purchase-history-empty,
#orderHistoryApp .purchase-history-empty {
  min-height: 116px;
  border: 1px dashed rgba(240, 195, 110, 0.24);
  border-radius: 14px;
  background: rgba(10, 15, 22, 0.72);
  color: #d6ccb7;
}
#orderHistoryApp.purchase-history-page .purchase-history-head-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
#orderHistoryApp.purchase-history-page .purchase-history-chip {
  border: 1px solid rgba(240, 195, 110, 0.28);
  background: rgba(240, 195, 110, 0.1);
  color: #f2d79a;
}
#orderHistoryApp.purchase-history-page .purchase-history-filter-card {
  border-color: rgba(240, 195, 110, 0.26);
  background:
    linear-gradient(180deg, rgba(18, 24, 34, 0.98), rgba(14, 19, 28, 0.96)),
    radial-gradient(circle at top right, rgba(240, 195, 110, 0.08), transparent 46%);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.16);
}
#orderHistoryApp.purchase-history-page .purchase-history-filter-card .card-header {
  border-bottom-color: rgba(240, 195, 110, 0.18);
  background: linear-gradient(90deg, rgba(240, 195, 110, 0.1), rgba(240, 195, 110, 0.03));
}
#orderHistoryApp.purchase-history-page .purchase-history-filter-card .badge.text-bg-dark.border {
  border-color: rgba(240, 195, 110, 0.3) !important;
  background: rgba(255, 248, 231, 0.05) !important;
  color: #f6dfab !important;
  font-weight: 700;
}
#orderHistoryApp.purchase-history-page .purchase-history-query-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
#orderHistoryApp.purchase-history-page .purchase-history-query-card {
  min-width: 0;
  border: 1px solid rgba(240, 195, 110, 0.16);
  border-radius: 16px;
  background: rgba(8, 12, 18, 0.64);
  padding: 1rem 1.05rem;
}
#orderHistoryApp.purchase-history-page .purchase-history-query-card.is-focus {
  background:
    radial-gradient(circle at top right, rgba(240, 195, 110, 0.14), transparent 44%),
    linear-gradient(180deg, rgba(23, 31, 43, 0.98), rgba(12, 18, 26, 0.94));
  border-color: rgba(240, 195, 110, 0.3);
}
#orderHistoryApp.purchase-history-page .purchase-history-query-card__label {
  color: #d1b886;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#orderHistoryApp.purchase-history-page .purchase-history-query-card__value {
  margin-top: 0.45rem;
  color: #fff1cb;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
}
#orderHistoryApp.purchase-history-page .purchase-history-query-card__meta {
  margin-top: 0.45rem;
  color: #aebfd4;
  font-size: 0.88rem;
  line-height: 1.55;
}
#orderHistoryApp.purchase-history-page .purchase-history-filter-grid > [class*="col-"]:nth-child(1) {
  order: 2;
}
#orderHistoryApp.purchase-history-page .purchase-history-filter-grid > [class*="col-"]:nth-child(2) {
  order: 4;
}
#orderHistoryApp.purchase-history-page .purchase-history-filter-grid > [class*="col-"]:nth-child(3) {
  order: 5;
}
#orderHistoryApp.purchase-history-page .purchase-history-filter-grid > [class*="col-"]:nth-child(4) {
  order: 1;
}
#orderHistoryApp.purchase-history-page .purchase-history-filter-grid > [class*="col-"]:nth-child(5) {
  order: 6;
}
#orderHistoryApp.purchase-history-page .purchase-history-filter-grid > [class*="col-"]:nth-child(6) {
  order: 7;
}
#orderHistoryApp.purchase-history-page .purchase-history-filter-grid > [class*="col-"]:nth-child(7) {
  order: 3;
}
#orderHistoryApp.purchase-history-page .purchase-history-filter-grid .filter-col-actions {
  order: 8;
}
#orderHistoryApp.purchase-history-page .purchase-history-filter-grid .filter-col-actions .d-flex {
  height: 100%;
  justify-content: flex-end;
}
#orderHistoryApp.purchase-history-page .purchase-history-result-switcher {
  border-color: rgba(240, 195, 110, 0.16);
  background: linear-gradient(180deg, rgba(18, 24, 34, 0.92), rgba(10, 15, 22, 0.9));
}
#orderHistoryApp.purchase-history-page .purchase-history-result-switcher__hint {
  color: #aebfd4;
  font-size: 0.9rem;
}
#orderHistoryApp.purchase-history-page .purchase-history-results-tabs .el-tabs__header {
  margin-bottom: 0;
}
#orderHistoryApp.purchase-history-page .purchase-history-results-tabs .el-tabs__nav-wrap::after {
  background-color: rgba(240, 195, 110, 0.16);
}
#orderHistoryApp.purchase-history-page .purchase-history-results-tabs .el-tabs__item {
  color: #aebfd4;
}
#orderHistoryApp.purchase-history-page .purchase-history-results-tabs .el-tabs__item.is-active {
  color: #f6dfab;
}
#orderHistoryApp.purchase-history-page .purchase-history-results-tabs .el-tabs__active-bar {
  background-color: #f0c36e;
}
#orderHistoryApp.purchase-history-page .purchase-history-result-tab-label {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-weight: 600;
}
#orderHistoryApp.purchase-history-page .purchase-history-cross-links-card,
#orderHistoryApp.purchase-history-page .purchase-history-result-card {
  border-color: rgba(240, 195, 110, 0.16);
  background: linear-gradient(180deg, rgba(14, 20, 29, 0.94), rgba(10, 15, 22, 0.92));
}
#orderHistoryApp.purchase-history-page .purchase-history-cross-links-card .card-header,
#orderHistoryApp.purchase-history-page .purchase-history-result-card .card-header {
  border-bottom-color: rgba(240, 195, 110, 0.12);
  background: rgba(255, 255, 255, 0.02);
}
#orderHistoryApp.purchase-history-page .purchase-history-result-card .table-summary,
#orderHistoryApp.purchase-history-page .purchase-history-cross-links-card .table-summary {
  color: #aebfd4;
}
@media (max-width: 991.98px) {
  #orderHistoryApp.purchase-history-page .purchase-history-query-overview {
    grid-template-columns: 1fr;
  }
  #orderHistoryApp.purchase-history-page .purchase-history-filter-grid > [class*="col-"] {
    order: initial !important;
  }
  #orderHistoryApp.purchase-history-page .purchase-history-filter-grid .filter-col-actions .d-flex {
    justify-content: stretch;
  }
}
/* Slice 5c (2026-05-13): pure #purchaseApp rule migrated to pages/purchases-index.css */
/* Slice 6 v2 (2026-05-13): pure #receiptApp .receipt-* rules migrated to pages/receipts-shared.css; compound multi-app rules KEPT below */

#receiptApp .receipt-order-summary-grid,
#inventoryApp .inventory-summary-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}
#receiptApp .receipt-order-summary-card,
#inventoryApp .inventory-summary-card {
  grid-column: span 3;
  border: 1px solid rgba(240, 195, 110, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(16, 22, 31, 0.92), rgba(10, 15, 22, 0.9));
  padding: 1rem 1.05rem;
}
#receiptApp .receipt-order-summary-card__label,
#inventoryApp .inventory-summary-card__label {
  color: #bdb7a7;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
#receiptApp .receipt-order-summary-card__value,
#inventoryApp .inventory-summary-card__value {
  margin-top: 0.3rem;
  color: #f7eed7;
  font-size: 1.35rem;
  font-weight: 700;
}
#receiptApp .receipt-order-summary-card__meta,
#inventoryApp .inventory-summary-card__meta {
  margin-top: 0.45rem;
  color: #9fb4c7;
  font-size: 0.84rem;
}


/* Slice 6 v2 (2026-05-13): @media (max-width: 1199.98px) and @media (max-width: 767.98px) — both pure #receiptApp blocks — migrated to pages/receipts-shared.css */

/* Tabs & Collapse */
#purchaseApp .el-tabs, #receiptApp .el-tabs, #itemsApp .el-tabs, #inventoryApp .el-tabs {
  background: rgba(9, 13, 18, 0.3); border: 1px solid rgba(240, 195, 110, 0.16); border-radius: 12px; padding: 0.35rem 0.65rem 0;
}
#purchaseApp .el-tabs__header, #receiptApp .el-tabs__header, #itemsApp .el-tabs__header, #inventoryApp .el-tabs__header { margin: 0; }
#purchaseApp .el-tabs__nav-wrap::after, #receiptApp .el-tabs__nav-wrap::after, #itemsApp .el-tabs__nav-wrap::after, #inventoryApp .el-tabs__nav-wrap::after { background-color: rgba(240, 195, 110, 0.14); height: 1px; }
#purchaseApp .el-tabs__item, #receiptApp .el-tabs__item, #itemsApp .el-tabs__item, #inventoryApp .el-tabs__item { color: #bdb7a7; font-weight: 600; padding-left: 14px; padding-right: 14px; }
#purchaseApp .el-tabs__item:hover, #receiptApp .el-tabs__item:hover, #itemsApp .el-tabs__item:hover, #inventoryApp .el-tabs__item:hover { color: #f2d89a; }
#purchaseApp .el-tabs__item.is-active, #receiptApp .el-tabs__item.is-active, #itemsApp .el-tabs__item.is-active, #inventoryApp .el-tabs__item.is-active { color: #f0c36e; }
#purchaseApp .el-tabs__active-bar, #receiptApp .el-tabs__active-bar, #itemsApp .el-tabs__active-bar, #inventoryApp .el-tabs__active-bar { background-color: #f0c36e; height: 2px; border-radius: 999px; }

#purchaseApp .el-collapse, #receiptApp .el-collapse { border-top: 1px solid rgba(240, 195, 110, 0.16); border-bottom: 1px solid rgba(240, 195, 110, 0.16); }
#purchaseApp .el-collapse-item__header, #receiptApp .el-collapse-item__header { background: rgba(10, 14, 19, 0.88); color: #efe4c7; border-bottom: 1px solid rgba(240, 195, 110, 0.12); min-height: 44px; padding: 0.15rem 0.75rem; }
#purchaseApp .el-collapse-item__header.is-active, #receiptApp .el-collapse-item__header.is-active { color: #ffd98f; }
#purchaseApp .el-collapse-item__arrow, #receiptApp .el-collapse-item__arrow { color: #d9b56f; }
#purchaseApp .el-collapse-item__wrap, #receiptApp .el-collapse-item__wrap { background: transparent; border-bottom: 1px solid rgba(240, 195, 110, 0.12); }
#purchaseApp .el-collapse-item__content, #receiptApp .el-collapse-item__content { padding-bottom: 0; color: inherit; }
#purchaseApp .el-collapse-item__content .card, #receiptApp .el-collapse-item__content .card { margin-bottom: 0; }

#inventoryApp .inventory-category-select {
  min-width: min(280px, 50vw);
}

/* Slice 7 (2026-05-13): pure #inventoryApp / .inventory-* rule migrated to pages/inventories-shared.css */

/* Slice 7 (2026-05-13): pure #inventoryApp / .inventory-* rule migrated to pages/inventories-shared.css */

/* Slice 7 (2026-05-13): pure #inventoryApp / .inventory-* rule migrated to pages/inventories-shared.css */

/* Slice 7 (2026-05-13): pure #inventoryApp / .inventory-* rule migrated to pages/inventories-shared.css */

/* Slice 7 (2026-05-13): pure #inventoryApp / .inventory-* rule migrated to pages/inventories-shared.css */

/* Slice 7 (2026-05-13): pure #inventoryApp / .inventory-* rule migrated to pages/inventories-shared.css */

/* Slice 7 (2026-05-13): pure #inventoryApp / .inventory-* rule migrated to pages/inventories-shared.css */

/* Slice 7 (2026-05-13): pure #inventoryApp / .inventory-* rule migrated to pages/inventories-shared.css */

/* Slice 7 (2026-05-13): pure #inventoryApp / .inventory-* rule migrated to pages/inventories-shared.css */

/* Slice 7 (2026-05-13): pure #inventoryApp / .inventory-* rule migrated to pages/inventories-shared.css */

/* Slice 7 (2026-05-13): pure #inventoryApp / .inventory-* rule migrated to pages/inventories-shared.css */

/* Slice 7 (2026-05-13): pure #inventoryApp / .inventory-* rule migrated to pages/inventories-shared.css */

/* Slice 7 (2026-05-13): pure #inventoryApp / .inventory-* rule migrated to pages/inventories-shared.css */

/* Slice 7 (2026-05-13): pure #inventoryApp / .inventory-* rule migrated to pages/inventories-shared.css */

/* Slice 7 (2026-05-13): pure #inventoryApp / .inventory-* rule migrated to pages/inventories-shared.css */

/* Slice 7 (2026-05-13): pure #inventoryApp / .inventory-* rule migrated to pages/inventories-shared.css */

/* Slice 7 (2026-05-13): pure #inventoryApp / .inventory-* rule migrated to pages/inventories-shared.css */

/* Slice 7 (2026-05-13): pure #inventoryApp / .inventory-* rule migrated to pages/inventories-shared.css */

/* Slice 7 (2026-05-13): pure #inventoryApp / .inventory-* rule migrated to pages/inventories-shared.css */

/* Slice 7 (2026-05-13): pure #inventoryApp / .inventory-* rule migrated to pages/inventories-shared.css */

/* Slice 7 (2026-05-13): pure #inventoryApp / .inventory-* rule migrated to pages/inventories-shared.css */

/* Slice 7 (2026-05-13): pure #inventoryApp / .inventory-* rule migrated to pages/inventories-shared.css */

/* Items App Specific (Your original) */
/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

  #purchaseApp .purchase-usage-card__meta {
    justify-content: flex-start;
  }

  #purchaseApp .purchase-usage-chart__row {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  #purchaseApp .purchase-usage-chart__share {
    text-align: left;
  }

  #purchaseApp .purchase-history-spark-card,
  #purchaseApp .purchase-history-insight-card,
  #orderHistoryApp .purchase-history-spark-card,
  #orderHistoryApp .purchase-history-insight-card {
    grid-column: span 12;
    min-height: auto;
  }

/* Slice 7 (2026-05-13): pure #inventoryApp / .inventory-* rule migrated to pages/inventories-shared.css */

/* Slice 7 (2026-05-13): pure #inventoryApp / .inventory-* rule migrated to pages/inventories-shared.css */

/* Slice 7 (2026-05-13): pure #inventoryApp / .inventory-* rule migrated to pages/inventories-shared.css */

/* Slice 7 (2026-05-13): pure #inventoryApp / .inventory-* rule migrated to pages/inventories-shared.css */

/* Slice 7 (2026-05-13): pure #inventoryApp / .inventory-* rule migrated to pages/inventories-shared.css */

  #purchaseApp .purchase-order-summary-card {
    grid-column: span 6;
  }

  #receiptApp .receipt-order-summary-card,
  #inventoryApp .inventory-summary-card {
    grid-column: span 6;
  }

/* Slice 8 (2026-05-13): pure #itemsApp / #mastersApp / .tag-* / .category-* / .master-* rule migrated to pages/items-shared.css or masters-shared.css */

/* ========================================================================
   :: ?嗡??梁閬神
   ======================================================================== */
/* Slice 1c-帠 Batch 7 (2026-05-13): .site-footer cluster late def (0 view refs) deleted as dead CSS */

.contrast-toggle { min-width: 102px; white-space: nowrap; }
.contrast-toggle.is-on { color: #1e1307; background: linear-gradient(120deg, #ffe3a6, #ffcc72); border-color: rgba(255, 225, 156, 0.95); }

@media (min-width: 992px) { .dropdown-menu-end-lg { right: 0; left: auto; } }
@media (max-width: 1199px) {
  .site-nav-shell { flex-direction: column; align-items: stretch; }
  .site-nav-tools { justify-content: flex-start; flex-wrap: wrap; }
  .tenant-switch-select { max-width: 320px; }
}
@media (max-width: 991.98px) {
  .site-nav .container-fluid { row-gap: 0.75rem; }
  .site-nav-shell { padding-top: 0.85rem; }
  .nav-quickbar { flex-direction: column; align-items: stretch; }
  .nav-quickbar-head, .nav-account-toggle { width: 100%; }
  .nav-quickbar-head { justify-content: space-between; }
  .nav-shortcuts-list, .nav-shortcuts-list-tight { width: 100%; flex-wrap: wrap; }
  .nav-shortcuts-list { flex-direction: column; align-items: stretch; }
  .site-nav .dropdown-menu { position: static !important; transform: none !important; margin-top: 0.35rem; width: 100%; }
  .site-nav-tools { flex-direction: column; align-items: stretch; }
  .nav-shortcut, .nav-directory-btn, .tenant-switch-select, .contrast-toggle { width: 100%; max-width: none; }
}

/* 擃?瘥芋撘摰?*/
body.ui-mode-high-contrast {
  --cyber-text-main: #fffdf6; --cyber-text-soft: #ece0c2; --cyber-gold-bright: #ffd983; --cyber-divider: rgba(255, 217, 131, 0.68);
}
body.ui-mode-high-contrast .erp-el-table { --el-table-header-text-color: #fff2cd; --el-table-text-color: #fffef9; --el-table-border-color: rgba(255, 217, 131, 0.36); --el-table-row-hover-bg-color: rgba(255, 217, 131, 0.26); }
body.ui-mode-high-contrast .btn-outline-secondary { color: #fff4d8; border-color: rgba(255, 217, 131, 0.74); }

/* 銵冽撖漲?身 */
/* ========================================================================
   ERP Navigation Redesign
   ======================================================================== */
body {
  margin-bottom: 0;
}

/* Slice 1c-帠 Batch 2 + Layout Fix (2026-05-13): erp-app-shell grid + erp-main-shell + sidebar 撌脤??02-shell.css */

/* Slice 1c-帠 Batch 3 (2026-05-13): erp-topbar-* + tenant-switch-dropdown (11 selectors) 撌脤??02-shell.css */

/* Slice 1c-帠 Batch 1 (2026-05-13): erp-tenant-switch-* (first block) 撌脤??03-navigation.css */

.erp-tenant-readonly {
  min-width: clamp(220px, 22vw, 320px);
  max-width: 360px;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  padding: 0.42rem 0.9rem;
  border: 1px solid rgba(240, 195, 110, 0.32);
  border-radius: 999px;
  background: rgba(16, 21, 29, 0.72);
  color: #f4e4c2;
}

.erp-tenant-readonly-label {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(240, 195, 110, 0.72);
}

.erp-tenant-readonly-value {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.92rem;
  font-weight: 700;
  color: #f7e7c7;
}

/* Slice 1c-帠 Batch 1 (2026-05-13): erp-tenant-switch-* (rest) + erp-account-* 撌脤??03-navigation.css */

/* Slice 1c-帠 Batch 4 (2026-05-13): erp-breadcrumb-bar + erp-breadcrumb-text 撌脤??03-navigation.css */

.erp-tenant-context-banner {
  margin: 1rem 1.4rem 0;
  padding: 0.7rem 0.95rem;
  border: 1px solid rgba(240, 195, 110, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(240, 195, 110, 0.08), rgba(240, 195, 110, 0.02)),
    rgba(12, 16, 22, 0.96);
  box-shadow: inset 0 0 0 1px rgba(240, 195, 110, 0.05);
  display: grid;
  gap: 0.6rem;
}

.erp-tenant-context-toprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.erp-tenant-context-kicker {
  display: inline-block;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(240, 195, 110, 0.76);
}

.erp-tenant-context-title {
  margin-top: 0.08rem;
  font-size: 1rem;
  font-weight: 800;
  color: #f7e6c3;
  line-height: 1.1;
}

.erp-tenant-context-meta {
  margin-top: 0.08rem;
  color: rgba(240, 222, 187, 0.72);
  font-size: 0.8rem;
}

.erp-tenant-context-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.erp-tenant-context-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.56rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
}

.erp-tenant-context-chip.is-enabled {
  border: 1px solid rgba(240, 195, 110, 0.26);
  background: rgba(240, 195, 110, 0.12);
  color: #f8e8c7;
}

.erp-tenant-context-chip.is-muted {
  border: 1px solid rgba(240, 195, 110, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(240, 222, 187, 0.66);
}

.erp-tenant-context-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.erp-tenant-context-note {
  font-size: 0.78rem;
  color: rgba(240, 222, 187, 0.72);
}

/* Slice 1c-帠 Batch 6 (2026-05-13): erp-main-content.page-shell 撌脤??02-shell.css */

/* Slice 1c-帠 Batch 5 (2026-05-13): erp-footer + erp-public-* + erp-mobile-* 撌脤??02-shell.css */

body.erp-sidebar-collapsed .erp-app-shell {
  grid-template-columns: 92px minmax(0, 1fr);
}

body.erp-sidebar-collapsed .erp-sidebar-brand-copy,
body.erp-sidebar-collapsed .erp-sidebar-context,
body.erp-sidebar-collapsed .erp-nav-section-title,
body.erp-sidebar-collapsed .erp-nav-link-meta {
  display: none;
}

body.erp-sidebar-collapsed .erp-sidebar {
  padding-left: 0.7rem;
  padding-right: 0.7rem;
}

body.erp-sidebar-collapsed .erp-sidebar-head {
  flex-direction: column;
  align-items: center;
}

body.erp-sidebar-collapsed .erp-sidebar-brand {
  justify-content: center;
}

body.erp-sidebar-collapsed .erp-nav-link {
  padding: 0.8rem 0.55rem;
  align-items: center;
  text-align: center;
}

body.erp-sidebar-collapsed .erp-nav-link-main {
  justify-content: center;
}

body.erp-sidebar-collapsed .erp-nav-link-action {
  display: none;
}

body.erp-sidebar-collapsed .erp-nav-link-label-wrap {
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

body.erp-sidebar-collapsed .erp-nav-link-label {
  font-size: 0.75rem;
  line-height: 1.2;
}

body.erp-sidebar-collapsed .erp-nav-link-alias {
  font-size: 0.66rem;
  padding: 0.05rem 0.35rem;
}

body.erp-sidebar-collapsed .erp-topbar {
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}

body.erp-sidebar-collapsed .erp-main-content.page-shell {
  max-width: 1760px;
}

@media (max-width: 991.98px) {
  .erp-app-shell {
    display: block;
    min-height: auto;
  }

  .erp-topbar {
    padding: 0.9rem 1rem;
    min-height: 72px;
  }

  .erp-topbar-title {
    font-size: 1.15rem;
  }

  .erp-topbar-tools {
    gap: 0.6rem;
  }

  .erp-topbar-utility,
  .erp-topbar-accountzone {
    width: 100%;
  }

  .erp-topbar-utility {
    justify-content: flex-start;
  }

  .erp-topbar-select {
    min-width: 0;
    width: 100%;
  }

  .erp-breadcrumb-bar,
  .erp-main-content.page-shell,
  .erp-public-header {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 767.98px) {
  .erp-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .erp-topbar-left,
  .erp-topbar-tools {
    width: 100%;
  }

  .erp-topbar-tools {
    justify-content: flex-start;
  }

  .erp-topbar-utility {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    align-items: stretch;
  }

  .erp-topbar-utility,
  .erp-topbar-accountzone {
    width: 100%;
  }

  .erp-topbar-utility .contrast-toggle {
    width: auto;
    max-width: fit-content;
    min-width: 0;
    justify-self: start;
    align-self: stretch;
    padding: 0.4rem 0.7rem;
    font-size: 0.78rem;
    line-height: 1.1;
  }

  .erp-topbar-accountzone .dropdown,
  .erp-account-toggle {
    width: 100%;
  }

  .tenant-switch-dropdown,
  .erp-tenant-switch-toggle,
  .erp-tenant-readonly {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .erp-tenant-switch-toggle {
    padding: 0.4rem 0.72rem;
    border-radius: 14px;
    overflow: hidden;
    min-height: 40px;
  }

  .erp-tenant-switch-copy,
  .erp-tenant-readonly {
    min-width: 0;
  }

  .erp-tenant-switch-label,
  .erp-tenant-readonly-label {
    display: none;
  }

  .erp-tenant-switch-value,
  .erp-tenant-readonly-value {
    font-size: 0.86rem;
    line-height: 1.2;
  }

  .erp-tenant-switch-menu {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .erp-account-toggle {
    max-width: none;
    justify-content: flex-start;
  }

  .erp-public-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .erp-public-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* Home Workbench Redesign */
/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 1 Phase 1c-帢 (2026-05-13): auth-* Section A migrated to pages/auth-shell.css */

@media (max-width: 1199.98px) {
  .home-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .home-kpi-grid,
  .home-panel-grid,
  .home-action-grid {
    grid-template-columns: 1fr;
  }

  .home-panel-wide {
    grid-column: auto;
  }

  .auth-shell {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 767.98px) {
  .home-hero-card .card-body {
    padding: 1.15rem;
  }

  .home-hero-actions {
    align-items: stretch;
  }

  .home-hero-actions .btn {
    width: 100%;
  }

  .auth-shell {
    padding-top: 1.5rem;
  }

  .auth-card .card-body {
    padding: 1.15rem;
  }

  .erp-help-dock {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
  }

  .erp-help-dock .btn {
    width: auto;
    min-width: 0;
    max-width: 190px;
    padding-inline: 0.75rem;
  }
}

/* Slice 1c-帠 Batch 6 (2026-05-13): erp-page-actions 撌脤??02-shell.css */

.erp-module-overview {
  border: 1px solid rgba(240, 195, 110, 0.16);
  background:
    linear-gradient(180deg, rgba(9, 14, 21, 0.96), rgba(11, 18, 28, 0.92)),
    linear-gradient(90deg, rgba(240, 195, 110, 0.08), transparent 36%);
  box-shadow: 0 20px 36px rgba(3, 8, 16, 0.24);
}

/* Temporary cleanup: hide non-functional note panels until pages are rebuilt as real website content. */
.erp-module-overview,
.erp-settings-context-bar {
  display: none !important;
}

/* Slice 1c-帠 Batch 5 (2026-05-13): erp-help-dock 撌脤??02-shell.css */

.erp-module-overview .card-body {
  display: grid;
  gap: 1rem;
}

.erp-module-overview-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
}

.erp-module-overview-title {
  color: #fff1cf;
  font-size: 1rem;
  font-weight: 700;
}

.erp-module-overview-text {
  color: rgba(243, 223, 180, 0.78);
  max-width: 58rem;
  line-height: 1.55;
}

.erp-module-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.erp-module-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(240, 195, 110, 0.18);
  background: rgba(7, 11, 18, 0.76);
  color: rgba(255, 239, 209, 0.88);
  font-size: 0.82rem;
  white-space: nowrap;
}

.erp-module-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.erp-module-shortcut.is-active {
  box-shadow: 0 10px 20px rgba(240, 195, 110, 0.18);
}

@media (max-width: 991.98px) {
  .erp-module-overview-head,
  .erp-module-badges,
  .erp-page-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  .erp-module-shortcuts .btn,
  .erp-page-actions .btn,
  .erp-page-actions .el-button {
    width: 100%;
  }
}

/* Slice 7 (2026-05-13): pure #inventoryApp / .inventory-* rule migrated to pages/inventories-shared.css */

/* Slice 7 (2026-05-13): pure #inventoryApp / .inventory-* rule migrated to pages/inventories-shared.css */

/* Slice 7 (2026-05-13): pure #inventoryApp / .inventory-* rule migrated to pages/inventories-shared.css */

/* Slice 7 (2026-05-13): pure #inventoryApp / .inventory-* rule migrated to pages/inventories-shared.css */

/* Slice 7 (2026-05-13): pure #inventoryApp / .inventory-* rule migrated to pages/inventories-shared.css */

/* Slice 7 (2026-05-13): pure #inventoryApp / .inventory-* rule migrated to pages/inventories-shared.css */

/* Slice 7 (2026-05-13): pure #inventoryApp / .inventory-* rule migrated to pages/inventories-shared.css */

/* Slice 7 (2026-05-13): pure #inventoryApp / .inventory-* rule migrated to pages/inventories-shared.css */

/* Slice 7 (2026-05-13): pure #inventoryApp / .inventory-* rule migrated to pages/inventories-shared.css */

/* Slice 7 (2026-05-13): pure #inventoryApp / .inventory-* rule migrated to pages/inventories-shared.css */

/* Slice 7 (2026-05-13): pure #inventoryApp / .inventory-* rule migrated to pages/inventories-shared.css */

/* Slice 7 (2026-05-13): pure #inventoryApp / .inventory-* rule migrated to pages/inventories-shared.css */

/* Slice 7 (2026-05-13): pure #inventoryApp / .inventory-* rule migrated to pages/inventories-shared.css */

.settings-context-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.85rem;
}

.settings-context-card {
  grid-column: span 4;
  min-height: 96px;
  padding: 1rem 1.05rem;
  border-radius: 16px;
  border: 1px solid rgba(240, 195, 110, 0.16);
  background:
    linear-gradient(180deg, rgba(10, 16, 25, 0.92), rgba(12, 18, 29, 0.88)),
    linear-gradient(120deg, rgba(240, 195, 110, 0.06), transparent 48%);
  box-shadow: 0 16px 30px rgba(5, 10, 18, 0.22);
}

.settings-context-label {
  color: rgba(243, 223, 180, 0.62);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.settings-context-value {
  margin-top: 0.45rem;
  color: #fff1cf;
  font-size: 1rem;
  font-weight: 700;
}

.settings-context-note {
  margin-top: 0.45rem;
  color: rgba(243, 223, 180, 0.68);
  font-size: 0.84rem;
  line-height: 1.45;
}

.settings-context-card.is-warning {
  border-color: rgba(255, 193, 7, 0.34);
  background:
    linear-gradient(180deg, rgba(28, 22, 12, 0.94), rgba(18, 20, 24, 0.9)),
    linear-gradient(120deg, rgba(255, 193, 7, 0.12), transparent 52%);
}

.tenant-readiness-flow {
  display: grid;
  gap: 0.85rem;
}

.tenant-readiness-step {
  display: grid;
  grid-template-columns: minmax(7rem, 0.2fr) minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  min-height: 6.5rem;
  padding: 1rem;
  border: 1px solid rgba(240, 195, 110, 0.16);
  border-radius: 0.5rem;
  background: rgba(9, 14, 21, 0.74);
}

.tenant-readiness-step.is-ready {
  border-color: rgba(25, 135, 84, 0.42);
}

.tenant-readiness-step.is-blocked {
  border-color: rgba(255, 193, 7, 0.32);
}

.tenant-readiness-step__state,
.tenant-readiness-step__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.tenant-readiness-step__actions {
  justify-content: flex-end;
}

.tenant-readiness-step__body {
  min-width: 0;
}

.tenant-role-app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.tenant-role-app-card {
  display: flex;
  min-height: 7rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  width: 100%;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  padding: 0.85rem;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.tenant-role-app-card:hover:not(:disabled),
.tenant-role-app-card:focus-visible:not(:disabled) {
  border-color: var(--bs-primary);
  box-shadow: 0 0.35rem 1rem rgba(13, 110, 253, 0.12);
  transform: translateY(-1px);
}

.tenant-role-app-card:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.tenant-role-app-card__title {
  font-weight: 700;
}

.tenant-role-app-card__purpose {
  color: var(--bs-secondary-color);
  font-size: 0.85rem;
  line-height: 1.45;
}

.tenant-role-app-card__count {
  margin-top: auto;
  color: var(--bs-primary);
  font-size: 0.78rem;
  font-weight: 700;
}

#tenantPermissionProfilesApp,
#tenantRoleAppsApp {
  max-width: 100%;
  overflow-x: clip;
}

#tenantPermissionProfilesApp .row,
#tenantRoleAppsApp .row,
#tenantPermissionProfilesApp [class*="col-"],
#tenantRoleAppsApp [class*="col-"],
#tenantPermissionProfilesApp .card,
#tenantRoleAppsApp .card,
#tenantPermissionProfilesApp .border,
#tenantRoleAppsApp .border,
#tenantPermissionProfilesApp .d-flex,
#tenantRoleAppsApp .d-flex {
  min-width: 0;
}

#tenantPermissionProfilesApp .card-body,
#tenantRoleAppsApp .card-body {
  min-width: 0;
  overflow-wrap: anywhere;
}

#tenantPermissionProfilesApp .table-action-group,
#tenantRoleAppsApp .table-action-group {
  justify-content: flex-start;
}

#tenantPermissionProfilesApp .table-responsive,
#tenantRoleAppsApp .table-responsive,
#tenantPermissionProfilesApp .el-table,
#tenantRoleAppsApp .el-table {
  max-width: 100%;
}

#tenantRoleAppsApp code,
#tenantPermissionProfilesApp code,
#tenantRoleAppsApp .small,
#tenantPermissionProfilesApp .small,
#tenantRoleAppsApp .table-summary,
#tenantPermissionProfilesApp .table-summary {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.settings-form-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(300px, 0.9fr);
  gap: 1rem;
  align-items: start;
}

.settings-side-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.settings-preview-panel {
  padding: 1rem 1.05rem;
  border-radius: 16px;
  border: 1px solid rgba(240, 195, 110, 0.14);
  background: rgba(9, 14, 21, 0.82);
}

.settings-preview-title {
  color: #fff1cf;
  font-size: 0.95rem;
  font-weight: 700;
}

.settings-preview-code {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  margin-top: 0.75rem;
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(240, 195, 110, 0.18);
  background: rgba(5, 8, 13, 0.82);
  color: #ffe8b2;
  font-size: 0.95rem;
  word-break: break-all;
}

.settings-kv-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.settings-kv-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(240, 195, 110, 0.08);
}

.settings-kv-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.settings-kv-label {
  color: rgba(243, 223, 180, 0.62);
  font-size: 0.84rem;
}

.settings-kv-value {
  color: #fff1cf;
  font-weight: 600;
  text-align: right;
}

.settings-action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.btn-secondary {
  color: #fff0c8;
  background: rgba(24, 18, 12, 0.92);
  border-color: rgba(240, 195, 110, 0.34);
}

.btn-secondary:hover,
.btn-secondary:focus {
  color: #fff6df;
  background: rgba(34, 24, 14, 0.96);
  border-color: rgba(255, 224, 161, 0.76);
}

.btn-outline-primary {
  color: #ffe7b0;
  border-color: rgba(240, 195, 110, 0.68);
  background: rgba(10, 14, 22, 0.22);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: #1d1306;
  background: linear-gradient(130deg, #ffe0a2, #f0c36e 58%, #ddae55);
  border-color: rgba(255, 224, 161, 0.94);
}

.btn-outline-info {
  color: #efe1bc;
  border-color: rgba(240, 195, 110, 0.34);
  background: rgba(9, 13, 19, 0.2);
}

.btn-outline-info:hover,
.btn-outline-info:focus {
  color: #fff4d8;
  background: rgba(240, 195, 110, 0.18);
  border-color: rgba(240, 195, 110, 0.62);
}

.btn-outline-warning {
  color: #f8d78c;
  border-color: rgba(240, 195, 110, 0.56);
  background: rgba(18, 15, 9, 0.18);
}

.btn-outline-warning:hover,
.btn-outline-warning:focus {
  color: #2b1804;
  background: rgba(240, 195, 110, 0.92);
  border-color: rgba(255, 224, 161, 0.96);
}

@media (max-width: 1199.98px) {
  .settings-context-card {
    grid-column: span 6;
  }

  .settings-form-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .settings-context-card {
    grid-column: span 12;
  }

  .tenant-readiness-step {
    grid-template-columns: 1fr;
  }

  .tenant-readiness-step__actions {
    justify-content: stretch;
  }

  .tenant-readiness-step__actions .btn {
    width: 100%;
  }

  .tenant-role-app-grid {
    grid-template-columns: 1fr;
  }

.settings-action-row .btn,
.settings-action-row .el-button {
    width: 100%;
  }
}

/* 2026-05-23 V1 root-cause: align-items: stretch 把右側 aside (預覽+相關頁)
   的高度反鎖回左側 main，導致左欄出現 ~800px 黑洞。改回 grid default 各自高度。
   `.tenant-branding-shell` 規則整段移除（site.css shrink-only rule 4 一致）。 */

/* 2026-05-23 V10: .tenant-branding-focus-* (grid/card/label/value/note) 已從 cshtml 移除
   (focus summary 與 side preview 重複，合併為 preview only)。對應 site.css 規則整段刪除。 */

.tenant-branding-assets-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.tenant-branding-asset-card {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(240, 195, 110, 0.14);
  background:
    radial-gradient(circle at 12% 8%, rgba(240, 195, 110, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(9, 14, 21, 0.86), rgba(8, 12, 19, 0.78));
}

.tenant-branding-asset-preview,
.tenant-branding-logo-preview {
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(240, 195, 110, 0.2);
  background: rgba(255, 245, 220, 0.08);
  color: #fff0ca;
  font-size: 0.82rem;
  font-weight: 800;
}

.tenant-branding-asset-preview {
  width: 58px;
  height: 58px;
  border-radius: 16px;
}

.tenant-branding-logo-preview {
  min-width: 132px;
  max-width: 180px;
  height: 58px;
  padding: 0 0.8rem;
  border-radius: 16px;
}

.tenant-branding-asset-preview img,
.tenant-branding-logo-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.tenant-branding-side .card {
  overflow: hidden;
}

.tenant-branding-preview-surface {
  padding: 1rem 1.05rem;
  border-radius: 16px;
  border: 1px solid rgba(240, 195, 110, 0.16);
  background:
    radial-gradient(circle at top left, rgba(240, 195, 110, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(9, 14, 21, 0.96), rgba(8, 12, 19, 0.92));
}

.tenant-branding-preview-logo {
  display: inline-grid;
  place-items: center;
  min-width: 116px;
  max-width: 180px;
  min-height: 46px;
  margin-bottom: 0.85rem;
  padding: 0.45rem 0.7rem;
  border-radius: 14px;
  border: 1px solid rgba(240, 195, 110, 0.18);
  background: rgba(255, 245, 220, 0.08);
  color: #fff0ca;
  font-weight: 800;
}

.tenant-branding-preview-logo img {
  max-width: 100%;
  max-height: 54px;
  object-fit: contain;
}

.tenant-branding-preview-label {
  color: rgba(243, 223, 180, 0.62);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tenant-branding-preview-title {
  margin-top: 0.65rem;
  color: #fff1cf;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
}

.tenant-branding-preview-subtitle {
  margin-top: 0.45rem;
  color: rgba(255, 235, 193, 0.82);
  font-size: 0.92rem;
  line-height: 1.5;
}

.tenant-branding-preview-message {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(240, 195, 110, 0.12);
  color: rgba(243, 223, 180, 0.76);
  font-size: 0.88rem;
  line-height: 1.6;
}

@media (max-width: 1199.98px) {
  .tenant-branding-focus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tenant-branding-assets-grid {
    grid-template-columns: 1fr;
  }
}

/* Slice 7 (2026-05-13): pure #inventoryApp / .inventory-* rule migrated to pages/inventories-shared.css */

/* Slice 7 (2026-05-13): pure #inventoryApp / .inventory-* rule migrated to pages/inventories-shared.css */

/* Slice 7 (2026-05-13): pure #inventoryApp / .inventory-* rule migrated to pages/inventories-shared.css */

/* Slice 7 (2026-05-13): pure #inventoryApp / .inventory-* rule migrated to pages/inventories-shared.css */

/* Slice 7 (2026-05-13): pure #inventoryApp / .inventory-* rule migrated to pages/inventories-shared.css */

.entry-modal-head {
  display: grid;
  gap: 0.35rem;
}

.entry-modal-context {
  color: rgba(243, 223, 180, 0.78);
  font-size: 0.9rem;
  line-height: 1.5;
}

.entry-modal-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.entry-modal-flow-item {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(240, 195, 110, 0.14);
  background: rgba(10, 16, 24, 0.72);
  color: rgba(243, 223, 180, 0.78);
  font-size: 0.82rem;
  font-weight: 700;
}

.entry-modal-flow-item.is-active {
  border-color: rgba(240, 195, 110, 0.32);
  background: rgba(240, 195, 110, 0.14);
  color: #fff1cf;
}

@media (max-width: 1199.98px) {
  .inventory-waste-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .inventory-waste-summary {
    grid-template-columns: 1fr;
  }
}

/* Slice 1c-帠 Batch 6 (2026-05-13): erp-main-content 撌脤??02-shell.css */

.erp-workstation-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.erp-workstation-main {
  grid-column: span 8;
  min-width: 0;
}

.erp-workstation-side {
  grid-column: span 4;
  min-width: 0;
}

.workbench-page .erp-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workbench-page .erp-workstation-side .card {
  position: sticky;
  top: 1rem;
}

/* Slice 2 Phase 2b (2026-05-13): admin-users-workstation 撌脤??pages/admin-users.css */

.erp-workstation-card {
  border: 1px solid rgba(240, 195, 110, 0.18);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16, 21, 29, 0.94), rgba(12, 16, 23, 0.9));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.erp-workstation-card .card-header {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(240, 195, 110, 0.12);
  background: transparent;
}

.erp-workstation-card .card-body {
  padding: 1.2rem;
}

.purchase-focus-card {
  color: var(--dark-ink) !important;
  background: rgba(13, 16, 22, 0.88) !important;
  border-color: rgba(240, 195, 110, 0.32) !important;
  box-shadow: none !important;
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.purchase-focus-card:hover,
.purchase-focus-card:focus {
  color: var(--dark-ink) !important;
  background: rgba(22, 28, 36, 0.94) !important;
  border-color: rgba(255, 215, 136, 0.58) !important;
}

.purchase-focus-card.is-active {
  color: #201508 !important;
  background: linear-gradient(135deg, #ffd788, #f0c36e 58%, #ddae55) !important;
  border-color: rgba(249, 212, 133, 0.95) !important;
  box-shadow: 0 10px 24px rgba(240, 195, 110, 0.22) !important;
}

.purchase-focus-card.is-active .small,
.purchase-focus-card.is-active .text-secondary,
.purchase-focus-card.is-active .opacity-75,
.purchase-focus-card.is-active .fw-semibold {
  color: #201508 !important;
  opacity: 1 !important;
}

.purchase-focus-card.is-active .badge.text-bg-dark {
  color: #fff6df !important;
  background: rgba(41, 28, 11, 0.9) !important;
  border-color: rgba(41, 28, 11, 0.9) !important;
}

/* Slice 5: .supplier-orders-shell migrated to pages/purchases-supplier-orders.css */

.supplier-selection-card {
  position: sticky;
  top: 1rem;
}

.supplier-focus-card .card-body,
.supplier-empty-guide .card-body {
  padding: 1.2rem;
}

.supplier-focus-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.supplier-focus-title {
  margin: 0;
  font-size: 1.5rem;
  color: #fff0cb;
  font-weight: 800;
}

.supplier-focus-meta {
  margin-top: 0.3rem;
  color: #c4b392;
  font-size: 0.92rem;
}

.supplier-focus-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.supplier-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.supplier-focus-panel {
  min-width: 0;
  padding: 1rem 1.05rem;
  border-radius: 16px;
  border: 1px solid rgba(240, 195, 110, 0.16);
  background: rgba(12, 17, 24, 0.88);
}

.supplier-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.supplier-filter-state {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.supplier-chip-subtle {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.16);
  color: #d9cfbb;
}

.supplier-chip-subtle strong {
  color: #fff3c4;
  font-weight: 600;
  margin-left: 0.25rem;
}

.supplier-filter-shell {
  padding: 1rem;
}

.supplier-step-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.supplier-step-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(240, 195, 110, 0.16);
  background: rgba(12, 17, 24, 0.78);
  color: #e9ddc0;
}

.supplier-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd788, #f0c36e 58%, #ddae55);
  color: #201508;
  font-weight: 800;
}

.erp-support-tabs {
  border-bottom-color: rgba(240, 195, 110, 0.22);
}

.erp-support-tabs .nav-link {
  color: var(--dark-ink-soft);
  background: rgba(15, 18, 24, 0.82);
  border: 1px solid rgba(240, 195, 110, 0.26);
  border-bottom-color: rgba(240, 195, 110, 0.26);
  margin-right: 0.45rem;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  font-weight: 700;
}

.erp-support-tabs .nav-link:hover,
.erp-support-tabs .nav-link:focus {
  color: var(--dark-ink);
  background: rgba(28, 34, 43, 0.94);
  border-color: rgba(255, 215, 136, 0.45);
}

.erp-support-tabs .nav-link.active {
  color: #201508 !important;
  background: linear-gradient(135deg, #ffd788, #f0c36e 58%, #ddae55) !important;
  border-color: rgba(249, 212, 133, 0.95) !important;
  box-shadow: 0 8px 18px rgba(240, 195, 110, 0.18);
}

.erp-section-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--erp-text-primary);
}

.erp-section-caption {
  margin-top: 0.3rem;
  font-size: 0.84rem;
  color: var(--erp-text-muted);
}

.erp-context-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.erp-context-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.78rem;
  border: 1px solid rgba(240, 195, 110, 0.18);
  border-radius: 999px;
  background: rgba(15, 19, 27, 0.78);
  color: #f2e1be;
  font-size: 0.82rem;
}

.erp-context-pill strong {
  font-weight: 700;
  color: #fff4d4;
}

.erp-action-stack {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.erp-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.erp-action-group-label {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: #a89574;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.erp-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.erp-summary-card {
  padding: 1rem 1.05rem;
  border-radius: 16px;
  border: 1px solid rgba(240, 195, 110, 0.16);
  background: rgba(12, 17, 24, 0.88);
}

.erp-summary-card-label {
  font-size: 0.8rem;
  color: #a89574;
}

.erp-summary-card-value {
  margin-top: 0.35rem;
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff0cb;
  line-height: 1.1;
}

.erp-summary-card-meta {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: #c4b392;
}

.erp-list-shell {
  border: 1px solid rgba(240, 195, 110, 0.14);
  border-radius: 18px;
  background: rgba(11, 15, 22, 0.9);
  overflow: hidden;
}

.erp-list-shell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(240, 195, 110, 0.12);
}

.erp-list-shell-body {
  padding: 1.1rem 1.2rem 1.2rem;
}

@media (max-width: 1399.98px) {
  .erp-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .supplier-focus-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .supplier-focus-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 1199.98px) {
  .erp-workstation-main,
  .erp-workstation-side {
    grid-column: span 12;
  }

  .workbench-page .erp-summary-grid {
    grid-template-columns: 1fr;
  }

  .workbench-page .erp-workstation-side .card {
    position: static;
  }

  .admin-users-workstation .erp-workstation-side .card {
    position: static;
  }

  .supplier-selection-card {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .page-shell {
    padding: 1rem 12px 4rem;
  }

  .supplier-focus-summary-grid {
    grid-template-columns: 1fr;
  }

  .supplier-focus-header {
    flex-direction: column;
  }

  .erp-summary-grid {
    grid-template-columns: 1fr;
  }

  .erp-list-shell-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Slice 5: .mixed-purchase-page family migrated to pages/purchases-category-orders.css */
/* Slice 5: .mixed-main-table family migrated to pages/purchases-shared.css */

.erp-dark-modal {
  background: linear-gradient(135deg, #0c1118 0%, #152238 100%);
  color: #f5f7fa;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.erp-dark-input {
  background-color: rgba(7, 12, 20, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.65);
  color: #f8f9fa;
  border-radius: 10px;
  min-height: 42px;
}

.erp-dark-input:focus {
  background-color: rgba(7, 12, 20, 0.9);
  color: #fff;
  border-color: #f0c96a;
  box-shadow: 0 0 0 0.2rem rgba(240, 201, 106, 0.15);
}

.erp-dark-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.erp-section-card {
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 14px;
  padding: 18px;
  background: rgba(9, 14, 22, 0.38);
}

.erp-section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.28);
}

.erp-chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.erp-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #f2d482;
  font-size: 12px;
  font-weight: 600;
}

.erp-dark-table {
  color: #f5f7fa;
  margin-bottom: 0;
}

.erp-dark-table thead th {
  background: linear-gradient(90deg, rgba(78, 53, 14, 0.95) 0%, rgba(122, 85, 25, 0.88) 100%);
  color: #fff2c2;
  border-color: rgba(212, 175, 55, 0.35);
  white-space: nowrap;
  vertical-align: middle;
}

.erp-dark-table tbody td {
  background: rgba(9, 14, 22, 0.22);
  border-color: rgba(212, 175, 55, 0.2);
  vertical-align: top;
}

.erp-dark-footer {
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(6, 10, 16, 0.55);
}

.mixed-purchase-page .btn,
.erp-dark-modal .btn,
.procurement-lookup-card .btn {
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  min-height: 40px;
}

.mixed-purchase-page .btn-primary,
.mixed-purchase-page .btn-warning,
.erp-dark-modal .btn-primary,
.erp-dark-modal .btn-warning,
.mixed-purchase-page .el-button--primary,
.erp-dark-modal .el-button--primary {
  background: linear-gradient(135deg, #ffdc74 0%, #f0b84b 100%);
  border-color: rgba(255, 220, 116, 0.82);
  color: #231706;
  box-shadow: 0 10px 24px rgba(240, 184, 75, 0.24);
}

.mixed-purchase-page .btn-outline-secondary,
.mixed-purchase-page .btn-outline-light,
.mixed-purchase-page .btn-outline-primary,
.mixed-purchase-page .btn-outline-info,
.mixed-purchase-page .btn-outline-success,
.mixed-purchase-page .btn-outline-warning,
.erp-dark-modal .btn-outline-secondary,
.erp-dark-modal .btn-outline-light,
.erp-dark-modal .btn-outline-primary,
.erp-dark-modal .btn-outline-info,
.erp-dark-modal .btn-outline-success,
.erp-dark-modal .btn-outline-warning {
  background: rgba(12, 18, 29, 0.72);
  border-color: rgba(212, 175, 55, 0.48);
  color: #f6ddb0;
}

.mixed-purchase-page .btn-outline-danger,
.erp-dark-modal .btn-outline-danger {
  background: rgba(40, 12, 18, 0.55);
  border-color: rgba(255, 122, 122, 0.56);
  color: #ffd4d4;
}

.mixed-purchase-page .btn:hover,
.erp-dark-modal .btn:hover,
.mixed-purchase-page .el-button--primary:hover,
.erp-dark-modal .el-button--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.mixed-purchase-page .el-input__wrapper,
.mixed-purchase-page .el-select__wrapper,
.erp-dark-modal .el-input__wrapper,
.erp-dark-modal .el-select__wrapper {
  background: rgba(7, 12, 20, 0.82);
  border: 1px solid rgba(212, 175, 55, 0.56);
  box-shadow: none;
  border-radius: 12px;
  min-height: 42px;
}

.mixed-purchase-page .el-input__wrapper.is-focus,
.mixed-purchase-page .el-select__wrapper.is-focused,
.erp-dark-modal .el-input__wrapper.is-focus,
.erp-dark-modal .el-select__wrapper.is-focused {
  box-shadow: 0 0 0 2px rgba(240, 201, 106, 0.18);
  border-color: #f0c96a;
}

.mixed-purchase-page .el-input__inner,
.mixed-purchase-page .el-range-input,
.mixed-purchase-page .el-select__placeholder,
.mixed-purchase-page .el-select__selected-item,
.erp-dark-modal .el-input__inner,
.erp-dark-modal .el-range-input,
.erp-dark-modal .el-select__placeholder,
.erp-dark-modal .el-select__selected-item {
  color: #f8f9fa;
}

.mixed-purchase-page .el-range-separator,
.mixed-purchase-page .el-input__icon,
.mixed-purchase-page .el-select__caret,
.erp-dark-modal .el-range-separator,
.erp-dark-modal .el-input__icon,
.erp-dark-modal .el-select__caret {
  color: rgba(255, 235, 189, 0.76);
}

.mixed-purchase-page .el-input__inner::placeholder,
.mixed-purchase-page .el-range-input::placeholder,
.erp-dark-modal .el-input__inner::placeholder,
.erp-dark-modal .el-range-input::placeholder {
  color: rgba(255, 255, 255, 0.46);
}

.mixed-purchase-page .el-pagination {
  --el-pagination-bg-color: rgba(12, 18, 29, 0.92);
  --el-pagination-text-color: #f6ddb0;
  --el-pagination-button-color: #f6ddb0;
  --el-pagination-button-bg-color: rgba(12, 18, 29, 0.92);
  --el-pagination-button-disabled-bg-color: rgba(26, 34, 47, 0.7);
  --el-pagination-hover-color: #ffdc74;
}

.mixed-purchase-page .el-pagination .btn-next,
.mixed-purchase-page .el-pagination .btn-prev,
.mixed-purchase-page .el-pagination .el-pager li {
  border: 1px solid rgba(212, 175, 55, 0.36);
}

/* Slice 5: .procurement-lookup-* and .procurement-clear-btn migrated to pages/purchases-procurement-lookup.css */

/* Slice 5: .mixed-editor-layout / .mixed-picker-* / .mixed-related-supplier-* / .mixed-detail-table thead th migrated to pages/purchases-category-orders.css */
/* Slice 5: .mixed-detail-table-wrap KEPT here — see SLICE5_SESSION_HANDOFF_20260513.md (cascade conflict with existing page-local rule) */
.mixed-detail-table-wrap {
  max-height: 720px;
  overflow: auto;
}

.modal-xxl {
  max-width: 1680px;
}

.modal-xl {
  max-width: 1400px;
}

/* Slice 5: media @max1399 mixed-picker-list migrated to pages/purchases-category-orders.css; mixed-detail-table-wrap KEPT here */
@media (max-width: 1399.98px) {
  .mixed-detail-table-wrap {
    max-height: none;
  }
}

/* Slice 5: media @max991 mixed-purchase-page + mixed-picker-list migrated to pages/purchases-category-orders.css; erp-section-title-row KEPT */
@media (max-width: 991.98px) {
  .erp-section-title-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

.erp-support-mode-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 1.5rem 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 193, 7, 0.28);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.14), rgba(17, 24, 39, 0.88));
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.22);
}

.erp-support-mode-copy {
  min-width: 0;
}

.erp-support-mode-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 193, 7, 0.18);
  color: #facc15;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.erp-support-mode-title {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: #e5e7eb;
  font-size: 0.95rem;
}

.erp-support-mode-title strong {
  color: #fde68a;
}

.erp-support-mode-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 991.98px) {
  .erp-support-mode-banner {
    flex-direction: column;
    align-items: stretch;
    margin: 0 1rem 0.75rem;
  }

  .erp-support-mode-actions {
    width: 100%;
  }

  .erp-support-mode-actions .btn {
    flex: 1 1 12rem;
  }
}

#ConfigManagementApp .page-head {
  margin-bottom: 1rem;
}

#ConfigManagementApp .admin-config-hero {
  border-color: rgba(240, 195, 110, 0.34);
  background: rgba(11, 14, 20, 0.92);
}

#ConfigManagementApp .admin-config-hero-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
}

#ConfigManagementApp .admin-config-hero-body {
  display: grid;
  gap: 0.95rem;
  padding-top: 0.95rem;
}

#ConfigManagementApp .admin-config-filter-grid {
  margin-bottom: 0;
}

#ConfigManagementApp .admin-config-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

#ConfigManagementApp .admin-config-command-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

#ConfigManagementApp .admin-config-command-card {
  display: grid;
  gap: 0.3rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(240, 195, 110, 0.18);
  border-radius: 12px;
  background: rgba(16, 20, 28, 0.76);
}

#ConfigManagementApp .admin-config-command-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-ink-soft);
}

#ConfigManagementApp .admin-config-command-card strong {
  color: #fff1ca;
  font-size: 1rem;
}

#ConfigManagementApp .admin-tenant-scope-chip-list,
#ConfigManagementApp .admin-tenant-metric-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

#ConfigManagementApp .admin-tenant-stat-chips,
#ConfigManagementApp .admin-tenant-support-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

#ConfigManagementApp .admin-tenant-stat-chip,
#ConfigManagementApp .admin-tenant-support-chip {
  display: grid;
  gap: 0.18rem;
  min-width: 112px;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(240, 195, 110, 0.16);
  border-radius: 12px;
  background: rgba(12, 16, 24, 0.9);
}

#ConfigManagementApp .admin-tenant-stat-chip strong,
#ConfigManagementApp .admin-tenant-support-chip strong {
  color: #fff1ca;
  font-size: 0.96rem;
  line-height: 1.15;
}

#ConfigManagementApp .admin-tenant-stat-label,
#ConfigManagementApp .admin-tenant-support-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #cdbf9e;
}

#ConfigManagementApp .admin-tenant-stat-chip.is-success,
#ConfigManagementApp .admin-tenant-support-chip.is-success {
  border-color: rgba(54, 205, 131, 0.34);
  background: linear-gradient(180deg, rgba(18, 40, 29, 0.92), rgba(10, 18, 16, 0.92));
}

#ConfigManagementApp .admin-tenant-stat-chip.is-warning,
#ConfigManagementApp .admin-tenant-support-chip.is-warning {
  border-color: rgba(240, 195, 110, 0.38);
  background: linear-gradient(180deg, rgba(52, 36, 14, 0.92), rgba(20, 14, 9, 0.92));
}

#ConfigManagementApp .admin-tenant-stat-chip.is-neutral,
#ConfigManagementApp .admin-tenant-support-chip.is-neutral {
  border-color: rgba(240, 195, 110, 0.16);
}

#ConfigManagementApp .admin-tenant-support-note {
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(240, 195, 110, 0.12);
  border-radius: 12px;
  background: rgba(10, 13, 18, 0.62);
  color: var(--cyber-text-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

#ConfigManagementApp .admin-tenant-governance-pane .card-body {
  display: grid;
  gap: 1rem;
}

#ConfigManagementApp .admin-tenant-governance-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

#ConfigManagementApp .admin-tenant-governance-main {
  display: grid;
  gap: 1rem;
}

#ConfigManagementApp .admin-tenant-governance-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.85rem;
}

#ConfigManagementApp .admin-tenant-summary-card {
  display: grid;
  gap: 0.45rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(240, 195, 110, 0.18);
  border-radius: 14px;
  background: rgba(16, 20, 28, 0.82);
}

#ConfigManagementApp .admin-tenant-summary-card strong {
  color: #fff1ca;
  font-size: 1.02rem;
}

#ConfigManagementApp .admin-tenant-target-card {
  border: 1px solid rgba(240, 195, 110, 0.16);
  border-radius: 14px;
  background: rgba(12, 16, 24, 0.9);
}

#ConfigManagementApp .admin-tenant-target-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

#ConfigManagementApp .admin-tenant-scope-list {
  display: grid;
  gap: 0.7rem;
}

#ConfigManagementApp .admin-tenant-scope-list strong {
  color: #fff1ca;
  display: block;
  margin-bottom: 0.15rem;
}

#ConfigManagementApp .admin-tenant-state-model-card,
#ConfigManagementApp .admin-tenant-secondary-card {
  border: 1px solid rgba(240, 195, 110, 0.18);
  border-radius: 14px;
  background: rgba(16, 20, 28, 0.82);
}

#ConfigManagementApp .admin-tenant-state-model-card {
  display: grid;
  gap: 0.95rem;
  padding: 1rem;
}

#ConfigManagementApp .admin-tenant-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

#ConfigManagementApp .admin-tenant-section-head strong {
  display: block;
  color: #fff1ca;
  font-size: 1rem;
}

#ConfigManagementApp .admin-tenant-state-model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
}

#ConfigManagementApp .admin-tenant-state-step {
  display: grid;
  gap: 0.35rem;
  min-height: 100%;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(240, 195, 110, 0.14);
  border-radius: 12px;
  background: rgba(10, 13, 18, 0.56);
}

#ConfigManagementApp .admin-tenant-state-step strong {
  color: #fff1ca;
  font-size: 0.95rem;
}

#ConfigManagementApp .admin-tenant-secondary-zone {
  display: grid;
  gap: 0.85rem;
}

#ConfigManagementApp .admin-tenant-secondary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

#ConfigManagementApp .admin-tenant-secondary-head strong {
  display: block;
  color: #fff1ca;
  font-size: 0.98rem;
}

#ConfigManagementApp .admin-tenant-secondary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

#ConfigManagementApp .admin-platform-domain-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr);
  gap: 0.9rem;
}

#ConfigManagementApp .admin-platform-domain-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

#ConfigManagementApp .admin-platform-domain-card {
  display: grid;
  gap: 0.3rem;
  text-align: left;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(240, 195, 110, 0.16);
  border-radius: 14px;
  background: rgba(16, 20, 28, 0.76);
  color: inherit;
}

#ConfigManagementApp .admin-platform-domain-card strong {
  color: #fff1ca;
  font-size: 0.98rem;
}

#ConfigManagementApp .admin-platform-domain-card.is-active {
  border-color: rgba(255, 208, 120, 0.38);
  background: rgba(255, 190, 90, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 208, 120, 0.16);
}

#ConfigManagementApp .admin-platform-domain-focus {
  display: grid;
  gap: 0.45rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(240, 195, 110, 0.18);
  border-radius: 14px;
  background: rgba(16, 20, 28, 0.82);
}

#ConfigManagementApp .admin-platform-domain-focus strong {
  color: #fff1ca;
  font-size: 1.05rem;
}

#ConfigManagementApp .admin-platform-domain-note {
  margin-top: 0.25rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(240, 195, 110, 0.12);
  color: rgba(255, 236, 205, 0.76);
  font-size: 0.88rem;
}

#ConfigManagementApp .admin-platform-secondary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(240, 195, 110, 0.14);
  border-radius: 18px;
  background: rgba(11, 15, 22, 0.76);
}

#ConfigManagementApp .admin-platform-numbering-strip {
  display: grid;
  gap: 0.8rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(240, 195, 110, 0.18);
  border-radius: 14px;
  background: rgba(16, 20, 28, 0.72);
}

#ConfigManagementApp .admin-platform-numbering-strip-head {
  display: grid;
  gap: 0.2rem;
}

#ConfigManagementApp .admin-platform-numbering-strip-head strong,
#ConfigManagementApp .admin-platform-numbering-editor-head strong {
  color: #fff1ca;
  font-size: 1rem;
}

#ConfigManagementApp .admin-platform-doc-registry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem;
}

#ConfigManagementApp .admin-platform-doc-tile {
  display: grid;
  gap: 0.15rem;
  text-align: left;
  padding: 0.75rem 0.85rem;
  color: inherit;
}

#ConfigManagementApp .admin-platform-doc-tile strong {
  color: #fff1ca;
}

#ConfigManagementApp .admin-platform-doc-tile span {
  color: rgba(255, 238, 210, 0.9);
  font-size: 0.9rem;
}

#ConfigManagementApp .admin-platform-doc-tile small {
  color: rgba(255, 236, 205, 0.68);
}

#ConfigManagementApp .admin-platform-doc-tile.is-active {
  border-color: rgba(255, 208, 120, 0.38);
  background: rgba(255, 190, 90, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 208, 120, 0.16);
}

#ConfigManagementApp .admin-platform-numbering-editor-head {
  display: grid;
  gap: 0.25rem;
}

#ConfigManagementApp .admin-config-panel-group {
  gap: 0.55rem;
}

#ConfigManagementApp .admin-config-fold {
  border: 1px solid rgba(240, 195, 110, 0.28);
  border-radius: 16px;
  background: rgba(10, 12, 18, 0.92);
  overflow: hidden;
}

#ConfigManagementApp .admin-config-fold-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  list-style: none;
  color: #ffe3a5;
  font-weight: 700;
}

#ConfigManagementApp .admin-config-fold-summary::-webkit-details-marker {
  display: none;
}

#ConfigManagementApp .admin-config-fold-summary::after {
  content: none;
}

#ConfigManagementApp .admin-config-fold-body {
  padding: 0 1.15rem 1.15rem;
  border-top: 1px solid rgba(240, 195, 110, 0.14);
}

#ConfigManagementApp .admin-tenant-secondary-card .card-body {
  display: grid;
  gap: 0.85rem;
}

#ConfigManagementApp .admin-tenant-reminder-row {
  display: grid;
  gap: 0.45rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(240, 195, 110, 0.14);
  border-radius: 12px;
  background: rgba(11, 15, 22, 0.78);
}

#ConfigManagementApp .admin-tenant-reminder-row.is-warning {
  border-color: rgba(240, 195, 110, 0.3);
  background: linear-gradient(180deg, rgba(48, 33, 13, 0.9), rgba(14, 12, 10, 0.88));
}

#ConfigManagementApp .admin-tenant-reminder-row.is-info {
  border-color: rgba(89, 166, 255, 0.24);
  background: linear-gradient(180deg, rgba(17, 28, 45, 0.9), rgba(11, 15, 22, 0.86));
}

#ConfigManagementApp .admin-tenant-reminder-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  font-size: 0.72rem;
}

@media (max-width: 1199.98px) {
  #ConfigManagementApp .admin-platform-domain-layout,
  #ConfigManagementApp .admin-tenant-governance-layout,
  #ConfigManagementApp .admin-config-command-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  #ConfigManagementApp .admin-config-hero-header,
  #ConfigManagementApp .admin-config-fold-summary,
  #ConfigManagementApp .admin-tenant-section-head,
  #ConfigManagementApp .admin-tenant-secondary-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Slice 3 Phase 3b (2026-05-13): admin-governance-* family (33 selectors + media queries) 已遷至 design-system/a3-configuration.css */

/* Shared compatibility layer for newer workstation pages.
   Keep this additive until the project fully converges on one CSS contract. */

.erp-card {
  border-radius: var(--radius);
  border: 1px solid rgba(222, 185, 104, 0.3);
  box-shadow: var(--dark-shadow);
  background: linear-gradient(160deg, rgba(40, 30, 18, 0.98), rgba(26, 20, 12, 0.96));
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
}

.erp-card-header {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(222, 185, 104, 0.4);
  background: linear-gradient(180deg, rgba(32, 24, 16, 0.98), rgba(16, 12, 10, 0.98));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.erp-card-header h5,
.erp-card-header h6 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  color: var(--dark-ink);
}

.erp-card-body {
  padding: 1rem 1.25rem 1.25rem;
  flex: 1 1 auto;
  min-width: 0;
}

.erp-auto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

/* Slice 1c-帠 Batch 5 (2026-05-13): erp-layout-split 撌脤??02-shell.css */

@media (max-width: 767.98px) {
  .erp-auto-grid {
    grid-template-columns: 1fr;
  }

  .erp-card-header {
    align-items: flex-start;
  }

  .erp-card-header .btn,
  .erp-card-header .el-button {
    width: 100%;
  }
}

/* Tenant login blackgold visual refresh */
/* Slice 1 Phase 1c-帢 (2026-05-13): auth-* Section B + responsive migrated to pages/auth-shell.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

/* Slice 9 (2026-05-13): pure .notification-* / .home-* rule migrated to pages/notifications-index.css or home-shared.css */

@media (max-width: 992px) {
  .notification-command-card__body,
  .notification-command-card__metrics {
    grid-template-columns: 1fr;
  }

  .notification-command-metric {
    min-height: 7.2rem;
  }

  .notification-command-card__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .notification-filter-card__header,
  .notification-filter-card__followup {
    align-items: flex-start;
    flex-direction: column;
  }

  .notification-command-card__footer .erp-action-group {
    justify-content: flex-start;
  }

  .notification-filter-card__followup .erp-action-group {
    justify-content: flex-start;
  }

  .notification-overview-card .receipt-context-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .notification-overview-card .receipt-context-grid {
    grid-template-columns: 1fr;
  }

  .notification-mobile-card__head,
  .notification-mobile-card__badges {
    flex-direction: column;
    align-items: flex-start;
  }

  .notification-mobile-card__facts,
  .notification-mobile-card__actions {
    grid-template-columns: 1fr;
  }
}

