:root {
  --brand-primary: #d97706;
  --brand-secondary: #f6a64b;
  --brand-accent: #ffd39a;
  --brand-dark: #5f3513;
  --surface: #ffffff;
  --surface-soft: #fff8ef;
  --border-soft: #f1ddc4;
  --text-main: #3f2d1c;
  --text-muted: #806a55;
  --shadow-soft: 0 18px 48px rgba(95, 53, 19, 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: #7f7b76;
  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: #a75e24;
}

.compliance-footer-divider {
  width: 1px;
  height: 0.8rem;
  background: rgba(90, 80, 72, 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: #fff9f1;
  color: var(--text-main);
}

.code-text,
.code-input {
  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;
}

.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,
.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: #6f563b;
  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: #fff0dc;
  color: var(--brand-primary);
}

.hero-banner {
  background: #f6a64b;
  color: #4b2a10;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.supplier-hero-pattern {
  position: relative;
  overflow: hidden;
  --supplier-line-strong: rgba(95, 53, 19, 0.18);
  --supplier-line-mid: rgba(95, 53, 19, 0.14);
  --supplier-line-soft: rgba(95, 53, 19, 0.09);
}

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

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

.supplier-hero-pattern.menu-hero-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.supplier-hero-pattern.menu-hero-card > .row {
  width: 100%;
}

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

.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;
}

.supplier-hero-line {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

.supplier-hero-arc-a::before,
.supplier-hero-arc-a::after,
.supplier-hero-arc-b::before,
.supplier-hero-arc-b::after,
.supplier-hero-ribbon::before,
.supplier-hero-ribbon::after,
.supplier-hero-lattice::before,
.supplier-hero-lattice::after,
.supplier-hero-corner::before,
.supplier-hero-corner::after,
.supplier-hero-dashes::before,
.supplier-hero-dashes::after,
.supplier-hero-dot::after {
  content: "";
  position: absolute;
}

.supplier-hero-arc-a {
  width: min(42vw, 480px);
  height: 190px;
  left: -7%;
  bottom: -72px;
  border: 1px solid var(--supplier-line-mid);
  border-color: var(--supplier-line-mid) transparent transparent var(--supplier-line-soft);
  border-radius: 60% 45% 0 0;
  transform: rotate(-7deg);
}

.supplier-hero-arc-a::before {
  inset: 22px 28px;
  border: 1px solid var(--supplier-line-soft);
  border-color: var(--supplier-line-soft) transparent transparent var(--supplier-line-soft);
  border-radius: inherit;
}

.supplier-hero-arc-a::after {
  left: 22%;
  top: 43%;
  width: 46%;
  height: 1px;
  background: var(--supplier-line-soft);
  transform: rotate(12deg);
}

.supplier-hero-arc-b {
  width: min(30vw, 310px);
  height: 150px;
  right: 8%;
  top: -46px;
  border: 1px solid var(--supplier-line-mid);
  border-color: transparent var(--supplier-line-mid) var(--supplier-line-soft) transparent;
  border-radius: 0 0 58% 44%;
  transform: rotate(11deg);
}

.supplier-hero-arc-b::before {
  inset: 18px 24px;
  border: 1px solid var(--supplier-line-soft);
  border-color: transparent var(--supplier-line-soft) var(--supplier-line-soft) transparent;
  border-radius: inherit;
}

.supplier-hero-arc-b::after {
  right: 30%;
  bottom: 28%;
  width: 42%;
  height: 1px;
  background: var(--supplier-line-soft);
  transform: rotate(-14deg);
}

.supplier-hero-ribbon {
  width: min(34vw, 390px);
  height: 94px;
  right: -5%;
  top: 28%;
  transform: rotate(-12deg);
  background:
    linear-gradient(var(--supplier-line-mid), var(--supplier-line-mid)) 0 17px / 100% 1px no-repeat,
    linear-gradient(var(--supplier-line-soft), var(--supplier-line-soft)) 0 45px / 100% 1px no-repeat,
    linear-gradient(var(--supplier-line-mid), var(--supplier-line-mid)) 0 73px / 100% 1px no-repeat;
}

.supplier-hero-ribbon::before {
  left: 14%;
  top: 9px;
  width: 1px;
  height: 74px;
  background: var(--supplier-line-soft);
  box-shadow:
    72px 0 0 var(--supplier-line-soft),
    144px 0 0 var(--supplier-line-soft),
    216px 0 0 var(--supplier-line-soft);
}

.supplier-hero-ribbon::after {
  right: 8%;
  top: 20px;
  width: 84px;
  height: 40px;
  border: 1px solid var(--supplier-line-soft);
  border-radius: 8px;
  transform: skewX(-10deg);
}

.supplier-hero-lattice {
  width: min(30vw, 330px);
  height: 120px;
  left: 40%;
  bottom: -32px;
  transform: rotate(8deg);
  background:
    repeating-linear-gradient(45deg, var(--supplier-line-soft) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(135deg, var(--supplier-line-soft) 0 1px, transparent 1px 28px);
  border-top: 1px solid var(--supplier-line-mid);
  border-bottom: 1px solid var(--supplier-line-soft);
}

.supplier-hero-lattice::before {
  left: -28px;
  top: 38px;
  width: 74px;
  height: 1px;
  background: var(--supplier-line-mid);
  transform: rotate(-18deg);
}

.supplier-hero-lattice::after {
  right: 16px;
  top: 22px;
  width: 56px;
  height: 56px;
  border: 1px solid var(--supplier-line-soft);
  border-radius: 8px;
  transform: rotate(17deg);
}

.supplier-hero-corner {
  width: 160px;
  height: 96px;
  left: 8%;
  top: 16%;
  border-top: 1px solid var(--supplier-line-strong);
  border-left: 1px solid var(--supplier-line-mid);
}

.supplier-hero-corner::before {
  left: 22px;
  top: 18px;
  width: 92px;
  height: 54px;
  border-top: 1px solid var(--supplier-line-soft);
  border-left: 1px solid var(--supplier-line-soft);
}

.supplier-hero-corner::after {
  left: 42px;
  top: 38px;
  width: 78px;
  height: 1px;
  background: var(--supplier-line-mid);
  transform: rotate(18deg);
}

.supplier-hero-dashes {
  width: min(26vw, 260px);
  height: 80px;
  right: 22%;
  bottom: 14%;
  transform: rotate(5deg);
  background:
    repeating-linear-gradient(90deg, var(--supplier-line-mid) 0 18px, transparent 18px 34px) 0 12px / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--supplier-line-soft) 0 12px, transparent 12px 28px) 12px 40px / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--supplier-line-mid) 0 18px, transparent 18px 34px) 0 68px / 100% 1px no-repeat;
}

.supplier-hero-dashes::before {
  left: 8%;
  top: 0;
  width: 1px;
  height: 78px;
  background: var(--supplier-line-soft);
  box-shadow: 96px 0 0 var(--supplier-line-soft);
}

.supplier-hero-dashes::after {
  right: -30px;
  top: 28px;
  width: 58px;
  height: 1px;
  background: var(--supplier-line-mid);
  transform: rotate(-22deg);
}

.supplier-hero-dot {
  width: 38px;
  height: 38px;
  border: 1px solid var(--supplier-line-strong);
  border-radius: 50%;
}

.supplier-hero-dot::after {
  inset: 10px;
  border: 1px solid var(--supplier-line-soft);
  border-radius: 50%;
}

.supplier-hero-dot-a {
  right: 15%;
  top: 16%;
}

.supplier-hero-dot-b {
  left: 28%;
  bottom: 18%;
  width: 26px;
  height: 26px;
}

.supplier-welcome-card {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.75rem);
}

.supplier-identity-lines {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  max-width: min(58vw, 520px);
}

.supplier-identity-lines > div {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.supplier-welcome-avatar {
  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(95, 53, 19, 0.14);
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800;
}

.supplier-total-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(95, 53, 19, 0.14);
}

.supplier-total-amount {
  color: var(--brand-primary);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  font-weight: 800;
}

.contact-summary {
  display: grid;
  gap: 0.75rem;
}

.contact-summary-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-soft);
}

.contact-summary-row:last-child {
  border-bottom: 0;
}

.contact-modal-card {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

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

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

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

.supplier-product-viewer .dropdown-item.supplier-product-option.active:hover,
.supplier-product-viewer .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-readonly-option {
  cursor: default;
}

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

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

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

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

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

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

.supplier-product-model-dialog .supplier-product-picker-table,
.supplier-product-viewer-dialog .supplier-product-viewer-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,
.supplier-product-viewer-dialog .supplier-product-viewer-table th:first-child,
.supplier-product-viewer-dialog .supplier-product-viewer-table td:first-child {
  text-align: center;
}

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

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

.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;
}

.table thead th {
  background: #fff1df;
  color: #6f563b;
  border-bottom: 1px solid #eed8bd;
}

.table-hover tbody tr:hover {
  background: rgba(217, 119, 6, 0.04);
}

.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;
}

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

.supplier-quote-summary-card {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  padding: 0.75rem 1.25rem 1.1rem;
}

.supplier-quote-summary-main {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

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

.supplier-quote-title-static {
  color: var(--text-main);
  justify-self: start;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

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

.supplier-quote-summary-meta,
.supplier-quote-summary-facts {
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.86rem;
  gap: 0.25rem 0.85rem;
}

.supplier-quote-summary-facts {
  align-items: center;
}

.supplier-quote-item-lines {
  display: grid;
  gap: 0.72rem;
}

.supplier-quote-item-lines-heading {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.supplier-quote-item-lines-heading {
  align-items: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  min-height: 2.4rem;
}

.supplier-quote-heading-action {
  transform: none;
}

.supplier-quote-heading-action .btn {
  width: 100%;
}

.supplier-quote-item-line {
  align-items: start;
  background: #fffdf9;
  border: 1px solid rgba(241, 221, 196, 0.9);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 13fr) minmax(0, 7fr);
  grid-template-areas:
    "status ."
    "product quote-title"
    "meta quote-values"
    "remark quote-values"
    "deadline quote-values";
  column-gap: 1rem;
  row-gap: 0.24rem;
  padding: 0.78rem 0.9rem;
}

.supplier-quote-item-detail {
  display: contents;
  min-width: 0;
}

.supplier-quote-item-quote {
  color: var(--text-muted);
  font-size: 0.84rem;
  display: contents;
  min-width: 0;
}

.supplier-quote-item-quote-title {
  color: var(--text-main);
  grid-area: quote-title;
  font-weight: 700;
  min-width: 0;
}

.supplier-quote-item-quote-values {
  display: grid;
  grid-area: quote-values;
  gap: 0.24rem;
  min-width: 0;
  padding-top: 0.36rem;
}

.supplier-quote-item-quote-remark {
  overflow-wrap: anywhere;
}

.supplier-quote-item-status-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.45rem;
  grid-area: status;
  min-width: 0;
}

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

.supplier-quote-product-name {
  font-weight: 600;
  min-width: 0;
}

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

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

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

.status-badge-warning,
.supplier-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;
}

.supplier-quote-remark-line,
.supplier-quote-item-deadline-line,
.supplier-quote-deadline-line {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.supplier-quote-remark-line,
.supplier-quote-item-deadline-line {
  font-size: 0.8rem;
}

.supplier-procurement-meta.compact.stacked {
  grid-area: meta;
}

.supplier-quote-remark-line {
  grid-area: remark;
}

.supplier-quote-item-deadline-line {
  grid-area: deadline;
}

.supplier-quote-deadline-line {
  border-top: 1px solid rgba(241, 221, 196, 0.72);
  margin-top: 0.1rem;
  padding-top: 0.58rem;
}

.supplier-quote-summary-price {
  min-width: 0;
}

.supplier-quote-price-stack {
  display: grid;
  gap: 0.48rem;
}

.supplier-quote-price-line {
  display: grid;
  gap: 0.08rem;
}

.supplier-quote-price-name {
  color: var(--text-muted);
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.supplier-quote-summary-actions {
  display: flex;
  justify-content: flex-end;
}

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

.supplier-quote-detail-modal .modal-content {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(95, 53, 19, 0.16);
}

.supplier-quote-detail-header {
  align-items: flex-start;
  background: #fff8ef;
  border-bottom: 1px solid var(--border-soft);
}

.supplier-quote-detail-body {
  display: grid;
  gap: 1rem;
}

.supplier-quote-form-stack {
  display: grid;
  gap: 0.9rem;
}

.supplier-quote-form-card {
  background: #fffdf9;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  display: grid;
  gap: 0.7rem;
  padding: 0.9rem;
}

.supplier-quote-form-heading {
  align-items: start;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.supplier-quote-submitted-state {
  color: var(--text-muted);
  display: grid;
  font-size: 0.86rem;
  gap: 0.45rem;
}

.supplier-quote-submitted-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

.supplier-quote-submitted-remark {
  overflow-wrap: anywhere;
}

.supplier-quote-detail-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.supplier-quote-current {
  border-top: 1px solid var(--border-soft);
  padding-top: 0.85rem;
}

.supplier-quote-detail-form {
  justify-content: start;
}

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

.supplier-procurement-meta {
  border-top: 1px solid var(--border-soft);
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.84rem;
  gap: 0.35rem 0.9rem;
  margin-top: 0.9rem;
  padding-top: 0.75rem;
}

.supplier-procurement-meta.compact {
  border-top: 0;
  font-size: 0.8rem;
  margin-top: 0.35rem;
  padding-top: 0;
}

.supplier-procurement-meta.stacked {
  display: grid;
  gap: 0.18rem;
}

.quote-entry-form {
  align-items: center;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: minmax(0, 1fr) minmax(10.5rem, 12rem);
  justify-content: stretch;
}

.quote-unit-control,
.quote-delivery-control {
  min-width: 0;
  width: 100%;
}

.quote-unit-control .input-group-text,
.quote-delivery-control .input-group-text {
  background: #fff7ed;
  border-color: #e6d2ba;
  color: var(--text-muted);
  flex: 0 0 5.25rem;
  font-weight: 600;
  justify-content: center;
  width: 5.25rem;
}

.quote-remark-control {
  grid-column: 1 / -1;
  min-height: 2.75rem;
  resize: vertical;
}

.quote-entry-form .btn {
  align-self: center;
  grid-column: 1 / -1;
  justify-self: end;
  min-height: 2.5rem;
}

.quote-total-preview {
  align-items: center;
  background: #fff8ef;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  color: var(--text-muted);
  display: inline-flex;
  gap: 0.4rem;
  min-height: 2.375rem;
  padding: 0.35rem 0.7rem;
  white-space: nowrap;
  width: 100%;
}

.quote-total-preview strong {
  color: var(--brand-dark);
}

.quote-date-preview strong {
  display: inline-block;
  min-width: 10ch;
}

.quote-date-placeholder {
  color: rgba(128, 106, 85, 0.56) !important;
}

.quote-locked-input:disabled {
  background: #f1eee8;
  color: #6f6257;
  opacity: 1;
}

.quote-submit-confirm-modal .modal-content {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(95, 53, 19, 0.16);
}

.quote-confirm-list {
  display: grid;
  gap: 0.65rem;
}

.quote-confirm-list > div {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 5rem minmax(0, 1fr);
}

.quote-confirm-list dt {
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.quote-confirm-list dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

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

.supplier-order-filter-bar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.95rem;
  padding: 0.62rem;
}

.supplier-order-filter-link {
  align-items: center;
  border: 1px solid rgba(222, 135, 27, 0.22);
  border-radius: 999px;
  color: var(--text-main);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 0.45rem;
  min-height: 2.2rem;
  padding: 0.45rem 0.85rem;
  text-decoration: none;
}

.supplier-order-filter-link:hover,
.supplier-order-filter-link:focus {
  border-color: rgba(222, 135, 27, 0.55);
  color: var(--brand-primary);
}

.supplier-order-filter-link.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.supplier-order-filter-count {
  background: rgba(222, 135, 27, 0.12);
  border-radius: 999px;
  color: var(--brand-primary);
  min-width: 1.65rem;
  padding: 0.08rem 0.48rem;
  text-align: center;
}

.supplier-order-filter-link.active .supplier-order-filter-count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

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

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

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

.supplier-order-record-line {
  align-items: start;
  border-top: 1px solid rgba(241, 221, 196, 0.72);
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-top: 0.65rem;
}

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

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

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

.supplier-order-detail-stack {
  display: grid;
  gap: 0.9rem;
}

.supplier-order-detail-item {
  background: #fffdf9;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.9rem;
}

.supplier-order-detail-item .supplier-procurement-meta.compact {
  margin-top: 0;
  padding-top: 0.1rem;
}

.supplier-order-process-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.supplier-order-process-block {
  background: #fff8ef;
  border: 1px solid rgba(241, 221, 196, 0.9);
  border-radius: 8px;
  color: var(--text-muted);
  display: grid;
  font-size: 0.84rem;
  gap: 0.22rem;
  padding: 0.75rem;
}

.supplier-order-process-block-wide {
  grid-column: 1 / -1;
}

.supplier-order-process-title {
  color: var(--text-main);
  font-weight: 700;
  margin-bottom: 0.12rem;
}

.supplier-order-empty-quote {
  display: block;
  min-height: 1.25rem;
}

.form-control::placeholder {
  color: rgba(128, 106, 85, 0.58);
}

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

.form-control:focus,
.form-select:focus {
  border-color: var(--brand-secondary);
  box-shadow: 0 0 0 0.2rem rgba(246, 166, 75, 0.2);
}

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

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

.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 {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  min-width: 13rem;
}

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

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

.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: #fff0dc;
  border: 1px solid #f0cc9f;
  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):not(.supplier-product-option),
.supplier-product-readonly-menu .dropdown-item.active:not(.binding-owned-option):not(.supplier-product-option) {
  background: #fff;
  color: var(--text-main);
}

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

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

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

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

.btn-primary {
  --bs-btn-bg: var(--brand-primary);
  --bs-btn-border-color: var(--brand-primary);
  --bs-btn-hover-bg: #b96305;
  --bs-btn-hover-border-color: #b96305;
  --bs-btn-active-bg: #9f5605;
  --bs-btn-active-border-color: #9f5605;
}

.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(217, 119, 6, 0.18);
  border-radius: 8px;
  pointer-events: none;
}

.decor-line::before,
.decor-line::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(246, 166, 75, 0.14);
  border-radius: 50%;
}

.decor-line::before {
  width: 9px;
  height: 9px;
  left: 18%;
  top: 22%;
}

.decor-line::after {
  width: 7px;
  height: 7px;
  right: 20%;
  bottom: 24%;
}

.decor-line-a {
  width: 25vw;
  height: 25vw;
  left: 6vw;
  top: 10vh;
  transform: rotate(30deg);
  border-radius: 18px;
}

.decor-line-b {
  width: 22vw;
  height: 22vw;
  right: 7vw;
  bottom: 12vh;
  transform: rotate(45deg);
  border-radius: 18px;
}

.decor-line-c {
  width: 11vw;
  height: 11vw;
  right: 20vw;
  top: 12vh;
  transform: rotate(15deg);
  border-radius: 50%;
  border-color: rgba(246, 166, 75, 0.18);
}

.decor-line-d {
  width: 18vw;
  height: 12vh;
  left: 15vw;
  bottom: 9vh;
  transform: rotate(-6deg);
  border-color: rgba(217, 119, 6, 0.12);
}

.decor-line-e {
  width: 13vw;
  height: 20vh;
  right: 27vw;
  top: 8vh;
  transform: rotate(9deg);
  border-color: rgba(246, 166, 75, 0.14);
}

.decor-line-f {
  width: 16vw;
  height: 16vw;
  left: 2vw;
  bottom: 19vh;
  transform: rotate(45deg);
  border-radius: 18px;
  border-color: rgba(217, 119, 6, 0.12);
}

.decor-line-g {
  width: 19vw;
  height: 13vh;
  right: 3vw;
  top: 34vh;
  transform: rotate(-5deg);
  border-color: rgba(246, 166, 75, 0.13);
}

.decor-line-h {
  width: 9vw;
  height: 9vw;
  left: 29vw;
  top: 16vh;
  transform: rotate(18deg);
  border-radius: 50%;
  border-color: rgba(217, 119, 6, 0.1);
}

.supplier-sketch,
.supplier-text {
  position: absolute;
  display: block;
  pointer-events: none;
  color: rgba(217, 119, 6, 0.34);
}

.supplier-sketch {
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 8px;
}

.supplier-sketch::after,
.supplier-text::after {
  content: attr(data-label);
  position: absolute;
  color: rgba(217, 119, 6, 0.32);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.sketch-breaker {
  width: 58px;
  height: 92px;
  left: 12vw;
  top: 20vh;
}

.sketch-breaker::before {
  content: "";
  position: absolute;
  width: 26px;
  height: 8px;
  left: 15px;
  top: 42px;
  border: 1px solid rgba(217, 119, 6, 0.18);
  transform: rotate(-28deg);
}

.sketch-breaker::after {
  right: -48px;
  top: 34px;
}

.sketch-cabinet {
  width: 90px;
  height: 128px;
  right: 10vw;
  top: 18vh;
}

.sketch-cabinet::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(246, 166, 75, 0.16);
  border-radius: 6px;
  background: linear-gradient(90deg, transparent 48%, rgba(246, 166, 75, 0.12) 49%, rgba(246, 166, 75, 0.12) 51%, transparent 52%);
}

.sketch-cabinet::after {
  left: 14px;
  bottom: -22px;
}

.sketch-wire {
  width: 160px;
  height: 54px;
  left: 5vw;
  bottom: 20vh;
  border-width: 1px 0 0;
  border-radius: 50% 50% 0 0;
  transform: rotate(-7deg);
}

.sketch-wire::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 13px;
  width: 112px;
  border-top: 1px solid rgba(217, 119, 6, 0.15);
}

.sketch-wire::after {
  left: 58px;
  top: 16px;
}

.sketch-busbar {
  width: 122px;
  height: 50px;
  right: 13vw;
  bottom: 19vh;
  border: 0;
  background:
    linear-gradient(rgba(217, 119, 6, 0.22), rgba(217, 119, 6, 0.22)) 0 8px / 100% 1px no-repeat,
    linear-gradient(rgba(217, 119, 6, 0.18), rgba(217, 119, 6, 0.18)) 0 24px / 100% 1px no-repeat,
    linear-gradient(rgba(217, 119, 6, 0.14), rgba(217, 119, 6, 0.14)) 0 40px / 100% 1px no-repeat;
}

.sketch-busbar::after {
  right: 0;
  top: -12px;
}

.sketch-transformer {
  width: 90px;
  height: 58px;
  left: 24vw;
  bottom: 8vh;
  border: 0;
  background:
    radial-gradient(circle at 24px 29px, transparent 18px, rgba(217, 119, 6, 0.18) 18.5px, rgba(217, 119, 6, 0.18) 19.5px, transparent 20px),
    radial-gradient(circle at 66px 29px, transparent 18px, rgba(217, 119, 6, 0.18) 18.5px, rgba(217, 119, 6, 0.18) 19.5px, transparent 20px);
}

.sketch-transformer::before {
  content: "";
  position: absolute;
  left: 43px;
  top: 29px;
  width: 4px;
  border-top: 1px solid rgba(217, 119, 6, 0.16);
}

.sketch-transformer::after {
  left: 16px;
  bottom: -15px;
}

.sketch-plc {
  width: 112px;
  height: 58px;
  right: 27vw;
  top: 10vh;
  background: repeating-linear-gradient(90deg, transparent 0 9px, rgba(246, 166, 75, 0.12) 9px 10px);
}

.sketch-plc::after {
  right: 8px;
  bottom: -20px;
}

.sketch-filter {
  width: 104px;
  height: 46px;
  left: calc(50% - 185px);
  top: calc(50% - 306px);
  border: 0;
  background:
    linear-gradient(rgba(217, 119, 6, 0.17), rgba(217, 119, 6, 0.17)) 0 22px / 100% 1px no-repeat,
    linear-gradient(135deg, transparent 0 42%, rgba(217, 119, 6, 0.18) 43% 45%, transparent 46% 100%) 18px 4px / 32px 32px no-repeat,
    linear-gradient(45deg, transparent 0 42%, rgba(217, 119, 6, 0.18) 43% 45%, transparent 46% 100%) 54px 4px / 32px 32px no-repeat;
}

.sketch-filter::after {
  left: 24px;
  bottom: -17px;
}

.sketch-relay {
  width: 74px;
  height: 54px;
  left: calc(50% + 102px);
  top: calc(50% + 266px);
}

.sketch-relay::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 13px;
  width: 46px;
  height: 24px;
  border: 1px solid rgba(246, 166, 75, 0.15);
  border-radius: 5px;
  background:
    radial-gradient(circle at 9px 12px, rgba(217, 119, 6, 0.18) 0 2px, transparent 2.5px),
    radial-gradient(circle at 37px 12px, rgba(217, 119, 6, 0.18) 0 2px, transparent 2.5px),
    linear-gradient(rgba(217, 119, 6, 0.14), rgba(217, 119, 6, 0.14)) 11px 12px / 24px 1px no-repeat;
}

.sketch-relay::after {
  left: 16px;
  top: -18px;
}

.sketch-terminal {
  width: 126px;
  height: 34px;
  right: 6vw;
  bottom: 34vh;
  border: 0;
  background:
    repeating-linear-gradient(90deg, rgba(217, 119, 6, 0.18) 0 1px, transparent 1px 20px),
    linear-gradient(rgba(217, 119, 6, 0.16), rgba(217, 119, 6, 0.16)) 0 6px / 100% 1px no-repeat,
    linear-gradient(rgba(217, 119, 6, 0.12), rgba(217, 119, 6, 0.12)) 0 27px / 100% 1px no-repeat;
}

.sketch-terminal::after {
  right: 18px;
  bottom: -18px;
}

.sketch-current-transformer {
  width: 82px;
  height: 82px;
  left: 8vw;
  top: 48vh;
  border-radius: 50%;
}

.sketch-current-transformer::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(246, 166, 75, 0.15);
  border-radius: 50%;
  box-shadow:
    -18px 37px 0 -17px rgba(217, 119, 6, 0.2),
    18px 37px 0 -17px rgba(217, 119, 6, 0.2);
}

.sketch-current-transformer::after {
  left: 50px;
  top: 28px;
}

.supplier-text {
  width: 132px;
  height: 28px;
  border-top: 1px solid rgba(217, 119, 6, 0.18);
}

.supplier-text::after {
  right: 0;
  top: -10px;
}

.supplier-text-a {
  left: 21vw;
  top: 31vh;
}

.supplier-text-b {
  right: 21vw;
  top: 44vh;
}

.supplier-text-c {
  left: 16vw;
  bottom: 12vh;
}

.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: #c29a6b;
  font-size: 0.88rem;
  font-weight: 500;
  pointer-events: none;
  white-space: nowrap;
}

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

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

@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;
  }

  .hero-banner {
    padding: 1.5rem !important;
  }

  .supplier-quote-summary-card {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .supplier-quote-summary-actions {
    justify-content: flex-start;
  }

  .supplier-quote-detail-dialog {
    max-width: calc(100vw - 1rem);
  }

  .supplier-hero-line {
    opacity: 0.34;
  }

  .supplier-hero-arc-a {
    width: 70vw;
    left: -38vw;
    bottom: -86px;
  }

  .supplier-hero-arc-b {
    width: 48vw;
    right: -16vw;
    top: -54px;
  }

  .supplier-hero-ribbon {
    width: 62vw;
    right: -28vw;
    top: 24%;
  }

  .supplier-hero-lattice,
  .supplier-hero-dashes {
    display: none;
  }

  .supplier-hero-corner {
    left: -2rem;
    top: 1rem;
    transform: scale(0.78);
  }

  .supplier-hero-dot-a {
    right: 1rem;
    top: 1rem;
  }

  .supplier-hero-dot-b {
    left: auto;
    right: 5rem;
    bottom: 0.75rem;
  }

  .supplier-welcome-avatar {
    width: 72px;
    height: 72px;
    font-size: 1.65rem;
  }

  .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,
  .supplier-sketch,
  .supplier-text {
    display: none;
  }

  .quote-entry-form {
    grid-template-columns: minmax(0, 1fr) minmax(10.5rem, 12rem);
    justify-content: stretch;
  }

  .quote-remark-control {
    grid-column: 1 / -1;
  }

  .quote-entry-form .btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575.98px) {
  main.container-fluid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .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;
  }

  .supplier-quote-summary-card {
    padding: 1rem !important;
  }

  .supplier-quote-summary-actions .btn {
    width: 100%;
  }

  .supplier-quote-detail-header,
  .supplier-quote-detail-body {
    padding: 1rem;
  }

  .supplier-quote-detail-grid {
    grid-template-columns: 1fr;
  }

  .supplier-quote-item-lines-heading {
    grid-template-columns: 1fr;
  }

  .supplier-quote-heading-label {
    display: none;
  }

  .supplier-quote-item-line {
    grid-template-columns: 1fr;
    grid-template-areas:
      "status"
      "product"
      "meta"
      "remark"
      "deadline"
      "quote-title"
      "quote-values";
  }

  .supplier-quote-item-quote {
    padding-top: 0;
  }

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

  .supplier-order-card-header,
  .supplier-order-record-line,
  .supplier-order-process-grid {
    grid-template-columns: 1fr;
  }

  .supplier-order-card-header .btn,
  .supplier-order-status-badge {
    justify-self: start;
  }

  .quote-total-preview {
    justify-content: flex-start;
    width: 100%;
  }

  .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;
  }

  .login-submit {
    width: 100%;
  }

  .supplier-welcome-card {
    gap: 0.9rem;
  }

  .supplier-welcome-avatar {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
  }

  .supplier-identity-lines {
    max-width: calc(100vw - 150px);
  }
}

@media print {
  .compliance-footer {
    display: none !important;
  }
}
