/* ===============================
   HEADER BASE
================================ */
.review-header {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 48px;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  gap: 14px;
  min-height: 56px;
}

/* LOGO — always visible at all breakpoints */
.review-header .vhdr-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.review-header .vhdr-logo-link img {
  height: 32px;
  width: auto;
  cursor: pointer;
  transition: transform .25s ease;
}
.review-header .vhdr-logo-link img:hover {
  transform: scale(1.05);
}

/* TITLE — absolutely centred in header, unaffected by logo/actions widths */
.review-header .title {
  font-size: 20px;
  font-weight: 700;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #042b56;
  white-space: nowrap;
  letter-spacing: -0.2px;
  pointer-events: none;
}

/* RIGHT SIDE ACTIONS wrapper */
.review-header .vhdr-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* HAMBURGER — hidden by default, only shown on ≤480px */
.hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  border: 1.5px solid #042b56;
  border-radius: 6px;
  flex-shrink: 0;
  background: none;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 17px;
  height: 2px;
  background: #042b56;
  border-radius: 3px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* MOBILE DROPDOWN */
.mobile-menu {
  position: fixed;
  right: 16px;
  top: 56px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(4,43,86,.15);
  padding: 6px;
  display: none;
  min-width: 160px;
  z-index: 10000;
  border: 1px solid #e2e8f0;
}
.mobile-menu button {
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #042b56;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}
.mobile-menu button:hover {
  background: #f0f6ff;
}

/* SAVE & EXIT BUTTON — visible on desktop */
.save-exit-btn {
  display: inline-flex;
  align-items: center;
  border: none;
  background: linear-gradient(90deg, #0B335A, #1f5e9d);
  color: #fff;
  padding: 7px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .2s, transform .2s;
}
.save-exit-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}


/* ===============================
   RESPONSIVE BREAKPOINTS
================================ */
/* Mid laptop ≤1366px */
@media (max-width: 1366px) {
  .review-header .vhdr-logo-link img { height: 30px; }
  .review-header .title { font-size: 19px; }
}

/* Small laptop ≤1200px */
@media (max-width: 1200px) {
  .review-header { padding: 10px 32px; }
  .review-header .vhdr-logo-link img { height: 28px; }
  .review-header .title { font-size: 18px; }
}

/* Tablet ≤900px */
@media (max-width: 900px) {
  .review-header { padding: 10px 24px; }
  .review-header .title { font-size: 17px; }
  .review-header .vhdr-logo-link img { height: 26px; }
}

/* Large mobile ≤768px */
@media (max-width: 768px) {
  .review-header .title { font-size: 16px; }
  .review-header .vhdr-logo-link img { height: 24px; }
}

/* ── Mobile (≤600px): hamburger replaces Save & Exit ── */
@media (max-width: 600px) {
  .review-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
  }

  .review-header .title {
    position: static;
    left: auto;
    transform: none;
    font-size: 13px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: auto;
  }

  .review-header .vhdr-logo-link img { height: 22px; }

  /* Move Save & Exit into dropdown — show hamburger instead */
  .vhdr-actions .save-exit-btn { display: none !important; }
  .hamburger { display: flex; }
}

/* ── Very small phones (≤380px) ── */
@media (max-width: 380px) {
  .review-header { gap: 6px; padding: 10px 12px; }
  .review-header .title { font-size: 12px; }
  .review-header .vhdr-logo-link img { height: 20px; }
}
