:root {
  --brand-primary: #0b5cad;
  --brand-secondary: #2f80ed;
  --brand-accent: #7bb7ff;
  --brand-dark: #17324d;
  --surface: #ffffff;
  --surface-soft: #f5f8fc;
  --border-soft: #dce7f3;
  --text-main: #18324a;
  --text-muted: #66788a;
  --shadow-soft: 0 18px 48px rgba(23, 50, 77, 0.1);
}

html,
body {
  min-height: 100%;
}

.compliance-footer {
  width: 100%;
  padding: 1rem 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  color: #7a817d;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.5;
}

.compliance-footer a {
  color: inherit;
  text-underline-offset: 0.2em;
}

.compliance-footer a:hover,
.compliance-footer a:focus-visible {
  color: #2d6450;
}

.compliance-footer-divider {
  width: 1px;
  height: 0.8rem;
  background: rgba(82, 92, 86, 0.28);
}

.compliance-footer > span,
.compliance-footer > a {
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .compliance-footer {
    flex-direction: column;
    gap: 0.3rem;
    padding-block: 0.8rem 1rem;
  }

  .compliance-footer-divider {
    display: none;
  }
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  background: #f4f8fd;
  color: var(--text-main);
}

.container-fluid {
  max-width: 1480px;
}

.app-navbar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.flash-stack {
  position: fixed;
  top: 5.25rem;
  right: clamp(0.75rem, 2vw, 1.5rem);
  z-index: 1080;
  display: grid;
  gap: 0.75rem;
  width: min(420px, calc(100vw - 1.5rem));
  pointer-events: none;
}

.app-flash {
  margin: 0;
  border-radius: 8px;
  pointer-events: auto;
}

.alert-error {
  --bs-alert-color: var(--bs-danger-text-emphasis);
  --bs-alert-bg: var(--bs-danger-bg-subtle);
  --bs-alert-border-color: var(--bs-danger-border-subtle);
  --bs-alert-link-color: var(--bs-danger-text-emphasis);
}

.navbar-brand {
  min-width: 0;
}

.navbar-brand > span:last-child {
  min-width: 0;
}

.brand-badge,
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-primary);
  color: #fff;
  flex: 0 0 auto;
}

.brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  font-size: 1.35rem;
}

.brand-line-icon {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-panel,
.content-panel,
.stat-card,
.glass-card,
.login-panel,
.login-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.sidebar-panel {
  position: sticky;
  top: 92px;
}

.sidebar-link {
  border-radius: 8px;
  color: #355066;
  font-weight: 600;
  padding: 0.8rem 0.95rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-link-with-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-link-copy {
  min-width: 0;
}

.nav-alert-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  margin-left: auto;
  padding: 0 0.38rem;
  border-radius: 999px;
  background: #d92d20;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 16px rgba(217, 45, 32, 0.22);
}

.btn-with-alert-badge {
  position: relative;
  overflow: visible;
}

.action-alert-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -0.55rem;
  right: -0.55rem;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.36rem;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #d92d20;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 16px rgba(217, 45, 32, 0.22);
  pointer-events: none;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: #eaf3ff;
  color: var(--brand-primary);
}

.hero-banner {
  background: var(--brand-primary);
  color: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.hero-pattern {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(11, 92, 173, 0.98), rgba(47, 128, 237, 0.9)),
    #0b5cad;
}

.hero-pattern > :not(.greeting-line):not(.greeting-dot) {
  position: relative;
  z-index: 1;
}

.hero-pattern .row {
  width: 100%;
}

.hero-banner.menu-hero-card {
  min-height: 213px;
  --menu-hero-title-offset: 10.65px;
}

.hero-banner.menu-hero-card > .row {
  position: relative;
}

.hero-banner.menu-hero-card.menu-hero-card-large {
  --menu-hero-title-offset: 14.55px;
}

.hero-banner.menu-hero-card .menu-hero-title {
  transform: translateY(var(--menu-hero-title-offset));
}

.menu-hero-title {
  position: relative;
}

.menu-hero-badge {
  position: absolute;
  left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
  top: 0;
  z-index: 2;
  margin-bottom: 0 !important;
  transform: translateY(calc(-100% - 0.65rem));
  width: auto;
}

.soft-border {
  border: 1px solid var(--border-soft);
}

.avatar-circle,
.avatar-circle-sm {
  object-fit: cover;
  background: var(--brand-primary);
}

.avatar-circle {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.avatar-circle-sm {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

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

.table {
  min-width: 720px;
}

.code-text,
.code-input,
.credit-code {
  font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.96em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  letter-spacing: 0;
}

.table thead th {
  background: #eef5ff;
  color: #355066;
  border-bottom: 1px solid #d5e4f4;
}

.table-hover tbody tr:hover {
  background: rgba(11, 92, 173, 0.04);
}

.dropzone {
  border: 2px dashed #b9c8d8;
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 1.25rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.dropzone:hover {
  border-color: var(--brand-secondary);
  background: #eef6ff;
}

.cursor-pointer {
  cursor: pointer;
}

.badge-soft {
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
}

.status-badge {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 700;
  justify-content: center;
  line-height: 1;
  min-height: 1.45rem;
  padding: 0.22rem 0.56rem;
  white-space: nowrap;
}

.status-badge-success {
  background: #e4f7ec;
  border-color: #9edcb8;
  color: #17693c;
}

.status-badge-warning {
  background: #fff1c2;
  border-color: #edc451;
  color: #7a5200;
}

.status-badge-info {
  background: #e7f0ff;
  border-color: #adc6ff;
  color: #1d4f9f;
}

.status-badge-neutral {
  background: #f3f4f6;
  border-color: #d8dde6;
  color: #4b5563;
}

.status-badge-danger {
  background: #fde8e8;
  border-color: #f3aaaa;
  color: #9b1c1c;
}

.status-badge-dark {
  background: #e6e8ec;
  border-color: #bfc5d0;
  color: #1f2937;
}

.summary-icon {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.list-item-card {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
}

.glass-card[id^="procurement-"],
.quote-table tr[id^="quote-"] {
  scroll-margin-top: 96px;
}

.glass-card[id^="procurement-"] {
  min-width: 0;
  overflow: hidden;
}

.glass-card[id^="procurement-"] .table-responsive {
  max-width: 100%;
}

.procurement-list-stack {
  display: grid;
  gap: 0.85rem;
}

.procurement-list-switcher {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0.75rem;
}

.procurement-revision-history {
  background: var(--surface-soft);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  margin-top: 0.75rem;
  padding: 0.7rem 0.85rem;
}

.procurement-revision-history > summary {
  cursor: pointer;
  font-weight: 700;
}

.procurement-revision-history-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.7rem;
}

.procurement-revision-history-entry {
  border-top: 1px solid var(--border-soft);
  display: grid;
  gap: 0.2rem;
  padding-top: 0.65rem;
}

.procurement-revision-history-entry > div:first-child {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.procurement-revision-history-entry small {
  color: var(--text-muted);
}

.procurement-list-switcher-option {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-main);
  display: grid;
  gap: 0.75rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 0.95rem 1rem;
  text-align: left;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.procurement-list-switcher-option.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.procurement-list-switcher-icon {
  align-items: center;
  background: rgba(11, 92, 173, 0.1);
  border-radius: 8px;
  color: var(--brand-primary);
  display: inline-flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.procurement-list-switcher-option.active .procurement-list-switcher-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.procurement-list-switcher-copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.procurement-list-switcher-title {
  font-weight: 700;
}

.procurement-list-switcher-meta {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.procurement-list-switcher-option.active .procurement-list-switcher-meta {
  color: rgba(255, 255, 255, 0.78);
}

.procurement-list-switcher-count {
  font-size: 1.45rem;
  font-weight: 700;
}

.procurement-order-card {
  display: grid;
  gap: 0.8rem;
  padding: 0.9rem 1.25rem 1.1rem;
}

.procurement-order-card-header {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.procurement-order-heading {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.procurement-order-meta {
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.86rem;
  gap: 0.25rem 0.85rem;
}

.procurement-order-record-lines {
  display: grid;
  gap: 0.65rem;
}

.procurement-order-record-line {
  align-items: start;
  border-top: 1px solid rgba(220, 231, 243, 0.9);
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-top: 0.65rem;
}

.procurement-order-record-line:first-child {
  border-top: 0;
  padding-top: 0;
}

.procurement-order-record-main {
  min-width: 0;
}

.procurement-order-status-badge {
  justify-self: end;
  white-space: nowrap;
}

.procurement-product-row {
  align-items: center;
  color: var(--text-main);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.92rem;
  gap: 0.28rem 0.55rem;
  min-width: 0;
}

.procurement-product-name {
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}

.procurement-quantity {
  color: var(--text-muted);
  white-space: nowrap;
}

.procurement-summary-card {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 1.1rem 1.25rem;
}

.procurement-summary-main {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
}

.procurement-summary-title {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.procurement-title-button {
  background: transparent;
  border: 0;
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  padding: 0;
  text-align: left;
  width: auto;
}

.procurement-title-button:hover,
.procurement-title-button:focus {
  color: var(--brand-primary);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.procurement-summary-meta {
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.86rem;
  gap: 0.25rem 0.9rem;
}

.procurement-summary-meta span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.procurement-summary-facts {
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.88rem;
  gap: 0.4rem 1rem;
}

.procurement-summary-facts span {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
}

.procurement-summary-latest {
  align-items: center;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  gap: 0.35rem 0.65rem;
  min-width: 0;
}

.procurement-summary-actions {
  align-items: center;
  display: flex;
  justify-content: flex-end;
}

.procurement-detail-dialog {
  max-width: min(940px, calc(100vw - 2rem));
}

.procurement-detail-modal .modal-content {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(23, 50, 77, 0.18);
}

.procurement-detail-header {
  align-items: flex-start;
  background: #f7fbff;
  border-bottom: 1px solid var(--border-soft);
  gap: 1rem;
  padding: 0.95rem 1rem;
}

.procurement-detail-heading {
  min-width: 0;
}

.procurement-detail-header-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 0.75rem;
  margin-left: auto;
}

.procurement-detail-body {
  background: #fff;
  padding: 0.85rem 1rem 1rem;
}

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

.procurement-detail-stack {
  display: grid;
  gap: 0.7rem;
}

.procurement-detail-item {
  background: #f7fbff;
  border: 1px solid #d9e8f7;
  border-radius: 8px;
  display: grid;
  gap: 0.65rem;
  padding: 0.65rem;
}

.procurement-item-info-card,
.procurement-quotes-card {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 0.78rem;
}

.procurement-item-info-card {
  background: linear-gradient(180deg, #fbfdff 0%, #f6faff 100%);
}

.procurement-quotes-card {
  background: #f8fbff;
}

.procurement-order-record-line.is-cancelled,
.procurement-detail-item.is-cancelled {
  opacity: 0.72;
}

.procurement-detail-item-header {
  align-items: center;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.procurement-detail-item-title {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}

.procurement-item-primary-row {
  min-width: 0;
}

.procurement-item-number-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}

.procurement-conditions {
  color: var(--text-muted);
  display: grid;
  font-size: 0.84rem;
  gap: 0.3rem;
  min-width: 0;
}

.procurement-condition-row {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: 4.8rem minmax(0, 1fr);
  min-width: 0;
}

.procurement-condition-label {
  color: #5e7187;
  font-weight: 700;
  white-space: nowrap;
}

.procurement-condition-value {
  min-width: 0;
  overflow-wrap: anywhere;
}

.procurement-operator-panel {
  border-top: 1px dashed #d5e4f2;
  margin-top: 0.55rem;
  padding-top: 0.52rem;
}

.procurement-operator-title {
  color: #5e7187;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.procurement-operator-grid {
  display: grid;
  gap: 0.42rem 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.procurement-operator-cell {
  align-items: baseline;
  background: rgba(245, 249, 253, 0.72);
  border: 1px solid rgba(216, 229, 241, 0.9);
  border-radius: 8px;
  display: grid;
  gap: 0.35rem;
  grid-template-columns: 4.6rem minmax(0, 1fr);
  min-width: 0;
  padding: 0.42rem 0.55rem;
}

.procurement-operator-cell span {
  color: #60768c;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.procurement-operator-cell strong {
  color: #17324a;
  font-size: 0.82rem;
  font-weight: 850;
  min-width: 0;
  overflow-wrap: anywhere;
}

.procurement-quantity-edit-form {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  min-width: 13rem;
}

.procurement-item-actions {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  justify-content: center;
  justify-self: end;
}

.procurement-item-actions .btn {
  min-width: 7rem;
}

.procurement-quote-list {
  --procurement-quote-grid-template: minmax(11.5rem, 0.95fr) repeat(2, minmax(9.5rem, 1fr)) minmax(7rem, 7rem);

  display: grid;
  gap: 0.55rem;
}

.procurement-quote-header,
.procurement-quote-card {
  display: grid;
  grid-template-columns: var(--procurement-quote-grid-template);
}

.procurement-quote-header {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  gap: 0.65rem;
  padding: 0 0.7rem;
}

.procurement-quote-header > span:last-child {
  justify-self: center;
  text-align: center;
}

.procurement-quote-supplier-header,
.procurement-quote-round-heading {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  min-width: 0;
}

.procurement-quote-round-heading small {
  color: var(--brand-primary);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.procurement-quote-card {
  align-items: stretch;
  background: #fff;
  border: 1px solid #d9e8f7;
  border-radius: 8px;
  gap: 0.65rem;
  padding: 0.7rem;
}

.procurement-quote-supplier,
.procurement-quote-block,
.procurement-quote-actions {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
}

.procurement-quote-supplier {
  align-content: center;
  justify-items: start;
  min-height: 100%;
  text-align: left;
}

.procurement-quote-supplier-main {
  align-items: center;
  display: flex;
  gap: 0.55rem;
  min-width: 0;
}

.procurement-quote-supplier-main .fw-semibold {
  overflow-wrap: anywhere;
}

.procurement-quote-supplier-name {
  cursor: default;
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

label.procurement-quote-supplier-name {
  cursor: pointer;
}

.procurement-quote-supplier-name-anchor {
  display: block;
  min-width: 0;
  position: relative;
}

.procurement-second-round-inline-check {
  flex: 0 0 auto;
  margin: 0;
}

.procurement-second-round-check-spacer {
  flex: 0 0 auto;
  height: 1rem;
  margin: 0;
  width: 1rem;
}

.procurement-second-round-inline-feedback {
  background: #fff5f5;
  border-radius: 999px;
  bottom: calc(100% + 0.18rem);
  color: var(--bs-danger);
  font-size: 0.78rem;
  font-weight: 700;
  left: 0;
  line-height: 1;
  padding: 0.12rem 0.32rem;
  pointer-events: none;
  position: absolute;
  white-space: nowrap;
  z-index: 2;
}

.procurement-second-round-inline-feedback[hidden] {
  display: none;
}

.procurement-quote-price {
  color: var(--brand-primary);
  font-weight: 700;
}

.procurement-quote-block-centered {
  align-content: center;
}

.procurement-quote-sub,
.procurement-quote-remark {
  color: var(--text-muted);
  font-size: 0.83rem;
}

.procurement-quote-remark {
  overflow-wrap: anywhere;
}

.procurement-second-round-pending {
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.procurement-quote-actions {
  align-content: center;
  align-items: center;
  justify-items: end;
}

.procurement-quote-actions form {
  margin: 0;
}

.procurement-latest-price-card {
  align-items: center;
  background: linear-gradient(90deg, #fff7e6 0%, #fffdf7 100%);
  border: 1px solid #efcf8b;
  border-radius: 8px;
  box-shadow: inset 4px 0 0 #c47a1a;
  color: #60420f;
  cursor: default;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: var(--procurement-quote-grid-template);
  min-height: 48px;
  padding: 0.58rem 0.7rem;
}

.procurement-latest-price-card-empty {
  background: linear-gradient(90deg, #f8fafc 0%, #fff 100%);
  border-color: #cbd5e1;
  box-shadow: inset 4px 0 0 #94a3b8;
  color: #475569;
}

.procurement-latest-price-supplier,
.procurement-latest-price-block,
.procurement-latest-price-action {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.procurement-latest-price-supplier {
  color: #8a4f00;
  font-weight: 800;
  overflow-wrap: anywhere;
  text-align: left;
}

.procurement-latest-price-card-empty .procurement-latest-price-supplier {
  color: #475569;
}

.procurement-latest-price-source {
  color: #6b4a1f;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.procurement-latest-price-action {
  align-items: center;
  justify-items: end;
}

.procurement-latest-price-value {
  color: #9a3412;
  font-weight: 800;
  white-space: nowrap;
}

.procurement-latest-price-muted {
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 700;
}

.procurement-latest-price-badge {
  background: #fff3cd;
  border: 1px solid #f3c969;
  color: #8a5a16;
  font-weight: 800;
  white-space: nowrap;
}

.procurement-latest-price-card-empty .procurement-latest-price-badge {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

.procurement-second-round-check {
  align-items: center;
  color: var(--text-muted);
  display: flex;
  font-size: 0.84rem;
  gap: 0.35rem;
  margin: 0;
  white-space: nowrap;
}

.procurement-second-round-check .form-check-input {
  margin: 0;
}

.procurement-empty-quotes {
  align-items: center;
  background: #f4f8fd;
  border: 1px dashed var(--border-soft);
  border-radius: 8px;
  color: var(--text-muted);
  display: flex;
  gap: 0.45rem;
  padding: 0.75rem 0.9rem;
}

.procurement-decision-panel {
  background: #f7fbff;
  border: 1px dashed var(--border-soft);
  border-radius: 8px;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0.8rem 0.9rem;
}

.procurement-decision-panel-single {
  grid-template-columns: minmax(0, 1fr);
}

.procurement-decision-form {
  margin: 0;
  min-width: 0;
}

.procurement-decision-controls {
  align-items: center;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: minmax(0, 1fr) 7.35rem;
}

.procurement-decision-controls .form-select {
  width: 100%;
}

.procurement-decision-controls .select-menu {
  min-width: 0;
  width: 100%;
}

.procurement-decision-controls .btn {
  justify-self: end;
  min-width: 7.35rem;
}

.procurement-decision-form .btn:disabled {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 1;
}

.procurement-item-edit-dialog {
  max-width: min(760px, calc(100vw - 2rem));
}

.procurement-item-edit-layout {
  display: grid;
  grid-template-areas:
    "brand quantity"
    "category certification"
    "model settlement"
    "part empty"
    "remark remark";
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.procurement-item-edit-field {
  min-width: 0;
}

.procurement-item-edit-brand {
  grid-area: brand;
}

.procurement-item-edit-quantity {
  grid-area: quantity;
}

.procurement-item-edit-category {
  grid-area: category;
}

.procurement-item-edit-certification {
  grid-area: certification;
}

.procurement-item-edit-model {
  grid-area: model;
}

.procurement-item-edit-settlement {
  grid-area: settlement;
}

.procurement-item-edit-part-number {
  grid-area: part;
}

.procurement-item-edit-remark {
  grid-area: remark;
}

.procurement-item-edit-empty {
  grid-area: empty;
  min-height: 2.45rem;
}

.notification-contact-form {
  width: min(100%, 620px);
}

.second-round-panel {
  border: 1px dashed var(--border-soft);
  border-radius: 8px;
  background: #f7fbff;
  padding: 0.75rem;
}

.quote-table {
  min-width: 860px;
}

.quote-action-cell {
  text-align: center;
  vertical-align: middle;
}

.quote-action-cell form {
  align-items: center;
  display: flex;
  justify-content: center;
  margin: 0;
  min-height: 3rem;
}

.quote-action-cell .btn {
  white-space: nowrap;
}

.no-spinner {
  appearance: textfield;
  -moz-appearance: textfield;
}

.no-spinner::-webkit-inner-spin-button,
.no-spinner::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity-edit-form {
  align-items: center;
  gap: 0.7rem;
}

.quantity-edit-control {
  min-width: 8.5rem;
}

.restricted-procurement-card {
  background: #f1f4f8;
  border-color: #d9e1ea;
  box-shadow: none;
  color: #7b8794;
}

.restricted-procurement-card h5,
.restricted-procurement-card .text-secondary {
  color: #7b8794 !important;
}

.audit-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.audit-strip span {
  background: #f2f7fd;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
}

.employee-greeting-panel {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  padding: clamp(1.35rem, 3vw, 2rem);
  background:
    linear-gradient(135deg, rgba(11, 92, 173, 0.98), rgba(47, 128, 237, 0.9)),
    #0b5cad;
  color: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

@media (min-width: 1200px) {
  .employee-greeting-panel {
    padding-left: 3rem;
  }
}

.employee-greeting-panel .greeting-line,
.employee-greeting-panel .greeting-dot,
.hero-pattern .greeting-line,
.hero-pattern .greeting-dot {
  z-index: 0;
}

.employee-home-badge {
  display: inline-flex;
  width: auto;
}

.employee-greeting-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
}

.employee-greeting-copy {
  position: relative;
}

.employee-greeting-panel h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.55rem, 3vw, 2.65rem);
  line-height: 1.15;
}

.hero-pattern h1 {
  position: relative;
  z-index: 1;
}

.procurement-rule-card {
  position: relative;
  z-index: 1;
}

.welcome-avatar {
  position: relative;
  z-index: 1;
  width: clamp(72px, 9vw, 108px);
  height: clamp(72px, 9vw, 108px);
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(3, 33, 66, 0.18);
  overflow: hidden;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800;
}

.welcome-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.greeting-line,
.greeting-dot {
  position: absolute;
  pointer-events: none;
}

.greeting-line {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

.greeting-line::before,
.greeting-line::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.greeting-line::before {
  inset: 16px;
}

.greeting-line::after {
  width: 42%;
  height: 1px;
  left: 18%;
  top: 48%;
  border-width: 1px 0 0;
}

.greeting-line-a {
  width: 34%;
  height: 68%;
  right: 5%;
  top: 14%;
  transform: rotate(8deg);
}

.greeting-line-b {
  width: 18%;
  height: 44%;
  right: 27%;
  bottom: -8%;
  transform: rotate(-18deg);
}

.greeting-line-c {
  width: 22%;
  height: 54%;
  left: -8%;
  top: -12%;
  transform: rotate(16deg);
}

.greeting-dot {
  width: 78px;
  height: 78px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.greeting-dot::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.greeting-dot-a {
  right: 18%;
  top: 16%;
}

.greeting-dot-b {
  right: 8%;
  bottom: 12%;
  width: 44px;
  height: 44px;
}

.private-field {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.private-value {
  min-width: 4.5rem;
  word-break: break-all;
}

.private-toggle {
  --bs-btn-padding-x: 0.42rem;
  --bs-btn-padding-y: 0.2rem;
  border-radius: 8px;
  line-height: 1;
}

.admin-password-field .input-group {
  flex-wrap: nowrap;
}

.admin-password-field .form-control[readonly] {
  background: #fff;
  cursor: default;
}

.admin-password-field .btn {
  border-radius: 0 8px 8px 0;
}

.action-stack .btn {
  min-width: 92px;
}

.form-control,
.form-select {
  border-radius: 8px;
  border-color: #d3dfeb;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand-secondary);
  box-shadow: 0 0 0 0.2rem rgba(47, 128, 237, 0.16);
}

.category-menu,
.select-menu {
  position: relative;
}

.category-menu-toggle,
.select-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 38px;
  padding-right: 2.25rem;
  text-align: left;
  background-position: right 0.75rem center;
}

.category-menu-toggle [data-category-menu-label],
.select-menu-toggle [data-select-menu-label] {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-menu-toggle::after,
.select-menu-toggle::after {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
}

.category-group-menu,
.select-option-menu {
  min-width: 13rem;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.select-option-menu {
  max-height: 320px;
  overflow-y: auto;
}

.select-option-item,
.category-option-item {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.select-option-item.disabled,
.select-option-item:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.multi-select-check {
  opacity: 0;
}

.multi-select-option-item.active .multi-select-check {
  opacity: 1;
}

.menu-option-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-option-count {
  align-items: center;
  background: #eaf3ff;
  border: 1px solid #c7dcf2;
  border-radius: 999px;
  color: var(--brand-primary);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 700;
  height: 1.4rem;
  justify-content: center;
  min-width: 1.4rem;
  padding: 0 0.35rem;
}

.dropdown-item.binding-owned-option {
  background: #dff4e8;
  color: #0f5c31;
  font-weight: 700;
}

.dropdown-item.binding-owned-option:hover,
.dropdown-item.binding-owned-option:focus {
  background: #caedd9;
  color: #0b4a27;
}

.dropdown-item.binding-owned-option.active {
  background: #198754;
  color: #fff;
}

.supplier-product-picker .dropdown-item.active:not(.binding-owned-option) {
  background: #fff;
  color: var(--text-main);
}

.category-group-item {
  position: relative;
}

.category-group-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.category-submenu {
  top: -0.5rem;
  left: calc(100% - 0.15rem);
  min-width: 13rem;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.category-group-item:hover > .category-submenu,
.category-group-item:focus-within > .category-submenu,
.category-group-item.show-submenu > .category-submenu {
  display: block;
}

.supplier-filter-stack {
  display: grid;
  gap: 0.85rem;
}

.supplier-filter-dialog {
  max-width: min(640px, calc(100vw - 2rem));
}

.supplier-filter-modal,
.supplier-filter-modal .modal-body {
  overflow: visible;
}

.supplier-filter-modal .modal-header {
  padding: 1rem 1.15rem 0.85rem;
}

.supplier-filter-modal .modal-body {
  padding: 0.95rem 1.15rem;
}

.supplier-filter-modal .modal-footer {
  padding: 0.85rem 1.15rem 1rem;
}

.supplier-filter-panel {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 0.9rem;
  background: #fff;
}

.supplier-filter-header {
  align-items: flex-start !important;
}

.product-status-filter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.product-status-check {
  align-items: center;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  gap: 0.55rem;
  min-height: 38px;
  padding: 0.5rem 0.75rem;
  user-select: none;
}

.supplier-filter-dropdown {
  max-width: 390px;
}

.supplier-filter-dropdown .select-menu-toggle {
  min-height: 42px;
  padding: 0.55rem 2.4rem 0.55rem 0.82rem;
  line-height: 1.35;
}

.supplier-filter-dropdown .select-menu-toggle span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.supplier-filter-menu,
.supplier-filter-model-list {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding: 0.4rem;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.supplier-filter-dropdown > .dropdown-menu {
  width: 100%;
}

.supplier-filter-dropdown > .supplier-filter-menu-category {
  width: min(15rem, calc(100vw - 3rem));
}

.supplier-filter-menu-category {
  max-height: none;
  overflow: visible;
}

.supplier-filter-category-group {
  position: relative;
}

.supplier-filter-group-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 40px;
  padding: 0.55rem 0.7rem;
}

.supplier-filter-submenu {
  display: none;
  position: absolute;
  top: -0.5rem;
  left: calc(100% - 0.1rem);
  z-index: 1085;
  min-width: 13.5rem;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 0.4rem;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.supplier-filter-category-group:hover > .supplier-filter-submenu,
.supplier-filter-category-group:focus-within > .supplier-filter-submenu,
.supplier-filter-category-group.show-submenu > .supplier-filter-submenu {
  display: block;
}

.supplier-filter-option,
.supplier-filter-select-all {
  align-items: center;
  border-radius: 8px;
  display: flex;
  gap: 0.58rem;
  line-height: 1.35;
  min-height: 38px;
  padding: 0.5rem 0.65rem;
  white-space: normal;
}

.supplier-filter-option::before,
.supplier-filter-select-all::before {
  align-items: center;
  border: 1px solid #b7c6d8;
  border-radius: 5px;
  color: #fff;
  content: "";
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.78rem;
  height: 1rem;
  justify-content: center;
  width: 1rem;
}

.supplier-filter-option.active::before,
.supplier-filter-select-all.active::before {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  content: "✓";
}

.supplier-filter-option.active,
.supplier-filter-select-all.active {
  background: #eaf3ff;
  color: var(--brand-primary);
  font-weight: 600;
}

.btn-primary {
  --bs-btn-bg: var(--brand-primary);
  --bs-btn-border-color: var(--brand-primary);
  --bs-btn-hover-bg: #084f96;
  --bs-btn-hover-border-color: #084f96;
  --bs-btn-active-bg: #074681;
  --bs-btn-active-border-color: #074681;
}

.nav-pills .nav-link {
  border-radius: 8px;
}

.login-shell {
  min-height: calc(100vh - 6.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
}

.decor-line {
  position: absolute;
  display: block;
  border: 1px solid rgba(11, 92, 173, 0.16);
  border-radius: 8px;
  pointer-events: none;
}

.decor-line::before,
.decor-line::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(47, 128, 237, 0.1);
  border-radius: 8px;
}

.decor-line::before {
  inset: 14px;
}

.decor-line::after {
  width: 42%;
  height: 1px;
  left: 20%;
  top: 34%;
  border-width: 1px 0 0;
}

.decor-line-a {
  width: 30vw;
  height: 40vh;
  left: 4vw;
  top: 10vh;
  transform: rotate(-8deg);
}

.decor-line-b {
  width: 26vw;
  height: 30vh;
  right: 6vw;
  bottom: 12vh;
  transform: rotate(10deg);
}

.decor-line-c {
  width: 14vw;
  height: 14vw;
  right: 18vw;
  top: 13vh;
  transform: rotate(45deg);
  border-color: rgba(47, 128, 237, 0.14);
}

.decor-line-d {
  width: 18vw;
  height: 11vh;
  left: 17vw;
  bottom: 10vh;
  transform: rotate(4deg);
  border-color: rgba(11, 92, 173, 0.12);
}

.decor-line-e {
  width: 12vw;
  height: 18vh;
  right: 24vw;
  top: 8vh;
  transform: rotate(-14deg);
  border-color: rgba(11, 92, 173, 0.1);
}

.decor-line-f {
  width: 20vw;
  height: 22vh;
  left: 1vw;
  bottom: 22vh;
  transform: rotate(13deg);
  border-color: rgba(47, 128, 237, 0.1);
}

.decor-line-g {
  width: 18vw;
  height: 24vh;
  right: 2vw;
  top: 28vh;
  transform: rotate(-9deg);
  border-color: rgba(47, 128, 237, 0.11);
}

.decor-line-h {
  width: 9vw;
  height: 9vw;
  left: 29vw;
  top: 18vh;
  transform: rotate(45deg);
  border-color: rgba(11, 92, 173, 0.09);
}

.work-label {
  position: absolute;
  width: 142px;
  height: 34px;
  border: 1px solid rgba(11, 92, 173, 0.16);
  border-radius: 8px;
  color: rgba(11, 92, 173, 0.34);
  font-size: 0.88rem;
  font-weight: 700;
  pointer-events: none;
}

.work-label::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 46px;
  top: 50%;
  border-top: 1px solid rgba(47, 128, 237, 0.18);
}

.work-label::after {
  content: attr(data-label);
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
}

.work-label-a {
  left: 10vw;
  top: 22vh;
}

.work-label-b {
  left: 16vw;
  top: 34vh;
}

.work-label-c {
  left: 8vw;
  bottom: 16vh;
}

.work-label-d {
  right: 12vw;
  top: 20vh;
}

.work-label-e {
  right: 7vw;
  top: 40vh;
}

.work-label-f {
  right: 16vw;
  bottom: 18vh;
}

.work-label-g {
  left: 28vw;
  bottom: 9vh;
}

.login-panel-wrap {
  width: min(100%, 440px);
  position: relative;
  z-index: 1;
}

.login-panel {
  width: min(100%, 440px);
  padding: 2.25rem;
  justify-self: center;
}

.login-local-alerts {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 0.75rem);
  z-index: 2;
}

.login-local-alerts .alert {
  border-radius: 8px;
  border: 1px solid rgba(220, 53, 69, 0.2);
  padding: 0.72rem 0.9rem;
  text-align: center;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.login-brand-text {
  min-width: 0;
}

.login-brand h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.35;
  font-weight: 700;
}

.login-company-name {
  white-space: nowrap;
}

.system-chip {
  color: var(--brand-primary);
  font-weight: 700;
}

.login-form {
  display: grid;
  gap: 1rem;
}

.login-form .form-label {
  font-weight: 700;
  color: var(--brand-dark);
}

.login-submit {
  width: 100%;
  border-radius: 8px;
  margin-top: 0.35rem;
  padding: 0.85rem 1rem;
}

.password-field {
  position: relative;
}

.password-field .form-control.has-caps-lock-warning {
  padding-right: 8.5rem;
}

.caps-lock-warning {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  color: #9aaec3;
  font-size: 0.88rem;
  font-weight: 500;
  pointer-events: none;
  white-space: nowrap;
}

.muted-panel {
  background: #eef5ff;
  border-radius: 8px;
}

.permission-group-box {
  background: #f7fbff;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
}

.permission-department-picker {
  background: #fbfdff;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 1rem;
}

.permission-department-heading {
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 0.75rem;
}

.permission-section-divider {
  align-items: center;
  color: #7b8da0;
  display: flex;
  gap: 0.6rem;
  margin-top: 0.35rem;
}

.permission-section-divider::after {
  background: #dce7f3;
  content: "";
  flex: 1;
  height: 1px;
}

.permission-section-label {
  color: #7b8da0;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.permission-check-row {
  align-items: flex-start;
  display: flex;
  gap: 0.45rem;
  min-height: 1.4rem;
  padding-left: 0;
}

.permission-check-row .form-check-input,
.permission-check-row .form-check-label {
  cursor: pointer;
}

.permission-check-row .form-check-input {
  flex: 0 0 auto;
  float: none;
  margin-left: 0;
  margin-top: 0.2rem;
}

.permission-check-row .form-check-label {
  display: inline;
  line-height: 1.45;
}

.permission-check-row-disabled {
  color: #9aa8b8;
}

.permission-check-row-disabled .form-check-input,
.permission-check-row-disabled .form-check-label {
  cursor: not-allowed;
}

.status-count-card,
.employee-summary-card,
.profile-side-panel {
  display: block;
  background: #f7fbff;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
}

.employee-summary-card {
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.employee-summary-card:hover {
  border-color: var(--brand-secondary);
  box-shadow: 0 12px 28px rgba(23, 50, 77, 0.1);
  transform: translateY(-1px);
}

.employee-search-field {
  width: min(100%, 320px);
}

.employee-filter-modal .form-label {
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
}

.employee-filter-count {
  white-space: nowrap;
}

.employee-select-stack,
.employee-range-stack {
  display: grid;
  gap: 0.85rem;
}

.employee-select-stack {
  align-content: start;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.employee-select-filter {
  width: 100%;
}

.employee-select-filter .form-select {
  width: 100%;
}

.employee-range-stack {
  justify-items: start;
  grid-template-columns: 1fr;
}

.employee-filter-open {
  flex: 0 0 auto;
}

.employee-hero-tools {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-left: auto;
  max-width: 320px;
}

.employee-hero-tools .form-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
}

.employee-hero-tools .form-control {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.65);
}

.employee-hero-tools .employee-search-field,
.employee-hero-tools .employee-filter-open {
  width: 100%;
}

.employee-range-filter {
  --range-start: 0%;
  --range-end: 100%;
  background: #f7fbff;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  max-width: 360px;
  min-width: 100%;
  padding: 0.8rem 0.9rem 0.95rem;
  width: min(100%, 360px);
}

.employee-range-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.employee-range-value {
  color: var(--brand-primary);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

.employee-dual-range {
  height: 28px;
  position: relative;
}

.employee-dual-range::before,
.employee-dual-range::after {
  content: "";
  position: absolute;
  top: 13px;
  height: 4px;
  border-radius: 999px;
}

.employee-dual-range::before {
  background: #d8e6f5;
  left: 0;
  right: 0;
}

.employee-dual-range::after {
  background: var(--brand-primary);
  left: var(--range-start);
  right: calc(100% - var(--range-end));
}

.employee-dual-range input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  height: 28px;
  left: 0;
  margin: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 2;
}

.employee-dual-range input[type="range"]::-webkit-slider-runnable-track {
  background: transparent;
  border: 0;
  height: 4px;
}

.employee-dual-range input[type="range"]::-moz-range-track {
  background: transparent;
  border: 0;
  height: 4px;
}

.employee-dual-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  background: #ffffff;
  border: 3px solid var(--brand-primary);
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(11, 92, 173, 0.2);
  cursor: pointer;
  height: 20px;
  pointer-events: auto;
  width: 20px;
  margin-top: -8px;
}

.employee-dual-range input[type="range"]::-moz-range-thumb {
  background: #ffffff;
  border: 3px solid var(--brand-primary);
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(11, 92, 173, 0.2);
  cursor: pointer;
  height: 16px;
  pointer-events: auto;
  width: 16px;
}

.employee-table {
  min-width: 900px;
}

.supplier-table {
  min-width: 920px;
}

.product-table {
  min-width: 1120px;
}

.product-form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-create-form-grid {
  gap: 0.8rem;
  grid-template-columns: minmax(7.5rem, 0.85fr) minmax(9rem, 1fr) minmax(10rem, 1.15fr) minmax(4.75rem, 0.45fr);
}

.product-create-confirm-list {
  display: grid;
  gap: 0.55rem;
}

.product-create-confirm-row {
  align-items: center;
  background: #f7fbff;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  padding: 0.68rem 0.75rem;
}

.product-create-confirm-row span {
  color: #61758a;
  font-weight: 600;
}

.product-create-confirm-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-structure-dialog {
  max-width: min(860px, calc(100vw - 2rem));
  width: min(860px, calc(100vw - 2rem));
}

.product-structure-page {
  display: grid;
  gap: 1rem;
}

.product-structure-manager {
  display: grid;
  gap: 1rem;
}

.product-taxonomy-board {
  align-items: start;
  display: grid;
  gap: 0.95rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-taxonomy-column {
  align-content: start;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #dce8f3;
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(24, 58, 89, 0.06);
  display: grid;
  gap: 0.72rem;
  min-height: min(62vh, 680px);
  min-width: 0;
  padding: 0.9rem;
  transition: background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.product-taxonomy-column.is-disabled {
  background: #f4f7fa;
  border-color: #d8e1ea;
  box-shadow: none;
}

.product-taxonomy-column-head {
  align-items: center;
  border-bottom: 1px solid #e6eef6;
  display: flex;
  justify-content: space-between;
  min-height: 2.55rem;
  padding-bottom: 0.58rem;
}

.product-taxonomy-column-head h2 {
  align-items: center;
  color: #183a59;
  display: flex;
  font-size: 0.98rem;
  font-weight: 800;
  gap: 0.42rem;
  line-height: 1.2;
  margin: 0;
}

.product-taxonomy-kicker {
  color: #7b8ea2;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.12rem;
}

.product-taxonomy-add {
  border: 1px dashed #bdd2e7;
  border-radius: 8px;
  overflow: hidden;
}

.product-taxonomy-add summary {
  align-items: center;
  background: rgba(239, 246, 255, 0.72);
  color: #315b80;
  cursor: pointer;
  display: flex;
  font-size: 0.88rem;
  font-weight: 700;
  justify-content: space-between;
  list-style: none;
  min-height: 38px;
  padding: 0.48rem 0.62rem;
}

.product-taxonomy-add summary::-webkit-details-marker,
.product-taxonomy-menu summary::-webkit-details-marker {
  display: none;
}

.product-taxonomy-add[open] summary {
  border-bottom: 1px solid #dbe9f6;
}

.product-taxonomy-add-plus {
  align-items: center;
  background: var(--brand-primary);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  height: 1.25rem;
  justify-content: center;
  line-height: 1;
  width: 1.25rem;
}

.product-taxonomy-create {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0.6rem;
}

.product-taxonomy-create > * {
  min-width: 0;
}

.product-taxonomy-create .btn {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  justify-content: center;
  min-height: 36px;
  padding: 0 0.85rem;
}

.product-taxonomy-column.is-disabled .product-taxonomy-add,
.product-taxonomy-column.is-disabled .product-taxonomy-panel {
  display: none;
}

.product-taxonomy-panel {
  display: none;
  gap: 0.72rem;
  min-width: 0;
}

.product-taxonomy-panel.active {
  display: grid;
}

.product-taxonomy-list {
  display: grid;
  gap: 0.46rem;
  min-width: 0;
}

.product-taxonomy-card {
  background: #ffffff;
  border: 1px solid #deebf5;
  border-radius: 8px;
  display: grid;
  gap: 0.4rem;
  min-width: 0;
  padding: 0.34rem;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.product-taxonomy-card:hover {
  border-color: #b8cde2;
}

.product-taxonomy-card.active {
  background: #f1f7ff;
  border-color: #8fbdf0;
  box-shadow: inset 3px 0 0 var(--brand-primary), 0 8px 18px rgba(22, 92, 170, 0.1);
}

.product-taxonomy-card.is-dragging {
  border-color: var(--brand-primary);
  box-shadow: 0 12px 24px rgba(23, 50, 77, 0.14);
  opacity: 0.72;
}

.product-taxonomy-card-main {
  align-items: center;
  display: grid;
  gap: 0.36rem;
  grid-template-columns: 24px minmax(0, 1fr) 32px;
  min-width: 0;
}

.product-taxonomy-drag,
.product-taxonomy-select,
.product-taxonomy-menu summary,
.product-taxonomy-menu-item {
  border: 0;
  min-width: 0;
}

.product-taxonomy-drag {
  align-items: center;
  background: transparent;
  border-radius: 6px;
  color: #91a4b7;
  cursor: grab;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  padding: 0;
}

.product-taxonomy-drag::before {
  background-image: radial-gradient(#8da2b5 1.2px, transparent 1.2px);
  background-size: 4px 6px;
  content: "";
  height: 18px;
  opacity: 0.75;
  width: 8px;
}

.product-taxonomy-select,
.product-taxonomy-static {
  align-items: center;
  background: transparent;
  color: #183a59;
  display: flex;
  gap: 0.4rem;
  font-weight: 800;
  justify-content: space-between;
  min-height: 34px;
  padding: 0.2rem 0.1rem;
  text-align: left;
}

.product-taxonomy-select {
  width: 100%;
}

.product-taxonomy-select:focus-visible,
.product-taxonomy-add summary:focus-visible,
.product-taxonomy-menu summary:focus-visible {
  outline: 2px solid rgba(11, 92, 173, 0.22);
  outline-offset: 2px;
}

.product-taxonomy-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-taxonomy-menu {
  position: relative;
}

.product-taxonomy-menu summary {
  align-items: center;
  border-radius: 7px;
  color: #6f8194;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 800;
  height: 32px;
  justify-content: center;
  line-height: 1;
  list-style: none;
  width: 32px;
}

.product-taxonomy-menu summary:hover,
.product-taxonomy-menu[open] summary {
  background: #eaf4ff;
  color: var(--brand-primary);
}

.product-taxonomy-menu-popover {
  background: #ffffff;
  border: 1px solid #d8e5f2;
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(24, 58, 89, 0.16);
  display: grid;
  gap: 0.15rem;
  min-width: 5.6rem;
  padding: 0.28rem;
  position: absolute;
  right: 0;
  top: calc(100% + 0.25rem);
  z-index: 15;
}

.product-taxonomy-menu-item {
  background: transparent;
  border-radius: 7px;
  color: #31506b;
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  min-height: 32px;
  padding: 0.35rem 0.58rem;
  text-align: left;
  width: 100%;
}

.product-taxonomy-menu-item:hover:not(:disabled) {
  background: #eef5ff;
  color: var(--brand-primary);
}

.product-taxonomy-menu-item.danger {
  color: #c33a3a;
}

.product-taxonomy-menu-item.danger:hover:not(:disabled) {
  background: #fff1f1;
  color: #a92525;
}

.product-taxonomy-menu-item:disabled {
  color: #aab7c4;
  cursor: not-allowed;
}

.product-taxonomy-edit {
  display: none;
  gap: 0.45rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0.18rem 0 0.12rem 30px;
}

.product-taxonomy-edit > * {
  min-width: 0;
}

.product-taxonomy-edit .btn {
  border-radius: 8px;
}

.product-taxonomy-card.is-editing .product-taxonomy-edit {
  display: grid;
}

.product-taxonomy-empty,
.product-taxonomy-placeholder {
  background: rgba(247, 251, 255, 0.72);
  border: 1px dashed #c9d8e8;
  border-radius: 8px;
  color: #6c7d8d;
  font-weight: 600;
  padding: 0.9rem;
  text-align: center;
}

.product-taxonomy-column.is-disabled .product-taxonomy-placeholder {
  background: transparent;
  border-color: #d3dde7;
  color: #8998a6;
}

.product-structure-page-header {
  align-items: center;
  display: flex;
  min-height: 1.8rem;
}

.product-structure-page-header > div:first-child {
  min-width: 0;
}

.product-structure-stats {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.product-structure-stats span {
  background: #eef5ff;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  color: #496174;
  font-size: 0.86rem;
  padding: 0.36rem 0.72rem;
  white-space: nowrap;
}

.product-structure-scroll {
  background: #f7fbff;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  max-height: min(68vh, 720px);
  overflow: auto;
  padding: 0.9rem;
}

.product-structure-modal .modal-body {
  background: #f7fbff;
  padding: 0.9rem;
}

.product-structure-modal,
.product-structure-modal .modal-header > div,
.product-structure-modal .modal-body {
  min-width: 0;
}

.product-structure-modal {
  overflow: hidden;
}

.product-structure-modal .modal-header {
  align-items: flex-start;
  gap: 0.75rem;
}

.product-structure-modal .modal-header > div {
  flex: 1 1 0;
  overflow: hidden;
}

.product-structure-modal .modal-header .small {
  overflow-wrap: anywhere;
  white-space: normal;
}

.product-structure-modal .btn-close {
  flex: 0 0 auto;
  margin-left: 0;
}

.product-structure-tabs {
  background: #eef5ff;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  display: grid;
  gap: 0.4rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0.35rem;
}

.product-structure-tabs .nav-item {
  min-width: 0;
}

.product-structure-tabs .nav-link {
  align-items: center;
  border-radius: 7px;
  color: #496174;
  display: flex;
  gap: 0.36rem;
  font-weight: 600;
  justify-content: center;
  min-height: 40px;
  width: 100%;
  white-space: nowrap;
}

.product-structure-tabs .nav-link.active {
  background: #ffffff;
  color: var(--brand-primary);
  box-shadow: 0 6px 16px rgba(23, 50, 77, 0.08);
}

.product-structure-tab-count {
  align-items: center;
  background: #dcecff;
  border-radius: 999px;
  color: var(--brand-primary);
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 800;
  height: 1.24rem;
  justify-content: center;
  min-width: 1.24rem;
  padding: 0 0.28rem;
}

.product-structure-tabs .nav-link.active .product-structure-tab-count {
  background: var(--brand-primary);
  color: #ffffff;
}

.product-structure-create-row,
.product-structure-row,
.product-structure-edit-form {
  align-items: end;
  display: grid;
  gap: 0.58rem;
}

.product-structure-create-row > *,
.product-structure-row > *,
.product-structure-edit-form > * {
  min-width: 0;
}

.product-structure-create-row {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0.75rem;
}

.product-structure-create-row-wide {
  grid-template-columns: minmax(10rem, 0.9fr) minmax(0, 1.1fr) auto;
}

.product-structure-list {
  display: grid;
  gap: 0.5rem;
}

.product-category-group-stack {
  display: grid;
  gap: 0.65rem;
}

.product-category-group-panel {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 0.68rem;
}

.product-category-group-heading {
  align-items: center;
  color: #183a59;
  display: flex;
  font-weight: 700;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.product-category-group-heading span:last-child {
  color: #6c7d8d;
  font-size: 0.82rem;
  font-weight: 500;
}

.product-structure-row {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 0.55rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.product-structure-row:hover {
  border-color: #b8cde2;
}

.product-structure-row.is-dragging {
  border-color: var(--brand-primary);
  box-shadow: 0 12px 24px rgba(23, 50, 77, 0.14);
  opacity: 0.72;
}

.product-structure-edit-form {
  grid-template-columns: minmax(0, 1fr) auto;
}

.product-structure-edit-form-wide {
  grid-template-columns: minmax(10rem, 0.9fr) minmax(0, 1.1fr) auto;
}

.product-drag-handle {
  align-items: center;
  background: #f7fbff;
  border: 1px solid #c9d8e8;
  border-radius: 8px;
  color: #58708a;
  cursor: grab;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.product-drag-handle:active {
  cursor: grabbing;
}

.product-structure-list.is-saving .product-drag-handle {
  opacity: 0.55;
}

.product-structure-list.is-save-error {
  outline: 2px solid rgba(220, 53, 69, 0.25);
  outline-offset: 2px;
}

.product-drag-handle i {
  pointer-events: none;
  user-select: none;
}

.product-delete-confirm-modal .modal-body {
  align-items: center;
  display: flex;
  gap: 0.85rem;
}

.product-delete-confirm-icon {
  align-items: center;
  background: #fff3cd;
  border-radius: 50%;
  color: #a46a00;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.25rem;
  height: 2.6rem;
  justify-content: center;
  width: 2.6rem;
}

.procurement-award-confirm-icon {
  align-items: center;
  background: #e9f8f0;
  border-radius: 50%;
  color: #0f7b42;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.28rem;
  height: 2.9rem;
  justify-content: center;
  width: 2.9rem;
}

.procurement-award-confirm-body {
  padding: 1.15rem 1.35rem 0.35rem;
}

.procurement-award-confirm-panel {
  align-items: flex-start;
  background: linear-gradient(135deg, #f3fbf7, #fff 72%);
  border: 1px solid #cfeede;
  border-radius: 8px;
  display: grid;
  gap: 0.95rem;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 1rem;
}

.procurement-award-confirm-copy {
  min-width: 0;
}

.procurement-award-confirm-eyebrow {
  color: #537167;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 0.38rem;
}

.procurement-award-confirm-main {
  color: #14324a;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.45;
}

.procurement-award-confirm-sub {
  color: #50677d;
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 0.34rem;
}

.procurement-award-confirm-note {
  border-top: 1px solid #dbece4;
  color: #607589;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.5;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
}

.procurement-award-confirm-footer {
  gap: 0.72rem;
  padding: 0.9rem 1.35rem 1.15rem;
}

.procurement-action-confirm-body {
  padding: 1.15rem 1.35rem 0.35rem;
}

.procurement-action-confirm-panel {
  align-items: flex-start;
  background: linear-gradient(135deg, #f4f8ff, #fff 72%);
  border: 1px solid #d6e5ff;
  border-radius: 8px;
  display: grid;
  gap: 0.95rem;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 1rem;
}

.procurement-action-confirm-panel.is-danger {
  background: linear-gradient(135deg, #fff5f5, #fff 72%);
  border-color: #f4c7cc;
}

.procurement-action-confirm-panel.is-warning {
  background: linear-gradient(135deg, #fff9eb, #fff 72%);
  border-color: #f0dfb7;
}

.procurement-action-confirm-panel.is-primary {
  background: linear-gradient(135deg, #f2f7ff, #fff 72%);
  border-color: #cfe0ff;
}

.procurement-action-confirm-icon {
  align-items: center;
  background: #eaf2ff;
  border-radius: 50%;
  color: #0d5dc2;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.28rem;
  height: 2.9rem;
  justify-content: center;
  width: 2.9rem;
}

.procurement-action-confirm-panel.is-danger .procurement-action-confirm-icon {
  background: #fff0f1;
  color: #b4232f;
}

.procurement-action-confirm-panel.is-warning .procurement-action-confirm-icon {
  background: #fff3cd;
  color: #9d6200;
}

.procurement-action-confirm-copy {
  min-width: 0;
}

.procurement-action-confirm-eyebrow {
  color: #537167;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 0.38rem;
}

.procurement-action-confirm-panel.is-danger .procurement-action-confirm-eyebrow {
  color: #8a4c52;
}

.procurement-action-confirm-panel.is-warning .procurement-action-confirm-eyebrow {
  color: #816131;
}

.procurement-action-confirm-main {
  color: #14324a;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.45;
}

.procurement-action-confirm-sub {
  color: #50677d;
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 0.34rem;
}

.procurement-action-confirm-note {
  border-top: 1px solid #dbe7f6;
  color: #607589;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.5;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
}

.procurement-action-confirm-panel.is-danger .procurement-action-confirm-note {
  border-top-color: #f1d4d8;
}

.procurement-action-confirm-panel.is-warning .procurement-action-confirm-note {
  border-top-color: #eadcb8;
}

.procurement-action-confirm-footer {
  gap: 0.72rem;
  padding: 0.9rem 1.35rem 1.15rem;
}

.procurement-confirm-reason {
  background: #f8fbff;
  border: 1px solid #d9e7f5;
  border-radius: 8px;
  display: grid;
  gap: 0.75rem;
  margin-top: 0.85rem;
  padding: 0.85rem;
}

.procurement-confirm-reason[hidden] {
  display: none;
}

.procurement-confirm-reason-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.procurement-confirm-reason-head span {
  color: #17324a;
  font-size: 0.88rem;
  font-weight: 850;
}

.procurement-confirm-reason-head small {
  color: #6a7c8f;
  font-size: 0.76rem;
  font-weight: 800;
}

.procurement-confirm-reason-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.procurement-confirm-reason-option {
  background: #fff;
  border: 1px solid #cfe0f0;
  border-radius: 999px;
  color: #35536d;
  font-size: 0.82rem;
  font-weight: 800;
  min-height: 34px;
  padding: 0.35rem 0.78rem;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.procurement-confirm-reason-option:hover:not(:disabled) {
  background: #eef6ff;
  border-color: #9cc8ff;
  color: #0d5dc2;
  transform: translateY(-1px);
}

.procurement-confirm-reason-option.active {
  background: #0d5dc2;
  border-color: #0d5dc2;
  color: #fff;
}

.procurement-confirm-reason-option.disabled,
.procurement-confirm-reason-option:disabled {
  background: #f1f4f7;
  border-color: #dce5ee;
  color: #9aa9b7;
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

.procurement-confirm-reason-detail {
  border-radius: 8px;
}

.procurement-inline-reason-detail {
  margin-top: 0.65rem;
}

.procurement-inline-reason-detail[hidden] {
  display: none;
}

.procurement-order-card-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.procurement-print-shell {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.procurement-print-toolbar {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  max-width: 1120px;
  width: 100%;
}

.procurement-print-page {
  background:
    linear-gradient(180deg, rgba(19, 107, 215, 0.055), rgba(255, 255, 255, 0) 220px),
    #fff;
  border: 1px solid #d7e3f0;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(13, 48, 80, 0.12);
  color: #17324a;
  max-width: 1120px;
  padding: 2rem;
  width: 100%;
}

.procurement-print-header {
  align-items: flex-start;
  border-bottom: 2px solid #17324a;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding-bottom: 1.25rem;
}

.procurement-print-company {
  color: #5a7084;
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.procurement-print-header h1 {
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0;
}

.procurement-print-number {
  color: #0d5dc2;
  font-size: 1.05rem;
  font-weight: 850;
  margin-top: 0.42rem;
}

.procurement-print-stamp {
  align-items: center;
  border: 2px solid #0f7b42;
  border-radius: 8px;
  color: #0f7b42;
  display: inline-flex;
  font-size: 1.05rem;
  font-weight: 900;
  justify-content: center;
  min-height: 62px;
  min-width: 118px;
  transform: rotate(-2deg);
}

.procurement-print-summary-stack {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.procurement-print-meta-grid,
.procurement-print-kpis {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.procurement-print-meta-grid > div,
.procurement-print-kpis > div {
  background: #f8fbff;
  border: 1px solid #dce8f4;
  border-radius: 8px;
  min-width: 0;
  padding: 0.75rem 0.85rem;
}

.procurement-print-meta-grid span,
.procurement-print-kpis span {
  color: #60768c;
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 0.32rem;
}

.procurement-print-meta-grid strong,
.procurement-print-kpis strong {
  color: #17324a;
  font-size: 0.96rem;
  font-weight: 850;
}

.procurement-print-kpis {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.procurement-print-meta-grid-print {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.procurement-print-kpis strong {
  color: #0d5dc2;
  font-size: 1.15rem;
}

.procurement-print-items {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}

.procurement-print-item {
  background: #fff;
  border: 1px solid #d8e5f1;
  border-radius: 8px;
  break-inside: avoid;
  overflow: hidden;
  padding: 1rem;
}

.procurement-print-item-info-card {
  background: #f5f9fd;
  border: 1px solid #d8e5f1;
  border-radius: 8px;
  padding: 1rem 1rem 0.95rem;
}

.procurement-print-item-info-card .code-text {
  font-family: inherit;
  font-feature-settings: inherit;
  font-variant-numeric: inherit;
}

.procurement-print-item-head {
  align-items: stretch;
  background: transparent;
  display: grid;
  gap: 0.55rem;
  padding: 0;
}

.procurement-print-item-label {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.procurement-print-item h2 {
  color: #17324a;
  font-size: 0.84rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.55;
  margin: 0;
}

.procurement-print-quantity {
  white-space: nowrap;
}

.procurement-print-item-meta {
  display: grid;
  gap: 0.38rem;
  margin-top: 0.75rem;
}

.procurement-print-info-row {
  align-items: baseline;
  display: grid;
  gap: 0.35rem;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  min-width: 0;
}

.procurement-print-info-row span {
  color: #60768c;
  font-size: 0.84rem;
  font-weight: 750;
  min-width: 0;
}

.procurement-print-info-row strong {
  color: #17324a;
  font-size: 0.84rem;
  font-weight: 850;
  min-width: 0;
  overflow-wrap: anywhere;
}

.procurement-print-operator-panel {
  border-top: 1px dashed #d5e4f2;
  margin-top: 0.68rem;
  padding-top: 0.62rem;
}

.procurement-print-operator-title {
  color: #60768c;
  font-size: 0.78rem;
  font-weight: 850;
  margin-bottom: 0.32rem;
}

.procurement-print-operator-grid {
  display: grid;
  gap: 0.42rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.procurement-print-operator-grid > div {
  align-items: baseline;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(216, 229, 241, 0.95);
  border-radius: 8px;
  display: grid;
  gap: 0.28rem;
  grid-template-columns: 4.8rem minmax(0, 1fr);
  min-width: 0;
  padding: 0.42rem 0.55rem;
}

.procurement-print-operator-grid span {
  color: #60768c;
  font-size: 0.76rem;
  font-weight: 850;
  white-space: nowrap;
}

.procurement-print-operator-grid strong {
  color: #17324a;
  font-size: 0.82rem;
  font-weight: 850;
  min-width: 0;
  overflow-wrap: anywhere;
}

.procurement-print-table-wrap {
  overflow-x: auto;
  padding-top: 0.9rem;
}

.procurement-print-quote-table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.84rem;
  table-layout: fixed;
  width: 100%;
}

.procurement-print-col-supplier {
  width: 34%;
}

.procurement-print-col-quote {
  width: 26%;
}

.procurement-print-col-result {
  width: 14%;
}

.procurement-print-quote-table th,
.procurement-print-quote-table td {
  border-bottom: 1px solid #dbe7f2;
  overflow-wrap: anywhere;
  padding: 0.68rem 0.72rem;
  vertical-align: top;
}

.procurement-print-quote-table th {
  background: #eef5fc;
  color: #4d657c;
  font-size: 0.78rem;
  font-weight: 900;
}

.procurement-print-quote-table th:first-child {
  border-top-left-radius: 8px;
}

.procurement-print-quote-table th:last-child {
  border-top-right-radius: 8px;
}

.procurement-print-quote-table td small {
  color: #5f7388;
  display: block;
  font-size: 0.78rem;
  font-weight: 650;
  margin-top: 0.18rem;
}

.procurement-print-quote-cell > span {
  color: #60768c;
  display: block;
  font-weight: 750;
  line-height: 1.55;
}

.procurement-print-quote-cell > span strong {
  color: #17324a;
  font-weight: 850;
}

.procurement-print-supplier-cell strong {
  display: block;
  line-height: 1.45;
}

.procurement-print-quote-table tr.is-winner td {
  background: #f2fbf6;
}

.procurement-print-result-pill {
  background: #eef2f6;
  border-radius: 999px;
  color: #52677b;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 850;
  padding: 0.25rem 0.62rem;
  white-space: nowrap;
}

.procurement-print-result-pill.is-awarded {
  background: #dff5e9;
  color: #0f7b42;
}

.procurement-print-result-pill.is-failed {
  background: #eef2f6;
  color: #43576b;
}

.procurement-print-result-card {
  background: #f8fbff;
  border: 1px solid #d8e5f1;
  border-radius: 8px;
  margin-top: 0.85rem;
  overflow: hidden;
}

.procurement-print-result-card.is-awarded {
  background: #f3fbf6;
  border-color: #cbeed9;
}

.procurement-print-result-card.is-failed {
  background: #f8fafc;
  border-color: #dce5ee;
}

.procurement-print-result-card.is-cancelled {
  background: #fff9f0;
  border-color: #ecdab9;
}

.procurement-print-result-head {
  align-items: center;
  border-bottom: 1px solid rgba(216, 229, 241, 0.9);
  display: flex;
  gap: 0.8rem;
  justify-content: space-between;
  padding: 0.75rem 0.85rem;
}

.procurement-print-result-head.is-inline-reason {
  gap: 0.22rem;
  justify-content: flex-start;
}

.procurement-print-result-head span {
  color: #60768c;
  font-size: 0.78rem;
  font-weight: 850;
}

.procurement-print-result-head strong {
  color: #17324a;
  font-size: 0.9rem;
  font-weight: 900;
  text-align: right;
}

.procurement-print-result-head.is-inline-reason strong {
  text-align: left;
}

.procurement-print-result-card.is-awarded .procurement-print-result-head strong {
  color: #0f7b42;
}

.procurement-print-result-card.is-cancelled .procurement-print-result-head strong {
  color: #9a5a00;
}

.procurement-print-award-line {
  border-bottom: 1px solid rgba(216, 229, 241, 0.9);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.procurement-print-award-line > div {
  align-items: baseline;
  display: flex;
  gap: 0.15rem;
  min-width: 0;
  padding: 0.68rem 0.85rem;
}

.procurement-print-award-line > div + div {
  border-left: 1px solid rgba(203, 238, 217, 0.95);
}

.procurement-print-award-line span {
  color: #60768c;
  flex: none;
  font-size: 0.78rem;
  font-weight: 850;
}

.procurement-print-award-line strong {
  color: #17324a;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.4;
  min-width: 0;
  overflow-wrap: anywhere;
}

.procurement-print-award-main strong {
  color: #0f7b42;
}

.procurement-print-award-compact {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.procurement-print-award-compact > div {
  box-sizing: border-box;
  min-width: 0;
  padding: 0.58rem 0.85rem 0.62rem;
}

.procurement-print-award-compact > div + div {
  border-left: 1px solid rgba(216, 229, 241, 0.9);
}

.procurement-print-award-compact span {
  color: #60768c;
  display: block;
  font-size: 0.74rem;
  font-weight: 850;
  margin-bottom: 0.16rem;
}

.procurement-print-award-compact strong {
  color: #17324a;
  display: block;
  font-size: 0.83rem;
  font-weight: 850;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.procurement-print-result-grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.procurement-print-result-grid > div {
  border-right: 1px solid rgba(216, 229, 241, 0.9);
  min-width: 0;
  padding: 0.72rem 0.85rem;
}

.procurement-print-result-grid > div:last-child {
  border-right: 0;
}

.procurement-print-result-grid span {
  color: #60768c;
  display: block;
  font-size: 0.76rem;
  font-weight: 850;
  margin-bottom: 0.25rem;
}

.procurement-print-result-grid strong {
  color: #17324a;
  display: block;
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.procurement-print-participants {
  background: #fff;
  border: 1px solid #d8e5f1;
  border-radius: 8px;
  display: grid;
  gap: 0.62rem;
  margin-top: 0.72rem;
  padding: 0.82rem 0.9rem;
}

.procurement-print-participants-title {
  color: #60768c;
  font-size: 0.78rem;
  font-weight: 900;
}

.procurement-print-participant-group {
  display: grid;
  gap: 0.38rem;
}

.procurement-print-participant-group > span {
  color: #6d8092;
  font-size: 0.76rem;
  font-weight: 850;
}

.procurement-print-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.procurement-print-supplier-chip {
  background: #eef3f8;
  border: 1px solid #dbe5ef;
  border-radius: 999px;
  color: #415a72;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
  padding: 0.28rem 0.62rem;
}

.procurement-print-no-quotes {
  color: #60768c;
  font-weight: 750;
  padding: 0.15rem 0;
}

.procurement-print-footer {
  border-top: 1px solid #d8e5f1;
  color: #6d8092;
  display: flex;
  font-size: 0.8rem;
  font-weight: 750;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 0.8rem;
}

.product-structure-row .btn,
.product-structure-create-row .btn {
  min-height: 38px;
  white-space: nowrap;
}

.product-structure-feedback {
  background: transparent;
  border: 0;
  font-size: 0.92rem;
  margin: -0.35rem 0 0.35rem;
  padding: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-status-switch {
  align-self: end;
  min-height: 38px;
  padding-top: 0.45rem;
}

.supplier-product-summary {
  align-content: start;
  background: #f7fbff;
  border: 1px dashed #b8cde2;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-height: 3.2rem;
  padding: 0.75rem;
}

.supplier-product-badge {
  font-weight: 500;
  max-width: 100%;
  overflow: hidden;
  padding: 0.5rem 0.65rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.supplier-product-range-menu .select-option-menu {
  min-width: 100%;
  width: 100%;
}

.supplier-product-option {
  min-height: 38px;
}

.supplier-product-picker .dropdown-item.supplier-product-option.active {
  background: #198754;
  color: #fff;
  font-weight: 700;
}

.supplier-product-picker .dropdown-item.supplier-product-option.active:hover,
.supplier-product-picker .dropdown-item.supplier-product-option.active:focus {
  background: #157347;
  color: #fff;
}

.supplier-product-option [data-supplier-product-option-check] {
  opacity: 0;
}

.supplier-product-option.active [data-supplier-product-option-check] {
  opacity: 1;
}

.supplier-product-empty-option {
  cursor: default;
}

.supplier-product-model-dialog {
  max-width: min(360px, calc(100vw - 1.5rem));
  width: min(360px, calc(100vw - 1.5rem));
}

.supplier-product-model-dialog .modal-content {
  width: 100%;
}

.supplier-product-model-dialog .modal-header {
  padding: 0.8rem 1rem 0.65rem;
}

.supplier-product-model-dialog .modal-body {
  overflow-x: visible;
  padding: 0;
}

.supplier-product-model-dialog .modal-footer {
  padding: 0.65rem 1rem 0.8rem;
}

.supplier-product-model-dialog .supplier-product-picker-table {
  min-width: 0;
  width: 100%;
}

.supplier-product-model-dialog .supplier-product-picker-table th:first-child,
.supplier-product-model-dialog .supplier-product-picker-table td:first-child {
  text-align: center;
  width: 44px;
}

.supplier-product-model-dialog .supplier-product-picker-table th,
.supplier-product-model-dialog .supplier-product-picker-table td {
  padding: 0.4rem 0.75rem;
  white-space: nowrap;
}

.supplier-product-picker-table [data-supplier-product-row] {
  cursor: pointer;
}

.supplier-product-picker-table [data-supplier-product-row].is-selected > * {
  background: #f0f8ff;
}

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

.tag-cloud .badge {
  margin: 0 0.25rem 0.35rem 0;
}

.quantity-value {
  display: inline-block;
  min-width: 2.5ch;
  text-align: center;
}

.procurement-row .product-unit-label,
.procurement-row .input-group-text {
  min-width: 3rem;
  justify-content: center;
}

.procurement-row .form-label {
  font-size: 0.88rem;
}

.procurement-items-stack {
  display: grid;
  gap: 0.85rem;
}

.procurement-row {
  border: 1px solid transparent;
  border-radius: 8px;
  margin-left: 0;
  margin-right: 0;
  padding: 1rem 1rem 1rem 4rem;
  position: relative;
}

.procurement-row.has-procurement-error {
  border-color: rgba(220, 53, 69, 0.5);
  box-shadow: 0 10px 30px rgba(220, 53, 69, 0.08);
}

.procurement-row:nth-of-type(odd) {
  background: #fff;
}

.procurement-row:nth-of-type(even) {
  background: #f3f8ff;
  border-color: #d8e8f8;
}

.procurement-row-index {
  align-items: center;
  background: linear-gradient(135deg, #1565c0, #2f80ed);
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(21, 101, 192, 0.22);
  color: #fff;
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  height: 2.25rem;
  justify-content: center;
  left: 1rem;
  line-height: 1;
  position: absolute;
  top: 1rem;
  width: 2.25rem;
}

.procurement-action-bar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
}

.procurement-feedback-stack {
  display: grid;
  gap: 0.2rem;
  min-height: 2.85rem;
}

.procurement-validation-feedback {
  color: #c92a2a;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.35rem;
}

.xlsx-import-feedback {
  color: var(--text-muted);
  font-size: 0.86rem;
  min-height: 1.35rem;
}

.xlsx-import-guide-modal {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(23, 50, 77, 0.18);
}

.xlsx-import-guide-modal .modal-body {
  max-height: min(68vh, 680px);
  overflow-y: auto;
}

.xlsx-import-guide-note {
  background: #f5f8fc;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  line-height: 1.7;
  padding: 0.78rem 0.9rem;
}

.xlsx-import-guide-list {
  counter-reset: xlsx-step;
  display: grid;
  gap: 0.75rem;
  list-style: none;
  padding-left: 0;
}

.xlsx-import-guide-list li {
  background: #f5f8fc;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  counter-increment: xlsx-step;
  padding: 0.85rem 0.95rem 0.85rem 3.2rem;
  position: relative;
}

.xlsx-import-guide-list li::before {
  align-items: center;
  background: var(--brand-primary);
  border-radius: 999px;
  color: #fff;
  content: counter(xlsx-step);
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  height: 1.8rem;
  justify-content: center;
  left: 0.85rem;
  position: absolute;
  top: 0.85rem;
  width: 1.8rem;
}

.xlsx-import-guide-list div {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-top: 0.25rem;
}

.procurement-field-error {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.18rem rgba(220, 53, 69, 0.14) !important;
}

.input-group.has-procurement-error .input-group-text {
  border-color: #dc3545;
  color: #c92a2a;
}

.procurement-extra-row {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.direct-contract-panel {
  background: #f7fbff;
  border: 1px solid #d6e6f5;
  border-radius: 8px;
  padding: 0.9rem;
}

.direct-price-control .input-group-text {
  min-width: 2.5rem;
}

.direct-supplier-search {
  position: relative;
}

.direct-supplier-menu {
  background: #fff;
  border: 1px solid #c8dbee;
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(23, 50, 77, 0.14);
  display: grid;
  gap: 0.18rem;
  left: 0;
  max-height: 17rem;
  overflow-y: auto;
  padding: 0.35rem;
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 40;
}

.direct-supplier-option {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--text-main);
  display: flex;
  gap: 0.6rem;
  justify-content: space-between;
  min-height: 2.4rem;
  padding: 0.42rem 0.55rem;
  text-align: left;
}

.direct-supplier-option:hover,
.direct-supplier-option:focus {
  background: #edf5ff;
}

.direct-supplier-option span {
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
}

.direct-supplier-option small,
.direct-supplier-empty {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.direct-supplier-empty {
  padding: 0.6rem 0.55rem;
}

.procurement-item-meta {
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  font-weight: 400;
  gap: 0.35rem 0.85rem;
  margin-top: 0.35rem;
}

.analytics-page {
  background: #ffffff;
  overflow: hidden;
}

.analytics-hero {
  min-height: 150px;
}

.analytics-hero h1 {
  font-size: calc(1.375rem + 1.5vw);
  letter-spacing: 0;
  line-height: 1.2;
}

@media (min-width: 1200px) {
  .analytics-hero h1 {
    font-size: 2.5rem;
  }
}

.analytics-filter-bar {
  align-items: end;
  background: #f7fbff;
  border: 1px solid #dce8f3;
  border-radius: 8px;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  padding: 0.95rem;
}

.analytics-filter-field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.analytics-filter-field > span {
  color: #536b83;
  font-size: 0.78rem;
  font-weight: 800;
}

.analytics-filter-bar .select-menu-toggle {
  border-color: #cfdfef;
  border-radius: 8px;
  font-size: 0.92rem;
  min-height: 40px;
}

.analytics-select-menu .select-option-menu {
  max-width: min(420px, calc(100vw - 2rem));
  min-width: 100%;
  width: max-content;
}

.analytics-select-menu .select-option-item {
  max-width: 390px;
}

.analytics-select-menu .select-option-item,
.analytics-select-menu .select-option-item .menu-option-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.backend-log-hero-card {
  min-height: 112px;
}

.backend-log-alert {
  border-radius: 8px;
}

.backend-log-system-switcher {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.backend-log-system-switcher .procurement-list-switcher-option {
  grid-template-columns: auto minmax(0, 1fr);
}

.backend-log-filter-panel {
  background:
    linear-gradient(135deg, rgba(19, 107, 215, 0.055), rgba(255, 255, 255, 0) 42%),
    #fff;
}

.backend-log-filter-strip {
  align-items: stretch;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.backend-log-date-shell,
.backend-log-search-shell {
  background: rgba(248, 251, 255, 0.82);
  border: 1px solid #d8e6f5;
  border-radius: 8px;
  display: grid;
  min-width: 0;
  min-height: 76px;
  padding: 0.85rem 1rem;
}

.backend-log-date-shell {
  align-items: center;
  gap: 0.78rem;
  grid-template-columns: auto minmax(0, 1fr);
  position: relative;
}

.backend-log-search-shell {
  align-items: center;
  gap: 0.78rem;
  grid-template-columns: auto minmax(0, 1fr);
}

.backend-log-filter-caption {
  align-items: center;
  color: #516b83;
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 800;
  gap: 0.42rem;
  letter-spacing: 0;
  line-height: 1;
}

.backend-log-filter-caption i {
  color: var(--brand-primary);
  font-size: 0.95rem;
}

.backend-log-date-workbench {
  align-items: center;
  display: grid;
  gap: 0.62rem;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  min-width: 0;
}

.backend-log-date-field {
  align-items: center;
  background:
    linear-gradient(180deg, #fff, #f8fbff);
  border: 1px solid #cfe0f0;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(17, 68, 119, 0.055);
  cursor: pointer;
  display: grid;
  gap: 0.52rem;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 48px;
  overflow: hidden;
  padding: 0.48rem 0.72rem;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.backend-log-date-field:hover,
.backend-log-date-field:focus-visible,
.backend-log-date-field.active {
  border-color: #87b9ff;
  box-shadow: 0 12px 28px rgba(17, 68, 119, 0.09), 0 0 0 3px rgba(19, 107, 215, 0.08);
  outline: 0;
}

.backend-log-date-value {
  color: #17344f;
  font-size: 0.94rem;
  font-weight: 800;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.backend-log-date-value.is-empty {
  color: #8093a5;
  font-weight: 750;
}

.backend-log-date-field i {
  color: #6e8295;
  font-size: 0.92rem;
}

.backend-log-date-separator {
  align-items: center;
  background: #edf5ff;
  border: 1px solid #d9e9fb;
  border-radius: 50%;
  color: var(--brand-primary);
  display: inline-flex;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.backend-log-date-separator i {
  font-size: 0.82rem;
}

.backend-log-calendar-popover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.98));
  border: 1px solid #c7dcf1;
  border-radius: 8px;
  box-shadow: 0 22px 50px rgba(17, 68, 119, 0.18);
  min-width: 298px;
  padding: 0.82rem;
  position: fixed;
  width: min(330px, calc(100vw - 24px));
  z-index: 40;
}

.backend-log-calendar-popover[hidden] {
  display: none;
}

.backend-log-calendar-head {
  align-items: center;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  margin-bottom: 0.72rem;
}

.backend-log-calendar-title {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #17344f;
  font-size: 0.98rem;
  font-weight: 850;
  min-height: 34px;
  padding: 0 0.4rem;
  text-align: center;
  transition: background 0.18s ease, color 0.18s ease;
}

.backend-log-calendar-title:hover:not(:disabled),
.backend-log-calendar-title:focus-visible:not(:disabled) {
  background: #eef6ff;
  color: var(--brand-primary);
  outline: 0;
}

.backend-log-calendar-title:disabled {
  cursor: default;
}

.backend-log-calendar-nav {
  align-items: center;
  background: #eef6ff;
  border: 1px solid #d6e8fa;
  border-radius: 8px;
  color: var(--brand-primary);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  width: 34px;
}

.backend-log-calendar-nav:hover {
  background: #fff;
  border-color: #9ac4ff;
  transform: translateY(-1px);
}

.backend-log-calendar-nav:disabled {
  color: #9aacbc;
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.backend-log-calendar-weekdays,
.backend-log-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.backend-log-calendar-popover.mode-month .backend-log-calendar-weekdays,
.backend-log-calendar-popover.mode-year .backend-log-calendar-weekdays {
  display: none;
}

.backend-log-calendar-popover.mode-month .backend-log-calendar-grid,
.backend-log-calendar-popover.mode-year .backend-log-calendar-grid {
  gap: 0.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.backend-log-calendar-weekdays {
  color: #6d8296;
  font-size: 0.74rem;
  font-weight: 800;
  margin-bottom: 0.38rem;
  text-align: center;
}

.backend-log-calendar-grid {
  gap: 0.24rem;
}

.backend-log-calendar-day {
  align-items: center;
  aspect-ratio: 1;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #254963;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 760;
  justify-content: center;
  min-width: 0;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.backend-log-calendar-day:hover:not(:disabled) {
  background: #eaf4ff;
  border-color: #c9e0fa;
  color: var(--brand-primary);
  transform: translateY(-1px);
}

.backend-log-calendar-day.is-muted {
  color: #a3b2c0;
}

.backend-log-calendar-day.is-today {
  border-color: #9ac4ff;
}

.backend-log-calendar-day.is-in-range {
  background: #edf6ff;
}

.backend-log-calendar-day.is-selected {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
  box-shadow: 0 10px 20px rgba(19, 107, 215, 0.24);
}

.backend-log-calendar-choice {
  align-items: center;
  background: #f8fbff;
  border: 1px solid #dbe8f5;
  border-radius: 8px;
  color: #254963;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 820;
  justify-content: center;
  min-height: 46px;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.backend-log-calendar-choice:hover:not(:disabled) {
  background: #fff;
  border-color: #9ac4ff;
  color: var(--brand-primary);
  transform: translateY(-1px);
}

.backend-log-calendar-choice.is-selected {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
  box-shadow: 0 10px 20px rgba(19, 107, 215, 0.22);
}

.backend-log-calendar-day.is-disabled,
.backend-log-calendar-choice.is-disabled,
.backend-log-calendar-day:disabled,
.backend-log-calendar-choice:disabled {
  color: #b7c3ce;
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.backend-log-search-control {
  align-items: center;
  align-self: stretch;
  background:
    linear-gradient(180deg, #fff, #f8fbff);
  border: 1px solid #cfe0f0;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(17, 68, 119, 0.055);
  display: flex;
  min-height: 48px;
  padding: 0 0.9rem;
}

.backend-log-search-control input {
  background: transparent;
  border: 0;
  color: #17344f;
  font-size: 0.95rem;
  font-weight: 650;
  outline: 0;
  width: 100%;
}

.backend-log-search-control input::placeholder {
  color: #8093a5;
  font-weight: 600;
}

.backend-log-filter-panel,
.backend-log-stat,
.backend-log-row,
.backend-log-empty,
.backend-log-live-empty {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.backend-log-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.backend-log-stat {
  min-height: 92px;
}

.backend-log-list {
  display: grid;
  gap: 0.75rem;
}

.backend-log-row {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
}

.backend-log-time,
.backend-log-path,
.backend-log-ip,
.backend-log-payload {
  color: #52677a;
  font-size: 0.86rem;
}

.backend-log-line {
  align-items: center;
  column-gap: 0.78rem;
  display: grid;
  grid-template-columns:
    minmax(168px, 0.76fr)
    minmax(170px, 0.95fr)
    minmax(190px, 1.15fr)
    minmax(124px, 0.86fr)
    minmax(112px, 0.55fr)
    minmax(74px, 0.36fr);
  min-width: 0;
}

.backend-log-section {
  align-items: center;
  display: flex;
  min-height: 34px;
  min-width: 0;
  padding: 0.25rem 0;
}

.backend-log-section + .backend-log-section {
  border-left: 1px solid rgba(191, 211, 229, 0.55);
  padding-left: 0.78rem;
}

.backend-log-section-status {
  justify-content: center;
}

.backend-log-actor,
.backend-log-time,
.backend-log-action,
.backend-log-path,
.backend-log-ip {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.backend-log-actor {
  color: #5d7082;
  gap: 0.38rem;
}

.backend-log-action {
  color: #18344d;
}

.backend-log-payload {
  max-height: 120px;
  overflow: auto;
  padding: 0.7rem 0.8rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f6f9fc;
  border: 1px solid #dce8f3;
  border-radius: 8px;
}

.backend-log-status-badge {
  border: 1px solid transparent;
  font-weight: 800;
}

.backend-log-status-success {
  background: #eaf8f0;
  border-color: #b9e5c9;
  color: #0f7b42;
}

.backend-log-status-warning {
  background: #fff7e7;
  border-color: #f4d79d;
  color: #9a5a00;
}

.backend-log-status-danger {
  background: #fff0f0;
  border-color: #f1b7b7;
  color: #b42318;
}

.backend-log-status-muted {
  background: #f3f6f9;
  border-color: #dce5ee;
  color: #647486;
}

.backend-log-empty-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--brand-primary);
  background: #eaf3ff;
  border-radius: 8px;
  font-size: 1.45rem;
}

.analytics-kpi-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.analytics-kpi {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #dce8f3;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(24, 58, 89, 0.05);
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.95rem 1rem;
}

.analytics-kpi span,
.analytics-benchmark-grid span,
.analytics-behavior-grid span {
  color: #6a7f95;
  font-size: 0.78rem;
  font-weight: 800;
}

.analytics-kpi strong {
  color: #17324d;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 850;
  line-height: 1.1;
}

.analytics-dashboard-grid {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.72fr);
  grid-template-areas:
    "line share"
    "line funnel"
    "discount behavior"
    "delivery benchmark"
    "table table";
}

.analytics-card {
  background: #ffffff;
  border: 1px solid #dce8f3;
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(24, 58, 89, 0.07);
  display: grid;
  gap: 0.85rem;
  min-width: 0;
  overflow: hidden;
  padding: 1rem;
}

.analytics-card-large {
  grid-area: line;
}

.analytics-card-share {
  grid-area: share;
}

.analytics-card-funnel {
  grid-area: funnel;
}

.analytics-card-discount {
  grid-area: discount;
}

.analytics-card-delivery {
  grid-area: delivery;
}

.analytics-card-benchmark {
  grid-area: benchmark;
}

.analytics-card-behavior-rank {
  grid-area: behavior;
}

.analytics-card-wide {
  grid-area: table;
}

.analytics-card-head {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  min-width: 0;
}

.analytics-card-head h2 {
  color: #17324d;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.2;
  margin: 0;
}

.analytics-card-head p {
  color: #657b91;
  font-size: 0.85rem;
  line-height: 1.35;
  margin: 0.18rem 0 0;
  overflow-wrap: anywhere;
}

.analytics-legend {
  align-items: center;
  color: #5f748a;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.78rem;
  font-weight: 700;
  gap: 0.35rem 0.55rem;
  justify-content: flex-end;
}

.legend-dot {
  border-radius: 999px;
  display: inline-block;
  height: 0.56rem;
  width: 0.56rem;
}

.legend-win {
  background: #16a34a;
}

.legend-loss {
  background: #ef4444;
}

.legend-second {
  background: #2563eb;
}

.analytics-chart {
  min-height: 190px;
  min-width: 0;
}

.analytics-line-chart {
  min-height: 0;
}

.analytics-chart svg {
  display: block;
  height: auto;
  overflow: visible;
  width: 100%;
}

.analytics-axis {
  stroke: #d9e4ef;
  stroke-width: 1.4;
}

.analytics-axis-label {
  fill: #5d7287;
  font-size: 10px;
  font-weight: 700;
}

.analytics-line {
  fill: none;
  stroke: #2563eb;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.analytics-chart-empty,
.analytics-empty {
  align-items: center;
  background: #f7fbff;
  border: 1px dashed #c8d9e9;
  border-radius: 8px;
  color: #70869b;
  display: grid;
  justify-items: center;
  min-height: 180px;
  padding: 1rem;
  text-align: center;
}

.analytics-empty i {
  color: var(--brand-primary);
  font-size: 2rem;
}

.analytics-empty strong {
  color: #17324d;
  font-size: 1.05rem;
}

.analytics-empty span {
  color: #6d8297;
  font-size: 0.9rem;
}

.analytics-behavior-grid {
  border-top: 1px solid #edf3f9;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-top: 0.85rem;
}

.analytics-behavior-grid div,
.analytics-benchmark-grid div {
  background: #f8fbff;
  border: 1px solid #e3edf7;
  border-radius: 8px;
  display: grid;
  gap: 0.28rem;
  min-width: 0;
  padding: 0.68rem;
}

.analytics-behavior-grid strong,
.analytics-benchmark-grid strong {
  color: #17324d;
  font-size: 1.06rem;
  font-weight: 850;
  line-height: 1.1;
}

.analytics-donut-layout {
  align-items: center;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 112px minmax(0, 1fr);
  min-height: 168px;
}

.analytics-donut {
  filter: drop-shadow(0 10px 18px rgba(37, 99, 235, 0.14));
  transform: rotate(-90deg);
}

.analytics-mini-legend {
  display: grid;
  gap: 0.42rem;
  min-width: 0;
}

.analytics-mini-legend span {
  align-items: center;
  color: #4d6379;
  display: grid;
  font-size: 0.8rem;
  font-weight: 700;
  gap: 0.42rem;
  grid-template-columns: 0.65rem minmax(0, 1fr) auto;
  min-width: 0;
}

.analytics-mini-legend em {
  font-style: normal;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-mini-legend i {
  border-radius: 999px;
  display: inline-block;
  height: 0.65rem;
  width: 0.65rem;
}

.analytics-mini-legend b {
  color: #17324d;
  font-weight: 850;
}

.analytics-bars {
  display: grid;
  gap: 0.78rem;
  padding-top: 0.25rem;
}

.analytics-bar-row {
  align-items: center;
  display: grid;
  gap: 0.58rem;
  grid-template-columns: 3.5rem minmax(0, 1fr) 2rem;
}

.analytics-bar-row span,
.analytics-bar-row b {
  color: #4f657b;
  font-size: 0.82rem;
  font-weight: 800;
}

.analytics-bar-row b {
  color: #17324d;
  text-align: right;
}

.analytics-bar-row div {
  background: #edf4fb;
  border-radius: 999px;
  height: 0.82rem;
  overflow: hidden;
}

.analytics-bar-row i {
  border-radius: inherit;
  display: block;
  height: 100%;
}

.analytics-histogram {
  align-items: end;
  display: grid;
  gap: 0.58rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: 180px;
  padding: 0.4rem 0.1rem 0;
}

.analytics-histogram div {
  align-items: center;
  display: grid;
  gap: 0.45rem;
  grid-template-rows: minmax(105px, 1fr) auto;
  height: 100%;
}

.analytics-histogram i {
  align-self: end;
  background: linear-gradient(180deg, #2563eb, #62a9ff);
  border-radius: 8px 8px 2px 2px;
  display: block;
  min-height: 8px;
  width: 100%;
}

.analytics-histogram span {
  color: #62778d;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.analytics-benchmark-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.analytics-behavior-list {
  display: grid;
  gap: 0.55rem;
}

.analytics-behavior-row {
  align-items: center;
  background: #f8fbff;
  border: 1px solid #e3edf7;
  border-radius: 8px;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  padding: 0.58rem 0.68rem;
}

.analytics-behavior-row div {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.analytics-behavior-row strong {
  color: #17324d;
  font-size: 0.86rem;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-behavior-row span {
  color: #61778d;
  font-size: 0.75rem;
  font-weight: 800;
  min-width: 0;
}

.analytics-behavior-row p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  grid-column: 1 / -1;
  margin: 0;
  min-width: 0;
}

.analytics-behavior-row p span {
  background: #eef6ff;
  border-radius: 999px;
  color: #42617d;
  padding: 0.18rem 0.45rem;
}

.analytics-behavior-row b {
  align-items: center;
  background: #eaf3ff;
  border-radius: 999px;
  color: var(--brand-primary);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 850;
  height: 1.65rem;
  justify-content: center;
  justify-self: end;
  min-width: 1.65rem;
  padding: 0 0.42rem;
}

.analytics-search {
  max-width: 320px;
}

.analytics-table {
  min-width: 1040px;
}

.analytics-table thead th {
  background: #eef6ff;
  border-bottom-color: #d8e7f6;
  color: #33506a;
  font-size: 0.83rem;
  font-weight: 850;
}

.analytics-table tbody td {
  color: #243c53;
  font-size: 0.9rem;
}

.analytics-table tbody tr:hover > * {
  background: #f7fbff;
}

.analytics-table .status-badge {
  white-space: nowrap;
}

.code-text {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.analytics-focus-page {
  background: #ffffff;
}

.analytics-focus-hero {
  min-height: 132px;
}

.analytics-focus-shell {
  display: grid;
  gap: 1rem;
}

.analytics-control-panel {
  align-items: end;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border: 1px solid #dce8f3;
  border-radius: 8px;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 0.72fr minmax(240px, 1.35fr) minmax(220px, 1fr);
  padding: 0.95rem;
}

.analytics-section-controls {
  align-items: end;
  background: #f8fbff;
  border: 1px solid #e0ebf6;
  border-radius: 8px;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: minmax(150px, 0.65fr) minmax(150px, 0.65fr) minmax(250px, 1.15fr) minmax(220px, 1fr);
  padding: 0.82rem;
}

.analytics-section-controls-share {
  grid-template-columns: minmax(150px, 0.62fr) minmax(150px, 0.62fr) minmax(260px, 1.1fr);
}

.analytics-part-field {
  position: relative;
}

.analytics-autocomplete {
  position: relative;
}

.analytics-part-input {
  border-color: #cfdfef;
  border-radius: 8px;
  min-height: 40px;
}

.analytics-part-input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 0.18rem rgba(11, 92, 173, 0.16);
}

.analytics-autocomplete-menu {
  background: #ffffff;
  border: 1px solid #d5e5f4;
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(24, 58, 89, 0.16);
  display: grid;
  gap: 0.18rem;
  left: 0;
  max-height: 250px;
  overflow-y: auto;
  padding: 0.35rem;
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 30;
}

.analytics-autocomplete-option {
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: #254763;
  font-size: 0.9rem;
  font-weight: 750;
  min-height: 36px;
  overflow: hidden;
  padding: 0.42rem 0.58rem;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-autocomplete-option:hover,
.analytics-autocomplete-option:focus-visible {
  background: #eef6ff;
  color: var(--brand-primary);
  outline: 0;
}

.analytics-focus-grid {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.analytics-price-card,
.analytics-share-card {
  min-height: 0;
}

.analytics-focus-card-head {
  align-items: flex-start;
}

.analytics-focus-legend {
  align-items: center;
  color: #536b83;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 0.42rem 0.7rem;
  justify-content: flex-end;
  max-width: 350px;
}

.analytics-focus-legend span {
  align-items: center;
  display: inline-flex;
  gap: 0.28rem;
  white-space: nowrap;
}

.legend-symbol,
.legend-ring {
  display: inline-flex;
  flex: 0 0 auto;
  height: 0.78rem;
  width: 0.78rem;
}

.legend-first {
  background: #2563eb;
  border-radius: 999px;
}

.legend-second {
  background: #f59e0b;
  border-radius: 3px;
}

.legend-contract-price {
  background: #7c3aed;
  border-radius: 999px;
}

.legend-ring {
  background: #ffffff;
  border-radius: 999px;
}

.legend-awarded {
  border: 3px solid #16a34a;
}

.legend-lost {
  border: 3px solid #ef4444;
}

.analytics-price-timeline {
  --analytics-price-chart-height: clamp(300px, 30vw, 380px);
  display: grid;
  min-height: var(--analytics-price-chart-height);
}

.analytics-price-timeline > svg,
.analytics-price-timeline > .analytics-chart-empty {
  min-height: var(--analytics-price-chart-height);
}

.analytics-price-timeline > svg {
  height: var(--analytics-price-chart-height);
}

.analytics-price-trend {
  fill: none;
  stroke: #8cb7ee;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.analytics-round-connector {
  stroke: #aebfd1;
  stroke-dasharray: 4 4;
  stroke-linecap: round;
  stroke-width: 1.15;
}

.analytics-grid-line {
  stroke: #edf3f9;
  stroke-width: 1;
}

.analytics-price-point .analytics-first-point {
  fill: #2563eb;
  stroke: #ffffff;
  stroke-width: 1.8;
}

.analytics-price-point .analytics-second-point {
  fill: #f59e0b;
  stroke: #ffffff;
  stroke-width: 1.8;
}

.analytics-price-point.is-awarded .analytics-first-point,
.analytics-price-point.is-awarded .analytics-second-point {
  stroke: #16a34a;
  stroke-width: 2.8;
}

.analytics-price-point.is-lost .analytics-first-point,
.analytics-price-point.is-lost .analytics-second-point {
  stroke: #ef4444;
  stroke-width: 2.4;
}

.analytics-pie-layout {
  align-items: center;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  min-height: 330px;
}

.analytics-share-card .analytics-pie-layout {
  grid-template-columns: minmax(480px, 0.62fr) minmax(220px, 0.38fr);
}

.analytics-award-pie {
  --analytics-pie-chart-height: clamp(430px, 42vw, 540px);
  display: grid;
  min-height: var(--analytics-pie-chart-height);
}

.analytics-award-pie > .analytics-chart-empty,
.analytics-award-pie > .analytics-pie-layout {
  min-height: var(--analytics-pie-chart-height);
}

.analytics-pie {
  filter: drop-shadow(0 16px 26px rgba(37, 99, 235, 0.14));
  justify-self: center;
  max-width: 520px;
  width: 100%;
}

.analytics-pie-labels {
  display: grid;
  gap: 0.36rem;
  min-width: 0;
}

.analytics-pie-label {
  align-items: center;
  background: #f8fbff;
  border: 1px solid #e2edf7;
  border-radius: 8px;
  display: grid;
  gap: 0.25rem 0.34rem;
  grid-template-columns: 0.58rem minmax(0, 1fr) auto;
  min-width: 0;
  padding: 0.38rem 0.5rem;
}

.analytics-pie-label i {
  border-radius: 999px;
  display: inline-block;
  height: 0.58rem;
  width: 0.58rem;
}

.analytics-pie-label strong {
  color: #17324d;
  font-size: 0.84rem;
  font-weight: 850;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-pie-label span {
  color: #17324d;
  font-size: 0.76rem;
  font-weight: 850;
}

.analytics-pie-label em {
  color: #657b91;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 750;
  grid-column: 2 / -1;
}

@media (min-width: 1200px) {
  .procurement-rule-summary,
  .procurement-rule-list li {
    white-space: nowrap;
  }
}

@media (max-width: 991.98px) {
  .container-fluid {
    max-width: 100%;
  }

  .sidebar-panel {
    position: static;
  }

  .sidebar-panel .nav {
    flex-direction: row !important;
    flex-wrap: wrap;
  }

  .sidebar-link {
    padding: 0.7rem 0.85rem;
  }

  .content-panel,
  .glass-card {
    padding: 1rem !important;
  }

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

  .backend-log-system-switcher {
    grid-template-columns: 1fr;
  }

  .backend-log-filter-strip,
  .backend-log-date-shell,
  .backend-log-search-shell {
    grid-template-columns: 1fr;
  }

  .backend-log-date-shell > .backend-log-filter-caption,
  .backend-log-search-shell > .backend-log-filter-caption {
    grid-column: 1 / -1;
  }

  .backend-log-search-shell {
    border-left: 0;
    padding-left: 0;
  }

  .backend-log-date-workbench {
    grid-template-columns: 1fr;
  }

  .backend-log-calendar-popover {
    min-width: 0;
  }

  .backend-log-date-separator {
    justify-self: center;
    transform: rotate(90deg);
  }

  .backend-log-line {
    grid-template-columns: 1fr;
    row-gap: 0.25rem;
  }

  .backend-log-section {
    min-height: 30px;
    padding: 0.08rem 0;
  }

  .backend-log-section + .backend-log-section {
    border-left: 0;
    padding-left: 0;
  }

  .procurement-print-page {
    padding: 1rem;
  }

  .procurement-print-header {
    display: grid;
  }

  .procurement-print-meta-grid,
  .procurement-print-meta-grid-print {
    grid-template-columns: 1fr;
  }

  .procurement-print-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .procurement-print-kpis > div:last-child {
    grid-column: 1 / -1;
  }

  .procurement-print-result-grid {
    grid-template-columns: 1fr;
  }

  .procurement-print-award-line,
  .procurement-print-award-compact {
    background-image: none;
    grid-template-columns: 1fr;
  }

  .procurement-operator-grid,
  .procurement-print-operator-grid {
    grid-template-columns: 1fr;
  }

  .procurement-print-award-line > div + div {
    border-left: 0;
    border-top: 1px solid rgba(203, 238, 217, 0.95);
  }

  .procurement-print-award-compact > div {
    border-bottom: 1px solid rgba(216, 229, 241, 0.9);
    border-right: 0;
  }

  .procurement-print-award-compact > div:last-child {
    border-bottom: 0;
  }

  .procurement-print-result-grid > div {
    border-bottom: 1px solid rgba(216, 229, 241, 0.9);
    border-right: 0;
  }

  .procurement-print-result-grid > div:last-child {
    border-bottom: 0;
  }

  .procurement-order-card-header {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .procurement-order-card-header > .btn {
    justify-self: start;
  }

  .procurement-list-switcher {
    grid-template-columns: 1fr;
  }

  .procurement-summary-card {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .procurement-summary-actions {
    justify-content: flex-start;
  }

  .procurement-detail-dialog {
    max-width: calc(100vw - 1rem);
  }

  .procurement-detail-item-header,
  .procurement-decision-panel {
    grid-template-columns: 1fr;
  }

  .procurement-item-actions {
    justify-content: flex-start;
  }

  .procurement-quantity-edit-form {
    justify-content: flex-start;
    min-width: 0;
  }

  .procurement-quote-header,
  .procurement-quote-card,
  .procurement-latest-price-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .procurement-quote-actions {
    justify-items: start;
  }

  .procurement-decision-controls {
    grid-template-columns: minmax(0, 1fr) 7.35rem;
  }

  .hero-banner {
    padding: 1.5rem !important;
  }

  .employee-hero-tools {
    margin-left: 0;
    max-width: 360px;
  }

  .employee-select-stack {
    grid-template-columns: 1fr;
  }

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

  .product-structure-create-row,
  .product-structure-create-row-wide {
    grid-template-columns: 1fr;
  }

  .supplier-filter-dialog {
    max-width: calc(100vw - 1rem);
  }

  .supplier-filter-dropdown {
    max-width: none;
  }

  .category-submenu {
    position: static;
    width: calc(100% - 1rem);
    max-height: none;
    margin: 0.25rem 0 0.5rem 1rem;
    box-shadow: none;
  }

  .supplier-filter-menu-category {
    width: 100%;
    max-height: 70vh;
    overflow-y: auto;
  }

  .supplier-filter-dropdown > .supplier-filter-menu-category {
    width: 100%;
  }

  .supplier-filter-submenu {
    position: static;
    min-width: 0;
    width: calc(100% - 1rem);
    max-height: none;
    margin: 0.25rem 0 0.5rem 1rem;
    box-shadow: none;
  }

  .employee-greeting-panel {
    min-height: 132px;
  }

  .analytics-filter-bar,
  .analytics-kpi-grid,
  .analytics-dashboard-grid,
  .analytics-behavior-grid {
    grid-template-columns: 1fr;
  }

  .analytics-dashboard-grid {
    grid-template-areas:
      "line"
      "share"
      "funnel"
      "discount"
      "delivery"
      "benchmark"
      "behavior"
      "table";
  }

  .analytics-card-large,
  .analytics-card-wide {
    grid-column: auto;
    grid-row: auto;
  }

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

  .analytics-legend {
    justify-content: flex-start;
  }

  .analytics-donut-layout,
  .analytics-benchmark-grid {
    grid-template-columns: 1fr;
  }

  .analytics-behavior-row b {
    justify-self: start;
  }

  .analytics-donut {
    justify-self: center;
    width: min(150px, 58vw);
  }

  .analytics-search {
    max-width: none;
    width: 100%;
  }

  .analytics-control-panel,
  .analytics-section-controls,
  .analytics-focus-grid,
  .analytics-pie-layout {
    grid-template-columns: 1fr;
  }

  .analytics-price-card,
  .analytics-share-card {
    min-height: 0;
  }

  .analytics-focus-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .analytics-focus-legend {
    justify-content: flex-start;
    max-width: none;
  }

  .analytics-price-timeline {
    --analytics-price-chart-height: 300px;
    min-height: var(--analytics-price-chart-height);
  }

  .analytics-award-pie {
    --analytics-pie-chart-height: 430px;
  }

  .analytics-pie-layout {
    min-height: 0;
  }

  .analytics-share-card .analytics-pie-layout {
    grid-template-columns: 1fr;
  }

  .decor-line-a {
    width: 42vw;
    left: -18vw;
  }

  .decor-line-b {
    width: 40vw;
    right: -18vw;
  }

  .decor-line-d,
  .decor-line-e,
  .decor-line-f,
  .decor-line-g,
  .decor-line-h,
  .work-label {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .product-taxonomy-board {
    grid-template-columns: 1fr;
  }

  .product-taxonomy-column {
    min-height: 0;
  }
}

@media (max-width: 575.98px) {
  main.container-fluid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .product-structure-dialog {
    max-width: calc(100vw - 1rem);
    width: calc(100vw - 1rem);
  }

  .product-structure-page-header {
    display: grid;
  }

  .product-structure-manager {
    grid-template-columns: 1fr;
  }

  .product-taxonomy-card-main {
    grid-template-columns: 22px minmax(0, 1fr) 30px;
  }

  .product-taxonomy-create,
  .product-taxonomy-edit,
  .product-inline-action {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .product-structure-stats {
    justify-content: flex-start;
  }

  .product-structure-scroll {
    max-height: none;
  }

  .product-structure-tabs {
    gap: 0.25rem;
    padding: 0.28rem;
  }

  .product-structure-tabs .nav-link {
    font-size: 0.86rem;
    gap: 0.22rem;
    min-height: 38px;
    padding: 0.48rem 0.2rem;
  }

  .product-structure-tab-count {
    font-size: 0.68rem;
    height: 1.05rem;
    min-width: 1.05rem;
    padding: 0 0.18rem;
  }

  .product-structure-modal .modal-header .small {
    display: none;
  }

  .product-structure-row,
  .product-structure-row-wide,
  .product-structure-edit-form,
  .product-structure-edit-form-wide {
    grid-template-columns: 1fr;
  }

  .product-drag-handle,
  .product-structure-row .btn,
  .product-structure-create-row .btn {
    width: 100%;
  }

  .navbar-brand {
    gap: 0.75rem !important;
    max-width: calc(100vw - 96px);
  }

  .navbar-brand .d-block {
    white-space: normal;
    line-height: 1.25 !important;
  }

  .brand-badge {
    width: 36px;
    height: 36px;
  }

  .procurement-summary-card {
    padding: 1rem !important;
  }

  .procurement-order-card {
    padding: 1rem !important;
  }

  .procurement-order-card-header > .btn,
  .procurement-order-record-line {
    width: 100%;
  }

  .procurement-order-record-line {
    grid-template-columns: 1fr;
  }

  .procurement-order-status-badge {
    justify-self: start;
  }

  .procurement-summary-actions .btn {
    width: 100%;
  }

  .procurement-detail-header,
  .procurement-detail-body {
    padding: 1rem;
  }

  .procurement-detail-header {
    align-items: stretch;
    flex-direction: column;
  }

  .procurement-detail-header-actions {
    justify-content: space-between;
    margin-left: 0;
    width: 100%;
  }

  .procurement-detail-header .procurement-summary-meta {
    display: grid;
    gap: 0.25rem;
    grid-template-columns: 1fr;
  }

  .procurement-modal-actions {
    justify-content: stretch;
  }

  .procurement-modal-actions .btn,
  .procurement-detail-header-actions form,
  .procurement-detail-header-actions .btn:not(.btn-close),
  .procurement-item-actions,
  .procurement-quantity-edit-form,
  .procurement-quantity-edit-form .btn,
  .procurement-decision-panel,
  .procurement-decision-controls,
  .procurement-decision-controls .btn,
  .procurement-decision-controls .form-select,
  .procurement-decision-controls .select-menu {
    width: 100%;
  }

  .procurement-item-actions,
  .procurement-quantity-edit-form {
    flex-direction: column;
    align-items: stretch;
  }

  .procurement-decision-controls {
    grid-template-columns: 1fr;
  }

  .procurement-quote-header {
    display: none;
  }

  .procurement-quote-card,
  .procurement-latest-price-card {
    grid-template-columns: 1fr;
  }

  .procurement-latest-price-card {
    gap: 0.35rem;
  }

  .procurement-latest-price-supplier,
  .procurement-latest-price-block,
  .procurement-latest-price-action {
    border-bottom: 1px solid #f2e4c5;
    display: grid;
    gap: 0.35rem;
    grid-template-columns: 5rem minmax(0, 1fr);
    padding-bottom: 0.45rem;
  }

  .procurement-latest-price-supplier::before,
  .procurement-latest-price-block::before,
  .procurement-latest-price-action::before {
    color: #8a6a2b;
    content: attr(data-quote-label);
    font-size: 0.78rem;
    font-weight: 700;
  }

  .procurement-latest-price-action {
    border-bottom: 0;
    justify-items: stretch;
  }

  .procurement-latest-price-value,
  .procurement-latest-price-source {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .procurement-item-edit-layout {
    grid-template-areas:
      "brand"
      "category"
      "model"
      "part"
      "quantity"
      "certification"
      "settlement"
      "remark";
    grid-template-columns: 1fr;
  }

  .procurement-item-edit-empty {
    display: none;
  }

  .procurement-quote-supplier,
  .procurement-quote-block,
  .procurement-quote-actions {
    border-bottom: 1px solid #edf4fb;
    display: grid;
    gap: 0.35rem;
    grid-template-columns: 5rem minmax(0, 1fr);
    padding-bottom: 0.45rem;
  }

  .procurement-quote-supplier::before,
  .procurement-quote-block::before,
  .procurement-quote-actions::before {
    color: var(--text-muted);
    content: attr(data-quote-label);
    font-size: 0.78rem;
    font-weight: 700;
  }

  .procurement-quote-supplier {
    align-content: start;
    justify-items: stretch;
    text-align: left;
  }

  .procurement-quote-actions {
    border-bottom: 0;
  }

  .procurement-quote-actions {
    align-content: start;
  }

  .flash-stack {
    top: 4.5rem;
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
  }

  .login-shell {
    min-height: calc(100vh - 8rem);
    padding: 1rem 0;
  }

  .login-panel {
    padding: 1.25rem;
  }

  .login-brand {
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .login-brand h1 {
    font-size: 0.95rem;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .password-field .form-control.has-caps-lock-warning {
    padding-right: 7.5rem;
  }

  .caps-lock-warning {
    right: 0.8rem;
    font-size: 0.8rem;
  }

  .decor-line {
    opacity: 0.75;
  }

  .decor-line-a {
    width: 68vw;
    height: 22vh;
    left: -36vw;
    top: 10vh;
  }

  .decor-line-b {
    width: 62vw;
    height: 20vh;
    right: -36vw;
    bottom: 12vh;
  }

  .decor-line-c {
    display: none;
  }

  .action-stack .btn,
  .login-submit {
    width: 100%;
  }

  .employee-hero-tools {
    max-width: none;
    width: 100%;
  }

  .employee-greeting-panel {
    min-height: 120px;
    padding: 1rem;
    gap: 0.9rem;
  }

  .employee-greeting-main {
    gap: 0.9rem;
  }

  .welcome-avatar {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
  }

  .greeting-line-a {
    width: 52%;
    right: -18%;
  }

  .greeting-line-b,
  .greeting-dot-a {
    display: none;
  }
}

@media print {
  @page {
    margin: 0;
    size: A4;
  }

  body {
    background: #fff !important;
    color: #111 !important;
    -webkit-print-color-adjust: exact;
    orphans: 3;
    print-color-adjust: exact;
    widows: 3;
  }

  .compliance-footer {
    display: none !important;
  }

  .app-navbar,
  .flash-stack,
  aside,
  .procurement-print-toolbar {
    display: none !important;
  }

  main.container-fluid {
    padding: 0 !important;
  }

  main .row {
    display: block !important;
    margin: 0 !important;
  }

  main section {
    max-width: none !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .procurement-print-shell {
    align-items: center;
    box-sizing: border-box;
    box-decoration-break: clone;
    display: block;
    min-height: auto;
    padding: 6mm;
    -webkit-box-decoration-break: clone;
    width: 100%;
  }

  .procurement-print-page {
    box-decoration-break: clone;
    box-shadow: none;
    margin: 0 auto;
    max-width: 1120px;
    padding: 0.95rem;
    -webkit-box-decoration-break: clone;
    width: 100%;
  }

  .procurement-print-header,
  .procurement-print-summary-stack,
  .procurement-print-meta-grid,
  .procurement-print-kpis,
  .procurement-print-item-info-card,
  .procurement-print-operator-panel,
  .procurement-print-result-card,
  .procurement-print-supplier-chip,
  .procurement-print-no-quotes,
  .procurement-print-footer {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .procurement-print-header,
  .procurement-print-summary-stack,
  .procurement-print-item-info-card,
  .procurement-print-operator-panel,
  .procurement-print-result-card {
    break-after: avoid;
    page-break-after: avoid;
  }

  .procurement-print-result-card,
  .procurement-print-participants,
  .procurement-print-participant-group,
  .procurement-print-footer {
    break-before: avoid;
    page-break-before: avoid;
  }

  .procurement-print-item-info-card,
  .procurement-print-result-card {
    break-after: auto;
    page-break-after: auto;
  }

  .procurement-print-result-card,
  .procurement-print-participants,
  .procurement-print-participant-group {
    break-before: auto;
    page-break-before: auto;
  }

  .procurement-print-items {
    display: block;
    gap: 0;
    margin-top: 0.32rem;
  }

  .procurement-print-item {
    background: #fff;
    border: 1px solid #d8e5f1;
    border-radius: 8px;
    box-decoration-break: slice;
    break-inside: auto;
    overflow: visible;
    padding: 0.35rem;
    page-break-inside: auto;
    -webkit-box-decoration-break: slice;
  }

  .procurement-print-item + .procurement-print-item {
    margin-top: 0.38rem;
  }

  .procurement-print-item-info-card {
    padding: 0.34rem 0.45rem;
  }

  .procurement-print-item-label {
    margin-bottom: 0.1rem;
  }

  .procurement-print-item-meta {
    gap: 0.04rem;
    margin-top: 0.16rem;
  }

  .procurement-print-info-row {
    grid-template-columns: 4.8rem minmax(0, 1fr);
  }

  .procurement-print-info-row span,
  .procurement-print-info-row strong {
    font-size: 0.78rem;
  }

  .procurement-print-operator-panel {
    margin-top: 0.18rem;
    padding-top: 0.16rem;
  }

  .procurement-print-operator-title {
    margin-bottom: 0.1rem;
  }

  .procurement-print-operator-grid {
    gap: 0.18rem;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .procurement-print-operator-grid > div {
    border-radius: 6px;
    grid-template-columns: 4.45rem minmax(0, 1fr);
    padding: 0.18rem 0.32rem;
  }

  .procurement-print-result-card {
    margin-top: 0.2rem;
  }

  .procurement-print-participants,
  .procurement-print-participant-group,
  .procurement-print-participants-title,
  .procurement-print-chip-list {
    break-inside: auto;
    overflow: visible;
    page-break-inside: auto;
  }

  .procurement-print-award-line,
  .procurement-print-award-compact {
    background-image: none;
  }

  .procurement-print-award-line > div {
    padding: 0.28rem 0.42rem;
  }

  .procurement-print-award-compact > div {
    padding: 0.22rem 0.4rem;
  }

  .procurement-print-participants {
    display: block;
    gap: 0.28rem;
    margin-top: 0.2rem;
    padding: 0.25rem 0.4rem;
  }

  .procurement-print-participants-title,
  .procurement-print-participant-group {
    break-after: auto;
    page-break-after: auto;
  }

  .procurement-print-participants-title {
    display: block;
    margin-bottom: 0.1rem;
  }

  .procurement-print-participant-group + .procurement-print-participant-group,
  .procurement-print-no-quotes {
    margin-top: 0.12rem;
  }

  .procurement-print-chip-list {
    gap: 0.24rem;
    margin-top: 0;
  }

  .procurement-print-supplier-chip {
    font-size: 0.72rem;
    padding: 0.16rem 0.45rem;
  }

  .procurement-print-footer {
    margin-top: 0.45rem;
    padding-top: 0.38rem;
  }

  .procurement-print-header {
    align-items: flex-start;
    border-bottom: 1px solid #c9dceb;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding-bottom: 0.42rem;
  }

  .procurement-print-company {
    margin-bottom: 0.1rem;
  }

  .procurement-print-header h1 {
    font-size: 1.36rem;
  }

  .procurement-print-number {
    margin-top: 0.18rem;
  }

  .procurement-print-stamp {
    font-size: 0.95rem;
    min-height: 2.35rem;
    min-width: 6.8rem;
  }

  .procurement-print-summary-stack {
    gap: 0.28rem;
    margin-top: 0.36rem;
  }

  .procurement-print-meta-grid,
  .procurement-print-kpis {
    gap: 0.28rem;
  }

  .procurement-print-meta-grid > div,
  .procurement-print-kpis > div {
    padding: 0.28rem 0.45rem;
  }

  .procurement-print-meta-grid span,
  .procurement-print-kpis span {
    margin-bottom: 0.06rem;
  }

  .procurement-print-meta-grid strong,
  .procurement-print-kpis strong {
    font-size: 0.78rem;
  }

  .procurement-print-meta-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .procurement-print-meta-grid-print {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .procurement-print-kpis {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .procurement-print-kpis strong {
    font-size: 0.88rem;
  }

  .procurement-print-kpis > div:last-child {
    grid-column: auto;
  }

  .procurement-print-result-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .procurement-print-result-grid > div {
    border-bottom: 0;
    border-right: 1px solid rgba(216, 229, 241, 0.9);
  }

  .procurement-print-result-grid > div:last-child {
    border-right: 0;
  }

  .procurement-print-award-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .procurement-print-award-line > div + div {
    border-top: 0;
  }

  .procurement-print-award-compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .procurement-print-award-compact > div {
    border-bottom: 0;
  }

}
