/* ap-sidebar.css — Africa Pro Quotes: turns the top header into a left sidebar on desktop.
   Phones/tablets (<= 860px) keep the existing top bar + bottom menu untouched. */
@media (min-width: 861px) {
  html[data-q21] body { padding-left: 232px !important; }

  html[data-q21] .site-header {
    position: fixed !important; left: 0; top: 0; bottom: 0; width: 232px; z-index: 100;
    display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden;
    border-bottom: 0 !important; border-right: 2px solid #566B30; padding-top: 0;
    scrollbar-width: none;
  }
  html[data-q21] .site-header::-webkit-scrollbar { width: 0; }
  html[data-q21] .site-header-inner {
    height: auto !important; max-width: none !important; margin: 0 !important;
    padding: 16px 12px 12px !important; flex: 1 1 auto;
    flex-direction: column; align-items: stretch; gap: 6px;
  }
  html[data-q21] .site-logo { justify-content: flex-start; padding: 2px 4px 12px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 6px; }

  /* menu: vertical list, always the long labels */
  html[data-q21] #q21Nav {
    display: flex !important; flex-direction: column; gap: 3px; margin: 0 !important; flex: 0 0 auto;
  }
  html[data-q21] #q21Nav button {
    width: 100%; text-align: left; font-size: 14.5px !important; padding: 11px 12px !important;
    margin: 0 !important;
  }
  html[data-q21] #q21Nav .q21-lf { display: inline !important; }
  html[data-q21] #q21Nav .q21-ls { display: none !important; }
  html[data-q21] #q21Nav button[data-go="new"] { margin: 4px 0 8px !important; text-align: center; }
  html[data-q21] #q21Nav button.on { box-shadow: inset 3px 0 0 #A9BE8A; }

  /* basket + account sit at the foot of the sidebar */
  html[data-q21] .site-actions {
    margin: auto 0 0 !important; flex-direction: column; align-items: stretch; gap: 8px;
    padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12);
  }
  html[data-q21] .site-actions .quote-pill { width: 100%; justify-content: center; padding: 10px 14px; }
  html[data-q21] .site-actions .quote-pill .label { display: inline !important; }
  html[data-q21] #q21Chip.q21-inhead { display: flex; width: 100%; }
  html[data-q21] #q21Chip.q21-inhead > button { width: 100%; max-width: none !important; justify-content: flex-start; text-align: left; }
  html[data-q21] #q21Chip .q21-chipname { display: inline !important; overflow: hidden; text-overflow: ellipsis; }
  html[data-q21] #q21Chip.q21-inhead .q21-menu { top: auto !important; bottom: 48px; left: 0; right: auto; min-width: 216px; }

  /* status line (dot + text + trial pill) at the very bottom */
  html[data-q21] .site-status { padding: 8px 14px; border-bottom: 0; border-top: 1px solid rgba(255,255,255,.10); flex: 0 0 auto; }
  html[data-q21] .site-status-inner { max-width: none !important; padding: 0 !important; flex-wrap: wrap; gap: 6px 8px; }
  html[data-q21] .q21-trialpill { margin: 0 !important; }

  /* page chrome that used to sit under the 64px header */
  html[data-q21] .sub-nav { top: 0 !important; }
  /* full-screen panels start to the right of the sidebar */
  html[data-q21] #q21Live, html[data-q21] .compare-modal { left: 232px !important; }
}
