/* ==========================================================================
   SK MOBILES - Desktop (PC) layout. Loaded last; only applies on wide
   screens (>= 1100px). Phones/tablets keep the original mobile layout.
   Bottom nav becomes a left sidebar, pages use the full width in a grid,
   pop-up forms centre inside the content area.
   ========================================================================== */
@media (min-width:1100px){
  :root{--sk-side-w:228px}

  html body{padding-left:var(--sk-side-w)!important;overflow-x:hidden}

  /* ---- bottom nav -> left sidebar ---- */
  /* specificity boost: fixes.css pins the nav with a long :not(#wN) selector */
  html:not(#z0#z1#z2#z3#z4#z5#z6#z7#z8#z9#z10#z11#z12#z13#z14#z15#z16#z17#z18#z19#z20#z21#z22#z23#z24#z25#z26#z27#z28#z29#z30#z31#z32#z33#z34#z35#z36#z37#z38#z39#z40#z41#z42#z43#z44#z45#z46#z47#z48#z49) body nav.bottom-nav{
    left:0!important;top:0!important;bottom:0!important;right:auto!important;transform:none!important;
    width:var(--sk-side-w)!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-width:0 1px 0 0!important;
    box-shadow:2px 0 18px rgba(15,23,42,.06);overflow-y:auto}
  html body nav.bottom-nav::before{
    content:"SK MOBILES";position:absolute;top:26px;left:20px;right:12px;
    font-weight:900;font-size:1.05rem;letter-spacing:.04em;color:var(--primary,#2563eb)}
  html body nav.bottom-nav > .nav-item{
    flex-direction:row;justify-content:flex-start;gap:12px;
    height:46px;min-height:46px;padding:0 14px;border-radius:12px;width:100%}
  html body nav.bottom-nav > .nav-item:hover{background:color-mix(in srgb,var(--primary,#2563eb) 9%,transparent)}
  html body nav.bottom-nav > .nav-item span{font-size:.9rem;font-weight:700}
  html body nav.bottom-nav > .nav-item.active:not(#navHome){background:color-mix(in srgb,var(--primary,#2563eb) 13%,transparent)}
  html body nav.bottom-nav > .nav-item:active{transform:none}

  /* Home: plain row at the top of the sidebar (order first), no raised circle */
  html body nav.bottom-nav > #navHome{order:-1;color:var(--text,#0f172a)}
  html body nav.bottom-nav > #navHome::before{display:none}
  html body nav.bottom-nav > #navHome svg{transform:none;width:22px;height:22px;flex-basis:22px}
  html body nav.bottom-nav > #navHome span{display:block}
  html body nav.bottom-nav > #navHome::after{content:"Home";font-size:.9rem;font-weight:700}
  html body nav.bottom-nav > #navHome.active{background:color-mix(in srgb,var(--primary,#2563eb) 13%,transparent);color:var(--primary,#2563eb)}

  /* ---- header + content use the wide screen ---- */
  html body .app-header{padding-left:28px;padding-right:28px}
  html body .app-header .header-row,
  html body .app-header .search-wrapper{max-width:1400px;margin-left:auto;margin-right:auto}
  html body .menu-icon-btn{display:inline-flex}

  html body .content-area{
    max-width:1400px;margin:0 auto;padding:18px 28px 40px;box-sizing:border-box;
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
  /* anything that is not a half-width card spans the full row */
  html body .content-area > *{min-width:0}
  html body .content-area > .sk-home-v2-hero,
  html body .content-area > .sk-home-v2-section,
  html body .content-area > :not(section){grid-column:1 / -1}

  html body .sk-home-v2-hero{max-height:340px;overflow:hidden;border-radius:22px}
  html body .sk-home-v2-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  html body .sk-home-v2-features{grid-template-columns:repeat(3,minmax(0,1fr))}
  html body .sk-home-v2-quick-grid{grid-template-columns:repeat(6,minmax(0,1fr))}

  /* ---- pop-up pages: centre inside the content area, not under the sidebar ----
     (fixes.css pins overlays/sheets with very specific !important rules, so the
     selectors below carry a long :not() chain to win) */
  html:not(#y0#y1#y2#y3#y4#y5#y6#y7#y8#y9#y10#y11#y12#y13#y14#y15#y16#y17#y18#y19#y20#y21#y22#y23#y24#y25#y26#y27#y28#y29#y30#y31#y32#y33#y34#y35#y36#y37#y38#y39#y40#y41#y42#y43#y44#y45#y46#y47#y48#y49#y50#y51#y52#y53#y54#y55#y56#y57#y58#y59#y60#y61#y62#y63#y64#y65#y66#y67#y68#y69#y70#y71#y72#y73#y74#y75#y76#y77#y78#y79#y80#y81#y82#y83#y84#y85#y86#y87#y88#y89#y90#y91#y92#y93#y94#y95#y96#y97#y98#y99#y100#y101#y102#y103#y104#y105#y106#y107#y108#y109#y110#y111#y112#y113#y114#y115#y116#y117#y118#y119#y120#y121#y122#y123#y124#y125#y126#y127#y128#y129) body div.modal-overlay{
    margin-left:var(--sk-side-w)!important;width:calc(100vw - var(--sk-side-w))!important;
    padding-left:12px!important;padding-right:12px!important;box-sizing:border-box!important;
    align-items:center!important;justify-content:center!important}
  html:not(#y0#y1#y2#y3#y4#y5#y6#y7#y8#y9#y10#y11#y12#y13#y14#y15#y16#y17#y18#y19#y20#y21#y22#y23#y24#y25#y26#y27#y28#y29#y30#y31#y32#y33#y34#y35#y36#y37#y38#y39#y40#y41#y42#y43#y44#y45#y46#y47#y48#y49#y50#y51#y52#y53#y54#y55#y56#y57#y58#y59#y60#y61#y62#y63#y64#y65#y66#y67#y68#y69#y70#y71#y72#y73#y74#y75#y76#y77#y78#y79#y80#y81#y82#y83#y84#y85#y86#y87#y88#y89#y90#y91#y92#y93#y94#y95#y96#y97#y98#y99#y100#y101#y102#y103#y104#y105#y106#y107#y108#y109#y110#y111#y112#y113#y114#y115#y116#y117#y118#y119#y120#y121#y122#y123#y124#y125#y126#y127#y128#y129) body div.modal-overlay > .modal-sheet{
    width:min(100%,1000px)!important;max-width:1000px!important;
    margin-left:auto!important;margin-right:auto!important;
    border-radius:22px!important;max-height:92vh!important}
  /* small confirmation / action dialogs stay compact */
  html:not(#y0#y1#y2#y3#y4#y5#y6#y7#y8#y9#y10#y11#y12#y13#y14#y15#y16#y17#y18#y19#y20#y21#y22#y23#y24#y25#y26#y27#y28#y29#y30#y31#y32#y33#y34#y35#y36#y37#y38#y39#y40#y41#y42#y43#y44#y45#y46#y47#y48#y49#y50#y51#y52#y53#y54#y55#y56#y57#y58#y59#y60#y61#y62#y63#y64#y65#y66#y67#y68#y69#y70#y71#y72#y73#y74#y75#y76#y77#y78#y79#y80#y81#y82#y83#y84#y85#y86#y87#y88#y89#y90#y91#y92#y93#y94#y95#y96#y97#y98#y99#y100#y101#y102#y103#y104#y105#y106#y107#y108#y109#y110#y111#y112#y113#y114#y115#y116#y117#y118#y119#y120#y121#y122#y123#y124#y125#y126#y127#y128#y129) body div#skCreditActionModal > .modal-sheet{max-width:480px!important;width:min(100%,480px)!important}
  /* login screen covers everything (no sidebar yet) */
  html:not(#y0#y1#y2#y3#y4#y5#y6#y7#y8#y9#y10#y11#y12#y13#y14#y15#y16#y17#y18#y19#y20#y21#y22#y23#y24#y25#y26#y27#y28#y29#y30#y31#y32#y33#y34#y35#y36#y37#y38#y39#y40#y41#y42#y43#y44#y45#y46#y47#y48#y49#y50#y51#y52#y53#y54#y55#y56#y57#y58#y59#y60#y61#y62#y63#y64#y65#y66#y67#y68#y69#y70#y71#y72#y73#y74#y75#y76#y77#y78#y79#y80#y81#y82#y83#y84#y85#y86#y87#y88#y89#y90#y91#y92#y93#y94#y95#y96#y97#y98#y99#y100#y101#y102#y103#y104#y105#y106#y107#y108#y109#y110#y111#y112#y113#y114#y115#y116#y117#y118#y119#y120#y121#y122#y123#y124#y125#y126#y127#y128#y129) body div#skLoginModal{margin-left:0!important;width:100vw!important}
  html:not(#y0#y1#y2#y3#y4#y5#y6#y7#y8#y9#y10#y11#y12#y13#y14#y15#y16#y17#y18#y19#y20#y21#y22#y23#y24#y25#y26#y27#y28#y29#y30#y31#y32#y33#y34#y35#y36#y37#y38#y39#y40#y41#y42#y43#y44#y45#y46#y47#y48#y49#y50#y51#y52#y53#y54#y55#y56#y57#y58#y59#y60#y61#y62#y63#y64#y65#y66#y67#y68#y69#y70#y71#y72#y73#y74#y75#y76#y77#y78#y79#y80#y81#y82#y83#y84#y85#y86#y87#y88#y89#y90#y91#y92#y93#y94#y95#y96#y97#y98#y99#y100#y101#y102#y103#y104#y105#y106#y107#y108#y109#y110#y111#y112#y113#y114#y115#y116#y117#y118#y119#y120#y121#y122#y123#y124#y125#y126#y127#y128#y129) body div#skLoginModal .login-glass-card{max-width:440px!important}

  /* home cards fill their grid column */
  html:not(#y0#y1#y2#y3#y4#y5#y6#y7#y8#y9#y10#y11#y12#y13#y14#y15#y16#y17#y18#y19#y20#y21#y22#y23#y24#y25#y26#y27#y28#y29#y30#y31#y32#y33#y34#y35#y36#y37#y38#y39#y40#y41#y42#y43#y44#y45#y46#y47#y48#y49#y50#y51#y52#y53#y54#y55#y56#y57#y58#y59#y60#y61#y62#y63#y64#y65#y66#y67#y68#y69#y70#y71#y72#y73#y74#y75#y76#y77#y78#y79#y80#y81#y82#y83#y84#y85#y86#y87#y88#y89#y90#y91#y92#y93#y94#y95#y96#y97#y98#y99#y100#y101#y102#y103#y104#y105#y106#y107#y108#y109#y110#y111#y112#y113#y114#y115#y116#y117#y118#y119#y120#y121#y122#y123#y124#y125#y126#y127#y128#y129) body .sk-home-v2-card{width:100%!important;max-width:none!important;margin:0!important}
  /* the sidebar replaces the bottom bar, so no bottom clearance needed */
  html body :is(#settingsModal,#billingModal,#skRepairJobsModal,#skCreditLedgerPage,#skAccessoriesPage,#orderModal,#repairSparesModal,#toolsOthersNoteModal,#itemEditorModal,#skAdminPanelModal,#skRecycleBinModal,#skRepairDetailModal,#skPurchaseDetailsModal) > .modal-sheet{
    padding-bottom:24px!important}
  html body #skUsedStockModal main.sk-used-stock-scroll{padding-bottom:24px}

  /* left drawer opens beside the sidebar */
  html body .left-drawer{left:var(--sk-side-w)}

  /* nicer scrollbars for a desktop feel */
  html body ::-webkit-scrollbar{width:10px;height:10px}
  html body ::-webkit-scrollbar-thumb{background:rgba(100,116,139,.35);border-radius:8px}
  html body ::-webkit-scrollbar-thumb:hover{background:rgba(100,116,139,.55)}
}

@media (min-width:1700px){
  html body .content-area{max-width:1600px}
  html body .sk-home-v2-features{grid-template-columns:repeat(4,minmax(0,1fr))}
}

