/* rent-hier Frontend – MA-App */
#rhv-app { background: #f5f5f7; min-height: 100vh; }

/* ── Header ── */
.rhv-header {
  background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.1);
  height: 52px; display: flex; align-items: center;
  justify-content: space-between; padding: 0 24px;
  position: sticky; top: 0; z-index: 100;
}
.rhv-header-brand { font-size: 16px; font-weight: 600; letter-spacing: -0.3px; }
.rhv-header-brand .ski-accent  { color: #378ADD; }
.rhv-header-brand .bike-accent { color: #1D9E75; }
.rhv-header-user { font-size: 13px; color: #6e6e73; display: flex; align-items: center; gap: 10px; }
.rhv-btn-ghost { background: none; border: none; color: #0071e3; font-size: 13px; cursor: pointer; font-family: var(--rhv-font); }

/* ── Login ── */
.rhv-login-wrap { display: flex; align-items: center; justify-content: center; min-height: 85vh; padding: 24px; }
.rhv-login-card {
  background: #fff; border-radius: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.15);
  padding: 44px 40px; width: 100%; max-width: 380px; text-align: center;
}
.rhv-login-icon { font-size: 56px; margin-bottom: 8px; }
.rhv-login-card h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 4px; }
.rhv-login-card p { color: #6e6e73; font-size: 14px; margin-bottom: 28px; }
.rhv-login-err { color: #ff3b30; font-size: 13px; margin-top: 8px; display: none; }

/* ── Nav ── */
.rhv-nav { background: #fff; border-bottom: 1px solid rgba(0,0,0,.08); display: flex; padding: 0 16px; overflow-x: auto; }
.rhv-nav-btn {
  background: none; border: none; border-bottom: 2px solid transparent;
  padding: 13px 18px; font-size: 13px; font-weight: 500; color: #6e6e73;
  cursor: pointer; font-family: var(--rhv-font); white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.rhv-nav-btn.active       { color: #0071e3; border-bottom-color: #0071e3; }
.rhv-nav-btn.active.ski   { color: #378ADD; border-bottom-color: #378ADD; }
.rhv-nav-btn.active.bike  { color: #1D9E75; border-bottom-color: #1D9E75; }

/* ── Panels ── */
.rhv-panel { padding: 20px; max-width: 1100px; margin: 0 auto; display: none; }
.rhv-panel.active { display: block; }

/* ── QR Scan banner ── */
.rhv-qr-banner {
  background: linear-gradient(135deg, #1d1d1f 0%, #2d2d2f 100%);
  border-radius: 14px; padding: 16px 20px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.rhv-qr-banner-text { color: #fff; }
.rhv-qr-banner-text strong { display: block; font-size: 15px; margin-bottom: 2px; }
.rhv-qr-banner-text span { font-size: 12px; color: rgba(255,255,255,.55); }

/* ── Rental list ── */
.rhv-rental-list { display: flex; flex-direction: column; gap: 10px; }
.rhv-rental-item {
  background: #fff; border-radius: 12px; border: 1px solid rgba(0,0,0,.08);
  padding: 14px 18px; display: grid; grid-template-columns: 1fr auto;
  gap: 10px; align-items: center;
}
.rhv-rental-num { font-size: 11px; color: #0071e3; font-family: monospace; font-weight: 600; margin-bottom: 3px; }
.rhv-rental-name { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.rhv-rental-meta { font-size: 12px; color: #6e6e73; }
.rhv-rental-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.rhv-rental-actions button { padding: 6px 12px; font-size: 12px; }

/* ── Z-value ── */
.rhv-z-wrap { position: relative; }
.rhv-z-badge {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: #0071e3; color: #fff; font-size: 12px; font-weight: 600;
  padding: 3px 10px; border-radius: 20px; pointer-events: none;
}

/* ── Sig pad ── */
.rhv-sig-canvas { border: 1.5px solid rgba(0,0,0,.12); border-radius: 10px; cursor: crosshair; display: block; width: 100%; background: #f5f5f7; touch-action: none; }
.rhv-sig-controls { display: flex; gap: 8px; margin-top: 8px; }

/* ── Module banner ── */
.rhv-module-banner {
  border-radius: 14px; padding: 14px 18px; margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px;
}
.rhv-module-banner.ski  { background: #E6F1FB; }
.rhv-module-banner.bike { background: #E1F5EE; }
.rhv-module-banner-icon { font-size: 28px; }
.rhv-module-banner-text strong { font-size: 15px; font-weight: 600; }
.rhv-module-banner.ski  .rhv-module-banner-text strong { color: #0C447C; }
.rhv-module-banner.bike .rhv-module-banner-text strong { color: #085041; }
.rhv-module-banner-text span { font-size: 12px; color: #6e6e73; display: block; }

/* ── Responsive ── */
@media(max-width: 768px) {
  .rhv-panel { padding: 12px; }
  .rhv-card { padding: 14px; }
  .rhv-header { padding: 0 14px; }
  .rhv-login-card { padding: 32px 24px; }
  .rhv-rental-item { grid-template-columns: 1fr; }
}
