:root {
  --bs-menu-width: 20rem;
  --dc-primary: #696cff;
  --dc-primary-dark: #5457d7;
  --dc-accent: #0f9f8f;
  --dc-surface-subtle: #f6f7fb;
  --dc-border: #e5e7ef;
  --dc-text: #2f3349;
  --dc-muted: #6b7280;
  --dc-focus: #0b6ef3;
}

html,
body {
  min-height: 100%;
}

body {
  color: var(--dc-text);
  font-family: "Segoe UI", "Public Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

a,
button,
input,
select,
textarea {
  transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, background-color 160ms ease;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--dc-focus) 55%, transparent);
  outline-offset: 2px;
}

.btn {
  min-height: 42px;
}

.dc-skip-link {
  position: fixed;
  z-index: 2000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: #fff;
  background: #111827;
  transform: translateY(-150%);
}

.dc-skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

.dc-app-brand {
  min-height: 76px;
  padding-inline: 1.25rem;
}

.dc-brand-mark {
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 2.25rem;
  place-items: center;
  border-radius: 0.75rem;
  color: #fff;
  background: linear-gradient(145deg, var(--dc-primary), #8588ff);
  box-shadow: 0 0.4rem 1rem rgb(105 108 255 / 22%);
}

.dc-brand-mark svg {
  width: 1.45rem;
  height: 1.45rem;
  fill: currentColor;
}

.app-brand-text {
  color: var(--dc-text);
  font-size: 1.05rem;
  letter-spacing: -0.025em;
}

.dc-icon {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 1.25rem;
  vertical-align: -0.2em;
  background-color: currentColor;
  mask: var(--dc-icon) center / contain no-repeat;
  -webkit-mask: var(--dc-icon) center / contain no-repeat;
}

.dc-icon-dashboard { --dc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3h8v8H3V3Zm10 0h8v5h-8V3ZM3 13h8v8H3v-8Zm10-3h8v11h-8V10Z'/%3E%3C/svg%3E"); }
.dc-icon-vendors { --dc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm6.5-1a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7ZM2 20a7 7 0 0 1 14 0v1H2v-1Zm14.3-7.8A6.5 6.5 0 0 1 22 18.7V20h-4a8.9 8.9 0 0 0-2.7-6.5l1-.3Z'/%3E%3C/svg%3E"); }
.dc-icon-offers { --dc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4V3a5 5 0 0 1 10 0v1h4l-1.2 17H4.2L3 4h4Zm2 0h6V3a3 3 0 0 0-6 0v1Zm0 4v2h2V8H9Zm4 0v2h2V8h-2Z'/%3E%3C/svg%3E"); }
.dc-icon-catalog { --dc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 9 4.5v11L12 22l-9-4.5v-11L12 2Zm0 2.2L6.1 7.1 12 10l5.9-2.9L12 4.2ZM5 8.7v7.6l6 3v-7.6l-6-3Zm8 10.6 6-3V8.7l-6 3v7.6Z'/%3E%3C/svg%3E"); }
.dc-icon-properties { --dc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 3h2v4h2v2H3V7h2V3Zm12 0h2v10h2v2h-6v-2h2V3ZM11 9h2v12h-2V9ZM5 11h2v10H5V11Zm12 6h2v4h-2v-4ZM9 5h6v2H9V5Z'/%3E%3C/svg%3E"); }
.dc-icon-system { --dc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m10.8 2 2.4.1.7 2.4 1.4.6 2.2-1.2 1.8 1.8-1.2 2.2.6 1.4 2.4.7v2.5l-2.4.7-.6 1.4 1.2 2.2-1.8 1.8-2.2-1.2-1.4.6-.7 2.4h-2.5l-.7-2.4-1.4-.6-2.2 1.2-1.8-1.8 1.2-2.2-.6-1.4-2.4-.7V10l2.4-.7.6-1.4-1.2-2.2 1.8-1.8 2.2 1.2 1.4-.6.8-2.5ZM12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z'/%3E%3C/svg%3E"); }
.dc-icon-shield { --dc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 8 3v6c0 5.1-3.3 9.6-8 11-4.7-1.4-8-5.9-8-11V5l8-3Zm0 2.1L6 6.3V11c0 3.9 2.4 7.4 6 8.8 3.6-1.4 6-4.9 6-8.8V6.3l-6-2.2Zm-1 10.7-3-3 1.4-1.4 1.6 1.6 3.6-3.6 1.4 1.4-5 5Z'/%3E%3C/svg%3E"); }
.dc-icon-menu { --dc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18v2H3V5Zm0 6h18v2H3v-2Zm0 6h18v2H3v-2Z'/%3E%3C/svg%3E"); }
.dc-icon-close { --dc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6.4 5 5.6 5.6L17.6 5 19 6.4 13.4 12l5.6 5.6-1.4 1.4-5.6-5.6L6.4 19 5 17.6l5.6-5.6L5 6.4 6.4 5Z'/%3E%3C/svg%3E"); }
.dc-icon-search { --dc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10.5 3a7.5 7.5 0 1 1-4.7 13.3L2 20.1 3.9 22l3.8-3.8A7.5 7.5 0 0 1 10.5 3Zm0 2a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11Z'/%3E%3C/svg%3E"); }
.dc-icon-logout { --dc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 3h9v2H6v14h7v2H4V3Zm12.6 4.6L21 12l-4.4 4.4-1.4-1.4 2-2H9v-2h8.2l-2-2 1.4-1.4Z'/%3E%3C/svg%3E"); }
.dc-icon-arrow-right { --dc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m13.6 5 7 7-7 7-1.4-1.4 4.6-4.6H4v-2h12.8l-4.6-4.6L13.6 5Z'/%3E%3C/svg%3E"); }
.dc-icon-arrow-left { --dc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m10.4 5-7 7 7 7 1.4-1.4L7.2 13H20v-2H7.2l4.6-4.6L10.4 5Z'/%3E%3C/svg%3E"); }
.dc-icon-refresh { --dc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.4 5.6A9 9 0 1 0 21 12h-2a7 7 0 1 1-2-4.9L14 10h7V3l-2.6 2.6Z'/%3E%3C/svg%3E"); }
.dc-icon-alert { --dc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 1 21h22L12 2Zm0 4 7.5 13h-15L12 6Zm-1 4v5h2v-5h-2Zm0 6.5v2h2v-2h-2Z'/%3E%3C/svg%3E"); }
.dc-icon-eye { --dc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5c5.5 0 9.5 5.2 10 6l.5 1-.5 1c-.5.8-4.5 6-10 6S2.5 13.8 2 13l-.5-1 .5-1c.5-.8 4.5-6 10-6Zm0 2c-4.1 0-7.4 3.8-8 5 .6 1.2 3.9 5 8 5s7.4-3.8 8-5c-.6-1.2-3.9-5-8-5Zm0 2a3 3 0 1 1 0 6 3 3 0 0 1 0-6Z'/%3E%3C/svg%3E"); }
.dc-icon-external { --dc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 3h8v8h-2V6.4l-8.3 8.3-1.4-1.4L17.6 5H13V3ZM5 5h5v2H7v10h10v-3h2v5H5V5Z'/%3E%3C/svg%3E"); }

.dc-icon-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  place-items: center;
}

.dc-menu-toggle {
  width: calc(100% - 2rem);
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.menu-vertical .menu-item .dc-menu-toggle {
  padding-inline-end: 3.25rem;
}

.menu-vertical .menu-item .dc-menu-toggle::after {
  inset-inline-end: 1.25rem;
}

.menu-link .text-truncate {
  min-width: 0;
}

.dc-menu-disabled {
  cursor: default;
  opacity: 0.62;
}

.menu-inner .badge {
  flex: 0 0 auto;
  font-size: 0.62rem;
}

.dc-global-search {
  display: flex;
  width: min(31rem, 58vw);
  min-height: 44px;
  align-items: center;
  gap: 0.5rem;
}

.dc-global-search .dc-icon {
  color: var(--dc-muted);
}

.dc-user-menu {
  display: flex;
  max-width: 16rem;
  align-items: center;
  gap: 0.6rem;
}

.dc-user-avatar {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--dc-primary);
  font-weight: 700;
}

.dc-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.dc-page-heading h1 {
  color: var(--dc-text);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  letter-spacing: -0.035em;
}

.dc-eyebrow {
  margin-bottom: 0.35rem;
  color: var(--dc-primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.dc-overview-icon {
  width: 3rem;
  height: 3rem;
  color: var(--dc-primary);
}

.dc-overview-copy {
  max-width: 46rem;
}

.dc-overview-link {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  gap: 0.85rem;
  padding-inline: 1.5rem;
}

.dc-list-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.dc-list-search {
  display: grid;
  min-width: min(100%, 34rem);
  grid-template-columns: auto minmax(12rem, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
}

.dc-list-search > .dc-icon {
  color: var(--dc-muted);
}

.dc-state-panel {
  display: grid;
  min-height: 18rem;
  padding: 3rem 1.5rem;
  place-items: center;
  align-content: center;
  text-align: center;
}

.dc-state-panel > * {
  max-width: 34rem;
}

.dc-state-icon {
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1rem;
  color: var(--dc-primary);
}

#vendors-error .dc-state-icon,
#vendor-details-error .dc-state-icon {
  color: #dc3545;
}

.dc-skeleton-table {
  display: grid;
  width: 100%;
  gap: 0.75rem;
}

.dc-skeleton-table > div {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.7fr;
  gap: 1rem;
}

.dc-skeleton-table span,
.dc-skeleton-card::before {
  min-height: 1.1rem;
  border-radius: 0.35rem;
  background: linear-gradient(90deg, #eef0f5 25%, #f8f9fc 45%, #eef0f5 65%);
  background-size: 240% 100%;
  animation: dc-skeleton 1.35s ease-in-out infinite;
}

.dc-skeleton-card {
  min-height: 22rem;
  padding: 1.5rem;
}

.dc-skeleton-card::before {
  width: 100%;
  content: "";
}

@keyframes dc-skeleton {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

.dc-pagination-bar {
  display: flex;
  min-height: 4rem;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.dc-vendor-name {
  display: flex;
  min-width: 15rem;
  align-items: center;
  gap: 0.75rem;
}

.dc-vendor-monogram {
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 2.25rem;
  place-items: center;
  border-radius: 0.65rem;
  color: var(--dc-primary-dark);
  background: rgb(105 108 255 / 11%);
  font-weight: 700;
}

.dc-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.dc-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--dc-border);
  border-left: 1px solid var(--dc-border);
}

.dc-details-grid > div {
  min-width: 0;
  padding: 1rem;
  border-right: 1px solid var(--dc-border);
  border-bottom: 1px solid var(--dc-border);
}

.dc-details-grid dt,
.dc-side-details dt {
  margin-bottom: 0.3rem;
  color: var(--dc-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.dc-details-grid dd,
.dc-side-details dd {
  margin: 0;
  color: var(--dc-text);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.dc-detail-block {
  margin-top: 1.5rem;
}

.dc-side-details {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.dc-inline-empty {
  padding: 2rem;
  color: var(--dc-muted);
  text-align: center;
}

.dc-auth-body {
  background:
    radial-gradient(circle at 12% 12%, rgb(105 108 255 / 13%), transparent 30rem),
    radial-gradient(circle at 88% 82%, rgb(15 159 143 / 10%), transparent 28rem),
    var(--dc-surface-subtle);
}

.dc-auth-card {
  border: 1px solid rgb(105 108 255 / 10%);
  box-shadow: 0 1.5rem 4rem rgb(47 51 73 / 12%);
}

.dc-auth-note {
  padding-top: 1rem;
  border-top: 1px solid var(--dc-border);
  color: var(--dc-muted);
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: center;
}

.dc-password-toggle {
  min-width: 44px;
  justify-content: center;
  border: 0;
}

.validation-summary-valid {
  display: none;
}

.table > :not(caption) > * > * {
  padding-block: 0.9rem;
}

.table thead th {
  color: #5d6175;
  font-size: 0.75rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.dc-data-table-card {
  min-width: 0;
  overflow: hidden;
}

.dc-data-table-card > .table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

@media (max-width: 991.98px) {
  .dc-page-heading,
  .dc-list-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .dc-page-heading > .btn,
  .dc-page-heading > button {
    align-self: flex-start;
  }

  .dc-list-search {
    min-width: 100%;
  }
}

@media (max-width: 575.98px) {
  .dc-global-search {
    width: auto;
    flex: 1;
  }

  .dc-global-search input {
    min-width: 0;
  }

  .dc-list-search {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .dc-list-search .btn {
    grid-column: 1 / -1;
  }

  .dc-details-grid {
    grid-template-columns: 1fr;
  }

  .dc-skeleton-table > div {
    grid-template-columns: 1.4fr 0.8fr;
  }

  .dc-skeleton-table span:nth-child(n + 3) {
    display: none;
  }

  .dc-pagination-bar {
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
