/**
 * RFQ Builder — Frontend App CSS
 * Covers: App shell, sidebar, topbar, views (dashboard, profile, org, users),
 *         auth pages (login, register, forgot/reset password), and shared components.
 *
 * Design tokens live as CSS custom properties so child themes can override them.
 */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --rfq-primary:        #1a56db;
  --rfq-primary-hover:  #1447c0;
  --rfq-primary-light:  #e8efff;
  --rfq-danger:         #e02424;
  --rfq-danger-light:   #fde8e8;
  --rfq-success:        #0e9f6e;
  --rfq-success-light:  #d5f5e4;
  --rfq-warning:        #d97706;
  --rfq-warning-light:  #fef3c7;
  --rfq-info:           #3b82f6;
  --rfq-info-light:     #eff6ff;

  --rfq-sidebar-bg:     #111827;
  --rfq-sidebar-text:   #9ca3af;
  --rfq-sidebar-active: #ffffff;
  --rfq-sidebar-hover:  rgba(255,255,255,.08);
  --rfq-sidebar-width:  260px;

  --rfq-topbar-height:  48px;
  --rfq-topbar-bg:      #ffffff;
  --rfq-topbar-border:  #e5e7eb;

  --rfq-bg:             #f3f4f6;
  --rfq-surface:        #ffffff;
  --rfq-border:         #e5e7eb;
  --rfq-text:           #111827;
  --rfq-text-muted:     #6b7280;
  --rfq-text-light:     #9ca3af;

  --rfq-radius-sm:      4px;
  --rfq-radius:         8px;
  --rfq-radius-lg:      12px;
  --rfq-radius-xl:      16px;
  --rfq-shadow-sm:      0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --rfq-shadow:         0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.05);
  --rfq-shadow-lg:      0 10px 24px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.06);

  --rfq-font:           -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --rfq-transition:     0.18s ease;
}

/* ============================================================
   RESET (scoped to .rfq-app and .rfq-auth-page)
   ============================================================ */
.rfq-app *, .rfq-auth-page *,
.rfq-app *::before, .rfq-app *::after,
.rfq-auth-page *::before, .rfq-auth-page *::after {
  box-sizing: border-box;
}
.rfq-app { font-family: var(--rfq-font); color: var(--rfq-text); }

/* ============================================================
   APP LAYOUT
   ============================================================ */
.rfq-app {
  display: flex;
  min-height: 100vh;
  background: var(--rfq-bg);
  position: relative;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.rfq-app__sidebar {
  width: var(--rfq-sidebar-width);
  min-height: 100vh;
  background: var(--rfq-sidebar-bg);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 200;
  transition: transform var(--rfq-transition);
  overflow-y: auto;
  overflow-x: hidden;
}
.page-header .entry-title, .site-footer .footer-inner, .site-header .header-inner, body:not([class*="elementor-page-"]) .site-main{
  max-width: 4440px!important;
}
/* Brand / Logo area */
.rfq-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.rfq-sidebar__logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: 1;
  min-width: 0;
}
.rfq-sidebar__logo-icon {
  width: 36px;
  height: 36px;
  background: var(--rfq-primary);
  border-radius: var(--rfq-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.rfq-sidebar__logo-icon svg { width: 20px; height: 20px; }
.rfq-sidebar__org-logo {
  height: 36px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  border-radius: 4px;
}
.rfq-sidebar__brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.rfq-sidebar__app-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rfq-sidebar__role-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 1px 6px;
  border-radius: 20px;
  width: fit-content;
  margin-top: 2px;
}
.rfq-role-admin   { background: #7e3af2; color: #fff; }
.rfq-role-manager { background: var(--rfq-primary); color: #fff; }
.rfq-role-user    { background: #374151; color: var(--rfq-sidebar-text); }

.rfq-sidebar__close {
  display: none;
  background: transparent;
  border: none;
  color: var(--rfq-sidebar-text);
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.rfq-sidebar__close svg { width: 18px; height: 18px; }

/* Nav sections */
.rfq-sidebar__nav {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
}
.rfq-sidebar__section {
  margin-bottom: 8px;
}
.rfq-sidebar__section-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--rfq-sidebar-text);
  opacity: .6;
  padding: 0 16px;
  margin: 12px 0 4px;
}
.rfq-sidebar__menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rfq-sidebar__menu-item.is-active .rfq-sidebar__menu-link {
  background: rgba(255,255,255,.1);
  color: var(--rfq-sidebar-active);
}
.rfq-sidebar__menu-item.is-active .rfq-sidebar__menu-icon svg {
  stroke: var(--rfq-primary-light);
}
.rfq-sidebar__menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  color: var(--rfq-sidebar-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 0;
  transition: background var(--rfq-transition), color var(--rfq-transition);
  position: relative;
}
.rfq-sidebar__menu-link:hover {
  background: var(--rfq-sidebar-hover);
  color: #fff;
  text-decoration: none;
}
.rfq-sidebar__menu-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: .8;
}
.rfq-sidebar__menu-icon svg { width: 18px; height: 18px; }
.rfq-sidebar__menu-label { flex: 1; }
.rfq-sidebar__external-badge {
  font-size: 11px;
  opacity: .6;
}
.rfq-sidebar__menu-link--logout:hover {
  background: rgba(224,36,36,.15);
  color: #f98080;
}

/* Sidebar footer */
.rfq-sidebar__footer {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 8px 0 0;
  flex-shrink: 0;
}
.rfq-sidebar__menu--footer { padding-bottom: 0; }
.rfq-sidebar__user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(255,255,255,.04);
  margin-top: 4px;
}
.rfq-sidebar__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.rfq-sidebar__user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.rfq-sidebar__user-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rfq-sidebar__user-email {
  font-size: 11px;
  color: var(--rfq-sidebar-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   MAIN AREA
   ============================================================ */
.rfq-app__main {
  flex: 1;
  margin-left: var(--rfq-sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.rfq-app__topbar {
  height: var(--rfq-topbar-height);
  background: var(--rfq-topbar-bg);
  border-bottom: 1px solid var(--rfq-topbar-border);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--rfq-shadow-sm);
}
.rfq-topbar__menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--rfq-text);
  border-radius: var(--rfq-radius-sm);
}
.rfq-topbar__menu-toggle svg { width: 22px; height: 22px; }
.rfq-topbar__menu-toggle:hover { background: var(--rfq-border); }
.rfq-topbar__breadcrumb { flex: 1; }
.rfq-topbar__page-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--rfq-text);
}
.rfq-topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* User menu */
.rfq-topbar__user {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--rfq-radius);
  transition: background var(--rfq-transition);
  position: relative;
  user-select: none;
}
.rfq-topbar__user:hover { background: var(--rfq-bg); }
.rfq-topbar__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.rfq-topbar__user-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--rfq-text);
}
.rfq-topbar__chevron { color: var(--rfq-text-muted); }
.rfq-topbar__chevron svg {
  width: 16px;
  height: 16px;
  transform: rotate(90deg);
  transition: transform var(--rfq-transition);
}
.rfq-topbar__user.is-open .rfq-topbar__chevron svg { transform: rotate(270deg); }
.rfq-topbar__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: var(--rfq-surface);
  border: 1px solid var(--rfq-border);
  border-radius: var(--rfq-radius);
  box-shadow: var(--rfq-shadow-lg);
  z-index: 300;
  display: none;
  overflow: hidden;
}
.rfq-topbar__user.is-open .rfq-topbar__dropdown { display: block; }
.rfq-dropdown__header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--rfq-border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rfq-dropdown__header strong { font-size: 14px; color: var(--rfq-text); }
.rfq-dropdown__header small { font-size: 12px; color: var(--rfq-text-muted); }
.rfq-dropdown__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: var(--rfq-text);
  text-decoration: none;
  font-size: 14px;
  transition: background var(--rfq-transition);
}
.rfq-dropdown__item svg { width: 16px; height: 16px; flex-shrink: 0; }
.rfq-dropdown__item:hover { background: var(--rfq-bg); text-decoration: none; }
.rfq-dropdown__item--danger { color: var(--rfq-danger); }
.rfq-dropdown__item--danger:hover { background: var(--rfq-danger-light); }
.rfq-dropdown__divider { height: 1px; background: var(--rfq-border); margin: 4px 0; }

/* ============================================================
   CONTENT AREA
   ============================================================ */
.rfq-app__content {
  flex: 1;
  padding: 32px;
  max-width: 1200px;
  width: 100%;
}

/* ============================================================
   MOBILE OVERLAY
   ============================================================ */
.rfq-app__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 199;
  backdrop-filter: blur(2px);
}
.rfq-app__overlay.is-visible { display: block; }

/* ============================================================
   BUTTONS
   ============================================================ */
.rfq-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--rfq-radius);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--rfq-transition);
  white-space: nowrap;
  line-height: 1;
}
.rfq-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.rfq-btn--primary { background: var(--rfq-primary); color: #fff; }
.rfq-btn--primary:hover { background: var(--rfq-primary-hover); color: #fff; text-decoration: none; }
.rfq-btn--secondary { background: var(--rfq-bg); color: var(--rfq-text); border: 1px solid var(--rfq-border); }
.rfq-btn--secondary:hover { background: var(--rfq-border); text-decoration: none; }
.rfq-btn--ghost { background: transparent; color: var(--rfq-text); border: 1px solid var(--rfq-border); }
.rfq-btn--ghost:hover { background: var(--rfq-bg); text-decoration: none; }
.rfq-btn--danger { background: var(--rfq-danger); color: #fff; }
.rfq-btn--danger:hover { background: #c81e1e; text-decoration: none; }
.rfq-btn--sm { padding: 6px 12px; font-size: 13px; }
.rfq-btn--full { width: 100%; justify-content: center; }
.rfq-btn:disabled { opacity: .55; cursor: not-allowed; }

/* ============================================================
   ALERTS
   ============================================================ */
.rfq-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--rfq-radius);
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
}
.rfq-alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.rfq-alert--success { background: var(--rfq-success-light); color: #065f46; border: 1px solid #a7f3d0; }
.rfq-alert--error   { background: var(--rfq-danger-light);  color: #9b1c1c; border: 1px solid #fca5a5; }
.rfq-alert--info    { background: var(--rfq-info-light);    color: #1e40af; border: 1px solid #bfdbfe; }
.rfq-alert--warning { background: var(--rfq-warning-light); color: #92400e; border: 1px solid #fcd34d; }
.rfq-alert p { margin: 4px 0 0; font-weight: 400; }

/* ============================================================
   CARDS
   ============================================================ */
.rfq-card {
  background: var(--rfq-surface);
  border: 1px solid var(--rfq-border);
  border-radius: var(--rfq-radius-lg);
  padding: 24px;
  box-shadow: var(--rfq-shadow-sm);
}
.rfq-card--info { border-left: 4px solid var(--rfq-info); }
.rfq-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.rfq-card__header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.rfq-card__title {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  color: var(--rfq-text);
}

/* ============================================================
   FORMS
   ============================================================ */
.rfq-form { width: 100%; }
.rfq-form__heading {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--rfq-text);
}
.rfq-form__field {
  margin-bottom: 20px;
}
.rfq-form__field--action { align-self: flex-end; }
.rfq-form__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--rfq-text);
  margin-bottom: 6px;
}
.rfq-form__label-action {
  font-size: 12px;
  font-weight: 400;
  color: var(--rfq-primary);
  text-decoration: none;
}
.rfq-form__label-action:hover { text-decoration: underline; }
.rfq-form__label--hidden { visibility: hidden; }
.rfq-form__required { color: var(--rfq-danger); margin-left: 2px; }
.rfq-form__input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--rfq-border);
  border-radius: var(--rfq-radius);
  font-size: 14px;
  color: var(--rfq-text);
  background: var(--rfq-surface);
  transition: border-color var(--rfq-transition), box-shadow var(--rfq-transition);
  font-family: var(--rfq-font);
  appearance: none;
  -webkit-appearance: none;
}
.rfq-form__input:focus {
  outline: none;
  border-color: var(--rfq-primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,.15);
}
.rfq-form__input:disabled, .rfq-form__input[readonly] {
  background: var(--rfq-bg);
  color: var(--rfq-text-muted);
  cursor: not-allowed;
}
.rfq-form__input--sm { padding: 7px 10px; font-size: 13px; }
.rfq-form__textarea { resize: vertical; min-height: 100px; }
.rfq-form__hint {
  font-size: 12px;
  color: var(--rfq-text-muted);
  margin: 5px 0 0;
}
.rfq-form__hint--warn { color: var(--rfq-warning); }
.rfq-form__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.rfq-form__input-wrap .rfq-form__input { padding-right: 44px; }
.rfq-form__row {
  display: grid;
  gap: 16px;
}
.rfq-form__row--2col { grid-template-columns: 1fr 1fr; }
.rfq-form__row--3col { grid-template-columns: 1fr 1fr auto; }
.rfq-form__actions { margin-top: 8px; }
.rfq-form__section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--rfq-text-muted);
}
.rfq-form__section-divider::before, .rfq-form__section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rfq-border);
}

/* Password toggle */
.rfq-pw-toggle {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--rfq-text-muted);
  padding: 4px;
  display: flex;
  align-items: center;
}
.rfq-pw-toggle:hover { color: var(--rfq-text); }
.rfq-pw-toggle svg { width: 18px; height: 18px; }

/* Password strength */
.rfq-pw-strength { margin-top: 8px; display: flex; align-items: center; gap: 10px; }
.rfq-pw-strength__bar {
  flex: 1;
  height: 4px;
  background: var(--rfq-border);
  border-radius: 4px;
  overflow: hidden;
}
.rfq-pw-strength__fill {
  height: 100%;
  width: 0;
  border-radius: 4px;
  transition: width .3s ease, background .3s ease;
}
.rfq-pw-strength__label { font-size: 12px; font-weight: 500; white-space: nowrap; }
.rfq-pw-match-hint { font-size: 12px; font-weight: 500; margin-top: 4px; display: block; }

/* Checkbox */
.rfq-form__field--checkbox { display: flex; align-items: center; }
.rfq-checkbox { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.rfq-checkbox input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; }
.rfq-checkbox__label { font-size: 13px; color: var(--rfq-text); }
.rfq-checkbox__label a { color: var(--rfq-primary); }

/* Search wrap */
.rfq-search-wrap { position: relative; }
.rfq-search-wrap .rfq-form__input { min-width: 220px; }

/* ============================================================
   BADGES
   ============================================================ */
.rfq-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.rfq-badge svg { width: 12px; height: 12px; }
.rfq-badge--org { background: var(--rfq-primary-light); color: var(--rfq-primary); }
.rfq-badge--role { }

/* ============================================================
   TABS
   ============================================================ */
.rfq-profile__tabs {
  display: flex;
  gap: 4px;
  background: var(--rfq-surface);
  border: 1px solid var(--rfq-border);
  border-radius: var(--rfq-radius);
  padding: 4px;
  width: fit-content;
  margin-bottom: 24px;
}
.rfq-tab-btn {
  padding: 8px 18px;
  border: none;
  border-radius: var(--rfq-radius-sm);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: var(--rfq-text-muted);
  transition: all var(--rfq-transition);
}
.rfq-tab-btn:hover { color: var(--rfq-text); background: var(--rfq-bg); }
.rfq-tab-btn.is-active { background: var(--rfq-primary); color: #fff; }
.rfq-tab-content { display: none; }
.rfq-tab-content.is-active { display: block; }

/* ============================================================
   DASHBOARD VIEW
   ============================================================ */
.rfq-view { animation: rfqFadeIn .2s ease; }
@keyframes rfqFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.rfq-dashboard__hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}
.rfq-dashboard__welcome {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--rfq-text);
}
.rfq-dashboard__welcome-sub { font-size: 15px; color: var(--rfq-text-muted); margin: 0; }

/* Stats grid */
.rfq-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.rfq-stat-card {
  background: var(--rfq-surface);
  border: 1px solid var(--rfq-border);
  border-radius: var(--rfq-radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--rfq-shadow-sm);
  position: relative;
}
.rfq-stat-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--rfq-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rfq-stat-card__icon svg { width: 24px; height: 24px; }
.rfq-stat-card__icon--blue   { background: var(--rfq-primary-light); color: var(--rfq-primary); }
.rfq-stat-card__icon--green  { background: #d5f5e4; color: var(--rfq-success); }
.rfq-stat-card__icon--purple { background: #ede9fe; color: #7e3af2; }
.rfq-stat-card__icon--orange { background: #fef3c7; color: var(--rfq-warning); }
.rfq-stat-card__body { flex: 1; }
.rfq-stat-card__value { font-size: 28px; font-weight: 800; color: var(--rfq-text); line-height: 1; }
.rfq-stat-card__label { font-size: 13px; color: var(--rfq-text-muted); margin-top: 4px; }
.rfq-stat-card__link {
  position: absolute;
  bottom: 14px;
  right: 16px;
  font-size: 12px;
  color: var(--rfq-primary);
  text-decoration: none;
  font-weight: 600;
}
.rfq-stat-card__link:hover { text-decoration: underline; }

/* Dashboard panels */
.rfq-dashboard__panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.rfq-panel {
  background: var(--rfq-surface);
  border: 1px solid var(--rfq-border);
  border-radius: var(--rfq-radius-lg);
  box-shadow: var(--rfq-shadow-sm);
  overflow: hidden;
}
.rfq-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--rfq-border);
}
.rfq-panel__title { font-size: 15px; font-weight: 700; margin: 0; }
.rfq-panel__action { font-size: 13px; color: var(--rfq-primary); text-decoration: none; font-weight: 600; }
.rfq-panel__action:hover { text-decoration: underline; }
.rfq-panel__body { padding: 16px 20px; }

/* Doc list */
.rfq-doc-list { display: flex; flex-direction: column; gap: 12px; }
.rfq-doc-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--rfq-bg);
  border-radius: var(--rfq-radius);
}
.rfq-doc-list__icon {
  width: 32px;
  height: 32px;
  background: var(--rfq-primary-light);
  color: var(--rfq-primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rfq-doc-list__icon svg { width: 16px; height: 16px; }
.rfq-doc-list__info { flex: 1; display: flex; flex-direction: column; }
.rfq-doc-list__name { font-size: 14px; font-weight: 600; color: var(--rfq-text); }
.rfq-doc-list__meta { font-size: 12px; color: var(--rfq-text-muted); }
.rfq-doc-status {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: capitalize;
}
.rfq-doc-status--draft { background: #f3f4f6; color: var(--rfq-text-muted); }
.rfq-doc-status--completed { background: var(--rfq-success-light); color: #065f46; }
.rfq-doc-status--sent { background: var(--rfq-primary-light); color: var(--rfq-primary); }

/* Quick actions */
.rfq-quick-actions { display: flex; flex-direction: column; gap: 10px; }
.rfq-quick-action {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--rfq-radius);
  border: 1px solid var(--rfq-border);
  text-decoration: none;
  transition: all var(--rfq-transition);
  background: var(--rfq-surface);
}
.rfq-quick-action:hover { border-color: var(--rfq-primary); box-shadow: var(--rfq-shadow-sm); text-decoration: none; }
.rfq-quick-action__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--rfq-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rfq-quick-action__icon svg { width: 18px; height: 18px; }
.rfq-quick-action__icon--blue   { background: var(--rfq-primary-light); color: var(--rfq-primary); }
.rfq-quick-action__icon--teal   { background: #ccfbf1; color: #0d9488; }
.rfq-quick-action__icon--green  { background: var(--rfq-success-light); color: var(--rfq-success); }
.rfq-quick-action__icon--orange { background: #fef3c7; color: var(--rfq-warning); }
.rfq-quick-action__icon--purple { background: #ede9fe; color: #7e3af2; }
.rfq-quick-action__text { display: flex; flex-direction: column; }
.rfq-quick-action__text strong { font-size: 14px; color: var(--rfq-text); }
.rfq-quick-action__text span { font-size: 12px; color: var(--rfq-text-muted); }

/* Empty state inline */
.rfq-empty-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  text-align: center;
  color: var(--rfq-text-muted);
  gap: 10px;
}
.rfq-empty-inline svg { width: 36px; height: 36px; opacity: .4; }
.rfq-empty-inline p { margin: 0; font-size: 14px; }

/* ============================================================
   PROFILE VIEW
   ============================================================ */
.rfq-profile__header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
  padding: 24px;
  background: var(--rfq-surface);
  border: 1px solid var(--rfq-border);
  border-radius: var(--rfq-radius-lg);
  box-shadow: var(--rfq-shadow-sm);
}
.rfq-profile__avatar-area { text-align: center; flex-shrink: 0; }
.rfq-profile__avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  cursor: pointer;
  margin: 0 auto 8px;
}
.rfq-profile__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--rfq-border);
}
.rfq-profile__avatar-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--rfq-transition);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}
.rfq-profile__avatar-wrap:hover .rfq-profile__avatar-overlay { opacity: 1; }
.rfq-profile__gravatar-hint { font-size: 11px; color: var(--rfq-text-muted); margin: 0; }
.rfq-profile__header-info { flex: 1; }
.rfq-profile__name { font-size: 22px; font-weight: 800; margin: 0 0 10px; }
.rfq-profile__meta { display: flex; flex-wrap: wrap; gap: 8px; }

/* ============================================================
   ORG VIEW
   ============================================================ */
.rfq-org-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  padding: 24px;
  background: var(--rfq-surface);
  border: 1px solid var(--rfq-border);
  border-radius: var(--rfq-radius-lg);
  box-shadow: var(--rfq-shadow-sm);
}
.rfq-org-header__logo { width: 64px; height: 64px; flex-shrink: 0; }
.rfq-org-header__logo img { width: 64px; height: 64px; border-radius: var(--rfq-radius); object-fit: contain; }
.rfq-org-header__logo-placeholder {
  width: 64px;
  height: 64px;
  background: var(--rfq-primary-light);
  color: var(--rfq-primary);
  border-radius: var(--rfq-radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rfq-org-header__logo-placeholder svg { width: 28px; height: 28px; }
.rfq-org-header h1 { font-size: 22px; font-weight: 800; margin: 0 0 4px; }
.rfq-org-header__meta { font-size: 13px; color: var(--rfq-text-muted); margin: 0; }

/* Logo upload */
.rfq-logo-upload { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.rfq-logo-upload__preview {
  width: 140px;
  height: 80px;
  border: 2px dashed var(--rfq-border);
  border-radius: var(--rfq-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.rfq-logo-upload__preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.rfq-logo-upload__placeholder { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--rfq-text-muted); font-size: 12px; }
.rfq-logo-upload__placeholder svg { width: 24px; height: 24px; }
.rfq-logo-upload__controls { display: flex; flex-direction: column; gap: 8px; }

/* Members list */
.rfq-members-list { display: flex; flex-direction: column; divide-y: var(--rfq-border); }
.rfq-member-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rfq-border);
}
.rfq-member-row:last-child { border-bottom: none; }
.rfq-member-row__avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.rfq-member-row__info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.rfq-member-row__name { font-size: 14px; font-weight: 600; }
.rfq-member-row__email { font-size: 12px; color: var(--rfq-text-muted); }
.rfq-member-row__role { flex-shrink: 0; }
.rfq-member-row__actions { flex-shrink: 0; }

/* Invite banner (register page) */
.rfq-invite-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--rfq-primary-light);
  border: 1px solid #bfdbfe;
  border-radius: var(--rfq-radius);
  padding: 12px 14px;
  margin-top: 12px;
}
.rfq-invite-banner svg { width: 20px; height: 20px; color: var(--rfq-primary); flex-shrink: 0; }
.rfq-invite-banner p { margin: 0; font-size: 14px; color: #1e40af; }

/* Invites list */
.rfq-invites-list { display: flex; flex-direction: column; gap: 0; }
.rfq-invite-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rfq-border);
}
.rfq-invite-row:last-child { border-bottom: none; }
.rfq-invite-row__icon { width: 34px; height: 34px; background: var(--rfq-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rfq-invite-row__icon svg { width: 16px; height: 16px; color: var(--rfq-text-muted); }
.rfq-invite-row__info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.rfq-invite-row__email { font-size: 14px; font-weight: 600; }
.rfq-invite-row__meta { font-size: 12px; color: var(--rfq-text-muted); }
.rfq-invite-row__actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ============================================================
   USERS TABLE VIEW
   ============================================================ */
.rfq-users-stats {
  display: flex;
  gap: 0;
  background: var(--rfq-surface);
  border: 1px solid var(--rfq-border);
  border-radius: var(--rfq-radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--rfq-shadow-sm);
}
.rfq-users-stat {
  flex: 1;
  padding: 18px 20px;
  border-right: 1px solid var(--rfq-border);
  text-align: center;
}
.rfq-users-stat:last-child { border-right: none; }
.rfq-users-stat__value { display: block; font-size: 28px; font-weight: 800; color: var(--rfq-text); }
.rfq-users-stat__label { display: block; font-size: 12px; color: var(--rfq-text-muted); margin-top: 4px; }
.rfq-users-table-wrap { overflow-x: auto; }
.rfq-users-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rfq-users-table th {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid var(--rfq-border);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--rfq-text-muted);
  background: var(--rfq-bg);
}
.rfq-users-table td { padding: 12px; border-bottom: 1px solid var(--rfq-border); vertical-align: middle; }
.rfq-users-row:last-child td { border-bottom: none; }
.rfq-users-row:hover td { background: var(--rfq-bg); }
.rfq-users-row--hidden { display: none; }
.rfq-users-row__member { display: flex; align-items: center; gap: 10px; }
.rfq-users-row__avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.rfq-users-row__email a { color: var(--rfq-text); text-decoration: none; }
.rfq-users-row__email a:hover { color: var(--rfq-primary); }
.rfq-users-row__actions { display: flex; gap: 6px; }

/* ============================================================
   MODAL
   ============================================================ */
.rfq-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.rfq-modal[aria-hidden="true"] { display: none; }
.rfq-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(2px); }
.rfq-modal__dialog {
  position: relative;
  background: var(--rfq-surface);
  border-radius: var(--rfq-radius-xl);
  width: 100%;
  max-width: 480px;
  margin: 20px;
  box-shadow: var(--rfq-shadow-lg);
  animation: rfqSlideUp .2s ease;
}
@keyframes rfqSlideUp { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.rfq-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--rfq-border);
}
.rfq-modal__title { font-size: 17px; font-weight: 700; margin: 0; }
.rfq-modal__close {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--rfq-text-muted);
  display: flex;
  border-radius: var(--rfq-radius-sm);
}
.rfq-modal__close svg { width: 20px; height: 20px; }
.rfq-modal__close:hover { background: var(--rfq-bg); color: var(--rfq-text); }
.rfq-modal__body { padding: 24px; }
.rfq-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--rfq-border);
}

/* ============================================================
   NO ACCESS / NO ORG
   ============================================================ */
.rfq-no-access {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--rfq-bg);
  font-family: var(--rfq-font);
}
.rfq-no-access__card {
  background: var(--rfq-surface);
  border: 1px solid var(--rfq-border);
  border-radius: var(--rfq-radius-xl);
  padding: 48px;
  max-width: 480px;
  text-align: center;
  box-shadow: var(--rfq-shadow);
}
.rfq-no-access__icon { font-size: 56px; margin-bottom: 20px; }
.rfq-no-access__card h2 { font-size: 22px; font-weight: 800; margin: 0 0 12px; }
.rfq-no-access__card p { font-size: 14px; color: var(--rfq-text-muted); margin-bottom: 10px; }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.rfq-auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--rfq-bg);
  font-family: var(--rfq-font);
}
.rfq-auth-card {
  background: var(--rfq-surface);
  border: 1px solid var(--rfq-border);
  border-radius: var(--rfq-radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--rfq-shadow-lg);
}
.rfq-auth-card--register { max-width: 500px; }
.rfq-auth-card__brand { text-align: center; margin-bottom: 28px; }
.rfq-auth-card__logo-icon {
  width: 56px;
  height: 56px;
  background: var(--rfq-primary);
  border-radius: var(--rfq-radius-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 14px;
}
.rfq-auth-card__logo-icon svg { width: 28px; height: 28px; }
.rfq-auth-card__title { font-size: 22px; font-weight: 800; margin: 0 0 6px; color: var(--rfq-text); }
.rfq-auth-card__subtitle { font-size: 15px; color: var(--rfq-text-muted); margin: 0; }
.rfq-auth-card__footer-text {
  text-align: center;
  font-size: 14px;
  color: var(--rfq-text-muted);
  margin-top: 20px;
}
.rfq-auth-card__footer-text a { color: var(--rfq-primary); text-decoration: none; font-weight: 600; }
.rfq-auth-card__footer-text a:hover { text-decoration: underline; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .rfq-app__sidebar {
    transform: translateX(calc(-1 * var(--rfq-sidebar-width)));
  }
  .rfq-app__sidebar.is-open {
    transform: translateX(0);
  }
  .rfq-sidebar__close { display: flex; }
  .rfq-app__main { margin-left: 0; }
  .rfq-topbar__menu-toggle { display: flex; }
  .rfq-topbar__user-name { display: none; }
  .rfq-app__content { padding: 20px 16px; }
  .rfq-form__row--2col,
  .rfq-form__row--3col { grid-template-columns: 1fr; }
  .rfq-dashboard__panels { grid-template-columns: 1fr; }
  .rfq-users-stats { flex-wrap: wrap; }
  .rfq-users-stat { min-width: 50%; }
  .rfq-stats-grid { grid-template-columns: 1fr 1fr; }
  .rfq-profile__header { flex-wrap: wrap; }
  .rfq-auth-card { padding: 28px 20px; }
}
@media (max-width: 480px) {
  .rfq-stats-grid { grid-template-columns: 1fr; }
  .rfq-card__header { flex-direction: column; align-items: flex-start; }
  .rfq-users-stats { flex-direction: column; }
  .rfq-users-stat { border-right: none; border-bottom: 1px solid var(--rfq-border); }
  .rfq-modal__dialog { margin: 10px; }
}

/* ============================================================
   PROJECTS TAB — tag pills, inline editing
   ============================================================ */

/* Tag pill */
.rfq-tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
  min-height: 24px;
}
.rfq-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--rfq-primary-light, #eff6ff);
  color: var(--rfq-primary, #1a56db);
  border-radius: 12px;
  padding: 2px 8px 2px 10px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  max-width: 160px;
}
.rfq-tag-pill__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rfq-tag-pill__remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--rfq-primary, #1a56db);
  font-size: 14px;
  line-height: 1;
  padding: 0 2px;
  opacity: .7;
  flex-shrink: 0;
}
.rfq-tag-pill__remove:hover { opacity: 1; }

/* Tag input row */
.rfq-tag-input-row {
  display: flex;
  gap: 4px;
  align-items: center;
}
.rfq-tag-input-row .rfq-form__input--sm { flex: 1; min-width: 0; }

/* Projects table cell tweaks */
.rfq-proj-tags-cell  { min-width: 220px; }
.rfq-proj-category-cell { min-width: 140px; }
.rfq-proj-name { font-size: 14px; }

/* Empty state row */
.rfq-empty-row {
  padding: 28px 16px !important;
  text-align: center;
  color: var(--rfq-text-muted, #6b7280);
  font-size: 14px;
}

/* Save button states */
.rfq-btn--dirty  { box-shadow: 0 0 0 2px var(--rfq-primary, #1a56db); }
.rfq-btn--success { background: #059669 !important; border-color: #059669 !important; }

/* Monday badge colours */
.rfq-badge--green { background: #d1fae5; color: #065f46; }
.rfq-badge--red   { background: #fee2e2; color: #991b1b; }
.rfq-badge--gray  { background: #f3f4f6; color: #374151; }

/* ============================================================
   LABELS TAB
   ============================================================ */

/* Responsive grid fallback */
@media (max-width: 700px) {
  .rfq-labels-grid { grid-template-columns: 1fr !important; }
}

/* Label list container */
.rfq-labels-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Individual label row */
.rfq-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rfq-label-color {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  padding: 2px;
  background: none;
  flex-shrink: 0;
}
.rfq-label-preview {
  flex-shrink: 0;
  min-width: 60px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

/* ============================================================
   PREDEFINED TAG CHIPS (Projects tab)
   ============================================================ */
.rfq-tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}
.rfq-tag-chip {
  padding: 2px 10px;
  border-radius: 12px;
  border: 1.5px solid currentColor;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  transition: background .12s, color .12s;
  white-space: nowrap;
}
.rfq-tag-chip:hover { opacity: .85; }
.rfq-tag-chip--active { /* colors set inline via JS */ }

/* Project name link */
.rfq-proj-name-link {
  color: var(--rfq-primary, #1a56db);
  text-decoration: none;
  font-weight: 600;
}
.rfq-proj-name-link:hover { text-decoration: underline; }

/* ============================================================
   PROJECT DETAIL MODAL
   ============================================================ */
.rfq-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rfq-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(17,24,39,.55);
}
.rfq-modal__dialog {
  position: relative;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  width: 90vw;
  max-width: 860px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.rfq-modal__dialog--lg { max-width: 960px; }
.rfq-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}
.rfq-modal__title {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  color: #111827;
}
.rfq-modal__close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #6b7280;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
}
.rfq-modal__close:hover { background: #f3f4f6; color: #111827; }
.rfq-modal__body {
  overflow-y: auto;
  padding: 20px;
  flex: 1;
}

/* Project images grid */
.rfq-proj-modal-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.rfq-proj-modal-thumb {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  aspect-ratio: 4/3;
  background: #f9fafb;
}
.rfq-proj-modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .15s;
}
.rfq-proj-modal-thumb:hover img { opacity: .85; }

/* No images notice */
.rfq-proj-modal-no-images {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #fef3c7;
  border-radius: 6px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #92400e;
  flex-wrap: wrap;
}

/* Modal data table */
.rfq-proj-modal-table {
  font-size: 13px;
}
.rfq-proj-modal-table td,
.rfq-proj-modal-table th {
  padding: 7px 10px;
}

/* ── Image Field Inspector ──────────────────────────────────────────────── */
.rfq-field-inspector {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 14px;
  background: #f9fafb;
  overflow: hidden;
}
.rfq-field-inspector__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
}
.rfq-field-inspector__label {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  flex: 1;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.rfq-field-inspector__body {
  padding: 12px 14px;
  font-size: 13px;
  color: #374151;
}

/* Small button variant */
.rfq-btn--sm {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 5px;
  cursor: pointer;
  line-height: 1.4;
}
.rfq-btn--outline {
  background: #fff;
  border: 1px solid #6b7280;
  color: #374151;
}
.rfq-btn--outline:hover { background: #f3f4f6; }
.rfq-btn--primary {
  background: #2563eb;
  border: 1px solid #2563eb;
  color: #fff;
}
.rfq-btn--primary:hover { background: #1d4ed8; }
.rfq-btn--primary:disabled { background: #93c5fd; border-color: #93c5fd; cursor: not-allowed; }

/* ── Sidebar sub-nav (Organization tabs) ───────────────────────────────────── */
.rfq-sidebar__submenu {
  list-style: none;
  margin: 2px 0 4px;
  padding: 0;
}
.rfq-sidebar__submenu-item {
  position: relative;
}
.rfq-sidebar__submenu-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 44px;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  transition: background 0.15s ease, color 0.15s ease;
  border-left: 2px solid transparent;
  margin-left: 14px;
}
.rfq-sidebar__submenu-link::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: .5;
  flex-shrink: 0;
}
.rfq-sidebar__submenu-link:hover {
  color: #fff;
  background: rgba(255,255,255,.06);
}
.rfq-sidebar__submenu-item.is-active .rfq-sidebar__submenu-link {
  color: #fff;
  border-left-color: #3b82f6;
  background: rgba(59,130,246,.15);
  font-weight: 500;
}
.rfq-sidebar__submenu-item.is-active .rfq-sidebar__submenu-link::before {
  opacity: 1;
  background: #3b82f6;
}

/* ============================================================
   DOCUMENT EDITOR — List enhancements
   ============================================================ */
.rfq-docs-table th,
.rfq-docs-table td { vertical-align: middle; }

.rfq-td--name       { min-width: 180px; }
.rfq-td--template   { color: #6b7280; font-size: 13px; }
.rfq-td--date       { white-space: nowrap; color: #6b7280; font-size: 13px; }
.rfq-td--actions    { white-space: nowrap; }

/* Badge system */
.rfq-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  white-space: nowrap;
}
.rfq-badge--gray        { background: #f3f4f6; color: #374151; }
.rfq-badge--green       { background: #d1fae5; color: #065f46; }
.rfq-badge--blue        { background: #dbeafe; color: #1e40af; }
.rfq-badge--blue-light  { background: #eff6ff; color: #1d4ed8; }
.rfq-badge--purple      { background: #ede9fe; color: #5b21b6; }
.rfq-badge--green-light { background: #ecfdf5; color: #059669; }
.rfq-badge--orange      { background: #fff7ed; color: #c2410c; }

/* Ghost + danger combo: transparent bg, red text, red border */
.rfq-btn--ghost.rfq-btn--danger {
  background: transparent;
  color: #dc2626;
  border-color: #fca5a5;
}
.rfq-btn--ghost.rfq-btn--danger:hover {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #f87171;
}

/* Extra-small button */
.rfq-btn--xs {
  padding: 3px 8px;
  font-size: 11px;
}

/* Table empty / loading states */
.rfq-table-loading,
.rfq-table-empty {
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
}
.rfq-table-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Small spinner */
.rfq-spinner-sm {
  width: 20px;
  height: 20px;
  border: 2px solid #e5e7eb;
  border-top-color: #1a56db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  flex-shrink: 0;
}

/* Empty state */
.rfq-empty-state { text-align: center; padding: 20px 0; }
.rfq-empty-state__icon { font-size: 2.5rem; margin-bottom: 8px; }
.rfq-empty-state__text { font-size: 15px; font-weight: 500; color: #374151; margin: 0 0 4px; }
.rfq-empty-state__sub  { font-size: 13px; color: #9ca3af; margin: 0; }

/* Card subtitle */
.rfq-card__header-left { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rfq-card__subtitle    { font-size: 12px; color: #9ca3af; }

/* ============================================================
   DOCUMENT EDITOR — Full editor panel
   ============================================================ */

/* ── Skeleton loader ── */
.rfq-doc-editor-skeleton { padding: 16px; }
.rfq-doc-editor-skeleton__bar {
  background: #f3f4f6;
  border-radius: 6px;
  animation: rfq-pulse 1.5s infinite ease-in-out;
}
.rfq-doc-editor-skeleton__bar--header {
  height: 52px;
  margin-bottom: 16px;
}
.rfq-doc-editor-skeleton__body {
  display: flex;
  gap: 16px;
}
.rfq-doc-editor-skeleton__col {
  flex: 1;
  height: 400px;
  background: #f3f4f6;
  border-radius: 6px;
  animation: rfq-pulse 1.5s infinite ease-in-out;
}
.rfq-doc-editor-skeleton__col--preview { animation-delay: 0.2s; }

@keyframes rfq-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

/* ── Header bar ── */
.rfq-doc-editor-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 8px 8px 0 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.rfq-doc-editor-header__left  { flex-shrink: 0; }
.rfq-doc-editor-header__center {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.rfq-doc-editor-header__right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.rfq-doc-editor-name-input {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 4px 8px;
  background: transparent;
  min-width: 180px;
  max-width: 340px;
  transition: border-color .15s;
}
.rfq-doc-editor-name-input:hover,
.rfq-doc-editor-name-input:focus {
  border-color: #d1d5db;
  background: #fff;
  outline: none;
}

.rfq-doc-editor-template-label {
  font-size: 12px;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rfq-doc-editor-template-label em { font-style: normal; color: #6b7280; }

.rfq-doc-status-select {
  min-width: 110px;
  font-size: 13px;
}

/* Save status indicator */
.rfq-doc-editor-save-status {
  font-size: 12px;
  min-width: 100px;
}
.rfq-doc-editor-save-status--saving  { color: #6b7280; }
.rfq-doc-editor-save-status--saved   { color: #059669; font-weight: 500; }
.rfq-doc-editor-save-status--unsaved { color: #d97706; }
.rfq-doc-editor-save-status--error   { color: #dc2626; font-weight: 500; }

/* ── Body: two-pane layout ── */
.rfq-doc-editor-body {
  display: flex;
  min-height: 600px;
  background: #f9fafb;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}

/* ── Left pane: form ── */
.rfq-doc-editor-form {
  width: 340px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid #e5e7eb;
  overflow-y: auto;
  padding: 20px;
}
.rfq-doc-editor-form__header { margin-bottom: 18px; }
.rfq-doc-editor-form__header h4 {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 0 0 4px;
}
.rfq-doc-editor-form__hint {
  font-size: 12px;
  color: #9ca3af;
  margin: 0;
  line-height: 1.5;
}

.rfq-doc-editor-no-fields {
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 6px;
  padding: 20px;
  text-align: center;
}
.rfq-doc-editor-no-fields p {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 6px;
}
.rfq-doc-editor-no-fields p:last-child { margin-bottom: 0; }
.rfq-doc-editor-no-fields code {
  font-size: 12px;
  background: #f3f4f6;
  padding: 2px 5px;
  border-radius: 3px;
  color: #1a56db;
}

/* ── Right pane: preview ── */
.rfq-doc-editor-preview {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.rfq-doc-editor-preview__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
}
.rfq-doc-editor-preview__header h4 {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 0;
}
.rfq-doc-editor-preview__canvas {
  flex: 1;
  overflow-y: auto;
  background: #fff;
  padding: 32px 40px;
}

/* Preview content styling */
.rfq-doc-preview-content {
  max-width: 780px;
  margin: 0 auto;
  /* Do NOT set font-family or color here — the template's own CSS controls
     those. Any override here would replace the template's heading fonts. */
  font-size: 14px;
  line-height: 1.7;
}
.rfq-doc-preview-content h1,
.rfq-doc-preview-content h2,
.rfq-doc-preview-content h3 {
  /* Keep only structural spacing — font/color come from the template's CSS */
  margin-top: 1.4em;
}
.rfq-doc-preview-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 13px;
}
.rfq-doc-preview-content th,
.rfq-doc-preview-content td {
  border: 1px solid #d1d5db;
  padding: 8px 12px;
  text-align: left;
}
.rfq-doc-preview-content th {
  background: #f9fafb;
  font-weight: 600;
}
.rfq-doc-preview-content p { margin: 0 0 .8em; }

/* Placeholder highlights in preview */
.rfq-preview-placeholder {
  background: #fef3c7;
  color: #92400e;
  padding: 1px 4px;
  border-radius: 3px;
  font-style: italic;
  font-size: .92em;
}
.rfq-preview-filled {
  /* Subtle green tint shows the field is populated without overriding the
     template's own text color or font — use outline instead of color change */
  outline: 1.5px solid #6ee7b7;
  outline-offset: 1px;
  border-radius: 2px;
  transition: outline-color .3s;
}

/* No preview placeholder */
.rfq-doc-editor-no-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 200px;
}
.rfq-doc-editor-no-preview p { color: #9ca3af; font-size: 14px; }

/* ── Expanded preview mode ── */
.rfq-doc-editor-body--preview-expanded .rfq-doc-editor-form {
  width: 0;
  padding: 0;
  overflow: hidden;
}

/* ── Error panel ── */
.rfq-doc-editor-error {
  padding: 40px;
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .rfq-doc-editor-body { flex-direction: column; }
  .rfq-doc-editor-form {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    max-height: 320px;
  }
  .rfq-doc-editor-header { flex-wrap: wrap; }
  .rfq-doc-editor-header__center { order: 3; width: 100%; }
  .rfq-doc-editor-preview__canvas { padding: 20px; }
}

/* ═══════════════════════════════════════════════════════════════
   BUILDER — Editable Panel  (#rfq-ep)
   Injected into GrapesJS right sidebar → settings panel
   ═══════════════════════════════════════════════════════════════ */

#rfq-ep {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 12px;
  color: #374151;
  border-top: 1px solid #e5e7eb;
  margin-top: 8px;
  padding-top: 8px;
}

.rfq-ep__header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6b7280;
  padding: 0 8px 6px;
}

.rfq-ep__row {
  padding: 4px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rfq-ep__check-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
  user-select: none;
}

.rfq-ep__check-label input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #4f46e5;
  cursor: pointer;
}

.rfq-ep__label {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.rfq-ep__hint {
  font-weight: 400;
  font-style: italic;
  color: #9ca3af;
  text-transform: none;
  letter-spacing: 0;
}

.rfq-ep__input {
  width: 100%;
  padding: 4px 6px;
  font-size: 12px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #f9fafb;
  color: #111827;
  outline: none;
  box-sizing: border-box;
  transition: border-color .15s, background .15s;
}

.rfq-ep__input:focus {
  border-color: #4f46e5;
  background: #fff;
}

.rfq-ep__input[readonly],
.rfq-ep__input:disabled {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}

.rfq-ep__divider {
  height: 1px;
  background: #e5e7eb;
  margin: 6px 8px;
}

/* ═══════════════════════════════════════════════════════════════
   DOCUMENT EDITOR — Section divider
   ═══════════════════════════════════════════════════════════════ */

.rfq-doc-editor-form__section-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 16px 0;
}

/* ═══════════════════════════════════════════════════════════════
   DOCUMENT EDITOR — Project Picker
   ═══════════════════════════════════════════════════════════════ */

.rfq-proj-picker {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 16px;
}

/* Header row */
.rfq-proj-picker__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 8px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.rfq-proj-picker__title {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

/* Filters row */
.rfq-proj-picker__filters {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  flex-wrap: wrap;
}

.rfq-proj-picker__filters .rfq-form__input--sm {
  flex: 1 1 120px;
  min-width: 80px;
  font-size: 12px;
  padding: 5px 8px;
}

/* Search input gets a bit more flex weight */
.rfq-proj-search {
  flex: 2 1 160px;
}

/* Two-column layout */
.rfq-proj-picker__columns {
  display: flex;
  min-height: 200px;
}

.rfq-proj-picker__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rfq-proj-picker__col + .rfq-proj-picker__col {
  border-left: 1px solid #e5e7eb;
}

.rfq-proj-picker__col-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #6b7280;
  padding: 6px 10px;
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
}

.rfq-proj-picker__hint {
  font-weight: 400;
  font-style: italic;
  color: #9ca3af;
  text-transform: none;
  letter-spacing: 0;
}

/* Scrollable list areas */
.rfq-proj-avail-list,
.rfq-proj-sel-list {
  flex: 1;
  overflow-y: auto;
  max-height: 240px;
  padding: 4px 0;
}

/* Individual project items */
.rfq-proj-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  transition: background .12s;
  cursor: default;
}

.rfq-proj-item:hover {
  background: #f3f4f6;
}

.rfq-proj-item--avail {
  border-bottom: 1px solid #f3f4f6;
}

.rfq-proj-item--sel {
  border-bottom: 1px solid #f3f4f6;
  cursor: grab;
}

.rfq-proj-item--sel:active {
  cursor: grabbing;
}

/* Drag states */
.rfq-proj-item--dragging {
  opacity: .4;
  background: #e0e7ff;
}

.rfq-proj-item--dragover {
  background: #ede9fe;
  border-top: 2px solid #7c3aed;
}

/* Drag handle */
.rfq-proj-drag-handle {
  color: #d1d5db;
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
  cursor: grab;
  padding: 0 2px;
  user-select: none;
}

.rfq-proj-drag-handle:hover {
  color: #9ca3af;
}

/* Thumbnail */
.rfq-proj-thumb {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
}

.rfq-proj-thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #9ca3af;
  background: #f3f4f6;
}

.rfq-proj-thumb--sm {
  width: 28px;
  height: 28px;
}

/* Item title */
.rfq-proj-item__title {
  flex: 1;
  font-size: 12px;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Add / Remove buttons */
.rfq-proj-add-btn,
.rfq-proj-remove-btn {
  flex-shrink: 0;
  font-size: 11px;
  padding: 2px 7px;
  line-height: 1.5;
}

/* Loading state */
.rfq-proj-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #9ca3af;
  font-size: 12px;
  gap: 8px;
}

/* Empty states */
.rfq-proj-empty {
  padding: 16px 10px;
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
  font-style: italic;
}

.rfq-proj-empty--sel {
  color: #d1d5db;
}

/* ── Responsive: stack columns on narrow screens ── */
@media (max-width: 640px) {
  .rfq-proj-picker__columns {
    flex-direction: column;
  }
  .rfq-proj-picker__col + .rfq-proj-picker__col {
    border-left: none;
    border-top: 1px solid #e5e7eb;
  }
  .rfq-proj-avail-list,
  .rfq-proj-sel-list {
    max-height: 180px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   DOCUMENT EDITOR — Elementor-style layout
   ═══════════════════════════════════════════════════════════════════ */

/* Full-height two-pane container */
.rfq-editor-layout {
  display: flex;
  height: calc(100vh - 58px); /* subtract header height */
  overflow: hidden;
}

.rfq-editor-layout--preview-expanded .rfq-editor-sidebar {
  width: 0;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border-right: none;
}

/* ─── Sidebar ─────────────────────────────────── */
.rfq-editor-sidebar {
  width: 360px;
  min-width: 300px;
  max-width: 440px;
  flex-shrink: 0;
  overflow-y: auto;
  background: #f8fafc;
  border-right: 1px solid #e5e7eb;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  resize: horizontal;
  transition: width .2s, min-width .2s;
}

.rfq-editor-sidebar__empty {
  padding: 40px 20px;
  text-align: center;
  color: #6b7280;
  font-size: 13px;
}

/* ─── Field Cards ──────────────────────────────── */
.rfq-field-card {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
  cursor: pointer;
}

.rfq-field-card:hover {
  border-color: #c7d2fe;
}

.rfq-field-card--active {
  border-color: #4f46e5 !important;
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}

.rfq-field-card--preview-hover {
  border-color: #a5b4fc;
  box-shadow: 0 0 0 2px rgba(165,180,252,.3);
}

/* Card header */
.rfq-field-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  user-select: none;
  cursor: pointer;
}

.rfq-field-card--active .rfq-field-card__header {
  background: #ede9fe;
  border-bottom-color: #c4b5fd;
}

.rfq-field-card__chevron {
  margin-left: 4px;
  font-size: 10px;
  color: #9ca3af;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  line-height: 1;
}

.rfq-field-card--active .rfq-field-card__chevron {
  transform: rotate(180deg);
  color: #6d28d9;
}

.rfq-field-card__icon {
  font-size: 14px;
  flex-shrink: 0;
}

.rfq-field-card__label {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rfq-field-card__type {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #9ca3af;
  flex-shrink: 0;
}

/* Card body — collapsed by default (accordion) */
.rfq-field-card__body {
  padding: 0 12px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.22s ease, padding 0.22s ease;
}

.rfq-field-card--projects .rfq-field-card__body {
  padding: 0;
}

/* ─── Quill overrides ──────────────────────────── */
.rfq-quill-wrap {
  position: relative;
}

.rfq-quill-editor {
  min-height: 72px;
  font-size: 13px;
}

/* Quill snow theme tweaks to match our design system */
.rfq-quill-wrap .ql-toolbar {
  border: 1px solid #d1d5db;
  border-radius: 6px 6px 0 0;
  padding: 4px 6px;
  background: #f9fafb;
}

.rfq-quill-wrap .ql-container {
  border: 1px solid #d1d5db;
  border-top: none;
  border-radius: 0 0 6px 6px;
  font-size: 13px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.rfq-quill-wrap .ql-editor {
  min-height: 64px;
  padding: 8px 10px;
  line-height: 1.5;
}

.rfq-quill-wrap .ql-editor.ql-blank::before {
  color: #9ca3af;
  font-style: normal;
  font-size: 13px;
}

.rfq-field-card--active .rfq-quill-wrap .ql-container,
.rfq-field-card--active .rfq-quill-wrap .ql-toolbar {
  border-color: #a5b4fc;
}

/* ─── Image upload ─────────────────────────────── */
.rfq-img-upload {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rfq-img-upload__preview {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  background: #f9fafb;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rfq-img-upload__thumb {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  display: block;
}

.rfq-img-upload__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px;
  color: #9ca3af;
  font-size: 12px;
  text-align: center;
}

.rfq-img-upload__placeholder span { font-size: 24px; }

.rfq-img-upload__placeholder--loading {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 20px;
  color: #6b7280;
  font-size: 12px;
}

.rfq-img-upload__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.rfq-img-upload__label {
  cursor: pointer;
}

.rfq-img-upload__label--focused {
  border-color: #4f46e5;
  color: #4f46e5;
}

.rfq-img-upload__status {
  font-size: 11px;
  color: #6b7280;
  flex: 1;
}

/* ─── Preview pane ─────────────────────────────── */
.rfq-editor-preview-pane {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow: hidden;
}

.rfq-editor-preview-pane__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  flex-shrink: 0;
}

.rfq-editor-preview-pane__title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6b7280;
}

.rfq-editor-preview-pane__hint {
  font-size: 11px;
  color: #9ca3af;
  flex: 1;
}

.rfq-editor-preview-pane__canvas {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
  position: relative; /* needed so page-break indicators are positioned correctly */
}

/* ─── Paged canvas: grey background when rfq-pv-pages-wrapper is present ─── */
/* Applied via JS class toggle (.rfq-paged-canvas) + :has() for modern browsers */
.rfq-editor-preview-pane__canvas.rfq-paged-canvas,
.rfq-editor-preview-pane__canvas:has(.rfq-pv-pages-wrapper) {
  background: #525659;
  padding: 24px 16px 48px;
}

/* ─── Page cards (paged template architecture) ─────────────────────────────
 *
 *  Layout model (wrapper + absolute inner card):
 *
 *  .rfq-pv-page-card-wrap   Clipping viewport. Sized to the VISUAL dimensions
 *                            after scaling so no negative-margin tricks needed.
 *                            overflow:hidden clips the oversized inner card.
 *
 *  .rfq-pv-page-card        Full 816×1056 px page, scaled via CSS transform
 *                            inside the wrap. transform-origin: top left keeps
 *                            the content's top-left corner anchored so the
 *                            visual top matches the layout top.
 *
 *  Scale 0.62  →  visual = 816×0.62 × 1056×0.62 = 506×655 px
 *
 * ─────────────────────────────────────────────────────────────────────────── */
.rfq-pv-pages-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;   /* visual gap between page cards */
}

/* Outer wrapper — clips the scaled inner card to its visual footprint */
.rfq-pv-page-card-wrap {
  width:  506px;   /* 816 * 0.62 */
  height: 655px;   /* 1056 * 0.62 */
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 1px rgba(0,0,0,0.2);
}

/* Page-number label sits below the clipping box (outside overflow:hidden) */
.rfq-pv-page-card__label {
  position: absolute;
  bottom: -18px;
  right: 0;
  font-size: 10px;
  color: #bbb;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  pointer-events: none;
  user-select: none;
}

/* Inner card — full letter-page size, scaled inside the wrap */
.rfq-pv-page-card {
  width: 816px;
  height: 1056px;
  background: #fff;
  transform: scale(0.62);
  transform-origin: top left;  /* anchor top-left so visual top = layout top */
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
}

.rfq-pv-page-card__body {
  padding: 72px;          /* 0.75 in margins — matches PHP template */
  box-sizing: border-box;
  width: 816px;
  height: 1056px;
  font-family: 'DejaVu Sans', 'Segoe UI', Arial, sans-serif;
  font-size: 12px;
  line-height: 1.6;
  color: #333;
  overflow: hidden;
}
.rfq-pv-page-card__body img { max-width: 100%; height: auto; display: block; }
.rfq-pv-page-card__body h1 { font-size: 24px; margin: 0 0 15px; color: #222; font-weight: 600; }
.rfq-pv-page-card__body h2 { font-size: 20px; margin: 20px 0 12px; color: #333; font-weight: 600; }
.rfq-pv-page-card__body h3 { font-size: 16px; margin: 15px 0 10px; color: #444; font-weight: 600; }
.rfq-pv-page-card__body p  { margin: 0 0 10px; }

/* Expanded mode — bump scale to show more detail */
.rfq-editor-layout--preview-expanded .rfq-pv-page-card-wrap {
  /* 816 * 0.76 = 620  |  1056 * 0.76 = 803 */
  width:  620px;
  height: 803px;
}
.rfq-editor-layout--preview-expanded .rfq-pv-page-card {
  transform: scale(0.76);
}

/* Expanded mode is meant to look like a real, finished preview — hide the
   editing affordances (the green "field is filled" outline, the amber
   "empty placeholder" highlight, and the hover outline/pencil badge) so
   nothing but the actual document content shows. Elements stay clickable;
   only the visual chrome is suppressed. */
.rfq-editor-layout--preview-expanded .rfq-preview-filled {
  outline: none;
}
.rfq-editor-layout--preview-expanded .rfq-preview-placeholder {
  background: transparent;
  color: inherit;
  font-style: normal;
}
.rfq-editor-layout--preview-expanded .rfq-pv-el--hover,
.rfq-editor-layout--preview-expanded .rfq-pv-el:hover {
  outline-color: transparent;
}
.rfq-editor-layout--preview-expanded .rfq-pv-el--hover::after,
.rfq-editor-layout--preview-expanded .rfq-pv-el:hover::after {
  display: none;
}

/* ─── Page-break indicators (live preview) ─────── */
.rfq-page-break-indicator {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  pointer-events: none;
  border-top: 2px dashed #cbd5e1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 10;
}
.rfq-page-break-indicator__label {
  display: inline-block;
  background: #e2e8f0;
  color: #64748b;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 1px 8px;
  border-radius: 0 0 4px 4px;
  line-height: 18px;
  pointer-events: none;
}

/* ─── Preview hover elements ───────────────────── */
.rfq-pv-el {
  outline: 2px solid transparent;
  border-radius: 2px;
  transition: outline-color .1s;
  cursor: pointer;
  position: relative;
}

.rfq-pv-el--hover,
.rfq-pv-el:hover {
  outline-color: #4f46e5;
}

/* Pencil indicator on hover */
.rfq-pv-el--hover::after,
.rfq-pv-el:hover::after {
  content: '✏️';
  position: absolute;
  top: -18px;
  right: 0;
  background: #4f46e5;
  color: #fff;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
}

/* ═══════════════════════════════════════════════════════════════════
   PROJECT PICKER — redesigned (single-column, checkbox-based)
   ═══════════════════════════════════════════════════════════════════ */

.rfq-proj-picker {
  display: flex;
  flex-direction: column;
}

/* Filter row */
.rfq-proj-picker__filters {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.rfq-proj-filter-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.rfq-proj-filter-row .rfq-form__input--sm {
  flex: 1 1 110px;
  min-width: 80px;
  font-size: 12px;
}

.rfq-proj-search { flex: 2 1 160px !important; }

/* Selected section */
.rfq-proj-selected-section {
  border-bottom: 1px solid #e5e7eb;
}

.rfq-proj-selected-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: #f0fdf4;
  border-bottom: 1px solid #d1fae5;
}

.rfq-proj-selected-section__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #065f46;
}

.rfq-proj-sel-list {
  max-height: 200px;
  overflow-y: auto;
  padding: 4px 0;
}

/* Divider between selected + available */
.rfq-proj-divider {
  height: 1px;
  background: #e5e7eb;
}

/* Available section */
.rfq-proj-available-section {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.rfq-proj-available-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.rfq-proj-avail-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #6b7280;
}

.rfq-proj-avail-list {
  max-height: 300px;
  overflow-y: auto;
  padding: 4px 0;
}

/* ─── Project item (shared) ─────────────────────── */
.rfq-proj-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  transition: background .1s;
}

.rfq-proj-item:not(:last-child) {
  border-bottom: 1px solid #f3f4f6;
}

/* Available item hover */
.rfq-proj-item--avail:hover {
  background: #f5f3ff;
}

/* Already-selected item in available list */
.rfq-proj-item--avail-selected {
  background: #f0fdf4;
}

.rfq-proj-item--avail-selected:hover {
  background: #dcfce7;
}

/* Checkbox area */
.rfq-proj-item__check-area {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.rfq-proj-checkbox {
  width: 15px;
  height: 15px;
  accent-color: #4f46e5;
  cursor: pointer;
}

/* Item info */
.rfq-proj-item__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rfq-proj-item__title {
  font-size: 12px;
  font-weight: 500;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rfq-proj-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

/* Per-project photo layout selector, shown in the "Selected" list for
   project-page pickers so each project can use its own gallery layout. */
.rfq-proj-photo-layout {
  flex-shrink: 0;
  font-size: 10px;
  padding: 2px 6px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #4b5563;
  max-width: 130px;
  cursor: pointer;
}
.rfq-proj-photo-layout:hover {
  border-color: #818cf8;
  color: #4f46e5;
}

/* Category pill */
.rfq-proj-cat-pill {
  font-size: 10px;
  font-weight: 600;
  background: #dbeafe;
  color: #1e40af;
  padding: 1px 5px;
  border-radius: 10px;
  white-space: nowrap;
}

/* Tag pill */
.rfq-proj-tag-pill {
  font-size: 10px;
  background: #f3f4f6;
  color: #6b7280;
  padding: 1px 5px;
  border-radius: 10px;
  white-space: nowrap;
}

/* Selected item row (drag handle + remove) */
.rfq-proj-item--sel {
  background: #fff;
  cursor: grab;
}

.rfq-proj-item--sel:active { cursor: grabbing; }

.rfq-proj-item--dragging  { opacity: .4; background: #ede9fe; }
.rfq-proj-item--dragover  { background: #f0fdf4; border-top: 2px solid #22c55e; }

.rfq-proj-drag-handle {
  color: #d1d5db;
  font-size: 13px;
  flex-shrink: 0;
  cursor: grab;
  user-select: none;
  padding: 0 2px;
}
.rfq-proj-drag-handle:hover { color: #9ca3af; }

/* Thumbnails */
.rfq-proj-thumb {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
}

.rfq-proj-thumb--sm {
  width: 26px;
  height: 26px;
}

.rfq-proj-thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #9ca3af;
  background: #f3f4f6;
}

/* Loading / empty */
.rfq-proj-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  color: #9ca3af;
  font-size: 12px;
}

.rfq-proj-empty {
  padding: 14px 12px;
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
  font-style: italic;
}

.rfq-proj-empty--sel { color: #d1d5db; font-size: 11px; }

/* Remove button */
.rfq-proj-remove-btn {
  flex-shrink: 0;
  font-size: 14px;
  line-height: 1;
  padding: 2px 5px;
}

/* ─── Responsive ────────────────────────────────── */
@media (max-width: 768px) {
  .rfq-editor-layout { flex-direction: column; height: auto; }
  .rfq-editor-sidebar { width: 100%; max-width: 100%; min-width: 0; border-right: none; border-bottom: 1px solid #e5e7eb; resize: none; max-height: 50vh; }
  .rfq-editor-preview-pane { min-height: 400px; }
  .rfq-editor-preview-pane__canvas { padding: 20px; }
}

/* ============================================================
   DOCUMENT EDITOR — full-viewport fixed layout
   When body.rfq-editor-mode, the editor panel breaks out of
   the content area padding and fills the viewport below the
   topbar and to the right of the sidebar.
   ============================================================ */

body.rfq-editor-mode .rfq-app__content {
  padding: 0;
  max-width: none;
  overflow: hidden;
}

body.rfq-editor-mode #rfq-doc-editor-panel {
  position: fixed;
  top: var(--rfq-topbar-height);
  left: var(--rfq-sidebar-width);
  right: 0;
  bottom: 0;
  z-index: 100;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Let the editor layout grow to fill the fixed panel */
body.rfq-editor-mode .rfq-editor-layout {
  flex: 1 1 0;
  height: 0;       /* override the calc() — flex:1 does the sizing */
  min-height: 0;
}

/* Mobile: sidebar is hidden so the fixed panel should start at left:0 */
@media (max-width: 768px) {
  body.rfq-editor-mode #rfq-doc-editor-panel {
    left: 0;
  }
}

/* ============================================================
   PROJECT PICKER — fix list height collapse
   Override the old two-column layout's flex:1/max-height:240px
   rule which collapses to 0 in the new auto-height column layout.
   ============================================================ */
.rfq-proj-avail-list {
  flex: none !important;   /* neutralise the old flex:1 from the two-column era */
  min-height: 140px;       /* always show at least 140px even while loading     */
  max-height: 320px;
  overflow-y: auto;
  padding: 4px 0;
}

.rfq-proj-sel-list {
  flex: none !important;
  max-height: 180px;
  overflow-y: auto;
  padding: 4px 0;
}

/* ============================================================
   MEDIA LIBRARY PICKER — modal + grid
   ============================================================ */
#rfq-media-modal .rfq-modal__dialog {
  max-width: 780px;
  width: 95vw;
}

.rfq-media-lib__search-row {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 0 12px;
}

.rfq-media-lib__search-row .rfq-form__input {
  flex: 1;
}

.rfq-media-lib__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
  padding: 2px;
}

.rfq-media-lib__item {
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: #f3f4f6;
  transition: border-color .15s, box-shadow .15s;
  position: relative;
}

.rfq-media-lib__item:hover {
  border-color: #a5b4fc;
}

.rfq-media-lib__item--selected {
  border-color: #4f46e5 !important;
  box-shadow: 0 0 0 3px rgba(79,70,229,.18);
}

.rfq-media-lib__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.rfq-media-lib__filename {
  font-size: 10px;
  color: #6b7280;
  padding: 3px 5px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rfq-media-lib__check {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  background: #4f46e5;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.rfq-media-lib__item--selected .rfq-media-lib__check {
  display: flex;
}

.rfq-media-lib__pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 0;
  font-size: 12px;
  color: #6b7280;
}

.rfq-media-lib__empty {
  text-align: center;
  padding: 40px 20px;
  color: #9ca3af;
  font-size: 13px;
}

.rfq-media-lib__loading {
  text-align: center;
  padding: 40px 20px;
  color: #9ca3af;
}

/* ====================================================================
   FIELD CARD BODY — accordion height control
   Inactive:  max-height:0, hidden (only the header is visible).
   Active:    expands to full content height; sidebar scrolls.
   ==================================================================== */

/* Active card — fully expanded */
.rfq-field-card--active .rfq-field-card__body {
  max-height: 2000px;
  overflow-y: auto;
  padding: 10px 12px;
}

/* Projects active: no inner padding (picker has its own chrome) */
.rfq-field-card--active.rfq-field-card--projects .rfq-field-card__body {
  padding: 0;
}

/* ====================================================================
   PROJECT PICKER — available section & empty-state polish
   ==================================================================== */

/* Ensure the available section never collapses to zero */
.rfq-proj-available-section {
  min-height: 60px;
}

/* Give the avail list breathing room inside the available section */
.rfq-proj-avail-list {
  min-height: 60px;
}

/* "No projects" empty state — friendlier look */
.rfq-proj-empty--org {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
  color: #9ca3af;
  font-size: 13px;
  text-align: center;
}

.rfq-proj-retry-btn {
  font-size: 12px;
  color: #4f46e5;
  background: none;
  border: 1px solid #c4b5fd;
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
  transition: background .15s;
}

.rfq-proj-retry-btn:hover {
  background: #ede9fe;
}

/* ═══════════════════════════════════════════════════════════════════
   PROJECT LAYOUT PICKER — pill selector in the field card
   ═══════════════════════════════════════════════════════════════════ */

.rfq-layout-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
  flex-wrap: wrap;
}
.rfq-layout-picker__label {
  font-size: 10px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: .07em;
  flex-shrink: 0;
  margin-right: 2px;
}
.rfq-layout-btn {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  color: #4b5563;
  cursor: pointer;
  transition: all .12s;
  white-space: nowrap;
  line-height: 1.4;
}
.rfq-layout-btn:hover {
  border-color: #818cf8;
  color: #4f46e5;
}
.rfq-layout-btn--active {
  background: #ede9fe;
  border-color: #6d28d9;
  color: #5b21b6;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════════
   PROJECT FULL-PAGE LAYOUTS — rendered in the preview canvas
   Each project card takes up a full printed page.
   ═══════════════════════════════════════════════════════════════════ */

/* Base wrapper — forces a page break after every project except last */
.rfq-proj-pg {
  break-after: page;
  page-break-after: always;
  position: relative;
  background: #fff;
  overflow: hidden;
}
.rfq-proj-pg:last-child {
  break-after: auto;
  page-break-after: auto;
}

/* ── HERO layout ──────────────────────────────────────────────────── */
.rfq-proj-pg--hero {
  display: flex;
  flex-direction: column;
  min-height: 9in;
}
.rfq-proj-pg--hero .rfq-pp-img {
  width: 100%;
  height: 45%;
  min-height: 300px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.rfq-proj-pg--hero .rfq-pp-img-ph {
  width: 100%;
  height: 45%;
  min-height: 300px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #dbeafe 0%, #ede9fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  color: #a5b4fc;
}
.rfq-proj-pg--hero .rfq-pp-band {
  background: #1e1b4b;
  color: #fff;
  padding: 22px 36px 18px;
  flex-shrink: 0;
}
.rfq-proj-pg--hero .rfq-pp-title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 8px;
  color: #fff;
}
.rfq-proj-pg--hero .rfq-pp-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #a5b4fc;
}
.rfq-proj-pg--hero .rfq-pp-cat {
  background: rgba(255,255,255,.12);
  border-radius: 4px;
  padding: 2px 8px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.rfq-proj-pg--hero .rfq-pp-tag {
  color: #c7d2fe;
}
.rfq-proj-pg--hero .rfq-pp-body {
  padding: 28px 36px;
  flex: 1;
}
.rfq-proj-pg--hero .rfq-pp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.rfq-proj-pg--hero .rfq-pp-cell {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 14px;
}
.rfq-proj-pg--hero .rfq-pp-cell-label {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 3px;
}
.rfq-proj-pg--hero .rfq-pp-cell-value {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
}

/* ── SPLIT layout ─────────────────────────────────────────────────── */
.rfq-proj-pg--split {
  display: flex;
  min-height: 9in;
}
.rfq-proj-pg--split .rfq-pp-img-col {
  flex: 0 0 42%;
  overflow: hidden;
  position: relative;
}
.rfq-proj-pg--split .rfq-pp-img-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rfq-proj-pg--split .rfq-pp-img-ph {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: linear-gradient(160deg, #dbeafe 0%, #fce7f3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  color: #93c5fd;
}
.rfq-proj-pg--split .rfq-pp-detail-col {
  flex: 1;
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  overflow-y: auto;
}
.rfq-proj-pg--split .rfq-pp-cat {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6366f1;
  margin-bottom: 12px;
}
.rfq-proj-pg--split .rfq-pp-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
  margin: 0 0 14px;
}
.rfq-proj-pg--split .rfq-pp-accent {
  width: 44px;
  height: 4px;
  background: #6366f1;
  border: none;
  border-radius: 2px;
  margin: 0 0 20px;
}
.rfq-proj-pg--split .rfq-pp-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.rfq-proj-pg--split .rfq-pp-tag {
  background: #f1f5f9;
  color: #475569;
  padding: 2px 9px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}
.rfq-proj-pg--split .rfq-pp-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.rfq-proj-pg--split .rfq-pp-row {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid #f1f5f9;
}
.rfq-proj-pg--split .rfq-pp-row-label {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  min-width: 84px;
  flex-shrink: 0;
}
.rfq-proj-pg--split .rfq-pp-row-value {
  font-size: 13px;
  color: #1e293b;
  font-weight: 500;
  line-height: 1.4;
}

/* ── PORTFOLIO layout ─────────────────────────────────────────────── */
.rfq-proj-pg--portfolio {
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  min-height: 9in;
  gap: 0;
}
.rfq-proj-pg--portfolio .rfq-pp-header {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 2px solid #f1f5f9;
  margin-bottom: 28px;
}
.rfq-proj-pg--portfolio .rfq-pp-cat {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #6366f1;
  margin-bottom: 10px;
}
.rfq-proj-pg--portfolio .rfq-pp-title {
  font-size: 34px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.1;
  margin: 0 0 14px;
}
.rfq-proj-pg--portfolio .rfq-pp-tags {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}
.rfq-proj-pg--portfolio .rfq-pp-tag {
  background: #ede9fe;
  color: #6d28d9;
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}
.rfq-proj-pg--portfolio .rfq-pp-img-wrap {
  width: 100%;
  height: 340px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 28px;
  flex-shrink: 0;
}
.rfq-proj-pg--portfolio .rfq-pp-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rfq-proj-pg--portfolio .rfq-pp-img-ph {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #faf5ff 0%, #ede9fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  color: #c4b5fd;
}
.rfq-proj-pg--portfolio .rfq-pp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: auto;
}
.rfq-proj-pg--portfolio .rfq-pp-cell {
  border-top: 3px solid #6366f1;
  padding: 10px 4px 4px;
}
.rfq-proj-pg--portfolio .rfq-pp-cell-label {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}
.rfq-proj-pg--portfolio .rfq-pp-cell-value {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}

/* ── No-projects placeholder ──────────────────────────────────────── */
.rfq-proj-pg-empty {
  padding: 20px 0;
  color: #9ca3af;
  font-style: italic;
}

#rfq-content { overflow: auto; }
