/* ============================================================================
   The customer pages' shared frame: top header, sidebar, page wrapper and the
   phone tab bar. ONE copy, loaded by templates/_customer_base.html, so the
   customer pages can't drift apart. (Taken from the dashboard, the most
   complete of the copies each page used to carry.) Page-specific styles stay
   in each page; cgt-design.css (loaded last) styles the floating sidebar and
   tab bar on top of this.
   ============================================================================ */
.top-header { position: fixed; top: 0; left: 0; right: 0; background: var(--navy); display: flex; align-items: flex-end; justify-content: space-between; padding: 0 20px 12px; padding-top: env(safe-area-inset-top); min-height: calc(56px + env(safe-area-inset-top)); z-index: 300; box-shadow: 0 2px 12px rgba(15,39,68,0.3); }
.header-brand { display: flex; align-items: center; gap: 8px; color: white; font-size: 13px; font-weight: 700; letter-spacing: 0.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-sep { opacity: 0.35; font-weight: 300; margin: 0 2px; }
.header-portal { color: var(--on-ink-soft); font-weight: 500; }
.header-signout { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 12px; font-weight: 500; white-space: nowrap; transition: color 0.2s; flex-shrink: 0; margin-left: 12px; }
.header-signout:hover { color: white; }
.left-sidebar { display: none; }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar-link { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: rgba(255,255,255,0.6); text-decoration: none; font-size: 13px; font-weight: 500; transition: background 0.15s, color 0.15s; }
.sidebar-link:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.9); }
.sidebar-link.active { background: rgba(46,134,193,0.22); color: white; }
.sidebar-link svg { width: 16px; height: 16px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; }
.sidebar-primary { background: var(--accent); color: white !important; font-weight: 600; margin-bottom: 10px; }
.sidebar-primary:hover { background: var(--glacier-dk) !important; }
.sidebar-manifest { background: rgba(46,134,193,0.18); color: #fff !important; font-weight: 600; margin-bottom: 10px; border: 1px solid rgba(46,134,193,0.45); }
.sidebar-manifest:hover { background: rgba(46,134,193,0.32) !important; }
.page-wrapper { padding-top: calc(56px + env(safe-area-inset-top)); }
.bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--navy); padding-bottom: env(safe-area-inset-bottom); z-index: 200; box-shadow: 0 -2px 12px rgba(15,39,68,0.3); }
.bottom-nav-inner { display: flex; height: 60px; }
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: rgba(255,255,255,0.55); text-decoration: none; font-size: 11px; font-weight: 500; gap: 3px; transition: color 0.15s; }
.bottom-nav a:hover, .bottom-nav a.active { color: white; }
.bottom-nav a svg { width: 22px; height: 22px; }
.bottom-nav a.new-booking { color: var(--on-ink-soft); }
@media (max-width: 768px) {
  .bottom-nav {display: block;}
}
@media (min-width: 769px) {
  .top-header {align-items: center; padding: 0 28px; min-height: 60px;}
  .header-brand {font-size: 15px;}
  .left-sidebar {display: flex; flex-direction: column; position: fixed; top: 60px; left: 0; bottom: 0; width: 220px; background: var(--ink-2); padding: 20px 10px; z-index: 200; overflow-y: auto; border-right: 1px solid rgba(255,255,255,0.06);}
  .page-wrapper {padding-left: 220px; padding-top: 60px;}
}
