/* ==========================================================================
   Dashboard theme for the purchased "Sidebar UI v2" (assets/vendor/sidebarv2/sidebar.css).
   The vendor file is untouched: all of its motion — width, label slide/fade, search morph,
   indicator travel, tooltips — is kept. This layer only fits it into the dashboard frame
   and recolours it. Default = light; add class "sb-theme-navy" on <body> for navy.
   ========================================================================== */

/* ---- Fit into the dashboard frame (full height, no floating card) ---- */
.sb-shell{position:sticky;top:56px;height:calc(100vh - 56px);flex:0 0 auto;z-index:15}
.sb-shell .sb-container{
  height:100%;max-height:none;border-radius:0;border:0;border-right:1px solid var(--line);
  font-family:var(--font);overflow:visible;
  backdrop-filter:none;-webkit-backdrop-filter:none;
}
.sb-shell .sb-container.sb-expanded{width:248px;padding:16px 12px 14px}
.sb-shell .sb-container.sb-collapsed{width:76px;padding:16px 10px 14px}
.sb-shell .sb-edge-toggle-btn{top:22px;right:-13px;backdrop-filter:none;-webkit-backdrop-filter:none}
.sb-shell .sb-nav-list{flex:1 1 auto;min-height:0;gap:2px}
.sb-shell .sb-nav-item{height:38px;text-decoration:none}
.sb-shell .sb-footer-item{height:40px;text-decoration:none}
.sb-shell a.sb-nav-item:hover,.sb-shell a.sb-footer-item:hover{text-decoration:none}
.sb-shell .sb-brand{margin-bottom:16px}
.sb-shell .sb-search-wrapper{margin-bottom:6px}
.sb-shell .sb-expanded .sb-search-box{height:38px}
.sb-shell .sb-collapsed .sb-search-box{width:40px;height:40px}
.sb-shell .sb-section-title{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.07em}
.sb-shell .sb-expanded .sb-section-title{margin-top:10px}
.sb-shell .sb-collapsed .sb-section-title{margin-top:12px;margin-bottom:8px;font-size:9.5px}
.sb-shell .sb-section-title.sb-sub{margin-top:14px}
.sb-shell .sb-expanded .sb-divider{margin:10px 4px}
.sb-shell .sb-collapsed .sb-divider{margin:10px auto}
.sb-shell .sb-brand-name{font-size:15px;letter-spacing:-.01em;white-space:nowrap}
.sb-logo-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;font-size:13px;font-weight:700;letter-spacing:.04em}
.sb-shell .sb-pro-pill{width:28px;height:28px;font-size:10.5px}
.sb-shell .sb-pill-badge{font-size:10.5px}
.sb-version{font-size:10.5px;padding:8px 10px 0;white-space:nowrap;overflow:hidden}
.sb-collapsed .sb-version{text-align:center;padding:8px 0 0}
.sb-expanded .sb-version-short,.sb-collapsed .sb-version-full{display:none}
.sb-nav-item.sb-hidden{display:none}
/* the dashboard's main column follows the sidebar width smoothly */
.shell{align-items:flex-start}
.shell>.main{transition:padding .42s cubic-bezier(.4,0,.2,1)}

/* ---- Light theme (default) ---- */
.sb-shell .sb-container{
  color:var(--ink);
  background:linear-gradient(180deg,#ffffff 0%,#fbfcfd 100%);
  box-shadow:1px 0 0 rgba(16,24,40,.02);
}
.sb-shell .sb-logo-mark{background:var(--accent);color:#fff;box-shadow:0 2px 6px rgba(14,91,82,.25)}
.sb-shell .sb-brand-name{color:var(--ink)}
.sb-shell .sb-edge-toggle-btn{background:#fff;color:var(--ink-2);border:1px solid var(--line);box-shadow:0 2px 8px rgba(16,24,40,.12)}
.sb-shell .sb-edge-toggle-btn:hover{background:#fff;color:var(--accent);border-color:var(--accent-2);box-shadow:0 0 0 4px var(--accent-soft),0 4px 12px rgba(16,24,40,.14)}
.sb-shell .sb-search-box{background:var(--bg);border:1px solid var(--line);box-shadow:none}
.sb-shell .sb-collapsed .sb-search-box:hover{background:var(--line-2);border-color:#cfd6df}
.sb-shell .sb-expanded .sb-search-box:focus-within{border-color:var(--accent-2);box-shadow:0 0 0 3px var(--accent-soft)}
.sb-shell .sb-search-icon-wrapper{color:var(--muted)}
.sb-shell .sb-search-box:hover .sb-search-icon-wrapper{color:var(--ink)}
.sb-shell .sb-search-input{color:var(--ink);height:auto}
.sb-shell .sb-search-input::placeholder{color:var(--muted)}
.sb-shell .sb-section-title{color:var(--muted)}
.sb-shell .sb-nav-item{color:var(--ink-2)}
.sb-shell .sb-nav-item:hover{color:var(--ink);background:var(--line-2)}
.sb-shell .sb-nav-item.sb-active{color:var(--accent)}
.sb-shell .sb-expanded .sb-nav-item.sb-active{background:linear-gradient(90deg,rgba(19,121,109,.16) 0%,rgba(19,121,109,.05) 50%,transparent 100%)}
.sb-shell .sb-collapsed .sb-nav-item.sb-active{background:radial-gradient(ellipse at 0% 50%,rgba(19,121,109,.30) 0%,rgba(19,121,109,.12) 45%,rgba(19,121,109,.03) 75%,transparent 100%)}
.sb-shell .sb-active-indicator{background:var(--accent-2);box-shadow:0 0 10px 1px rgba(19,121,109,.55),0 0 20px 4px rgba(19,121,109,.25)}
.sb-shell .sb-expanded .sb-active-indicator{left:-12px}
.sb-shell .sb-pill-badge{background:var(--accent);box-shadow:0 2px 6px rgba(14,91,82,.3)}
.sb-shell .sb-dot-badge{background:var(--accent-2);box-shadow:0 0 8px 1px rgba(19,121,109,.7)}
.sb-shell .sb-pill-badge.is-alert{background:var(--bad);box-shadow:0 2px 6px rgba(180,35,24,.3)}
.sb-shell .sb-dot-badge.is-alert{background:#e5483a;box-shadow:0 0 8px 1px rgba(214,69,53,.75)}
.sb-shell .sb-divider{background:var(--line)}
.sb-shell .sb-footer-item{color:var(--ink-2)}
.sb-shell .sb-footer-item:hover{color:var(--ink);background:var(--line-2)}
.sb-shell .sb-pro-item .sb-footer-label{color:var(--ink)}
.sb-shell .sb-pro-pill{background:var(--accent-soft);color:var(--accent);box-shadow:none}
.sb-shell .sb-tooltip{background:#1c2430;border-color:#1c2430;color:#fff;box-shadow:0 8px 18px rgba(16,24,40,.25);backdrop-filter:none;-webkit-backdrop-filter:none}
.sb-version{color:var(--muted)}

/* ---- Navy theme ---- */
.sb-theme-navy .sb-shell .sb-container{color:#fff;background:linear-gradient(175deg,#1f3430 0%,#172824 45%,#101c19 100%);border-right-color:#0c1613}
.sb-theme-navy .sb-shell .sb-logo-mark{background:#fff;color:var(--accent);box-shadow:0 2px 8px rgba(0,0,0,.25)}
.sb-theme-navy .sb-shell .sb-brand-name{color:#fff}
.sb-theme-navy .sb-shell .sb-edge-toggle-btn{background:#172824;color:rgba(255,255,255,.85);border-color:rgba(255,255,255,.25);box-shadow:0 3px 10px rgba(0,0,0,.3)}
.sb-theme-navy .sb-shell .sb-edge-toggle-btn:hover{background:#1f3430;color:#fff;border-color:#e6a878;box-shadow:0 0 14px rgba(230,168,120,.55),0 4px 12px rgba(0,0,0,.3)}
.sb-theme-navy .sb-shell .sb-search-box{background:rgba(0,0,0,.22);border-color:rgba(255,255,255,.1)}
.sb-theme-navy .sb-shell .sb-collapsed .sb-search-box:hover{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.18)}
.sb-theme-navy .sb-shell .sb-expanded .sb-search-box:focus-within{border-color:rgba(230,168,120,.6);box-shadow:0 0 12px rgba(230,168,120,.25)}
.sb-theme-navy .sb-shell .sb-search-icon-wrapper{color:rgba(255,255,255,.5)}
.sb-theme-navy .sb-shell .sb-search-box:hover .sb-search-icon-wrapper{color:#fff}
.sb-theme-navy .sb-shell .sb-search-input{color:#fff}
.sb-theme-navy .sb-shell .sb-search-input::placeholder{color:rgba(255,255,255,.45)}
.sb-theme-navy .sb-shell .sb-section-title{color:rgba(255,255,255,.5)}
.sb-theme-navy .sb-shell .sb-nav-item{color:rgba(255,255,255,.72)}
.sb-theme-navy .sb-shell .sb-nav-item:hover{color:#fff;background:rgba(255,255,255,.07)}
.sb-theme-navy .sb-shell .sb-nav-item.sb-active{color:#fff}
.sb-theme-navy .sb-shell .sb-expanded .sb-nav-item.sb-active{background:linear-gradient(90deg,rgba(230,168,120,.26) 0%,rgba(230,168,120,.08) 50%,transparent 100%)}
.sb-theme-navy .sb-shell .sb-collapsed .sb-nav-item.sb-active{background:radial-gradient(ellipse at 0% 50%,rgba(230,168,120,.42) 0%,rgba(230,168,120,.16) 45%,rgba(230,168,120,.04) 75%,transparent 100%)}
.sb-theme-navy .sb-shell .sb-active-indicator{background:#e6a878;box-shadow:0 0 12px 2px rgba(230,168,120,.9),0 0 24px 5px rgba(230,168,120,.45)}
.sb-theme-navy .sb-shell .sb-pill-badge{background:#fff;color:var(--accent);box-shadow:0 2px 6px rgba(0,0,0,.25)}
.sb-theme-navy .sb-shell .sb-dot-badge{background:#e6a878;box-shadow:0 0 8px 2px rgba(230,168,120,.9)}
.sb-theme-navy .sb-shell .sb-pill-badge.is-alert{background:#f04438;color:#fff}
.sb-theme-navy .sb-shell .sb-divider{background:rgba(255,255,255,.12)}
.sb-theme-navy .sb-shell .sb-footer-item{color:rgba(255,255,255,.72)}
.sb-theme-navy .sb-shell .sb-footer-item:hover{color:#fff;background:rgba(255,255,255,.07)}
.sb-theme-navy .sb-shell .sb-pro-item .sb-footer-label{color:#fff}
.sb-theme-navy .sb-shell .sb-pro-pill{background:#fff;color:var(--accent)}
.sb-theme-navy .sb-version{color:rgba(255,255,255,.45)}

/* ---- First paint already collapsed (no animation on page load) ---- */
.sb-no-anim,.sb-no-anim *{transition:none!important}

/* ---- Phones / small tablets: slide-in menu from the ☰ button, always expanded ---- */
@media (max-width:900px){
  .sb-shell{position:fixed;left:0;top:56px;bottom:0;height:auto;z-index:30;transform:translateX(-105%);transition:transform .32s cubic-bezier(.4,0,.2,1)}
  body.nav-open .sb-shell{transform:none;box-shadow:0 10px 30px rgba(0,0,0,.18)}
  .sb-shell .sb-edge-toggle-btn{display:none}
  .sb-shell .sb-container.sb-collapsed{width:248px;padding:16px 12px 14px}
  .sb-shell .sb-container{overflow-y:auto}
}

@media (prefers-reduced-motion:reduce){.sb-shell *,.sb-shell{transition:none!important;animation:none!important}}

/* search input: undo the dashboard's general input styling inside the sidebar */
.sb-shell .sb-search-input{border:0;background:transparent;height:auto;padding:0;box-shadow:none;outline:none;min-width:0}
.sb-shell .sb-search-input:focus{outline:none;box-shadow:none}
/* desktop: the sidebar now carries the brand, your name and Sign out — keep the top bar to the bell */
@media (min-width:901px){
  .topbar{display:none}
  .sb-shell{top:0;height:100vh}
  .shell{min-height:100vh}
}

/* short screens: the menu scrolls inside the sidebar; hover labels float above so they are never clipped */
.sb-shell .sb-container{overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:rgba(127,140,160,.35) transparent}
.sb-shell .sb-container::-webkit-scrollbar{width:6px}
.sb-shell .sb-container::-webkit-scrollbar-thumb{background:rgba(127,140,160,.35);border-radius:3px}
.sb-shell .sb-nav-list{flex:0 0 auto}
.sb-shell .sb-footer{margin-top:auto;flex:0 0 auto}
.sb-shell .sb-tooltip{position:fixed;left:var(--sb-tt-left,90px);top:var(--sb-tt-top,0)}
@media (max-height:760px) and (min-width:901px){
  .sb-shell .sb-nav-item{height:34px}
  .sb-shell .sb-footer-item{height:36px}
  .sb-shell .sb-brand{margin-bottom:10px}
  .sb-shell .sb-expanded .sb-section-title{margin-top:6px}
}

/* My account: sidebar style picker */
.theme-choice{display:flex;gap:12px}
.theme-opt{position:relative;flex:1;display:flex!important;flex-direction:column!important;align-items:center;gap:8px;padding:12px;border:1px solid var(--line);border-radius:10px;cursor:pointer;font-weight:600}
.theme-opt:has(input:checked){border-color:var(--accent-2);box-shadow:0 0 0 3px var(--accent-soft)}
.theme-opt input{position:absolute;opacity:0;pointer-events:none}
.theme-swatch{width:100%;height:54px;border-radius:7px;border:1px solid var(--line)}
.theme-swatch.light{background:linear-gradient(90deg,#fff 0 32%,#f4f5f7 32%)}
.theme-swatch.navy{background:linear-gradient(90deg,#172824 0 32%,#f4f5f7 32%)}
/* ChiselPoint has more sections: keep the brand and search from being squeezed when the menu scrolls */
.sb-shell .sb-brand,.sb-shell .sb-search-wrapper,.sb-shell .sb-section-title,.sb-shell .sb-nav-item,.sb-shell .sb-divider{flex-shrink:0}
.sb-shell .sb-brand{min-height:40px}
.sb-shell .sb-brand-name{line-height:1.15}
