/* ================================================================
   Shared Technician Portal Styles
   Used by: tech.html, technician-parts, shimming, catalog-upload
   ================================================================ */

.tech-page { background: var(--off-white); min-height: 100vh; }

/* ── Tech Badge ── */
.tech-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(29,107,55,0.15);
  border: 1px solid rgba(29,107,55,0.3);
  padding: 2px 8px;
  border-radius: 4px;
}

/* ================================================================
   Variant A: Portal Bar (tech.html, technician-parts.html)
   ================================================================ */
.portal-bar {
  background: var(--charcoal, #1A1A1A);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.portal-bar__inner {
  max-width: var(--container-max, 1200px);
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.portal-bar__left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.portal-bar__logo { display: flex; align-items: center; }
.portal-bar__divider {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,0.12);
}
.portal-bar__label {
  font-family: var(--ff-display);
  font-size: 16px;
  color: var(--white);
  font-weight: 400;
}
.portal-bar__right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.portal-bar__action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white, #fff);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.portal-bar__action:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.25);
}
.portal-bar__action svg { opacity: 0.7; }
.portal-bar__user {
  font-size: 12px;
  color: var(--grey-muted, #9CA3AF);
}
.portal-bar__signout {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--ff-body, 'Plus Jakarta Sans', sans-serif);
  padding: 4px 0;
  transition: color 0.2s;
}
.portal-bar__signout:hover { color: var(--white); }

/* ================================================================
   Variant B: Tech Header (shimming, catalog-upload)
   ================================================================ */
.tech-header {
  background: var(--charcoal, #1A1A1A);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  height: 56px;
}
.tech-header__left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.tech-header h1 {
  font-family: var(--ff-display, 'DM Serif Display', serif);
  font-size: 18px;
  color: var(--white);
  font-weight: 400;
}
.back-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--grey-muted, #9CA3AF);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.back-link:hover { color: var(--white); }

.tech-header__right {
  display: flex;
  gap: 16px;
  align-items: center;
}
.tech-header__right a,
.tech-header__right button {
  font-size: 13px;
  font-weight: 500;
  color: var(--grey-muted, #9CA3AF);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.tech-header__right a:hover,
.tech-header__right button:hover { color: var(--white); }
.tech-header__user {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}
.tech-username {
  font-size: 12px;
  color: var(--grey-muted, #9CA3AF);
}

/* ── Shared button link (catalog-upload) ── */
.tech-btn-link {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
}
.tech-btn-link:hover { color: #fff; border-color: rgba(255,255,255,0.3); }

/* ================================================================
   Variant C: pl-header (parts-lookup, admin-parts, service-manual)
   Canonical dark page-header shell. Pages may override spacing /
   title size inline (their <style> loads after this file and wins).
   ================================================================ */
.pl-header {
  background: var(--charcoal, #1A1A1A);
  padding-top: var(--nav-height, 64px);
  position: relative;
  overflow: hidden;
}
.pl-header::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -60px;
  width: 320px;
  height: 320px;
  transform: translateY(-50%);
  background: url('./assets/yamaha-watermark.png') no-repeat center / contain;
  opacity: 0.04;
  pointer-events: none;
}
.pl-header__inner {
  max-width: var(--container-max, 1200px);
  margin: 0 auto;
  padding: 32px 24px 28px;
  position: relative;
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.pl-header__tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold, #D4A017);
  margin-bottom: 8px;
}
.pl-header__title {
  font-family: var(--ff-display, 'DM Serif Display', serif);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 400;
  color: var(--white, #fff);
  line-height: 1.15;
  margin-bottom: 6px;
}
.pl-header__sub {
  font-size: 14px;
  color: var(--grey-muted, #9CA3AF);
  line-height: 1.55;
}
.pl-header__user {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.pl-header__username {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
}
.pl-header__engine-tag {
  font-size: 12px;
  color: var(--gold, #D4A017);
  font-weight: 500;
}
.pl-header__signout {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--ff-body, 'Plus Jakarta Sans', sans-serif);
  padding: 0;
  transition: color 0.2s;
}
.pl-header__signout:hover { color: var(--white, #fff); }

/* ================================================================
   Responsive — shared header rules
   ================================================================ */
@media (max-width: 768px) {
  .portal-bar__label { display: none; }
  .portal-bar__user { display: none; }
  .portal-bar__action { font-size: 12px; padding: 5px 10px; }
  .portal-bar__inner { padding: 0 16px; }
  .tech-header { padding: 0 16px; }
  .tech-header h1 { font-size: 15px; }
}
