/* ==========================================================================
   GV MOBILES V5.20.171-172 - PC layout fix (left sidebar + full-width pages).
   css/brand-theme.css sits in @layer brand, and !important rules in the
   earliest layer beat every unlayered !important rule, so since V5.20.83 it
   overrode css/desktop.css: on a PC the bottom bar stretched across the top
   and its buttons stacked in the middle of the page.
   This file lives in the same layer, loads after brand-theme.css and uses
   :is(html,#skPcA) for one extra ID of weight, so the left sidebar from
   desktop.css comes back. Only screens >= 1100px; phones are untouched.
   ========================================================================== */
@layer brand{
@media (min-width:1100px){
  html:is(html,#skPcA) body nav.bottom-nav{
    left:0!important;top:0!important;bottom:0!important;right:auto!important;transform:none!important;
    width:var(--sk-side-w,228px)!important;max-width:none!important;height:100vh!important;min-height:100vh!important;
    display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:6px!important;
    padding:92px 12px 16px!important;border-radius:0!important;border:0!important;border-right:1px solid var(--b-line,rgba(148,163,184,.28))!important;
    box-shadow:2px 0 18px rgba(15,23,42,.06)!important;overflow-y:auto!important}
  html:is(html,#skPcA) body nav.bottom-nav > .nav-item{
    flex:0 0 auto!important;width:100%!important;height:46px!important;min-height:46px!important;padding:0 14px!important;margin:0!important;
    display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:12px!important;
    border-radius:12px!important;position:relative!important}
  html:is(html,#skPcA) body nav.bottom-nav > .nav-item:hover{background:color-mix(in srgb,var(--b-acc,var(--primary,#2563eb)) 9%,transparent)!important}
  html:is(html,#skPcA) body nav.bottom-nav > .nav-item span{font-size:.9rem!important;font-weight:700!important}
  /* active tab: soft highlight row instead of the raised circle */
  html:is(html,#skPcA) body nav.bottom-nav > .nav-item.active,
  html:is(html,#skPcA) body nav.bottom-nav > #navHome.active{background:color-mix(in srgb,var(--b-acc,var(--primary,#2563eb)) 13%,transparent)!important;color:var(--b-acc,var(--primary,#2563eb))!important}
  html:is(html,#skPcA) body nav.bottom-nav > .nav-item.active::before,
  html:is(html,#skPcA) body nav.bottom-nav > #navHome::before{display:none!important}
  html:is(html,#skPcA) body nav.bottom-nav > .nav-item.active svg,
  html:is(html,#skPcA) body nav.bottom-nav > #navHome svg{
    position:static!important;transform:none!important;width:22px!important;height:22px!important;flex:0 0 22px!important;
    stroke:currentColor!important;color:inherit!important}
  html:is(html,#skPcA) body nav.bottom-nav > .nav-item.active span{position:static!important;text-align:left!important;color:inherit!important}
  html:is(html,#skPcA) body nav.bottom-nav > #navHome::after{
    position:static!important;font-size:.9rem!important;font-weight:700!important;color:inherit!important;text-align:left!important}
  html:is(html,#skPcA) body nav.bottom-nav > #navHome:not(.active){color:var(--b-muted,var(--text-muted,#64748b))!important}
  /* full pages (Used stock, Billing, Ledger ...) use the PC width like Cylinder Desk; small pop-ups stay compact */
  html:is(html,#skPcA) body div.modal-overlay > .modal-sheet.sk-flatsheet{width:100%!important;max-width:1600px!important}
  /* pop-up pages do not need room for a bottom bar on a PC */
  html:is(html,#skPcA) body .modal-overlay.active:not(.sk-pop-center):has(> .modal-sheet.sk-flatsheet){padding-bottom:0!important}
  /* ---- HSAP / Cylinder Desk style sidebar ----
     top: the 5 quick buttons (Home, Ledger, Accessories, Billing, Orders)
     below: the full Menu (search, recent, every group) always open, no ☰ button needed */
  :root{--sk-side-w:264px!important;--sk-quick-h:286px}
  html:is(html,#skPcA) body{padding-left:var(--sk-side-w)!important}
  html:is(html,#skPcA) body nav.bottom-nav{
    bottom:auto!important;height:var(--sk-quick-h)!important;min-height:0!important;gap:4px!important;
    padding:62px 12px 10px!important;overflow:hidden!important;
    border-bottom:1px solid var(--b-line,rgba(148,163,184,.28))!important;box-shadow:none!important;
    background:var(--b-surf,var(--modal-bg,#fff))!important}
  html:is(html,#skPcA) body nav.bottom-nav > .nav-item{height:40px!important;min-height:40px!important}
  html:is(html,#skPcA) body #leftDrawer.left-drawer{
    display:block!important;position:fixed!important;inset:var(--sk-quick-h) auto 0 0!important;
    width:var(--sk-side-w)!important;height:auto!important;max-width:none!important;max-height:none!important;
    background:var(--b-surf,var(--modal-bg,#fff))!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
    border-right:1px solid var(--b-line,rgba(148,163,184,.28))!important;z-index:2147483500!important;
    opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:none!important;margin:0!important}
  html:is(html,#skPcA) body #leftDrawer .left-drawer-content{
    position:absolute!important;inset:0!important;width:auto!important;max-width:none!important;height:auto!important;max-height:none!important;
    transform:none!important;animation:none!important;opacity:1!important;border-radius:0!important;box-shadow:none!important;border:0!important;
    background:transparent!important;padding:10px 10px 24px!important;overflow-y:auto!important;overscroll-behavior:contain}
  html:is(html,#skPcA) body #leftDrawer .drawer-header{display:none!important}
  html:is(html,#skPcA) body #leftDrawer .drawer-group{border-radius:14px!important;margin:0 0 10px!important}
  html:is(html,#skPcA) body #leftDrawer .drawer-group-title{padding:10px 10px 6px!important;font-size:11px!important;background:transparent!important}
  html:is(html,#skPcA) body #leftDrawer .drawer-group > .menu-drawer-btn{min-height:40px!important;padding:6px 10px!important;gap:10px!important}
  html:is(html,#skPcA) body #leftDrawer :is(.menu-icon-pod,.menu-drawer-btn > .ski){width:28px!important;height:28px!important;flex:0 0 28px!important}
  html:is(html,#skPcA) body #leftDrawer .menu-icon-pod svg{width:15px!important;height:15px!important}
  html:is(html,#skPcA) body #leftDrawer .menu-btn-label{font-size:13px!important;font-weight:600!important}
  html:is(html,#skPcA) body #leftDrawer .menu-arrow{display:none!important}
  /* the ☰ Menu button is not needed: the menu is always open on the left */
  html:is(html,#skPcA) body .menu-icon-btn{display:none!important}
  /* home + header use the width beside the sidebar */
  html:is(html,#skPcA) body .app-viewport{max-width:1640px!important;width:auto!important;margin-left:auto!important;margin-right:auto!important}
  html:is(html,#skPcA) body .content-area,
  html:is(html,#skPcA) body .app-header .header-row,
  html:is(html,#skPcA) body .app-header .search-wrapper{max-width:1600px!important}
  /* ---- V5.20.173: less empty space on a wide screen ---- */
  /* Used Mobile Stock boxes: as many columns as fit (was always 2 giant boxes with a huge photo) */
  html:is(html,#skPcA)[data-sk-layout="boxes"] body tbody#skUsedRows{grid-template-columns:repeat(auto-fill,minmax(250px,1fr))!important;gap:14px!important}
  html:is(html,#skPcA) body tbody#skUsedRows > tr:only-child{grid-column:1 / -1!important}
  html:is(html,#skPcA) body #skAccessoriesPage .skpk-list.skac-boxview{grid-template-columns:repeat(auto-fill,minmax(250px,1fr))!important;gap:12px!important}
  /* purchase form: the Model box takes the whole row instead of leaving half of it empty */
  html:is(html,#skPcA) body #skUsedStockModal .sk-used-form-grid .form-label:has(#skUsedModel){grid-column:1 / -1!important}
  /* ---- V5.20.174: Home as a proper PC dashboard (not stretched phone cards) ---- */
  html:is(html,#skPcA) body .content-area{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px 18px!important;padding-top:14px!important;align-items:start!important}
  html:is(html,#skPcA) body .content-area > :is(.sk-home-v2-hero,.sk-home-v2-card){grid-column:1 / -1!important}
  html:is(html,#skPcA) body .sk-home-v2-metrics{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}
  html:is(html,#skPcA) body .sk-home-v2-features{grid-template-columns:repeat(auto-fit,minmax(128px,1fr))!important;gap:12px!important}
  html:is(html,#skPcA) body .sk-home-v2-features > *{min-height:0!important;height:auto!important;padding-top:14px!important;padding-bottom:12px!important}
  /* quick actions and recent activity sit side by side */
  html:is(html,#skPcA) body .content-area > .sk-home-v2-section{grid-column:auto!important}
  html:is(html,#skPcA) body .sk-home-v2-quick-grid{grid-template-columns:repeat(auto-fill,minmax(118px,1fr))!important;gap:10px!important}
  html:is(html,#skPcA) body .sk-home-v2-hero{max-height:150px!important}
  /* ---- V5.20.174: document-like pages (Settings, Reports, Sync, Website settings ...) keep a readable width, centred,
     and put their sections side by side instead of one long stretched column ---- */
  html:is(html,#skPcA) body :is(#settingsModal,#skDailyReportModal,#skMonthReportModal,#skStorageHealthModal,#skSyncStModal,#skWebSiteModal,#skReviewModal) > .modal-sheet.sk-flatsheet{max-width:1240px!important}
    html:is(html,#skPcA) body #skDrBody,
  html:is(html,#skPcA) body #skShBody{column-count:2;column-gap:20px}
  html:is(html,#skPcA) body :is(#skMr2Body,#skDrBody,#skShBody) > *{break-inside:avoid}
  /* narrower PC screens: Quick Actions and Recent Activity stack, each full width */
  @media (max-width:1599px){html:is(html,#skPcA) body .content-area > .sk-home-v2-section{grid-column:1 / -1!important}}
  /* ---- V5.20.186: PC brand look - logo header in the sidebar, solid brand active item, accent section titles ---- */
  html:is(html,#skPcA) body nav.bottom-nav::before{
    content:"GV MOBILES"!important;top:14px!important;left:14px!important;right:12px!important;height:40px;display:flex;align-items:flex-start;padding-top:3px;box-sizing:border-box;
    padding-left:50px;background:url("../Logo.png") no-repeat left center/40px 40px;
    font-weight:900!important;font-size:1.05rem!important;letter-spacing:.03em!important;color:var(--b-text,#0F172A)!important}
  html:is(html,#skPcA) body nav.bottom-nav::after{
    content:"Billing & Inventory";position:absolute;top:33px;left:64px;font-size:.68rem;font-weight:600;letter-spacing:.02em;color:var(--b-muted,#64748B)}
  html:is(html,#skPcA) body nav.bottom-nav{background:linear-gradient(180deg,color-mix(in srgb,var(--b-acc,#0284C7) 8%,var(--b-surf,#fff)) 0,var(--b-surf,#fff) 180px)!important}
  html:is(html,#skPcA) body nav.bottom-nav > .nav-item.active,
  html:is(html,#skPcA) body nav.bottom-nav > #navHome.active{background:color-mix(in srgb,var(--b-acc,#0284C7) 10%,transparent)!important;color:var(--b-acc,#0284C7)!important;box-shadow:inset 4px 0 0 var(--b-acc,#0284C7)!important;border-radius:4px 12px 12px 4px!important}
  html:is(html,#skPcA) body nav.bottom-nav > .nav-item.active span,
  html:is(html,#skPcA) body nav.bottom-nav > #navHome.active::after{font-weight:800!important}
  /* ---- V5.20.188: Monthly Report as a real PC page - hero + 4 stat boxes on top, the detail cards in 2 columns ---- */
  html:is(html,#skPcA) body #skMr2Body{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px 16px!important;align-items:start!important}
  html:is(html,#skPcA) body #skMr2Body > :is(.skpk-hero,.skpk-grid2,.skpk-acts,.skpk-hint){grid-column:1 / -1!important}
  html:is(html,#skPcA) body #skMr2Body > .skpk-grid2{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}
  html:is(html,#skPcA) body #skMr2Body > .skpk-card{margin:0!important}
  /* login screen: no sidebar behind it */
  html:is(html,#skPcA) body:has(#skLoginModal.active) :is(nav.bottom-nav,#leftDrawer){display:none!important}
  html:is(html,#skPcA) body:has(#skLoginModal.active){padding-left:0!important}
}
}
