/* supplier.css — Martlet Travel supplier catalog */

:root {
  --brand-teal: #006E6D;
  --brand-teal-dark: #005554;
  --text-primary: #1a1a1a;
  --text-muted: #6b7280;
  --bg-light: #f5f5f5;
  --border-color: #e5e7eb;
  --sidebar-w: 220px;
}

/* ============================================================
   Copy prevention
   ============================================================ */
* { -webkit-user-select: none; -moz-user-select: none; user-select: none; -webkit-touch-callout: none; }
@media print { body { display: none !important; } }

/* ============================================================
   Base
   ============================================================ */
html, body {
  margin: 0; padding: 0; height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Noto Sans CJK SC', 'Microsoft YaHei', sans-serif;
  color: var(--text-primary);
  background: #fff;
}

/* ============================================================
   Sidebar + content two-column layout
   ============================================================ */
body.route-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  background: #fafafa;
}

.sidebar-hd {
  display: block;
  padding: 1.125rem 1rem 0.875rem;
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.sidebar-brand {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-primary);
  margin: 0 0 2px;
}

.sidebar-sub {
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Nav list */
.nav-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.375rem 0 0.5rem;
}

.nav-group { margin-bottom: 0.25rem; }

.nav-group-label {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.75rem 1rem 0.25rem;
}

.nav-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 1rem;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.8125rem;
  border-left: 3px solid transparent;
  line-height: 1.35;
  transition: background 0.12s;
}
.nav-item:hover { background: rgba(0,0,0,0.04); }
.nav-item.active {
  background: rgba(0,110,109,0.08);
  border-left-color: var(--brand-teal);
  font-weight: 600;
  color: var(--brand-teal-dark);
}

.nav-name { flex: 1; }
.nav-badge {
  font-size: 0.625rem;
  color: var(--text-muted);
  background: var(--border-color);
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 6px;
  flex-shrink: 0;
}
.nav-item.active .nav-badge {
  background: rgba(0,110,109,0.15);
  color: var(--brand-teal-dark);
}

/* Sidebar footer — compact contact card */
.sidebar-ft {
  flex-shrink: 0;
  border-top: 1px solid var(--border-color);
  padding: 0.875rem 1rem;
  text-align: center;
}
.cc-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.cc-qr-sm {
  width: 100px; height: 100px;
  object-fit: contain;
  display: block;
  margin: 0 auto 0.5rem;
}
.cc-btn-sm {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: var(--brand-teal);
  color: #fff;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  pointer-events: auto;
}
.cc-btn-sm:hover { background: var(--brand-teal-dark); }

/* ============================================================
   Content pane — right side
   ============================================================ */
.content-pane {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: #f8f8f8;
}

/* De-PDF: override A4 fixed dimensions for web view */
.content-pane .page {
  width: 100% !important;
  max-width: 860px !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  box-sizing: border-box !important;
  margin: 0 auto !important;
  margin-bottom: 2rem !important;
  padding: 2.5rem !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07) !important;
  background: #fff !important;
}
.content-pane .page:first-child { margin-top: 2rem !important; }
.content-pane .page:last-child  { margin-bottom: 2.5rem !important; }

/* Quote sub-nav link */
.nav-sub {
  padding-left: 1.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-left-width: 2px;
}
.nav-sub .nav-badge { font-size: 0.5625rem; }
.nav-sub.active {
  background: rgba(0,110,109,0.06);
  border-left-color: var(--brand-teal);
  color: var(--brand-teal-dark);
  font-weight: 600;
}

/* ============================================================
   Contact card (legacy, kept for compat)
   ============================================================ */
.contact-card { display: none; }
