/*
  DoyoPro UI helpers
  - Centraliza estilos que antes vivían en bloques <style> por template.
  - Evita duplicados entre páginas (list/form/detail/home/page).
*/

:root {
  --doyo-accent: #0d6efd;
  --doyo-muted: #5c6672;

  --doyo-shell-bg: #f7fbff;
  --doyo-hero-bg: linear-gradient(135deg, #0b2036, #0f2d50 58%, #123666);

  /* Tokens de página: se pueden overridear por scope (p.ej. .form-shell--vendor-branch-form). */
  --page-accent: var(--doyo-accent);
  --page-muted: var(--doyo-muted);

  --form-shell-bg: radial-gradient(140% 120% at 12% 12%, rgba(13, 110, 253, 0.18), rgba(13, 110, 253, 0) 55%),
    radial-gradient(100% 90% at 85% 20%, rgba(18, 182, 141, 0.14), rgba(13, 110, 253, 0) 60%);
  --list-shell-bg: radial-gradient(120% 120% at 12% 14%, rgba(13, 110, 253, 0.14), rgba(13, 110, 253, 0) 55%),
    radial-gradient(100% 100% at 90% 16%, rgba(18, 182, 141, 0.12), rgba(13, 110, 253, 0) 60%);
  --detail-shell-bg: var(--doyo-shell-bg);
  --home-shell-bg: radial-gradient(120% 110% at 12% 14%, rgba(13, 110, 253, 0.14), rgba(13, 110, 253, 0) 55%),
    radial-gradient(100% 100% at 90% 16%, rgba(18, 182, 141, 0.12), rgba(13, 110, 253, 0) 60%);
  --page-shell-bg: var(--doyo-shell-bg);

  --form-hero-bg: linear-gradient(135deg, #0b2540, #0f2f58 55%, #12386a);
  --list-hero-bg: var(--doyo-hero-bg);
  --detail-hero-bg: var(--doyo-hero-bg);
  --home-hero-bg: var(--doyo-hero-bg);
  --page-hero-bg: linear-gradient(135deg, #0b2036, #102c4f 58%, #143664);
}

@font-face {
  font-family: "Bauhaus 93";
  src: url("../vendor/fonts/bauhaus-93/BAUHS93.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.form-shell {
  background: var(--form-shell-bg, var(--doyo-shell-bg));
  padding: 12px;
  border-radius: 18px;
}

.list-shell {
  background: var(--list-shell-bg, var(--doyo-shell-bg));
  padding: 12px;
  border-radius: 18px;
}

.detail-shell {
  background: var(--detail-shell-bg, var(--doyo-shell-bg));
  padding: 12px;
  border-radius: 18px;
}

.home-shell {
  background: var(--home-shell-bg, var(--doyo-shell-bg));
  padding: 12px;
  border-radius: 18px;
}

.page-shell {
  background: var(--page-shell-bg, var(--doyo-shell-bg));
  padding: 12px;
  border-radius: 18px;
}

.form-hero {
  background: var(--form-hero-bg, var(--doyo-hero-bg));
  color: #e7f0f9;
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 16px 42px rgba(6, 24, 56, 0.38);
}

.list-hero {
  background: var(--list-hero-bg, var(--doyo-hero-bg));
  color: #e7f0f9;
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 16px 42px rgba(6, 24, 56, 0.38);
}

.detail-hero {
  background: var(--detail-hero-bg, var(--doyo-hero-bg));
  color: #e7f0f9;
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 16px 42px rgba(6, 24, 56, 0.38);
}

.home-hero {
  background: var(--home-hero-bg, var(--doyo-hero-bg));
  color: #e7f0f9;
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 16px 42px rgba(6, 24, 56, 0.38);
}

.page-hero {
  background: var(--page-hero-bg, var(--doyo-hero-bg));
  color: #e7f0f9;
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 16px 42px rgba(6, 24, 56, 0.38);
}

.eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: rgba(231, 240, 249, 0.7);
}

.chip {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e7f0f9;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
}

/* Chips were designed for dark hero backgrounds.
   In System detail pages they often render on a light background, so we
   override to ensure readable contrast. */
.detail-shell .accordion .accordion-body .chip {
  background: rgba(13, 110, 253, 0.08);
  border-color: rgba(13, 110, 253, 0.18);
  color: #0b1f33 !important;
}

.stat {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 140px;
}

.modern-card {
  border: 1px solid rgba(13, 110, 253, 0.14);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(10, 38, 64, 0.16);
  overflow: hidden;
}

.modern-card .card-header {
  background: #f7fbff;
  border-bottom: 1px solid rgba(13, 110, 253, 0.2);
}

.table-modern thead th {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
  color: var(--page-muted, var(--doyo-muted));
  border-bottom: 1px solid #e2eaf3;
  background: #f9fbfd;
}

.table-modern tbody tr:hover {
  background: #f5f9ff;
}

.field-stack {
  background: #f8fbfd;
  border: 1px solid #e3edf6;
  border-radius: 12px;
  padding: 14px 14px 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.field-stack:hover {
  border-color: rgba(13, 110, 253, 0.6);
  box-shadow: 0 8px 22px rgba(13, 110, 253, 0.08);
}

.field-stack label {
  font-weight: 600;
  color: #0b1f33;
  letter-spacing: 0.01em;
  font-size: 0.95rem;
}

.field-stack .form-control {
  border-radius: 10px;
  border-color: #d8e3ef;
  padding: 10px 12px;
  font-weight: 500;
}

.field-stack .form-control:focus {
  border-color: var(--page-accent, var(--doyo-accent));
  box-shadow: 0 0 0 0.18rem rgba(13, 110, 253, 0.16);
}

.field-meta {
  color: var(--page-muted, var(--doyo-muted));
  font-size: 0.85rem;
}

/* Accordion (System) */
.detail-shell .accordion .accordion-button {
  background: linear-gradient(180deg, #eef4ff, #e6efff);
  color: #0b1f33;
  border-bottom: 1px solid rgba(13, 110, 253, 0.14);
}

.detail-shell .accordion .accordion-button:not(.collapsed) {
  background: linear-gradient(180deg, #e6efff, #dbe8ff);
  color: #0b1f33;
  box-shadow: none;
}

.detail-shell .accordion .accordion-button:focus {
  box-shadow: 0 0 0 0.18rem rgba(13, 110, 253, 0.16);
}

/* Auction timeline (System detail) */
.doyo-stepper {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(13, 110, 253, 0.14);
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(10, 38, 64, 0.10);
  margin-bottom: 14px;
}

@media (max-width: 768px) {
  .doyo-stepper {
    justify-content: flex-start;
  }
}

.doyo-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 155px;
  position: relative;
}

.doyo-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 10px;
  left: calc(100% + 7px);
  width: 14px;
  height: 2px;
  background: rgba(13, 110, 253, 0.22);
}

.doyo-step__dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  margin-top: 3px;
  border: 2px solid rgba(13, 110, 253, 0.35);
  background: #ffffff;
  flex: 0 0 auto;
}

.doyo-step__label {
  font-weight: 700;
  color: #0b1f33;
  line-height: 1.1;
}

.doyo-step__date {
  margin-top: 2px;
}

.doyo-step__dateLine,
.doyo-step__timeLine {
  font-size: 0.76rem;
  color: #2a3a4b;
  line-height: 1.15;
}

.doyo-step__timeLine {
  color: rgba(42, 58, 75, 0.85);
}

.doyo-step[data-state="done"] .doyo-step__dot {
  background: #198754;
  border-color: #198754;
}

.doyo-step[data-state="current"] .doyo-step__dot {
  background: #0d6efd;
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.18rem rgba(13, 110, 253, 0.18);
}

.doyo-step[data-state="future"] .doyo-step__dot {
  background: #ffffff;
  border-color: rgba(92, 102, 114, 0.40);
}

.doyo-step[data-state="future"] .doyo-step__label {
  color: rgba(11, 31, 51, 0.65);
}

.doyo-step[data-state="future"] .doyo-step__date {
  color: rgba(42, 58, 75, 0.60);
}

.error-chip {
  display: inline-block;
  background: rgba(220, 53, 69, 0.1);
  color: #a0212f;
  border: 1px solid rgba(220, 53, 69, 0.35);
  border-radius: 10px;
  padding: 6px 10px;
  font-weight: 600;
  font-size: 0.85rem;
}

/* Multi-line truncation (Portal/System)
   Usage:
   - .doyo-line-clamp .doyo-line-clamp-2
   - (optional) .doyo-line-clamp .doyo-line-clamp-10
*/

.doyo-line-clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.doyo-line-clamp-2 {
  -webkit-line-clamp: 2;
}

.doyo-line-clamp-10 {
  -webkit-line-clamp: 10;
}

.badge-soft {
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}

.badge-soft-success {
  background: rgba(25, 135, 84, 0.12);
  color: #157347;
  border: 1px solid rgba(25, 135, 84, 0.35);
}

/* Portal branding helpers */
.portal-header-logo {
  height: 40px;
  width: auto;
  display: block;
}

.portal-header-center {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  transform: translateX(-50%);
  max-width: 34vw;
}

.portal-header-center .portal-header-logo {
  max-width: 100%;
}

.portal-branding-preview {
  border: 1px solid rgba(13, 110, 253, 0.2);
  border-radius: 12px;
  background: #f8fbfd;
  padding: 10px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-branding-preview img {
  max-width: 100%;
  max-height: 72px;
  height: auto;
  width: auto;
}

.portal-branding-preview img[data-branding-preview="sidebar"] {
  max-height: 56px;
}

.portal-branding-preview--sidebar {
  min-height: 56px;
}

.portal-branding-palette-preview {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.portal-branding-autocalc {
  pointer-events: none;
  opacity: 0.85;
}

.portal-palette-row {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
  align-items: start;
}

.portal-palette-section + .portal-palette-section {
  margin-top: 10px;
}

.portal-palette-section__title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 6px;
}

.portal-palette-swatch {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.portal-palette-chip {
  height: 20px;
  border-radius: 6px;
  background: var(--chip-bg, #6c757d);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.portal-palette-chip__label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  line-height: 1.2;
}

.portal-branding-preview--sidebar img[data-branding-preview="sidebar"] {
  max-width: 250px;
}

.portal-branding-crop-area {
  width: 100%;
  min-height: 320px;
  height: 60vh;
  max-height: 60vh;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(13, 110, 253, 0.2);
  background: #0b1f33;
}

.portal-branding-crop-area img {
  display: block;
  max-width: 100%;
}

.portal-branding-zoom {
  width: 220px;
}

/* Auctions: Prelation publish matrix
   - Make wide vendor matrices scroll horizontally.
   - Keep content on one line so the table overflows.
*/

.prelation-publish-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.prelation-publish-table {
  width: max-content;
  min-width: 100%;
}

.prelation-publish-table th,
.prelation-publish-table td {
  white-space: nowrap;
}

.prelation-winning-amount {
  font-weight: 700;
}

.prelation-disabled-amount {
  opacity: 0.55;
}

.prelation-vendor-row--disabled {
  opacity: 0.55;
}

.badge-soft-secondary {
  background: rgba(108, 117, 125, 0.12);
  color: #495057;
  border: 1px solid rgba(108, 117, 125, 0.3);
}

.doyo-header-logo {
  height: 22px;
  width: auto;
  display: inline-block;
}

.doyo-sidebar-logo {
  height: 40px;
  width: auto;
  display: inline-block;
}

.doyo-sidebar-logo--tenant {
  width: 250px;
  height: 56px;
  max-width: 250px;
  max-height: 56px;
  object-fit: contain;
  display: block;
}

.portal-sidebar-brand--tenant {
  width: 100%;
  justify-content: center;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  min-height: 56px;
}

/* Portal sidebar theming (per-tenant via /portal/theme.css variables) */
.app-sidebar.portal-sidebar {
  background-color: var(--portal-sidebar-bg, #1f2d3d) !important;
}

.app-sidebar.portal-sidebar .portal-sidebar-brand {
  background-color: var(--portal-sidebar-brand-bg, var(--portal-sidebar-bg, #1f2d3d)) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-sidebar.portal-sidebar .portal-sidebar-brand .brand-link {
  color: rgba(255, 255, 255, 0.92);
}

.app-sidebar.portal-sidebar .portal-sidebar-brand .brand-text {
  color: rgba(255, 255, 255, 0.9);
}

.app-sidebar.portal-sidebar .sidebar-menu .nav-link.active {
  background-color: rgba(var(--bs-primary-rgb), 0.22) !important;
}

.app-sidebar.portal-sidebar .sidebar-menu .nav-link:hover {
  background-color: rgba(var(--bs-primary-rgb), 0.14);
}

/* System navbar notifications */
.doyo-notification-header {
  white-space: normal;
}

.doyo-notification-item {
  white-space: normal;
}

.doyo-badge-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 999px;
  font-size: 0.75rem;
  line-height: 1;
}

.prelation-summary-table-wrapper {
  overflow: hidden;
}

.prelation-summary-table thead th {
  background: #f9fbfd;
  border-bottom: 1px solid #e2eaf3;
  font-weight: 700;
}

.prelation-summary-table tbody tr:hover {
  background: #f5f9ff;
}

.doyo-notification-item__text {
  min-width: 0;
  white-space: normal;
}

.doyo-notification-item__meta {
  white-space: nowrap;
}

/* Portal > Subastas > Ofertas (tabla de mercado anónima) */
.market-offers-table td.market-offers-table__self-code {
  /* Bootstrap's .table-hover paints cells via a huge inset box-shadow; override it here. */
  --bs-table-bg: rgba(13, 110, 253, 0.12);
  --bs-table-hover-bg: rgba(13, 110, 253, 0.12);
  background-color: rgba(13, 110, 253, 0.12) !important;
  box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.35) !important;
  border-radius: 8px;
}

.market-offers-table td.market-offers-table__best {
  /* Green outline without affecting layout (also overrides Bootstrap table cell shadow). */
  box-shadow: inset 0 0 0 2px rgba(25, 135, 84, 0.75) !important;
  border-radius: 8px;
}

.doyo-brand-text {
  font-family: "Bauhaus 93", "Bauhaus93", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: 0.03em;
}

.doyo-login-logo {
  height: 96px;
  width: auto;
  display: inline-block;
}

.badge-soft-info {
  background: rgba(13, 202, 240, 0.12);
  color: #087990;
  border: 1px solid rgba(13, 202, 240, 0.35);
}

.badge-soft-danger {
  background: rgba(220, 53, 69, 0.1);
  color: #a0212f;
  border: 1px solid rgba(220, 53, 69, 0.35);
}

.search-box {
  background: #f7fbff;
  border: 1px solid #dfe8f2;
  border-radius: 12px;
  padding: 8px;
}

.home-card {
  background: #fff;
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(17, 38, 63, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  height: 100%;
  text-decoration: none;
  color: inherit;
  display: block;
}

.home-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(17, 38, 63, 0.18);
  text-decoration: none;
}

/* Portal: Avatar (profile + dropdown) */
.portal-avatar-card {
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}

/* Portal: Phone input */
.portal-phone-country {
  width: 8.75rem;
  flex: 0 0 auto;
}

.portal-phone-flag {
  background: #fff;
}

.portal-phone-flag-img {
  display: block;
  width: 20px;
  height: 14px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

/* Ensure the phone input grows inside input-group */
#portal-profile-form .input-group .form-control {
  min-width: 0;
}

.portal-avatar-preview {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.portal-navbar-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.portal-navbar-avatar--initial {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
}

.portal-dropdown-avatar {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.portal-dropdown-avatar--initial {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
}

.portal-avatar-preview--initial {
  user-select: none;
}

.portal-avatar-style-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.portal-avatar-style-option {
  min-width: 160px;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  background: #fff;
}

.portal-avatar-style-option:hover {
  border-color: rgba(13, 110, 253, 0.35);
}

.portal-avatar-style-sample {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  line-height: 1;
}

.portal-avatar-style-label {
  flex: 1;
  min-width: 0;
}

.portal-avatar-style-radio input[type="radio"] {
  margin: 0;
}

.portal-avatar-crop-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  padding: 10px;
}

#portal-avatar-crop-canvas {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  touch-action: none;
}

.home-card .icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.home-card .title {
  font-weight: 700;
  font-size: 1.05rem;
}

.home-card .subtitle {
  color: #5c6672;
  margin: 0;
}

.register-info-box {
  width: 520px;
}

/* Icon wrap background colors */
.icon-wrap-primary {
  background: linear-gradient(135deg, #0d6efd, #2b88ff);
}
.icon-wrap-info {
  background: linear-gradient(135deg, #17a2b8, #22c1c3);
}
.icon-wrap-purple {
  background: linear-gradient(135deg, #6f42c1, #9c6bdf);
}
.icon-wrap-warning {
  background: linear-gradient(135deg, rgba(var(--bs-warning-rgb), 1), rgba(var(--bs-warning-rgb), 0.82));
  color: var(--bs-dark);
}

.icon-wrap-secondary {
  background: linear-gradient(135deg, #6c757d, #8a939b);
}

.icon-wrap-success {
  background: linear-gradient(135deg, #198754, #22c55e);
}

.icon-wrap-danger {
  background: linear-gradient(135deg, rgba(var(--bs-danger-rgb), 1), rgba(var(--bs-danger-rgb), 0.82));
  color: #fff;
}

/* Variantes por página (reemplazan <style> inline en templates/system/vendors/...) */
.form-shell--vendor-branch-form {
  --form-shell-bg: radial-gradient(120% 110% at 10% 14%, rgba(13, 110, 253, 0.15), rgba(13, 110, 253, 0) 55%),
    radial-gradient(90% 90% at 90% 18%, rgba(18, 182, 141, 0.12), rgba(13, 110, 253, 0) 60%);
  --form-hero-bg: linear-gradient(135deg, #0b2036, #102c4f 58%, #143664);
}

.form-shell--vendor-category-form {
  --form-shell-bg: radial-gradient(130% 110% at 12% 12%, rgba(13, 110, 253, 0.16), rgba(13, 110, 253, 0) 55%),
    radial-gradient(100% 90% at 88% 18%, rgba(17, 193, 148, 0.16), rgba(13, 110, 253, 0) 60%);
  --form-hero-bg: linear-gradient(135deg, #0c2037, #0f2d50 58%, #123666);
}

.form-shell--vendor-category-requirement-form,
.form-shell--vendor-contact-form,
.form-shell--vendor-document-type-form {
  --form-shell-bg: radial-gradient(120% 110% at 10% 14%, rgba(13, 110, 253, 0.15), rgba(13, 110, 253, 0) 55%),
    radial-gradient(90% 90% at 90% 18%, rgba(126, 66, 255, 0.12), rgba(13, 110, 253, 0) 60%);
  --form-hero-bg: linear-gradient(135deg, #0b2036, #102d50 58%, #153565);
}

.list-shell--vendor-categories {
  --list-shell-bg: radial-gradient(120% 120% at 12% 14%, rgba(13, 110, 253, 0.14), rgba(13, 110, 253, 0) 55%),
    radial-gradient(100% 100% at 90% 16%, rgba(18, 182, 141, 0.12), rgba(13, 110, 253, 0) 60%);
  --list-hero-bg: linear-gradient(135deg, #0b2036, #0f2d50 58%, #123666);
}

.list-shell--vendor-category-requirements,
.list-shell--vendor-document-types {
  --list-shell-bg: radial-gradient(120% 120% at 10% 16%, rgba(13, 110, 253, 0.14), rgba(13, 110, 253, 0) 55%),
    radial-gradient(100% 100% at 88% 14%, rgba(126, 66, 255, 0.12), rgba(13, 110, 253, 0) 60%);
  --list-hero-bg: linear-gradient(135deg, #0b2036, #102c4f 58%, #143664);
}

/* Task tabs layout */
.task-tabs-card .card-header {
  background: #f7fbff;
  border-bottom: 1px solid rgba(13, 110, 253, 0.16);
}

.task-tabs-nav {
  border-bottom: 0;
  padding: 0 8px;
  gap: 6px;
}

.task-tabs-nav .nav-link {
  border: 0;
  border-radius: 10px;
  color: #2f3a47;
  font-weight: 600;
  padding: 10px 14px;
}

.task-tabs-nav .nav-link.active {
  background: #eaf2ff;
  color: #0b1f33;
  box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.2);
}

.task-tabs-body {
  background: #fff;
}

.task-tabs-body .tab-pane > .card:first-child {
  margin-top: 0;
}

/* Portal home */
.portal-home-shell {
  --page-shell-bg: radial-gradient(120% 120% at 12% 10%, rgba(13, 110, 253, 0.12), rgba(13, 110, 253, 0) 55%),
    radial-gradient(100% 100% at 88% 16%, rgba(18, 182, 141, 0.12), rgba(13, 110, 253, 0) 60%);
  --page-hero-bg: var(--portal-home-hero-bg, linear-gradient(135deg, #0b223b, #123156 55%, #1a3a6d));
}

.portal-home-hero {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.portal-home-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(0);
}

.portal-stat-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
}

.portal-stat-card::after {
  content: "";
  position: absolute;
  inset: auto -40% -60% auto;
  width: 200px;
  height: 200px;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.08);
}

.portal-stat-card .stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6c7886;
}

.portal-stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #0b1f33;
  margin: 2px 0 6px;
}

.portal-stat-card .stat-note {
  color: #5c6672;
  font-size: 0.92rem;
}

.portal-stat-card .stat-link {
  margin-top: 18px;
  font-weight: 600;
  color: #1c3e6e;
}

.portal-stat-primary .icon-wrap {
  background: linear-gradient(135deg, rgba(13, 110, 253, 1), rgba(13, 110, 253, 0.72));
}

.portal-stat-info .icon-wrap {
  background: linear-gradient(135deg, rgba(13, 202, 240, 1), rgba(13, 202, 240, 0.75));
}

.portal-stat-success .icon-wrap {
  background: linear-gradient(135deg, rgba(25, 135, 84, 1), rgba(25, 135, 84, 0.75));
}

/* Participants accordion */
.participants-pane .participants-stats {
  display: grid;
  gap: 12px;
}

.stat-tile {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(13, 110, 253, 0.12);
  background: #fff;
  box-shadow: 0 10px 22px rgba(17, 38, 63, 0.08);
}

.stat-tile__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.2rem;
}

.stat-tile__label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  color: #6c7886;
}

.stat-tile__value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0b1f33;
}

.stat-tile--info .stat-tile__icon {
  background: linear-gradient(135deg, rgba(13, 202, 240, 1), rgba(13, 202, 240, 0.7));
}

.stat-tile--neutral .stat-tile__icon {
  background: linear-gradient(135deg, rgba(108, 117, 125, 1), rgba(108, 117, 125, 0.7));
}

.stat-tile--success .stat-tile__icon {
  background: linear-gradient(135deg, rgba(25, 135, 84, 1), rgba(25, 135, 84, 0.75));
}

/* Timeline view */
.timeline-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.summary-card {
  background: #fff;
  border: 1px solid #e1ebf5;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 10px 22px rgba(17, 38, 63, 0.08);
  position: relative;
  overflow: hidden;
  min-height: 72px;
}

.summary-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -55% auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: var(--summary-glow, rgba(13, 110, 253, 0.12));
}

.summary-card--success {
  --summary-glow: rgba(25, 135, 84, 0.2);
  border-color: rgba(25, 135, 84, 0.2);
}

.summary-card--warning {
  --summary-glow: rgba(255, 193, 7, 0.25);
  border-color: rgba(255, 193, 7, 0.25);
}

.summary-card--neutral {
  --summary-glow: rgba(108, 117, 125, 0.2);
  border-color: rgba(108, 117, 125, 0.2);
}

.summary-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6c7886;
}

.summary-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0b1f33;
}

.doyo-timeline {
  margin-top: 6px;
}

.doyo-timeline::before {
  background: #d7e4f3;
}

.doyo-timeline .time-label span {
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(17, 38, 63, 0.18);
}

.doyo-timeline > div > i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 8px 18px rgba(17, 38, 63, 0.18);
}

.doyo-timeline-item {
  border-radius: 14px;
  border: 1px solid #e3edf6;
  box-shadow: 0 10px 22px rgba(17, 38, 63, 0.08);
  padding: 12px 16px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.doyo-timeline-item .timeline-header {
  font-size: 1.02rem;
  font-weight: 600;
  color: #0b1f33;
}

.doyo-timeline-item .timeline-body {
  font-size: 0.95rem;
}

.doyo-timeline-item .time {
  font-size: 0.82rem;
}

.doyo-timeline-item:hover {
  transform: translateY(-1px);
  border-color: rgba(13, 110, 253, 0.35);
  box-shadow: 0 14px 28px rgba(17, 38, 63, 0.12);
}

.doyo-timeline-item--completed {
  background: #f6fbf8;
}

.doyo-timeline-item--current {
  background: #fff9e8;
}

.doyo-timeline-item--future {
  background: #f6f8fb;
}

/* Date inputs (dd/mm/aaaa) - native picker overlay */
.doyo-date-input-group {
  position: relative;
}

.doyo-date-input-group .doyopro-datepicker-native {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2.75rem; /* matches Bootstrap button height/width in input-groups */
  opacity: 0;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

/* Workflow: compact, "premium" filter spacing */
.workflow-filters .form-label {
  margin-bottom: 0.25rem;
}

.workflow-filters__hint {
  min-height: 38px;
}

/* Workflow process instances: bulk action bar */
.bulk-bar--sticky {
  position: sticky;
  top: 0.75rem;
  z-index: 5;
}

/* System > Auctions > Advanced participation filters */
.filter-section {
  border: 1px solid var(--bs-border-color);
  border-radius: 0.9rem;
  padding: 1rem;
  scroll-margin-top: 90px; /* anchors won't hide under sticky headers */
  background: var(--bs-body-bg);
}

.filter-section__head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}

.filter-section__title {
  font-weight: 600;
}

.filter-section__desc {
  margin-top: 0.15rem;
  color: var(--bs-secondary-color);
  font-size: 0.875rem;
  max-width: 70ch;
}

.filter-scrollbox {
  max-height: 260px;
  overflow: auto;
  border-radius: 0.6rem;
}

.rule-row {
  border: 1px solid var(--bs-border-color);
  border-radius: 0.8rem;
  padding: 0.75rem;
}

.rule-row__left {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.rule-row__controls {
  margin-top: 0.75rem;
}

/* Financial indicator rules: table-based alignment ("invisible table") */
.rule-matrix-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.rule-matrix {
  min-width: 760px;
}

.rule-matrix td {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.rule-matrix__metric {
  width: auto;
}

.rule-matrix__op {
  width: 140px;
  padding-right: 0.5rem;
}

.rule-matrix__from {
  width: 220px;
  padding-right: 0.5rem;
}

.rule-matrix__to {
  width: 220px;
}

.filter-actions {
  position: sticky;
  bottom: 0;
  background: var(--bs-body-bg);
  border-top: 1px solid var(--bs-border-color);
  padding-top: 0.75rem;
  padding-bottom: 0.25rem;
}
