/* ============================================================
   SK MOBILES 5.6.88 — SHARED RESPONSIVE UI SYSTEM
   Additive presentation layer. No application behaviour is defined here.
   ============================================================ */



:root{
  --sk-ui-space-1: 4px;
  --sk-ui-space-2: 8px;
  --sk-ui-space-3: 12px;
  --sk-ui-space-4: 16px;
  --sk-ui-space-5: 20px;
  --sk-ui-space-6: 24px;
  --sk-ui-radius-sm: 8px;
  --sk-ui-radius-md: 12px;
  --sk-ui-radius-lg: 16px;
  --sk-ui-radius-xl: 22px;
  --sk-ui-radius-pill: 9999px;
  --sk-ui-control-compact: 38px;
  --sk-ui-control-standard: 44px;
  --sk-ui-control-primary: 50px;
  --sk-ui-line: 1px solid var(--card-border, rgba(100,116,139,.22));
  --sk-ui-shadow-card: 0 8px 24px rgba(15,23,42,.055);
  --sk-ui-shadow-float: 0 18px 54px rgba(15,23,42,.18);
  --sk-ui-body-leading: 1.45;
  --sk-ui-focus-ring: 0 0 0 3px color-mix(in srgb, var(--primary, #2563eb) 20%, transparent);
}



html{
  min-width: 320px;
  min-height: 100%;
  scroll-padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}



body{
  width: 100%;
  min-width: 320px;
  min-height: 100dvh;
  line-height: var(--sk-ui-body-leading);
  overflow-wrap: break-word;
}



button,
input,
select,
textarea{
  font: inherit;
  line-height: 1.35;
}



button{
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
}



button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible{
  outline: 2px solid var(--primary, #2563eb);
  outline-offset: 2px;
  box-shadow: var(--sk-ui-focus-ring);
}



img,
svg,
video,
canvas{
  max-width: 100%;
}



.app-viewport{
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 100dvh;
  margin-inline: auto;
  padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  overflow-x: clip;
}



.app-header{
  width: 100%;
  min-width: 0;
  padding-left: clamp(12px, 2.4vw, 24px);
  padding-right: clamp(12px, 2.4vw, 24px);
}



.header-row,
.brand-logo-wrap{
  min-width: 0;
}



.brand-logo-wrap > div{
  min-width: 0;
}



.app-name,
.app-sub{
  overflow-wrap: anywhere;
}



.content-area{
  width: 100%;
  min-width: 0;
  max-width: none;
  padding-left: clamp(12px, 2.4vw, 24px);
  padding-right: clamp(12px, 2.4vw, 24px);
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  overflow-x: clip;
}



.content-area > *,
.app-viewport > *{
  min-width: 0;
}



.card,
.glass-card,
.stat-card,
.form-section {
  min-width: 0;
  border-radius: var(--sk-ui-radius-lg);
}



.card,
.glass-card,
.stat-card,
.form-section {
  box-shadow: var(--sk-ui-shadow-card);
}



h1,
h2,
h3,
h4,
h5,
p,
label,
small,
strong,
span{
  overflow-wrap: break-word;
}



h1,
h2,
h3,
h4{
  line-height: 1.25;
  text-wrap: pretty;
}



p,
label,
.form-label,
.muted,
small {
  line-height: var(--sk-ui-body-leading);
}



.form-input,
.form-select,
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]),
select,
textarea{
  min-width: 0;
  max-width: 100%;
  border-radius: var(--sk-ui-radius-md);
  line-height: 1.4;
}



.form-input,
.form-select,
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]),
select{
  min-height: var(--sk-ui-control-standard);
}



textarea,
textarea.form-input{
  min-height: 96px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  resize: vertical;
}



input::placeholder,
textarea::placeholder{
  opacity: .78;
  line-height: 1.35;
}



input[type="checkbox"],
input[type="radio"]{
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex: 0 0 auto;
  accent-color: var(--primary, #2563eb);
}



input[type="file"]{
  height: auto;
  min-height: var(--sk-ui-control-standard);
  padding: 7px;
}



button,
.submit-btn,
.btn,
.action-btn,
.modal-close-btn,
.login-password-toggle,
.login-submit-btn{
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}



.submit-btn,
.login-submit-btn{
  min-height: var(--sk-ui-control-primary);
  border-radius: var(--sk-ui-radius-md);
  padding: 12px 16px;
  font-weight: 750;
}



.modal-overlay{
  box-sizing: border-box;
  padding: max(12px, env(safe-area-inset-top, 0px)) 12px
           max(12px, env(safe-area-inset-bottom, 0px));
  overscroll-behavior: contain;
}



.modal-sheet,
.login-glass-card{
  box-sizing: border-box;
  min-width: 0;
  width: min(100%, 760px);
  max-width: min(760px, 100%);
  max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--sk-ui-radius-xl);
  border: var(--sk-ui-line);
  box-shadow: var(--sk-ui-shadow-float);
  scrollbar-gutter: stable;
}



.modal-title{
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  line-height: 1.3;
  padding: 14px 16px;
  background: var(--card-bg, rgba(255,255,255,.94));
  border-bottom: var(--sk-ui-line);
}



.modal-title > span{
  min-width: 0;
  overflow-wrap: anywhere;
}



.modal-close-btn{
  flex: 0 0 40px;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  border-radius: var(--sk-ui-radius-pill);
}



.modal-sheet > :not(.modal-title){
  min-width: 0;
}



.search-wrapper{
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}



.search-wrapper .search-input{
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  padding-left: 42px;
  padding-right: 42px;
}



.search-wrapper .search-icon-left{
  position: absolute;
  z-index: 2;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}



.search-wrapper{
  position: relative;
}



.search-wrapper .clear-search-btn{
  flex: 0 0 auto;
}



.login-glass-card{
  width: min(100%, 480px);
  padding: clamp(20px, 4vw, 34px);
  margin: auto;
  gap: 0;
  background: color-mix(in srgb, var(--card-bg, #fff) 88%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}



#skLoginModal .login-input-wrap{
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  gap: 6px;
}



#skLoginModal .login-input-icon{
  position: absolute;
  left: 14px;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  pointer-events: none;
  width: 20px;
  text-align: center;
  line-height: 1;
}



#skLoginModal .login-modern-input{
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 13px 14px 13px 44px !important;
  border-radius: var(--sk-ui-radius-md);
  line-height: 1.4;
  text-overflow: ellipsis;
}



#skLoginModal .login-password-toggle{
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 10px;
  white-space: nowrap;
}



#skLoginModal .login-submit-btn{
  display: flex;
  width: 100%;
  min-height: var(--sk-ui-control-primary);
  margin-top: 4px;
}



#skLoginModal .login-status-msg{
  min-height: 20px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}



#settingsModal .modal-sheet{
  width: min(100%, 1080px);
  max-width: 1080px;
}



#settingsModal #skUiAppearanceStudio,
#settingsModal .sk-ui-preview,
#settingsModal .sk-ui-sandbox {
  min-width: 0;
  max-width: 100%;
}



























#settingsModal .sk-ui-preview{
  padding: clamp(10px, 2vw, 18px);
  border-radius: var(--sk-ui-radius-lg);
  overflow: hidden;
}



#settingsModal .sk-ui-sandbox-tabs{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}



#settingsModal .sk-ui-sandbox-tab{
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 42px;
  padding: 8px 6px;
  border-radius: var(--sk-ui-radius-md);
  overflow-wrap: anywhere;
}



#settingsModal .sk-ui-sandbox,
#settingsModal .sk-ui-sandbox-pane{
  min-height: 0;
  height: auto;
}



#settingsModal .sk-ui-sandbox-welcome{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  flex-wrap: wrap;
  padding: clamp(12px, 2vw, 18px);
}



#settingsModal .sk-ui-sandbox-welcome > div{
  flex: 1 1 180px;
  min-width: 0;
}



#settingsModal .sk-ui-sandbox-balance{
  max-width: 100%;
  overflow-wrap: anywhere;
}



#settingsModal .sk-ui-sandbox-shortcuts{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(6px, 1vw, 12px);
}



#settingsModal .sk-ui-sandbox-shortcuts button{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 78px;
  gap: 7px;
  padding: 10px 6px;
  white-space: normal;
}



#settingsModal .sk-ui-sandbox-shortcuts span{
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
}



#settingsModal .sk-ui-sandbox-primary{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  white-space: normal;
}







#settingsModal button,
#settingsModal input,
#settingsModal select{
  max-width: 100%;
}



#settingsModal button{
  min-width: 0;
  overflow-wrap: anywhere;
}















































@media (min-width: 900px) {
  
.content-area{
    padding-left: clamp(20px, 3vw, 40px);
    padding-right: clamp(20px, 3vw, 40px);
  }


  
#settingsModal .modal-sheet{
    max-width: 1120px;
  }


  



  
#settingsModal .sk-ui-sandbox-shortcuts button{
    min-height: 88px;
  }


  
}



@media (max-width: 640px) {
  
.app-header{
    padding-left: 12px;
    padding-right: 12px;
  }


  
.content-area{
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
  }


  
.modal-overlay{
    align-items: center;
    padding: max(8px, env(safe-area-inset-top, 0px)) 8px
             max(8px, env(safe-area-inset-bottom, 0px));
  }


  
.modal-sheet{
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    border-radius: 18px;
  }


  
.modal-title{
    padding: 12px;
  }


  
#settingsModal .sk-ui-sandbox-tabs{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }


  



  

  

  

  

  


}



@media (max-width: 380px) {
  
#skLoginModal .login-glass-card{
    padding: 18px 14px;
  }


  
#skLoginModal .login-modern-input{
    padding-left: 40px !important;
  }


  



  
#settingsModal .sk-ui-sandbox-shortcuts{
    gap: 4px;
  }


  
}



@media (prefers-reduced-motion: reduce) {
  
*,
*::before,
*::after{
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

}



/* ============================================================
   V5.6.89 — Modal header, detail actions, theme grid and swatch sync
   Scoped presentation fixes. No application logic is changed.
   ============================================================ */



/* One scrolling surface per modal: the overlay never becomes a second scroller. */


.modal-overlay{
  overflow: hidden !important;
  overscroll-behavior: contain;
}



.modal-sheet{
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}



.modal-title{
  position: sticky !important;
  top: 0;
  z-index: 50 !important;
  flex: 0 0 auto;
  isolation: isolate;
  background: var(--header-glass, var(--card-bg, rgba(255,255,255,.96))) !important;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border, rgba(0,0,0,.08));
}



/* The settings sheet uses a centered drag-handle above its sticky title. */


#settingsModal .modal-sheet{
  position: relative;
}


#settingsModal .modal-sheet::before{
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  z-index: 51;
  width: 42px;
  height: 4px;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--text-muted, #64748b) 38%, transparent);
  transform: translateX(-50%);
  pointer-events: none;
}


#settingsModal .modal-title{
  padding-top: 22px;
}



/* Used-mobile details: header and footer stay fixed while only detail fields scroll. */












/* Responsive 1-click profile cards: two columns except ultra-narrow devices. */





















/* Custom brand colour: keep the label and the swatch/hex pair in separate flex groups. */














#settingsModal #skAppearanceCustomHex{
  flex: 0 0 28px !important;
  width: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  overflow: hidden;
  cursor: pointer;
}


#settingsModal #skAppearanceHexValue{
  flex: 0 0 auto;
  max-width: 100%;
  margin-left: 0 !important;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
  overflow-wrap: normal;
}



/* Avoid clipping and keep fixed navigation clear of the device safe area. */












/* V5.6.90 — stock module stylesheet relocated out of document body */

 


/* V5.6.63: align Used Mobile catalog modal with the app's standard bill-page surfaces */














/* V5.6.73: unified UI typography and compact interactive Used Mobile inventory cards */


body{font-family:var(--app-font,inherit);font-size:var(--app-font-size,14px);}


button,
input,
select,
textarea{font-family:inherit;}

































/* V5.6.72: simplify Used Mobile Register toolbar and unify it with the app's compact card style */











/* ============================================================
   V5.6.90 — Used Mobile Stock natural-flow layout correction
   Source: relocated from the inline stock stylesheet in index.html.
   ============================================================ */



/* The modal itself is the sole vertical scroll container. */





/* Every major section remains in normal document flow. */




/* Purchase form is a separate card; its fields may grid internally,
   but the form itself never overlays the register section. */










/* Register card is a distinct block below the form. */








/* The table wrapper scrolls horizontally only; vertical scrolling belongs
   to the modal sheet, preventing a nested vertical scrollbar. */








/* Do not let legacy selectors force children over one another. */












/* ============================================================
   SK MOBILES 5.6.91 — MICRO LAYOUT POLISH
   Narrowly scoped overrides for the supplied screenshot defects.
   ============================================================ */


#skGeneralPermissionsBox{
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  padding: 8px !important;
  border-radius: 14px !important;
  line-height: 1.35 !important;
}


#skGeneralPermissionsBox > div:first-child{
  margin: 0 0 2px !important;
  line-height: 1.35 !important;
}


#skGeneralPermissionsBox .sk-perm-row{
  padding: 8px 10px !important;
  min-height: 48px !important;
  border-radius: 12px !important;
}


#skGeneralPermissionsBox .sk-perm-title{
  font-size: .78rem !important;
  line-height: 1.3 !important;
}


#skGeneralPermissionsBox .sk-perm-status{
  margin-top: 2px !important;
  font-size: .68rem !important;
  line-height: 1.3 !important;
}


#skGeneralPermissionsBox .sk-perm-btn{
  border-radius: 9999px !important;
  padding: 0 10px !important;
}




















@media (max-width: 360px) {
  
  
#skGeneralPermissionsBox .sk-perm-row{ padding-inline: 8px !important; }

}




/* ==========================================================================
   SK MOBILES 5.6.92 — USED STOCK & DETAILS MICRO-LAYOUT
   Scoped to existing Used Mobile Stock components; no JS/data changes.
   ========================================================================== */









































/* ==========================================================================
   SK MOBILES 5.6.93 — LIVE USED-STOCK SELECTOR & FLOW SAFEGUARD
   These selectors match the current HTML generated by js/app.js.
   Presentation-only; application logic and data bindings remain untouched.
   ========================================================================== */




















/* ==========================================================================
   SK MOBILES 5.6.94 — LOGIN, LOGOUT DRAWER & CREDIT LEDGER POLISH
   UI-only. Existing IDs, login/auth flow, ledger data and handlers preserved.
   ========================================================================== */



/* Logout/login layering: never leave the drawer visible above the login modal. */


#leftDrawer{
  z-index: 2147483000 !important;
}


#leftDrawer:not(.active){
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}


#skLoginModal{
  z-index: 2147483646 !important;
}


#skLoginModal.active ~ #leftDrawer,
body:has(#skLoginModal.active) #leftDrawer{
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}



/* Simple, legible login card with the saved shop logo / embedded default logo. */


#skLoginModal{
  padding: 14px !important;
  background: linear-gradient(145deg, #e8eefb 0%, #dbe5f8 100%) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}


#skLoginModal .login-glass-card{
  width: min(100%, 400px) !important;
  max-width: 400px !important;
  padding: 18px 16px 16px !important;
  gap: 0 !important;
  border-radius: 22px !important;
  border: 1px solid rgba(148, 163, 184, .45) !important;
  background: rgba(255,255,255,.88) !important;
  color: #172033 !important;
  box-shadow: 0 14px 36px rgba(15,23,42,.12) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  animation: none !important;
}


#skLoginModal .login-logo-container{
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  margin: 0 0 12px !important;
}


#skLoginModal .login-logo-glow{
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 64px !important;
  height: 64px !important;
  margin: 0 0 10px !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  background: #fff !important;
  border: 1px solid #cbd5e1 !important;
  filter: none !important;
  box-shadow: 0 4px 12px rgba(37,99,235,.10) !important;
}


#skLoginModal #skLoginLogoImg{
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  border-radius: 16px !important;
  background: #fff !important;
}


#skLoginModal .fallback-logo{
  width: 100% !important;
  height: 100% !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #fff !important;
  font-size: 1.2rem !important;
}


#skLoginModal .login-brand-title{
  color: #172033 !important;
  font-size: 1.25rem !important;
  letter-spacing: -.02em !important;
  line-height: 1.25 !important;
  margin: 0 0 4px !important;
}


#skLoginModal .login-brand-subtitle{
  color: #64748b !important;
  font-size: .78rem !important;
  line-height: 1.35 !important;
  margin: 0 !important;
}


#skLoginModal .login-role-pill{
  width: 100% !important;
  min-height: 34px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  margin: 0 0 12px !important;
  padding: 7px 10px !important;
  border-radius: 12px !important;
  border: 1px solid #cbd5e1 !important;
  background: rgba(255,255,255,.8) !important;
  color: #64748b !important;
  font-size: .72rem !important;
  line-height: 1.3 !important;
}


#skLoginModal .login-form-group{
  display: flex !important;
  flex-direction: column !important;
  gap: 9px !important;
  width: 100% !important;
  margin: 0 !important;
}


#skLoginModal .login-input-wrap{
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 48px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 12px !important;
  background: #fff !important;
  overflow: hidden !important;
}


#skLoginModal .login-input-icon{
  position: absolute !important;
  left: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 1 !important;
  line-height: 1 !important;
}


#skLoginModal .login-modern-input{
  width: 100% !important;
  min-width: 0 !important;
  min-height: 48px !important;
  padding: 10px 12px 10px 40px !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: #172033 !important;
  font-size: .9rem !important;
  line-height: 1.35 !important;
  box-shadow: none !important;
}


#skLoginModal .login-modern-input::placeholder{
  color: #8794a8 !important;
  opacity: 1 !important;
}


#skLoginModal .login-input-wrap:has(#loginPasswordInput) .login-modern-input{
  padding-right: 64px !important;
}


#skLoginModal .login-password-toggle{
  position: absolute !important;
  right: 7px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  min-width: 44px !important;
  min-height: 34px !important;
  padding: 0 9px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 9999px !important;
  background: #f8fafc !important;
  color: #475569 !important;
  font-size: .72rem !important;
  font-weight: 700 !important;
}


#skLoginModal .login-submit-btn{
  width: 100% !important;
  min-height: 48px !important;
  margin-top: 2px !important;
  border-radius: 9999px !important;
  background: #245be4 !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 8px 18px rgba(37,99,235,.18) !important;
}


#skLoginModal .login-footer-roles{
  margin-top: 12px !important;
  color: #64748b !important;
  font-size: .7rem !important;
  line-height: 1.3 !important;
}


#skLoginModal .login-status-msg{
  margin: 0 !important;
  font-size: .75rem !important;
  line-height: 1.35 !important;
}


@media (max-width: 380px) {
  
#skLoginModal{ padding: 10px !important; }

  
#skLoginModal .login-glass-card{ padding: 15px 12px 13px !important; }

  
#skLoginModal .login-logo-glow{ width: 56px !important; height: 56px !important; }

}



/* Customer Credit Ledger: compact page footprint and customer rows fit their content. */


#skCreditLedgerPage{
  box-sizing: border-box !important;
  padding: 8px !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}


#skCreditLedgerPage > .modal-sheet{
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  width: min(100%, 720px) !important;
  max-width: 720px !important;
  max-height: calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 10px !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
}


#skCreditLedgerPage > .modal-sheet > .modal-title{
  flex: 0 0 auto !important;
  min-height: 48px !important;
  margin: 0 0 8px !important;
  padding: 8px 10px !important;
  border-radius: 14px !important;
}


/* V5.6.104 — Keep customer list/detail visibility under existing JS control.
   Do not force display:block here: skCPMainView is hidden when a customer detail opens. */


#skCreditLedgerPage #skCPMainView{
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}


#skCreditLedgerPage .skcp-summary{
  gap: 6px !important;
  margin: 0 0 8px !important;
}


#skCreditLedgerPage .skcp-stat{
  min-height: 48px !important;
  padding: 6px 8px !important;
  border-radius: 12px !important;
}


#skCreditLedgerPage .skcp-stat b{
  margin: 0 !important;
  line-height: 1.15 !important;
}


#skCreditLedgerPage .skcp-stat span{
  display: block !important;
  margin-top: 2px !important;
  line-height: 1.2 !important;
}


#skCreditLedgerPage .skcp-toolbar{
  gap: 8px !important;
  margin: 0 0 7px !important;
}


#skCreditLedgerPage .skcp-filters{
  gap: 5px !important;
  margin: 0 0 7px !important;
  padding: 0 0 2px !important;
}


#skCreditLedgerPage .skcp-filter{
  min-height: 32px !important;
  padding: 5px 10px !important;
}


#skCreditLedgerPage .skcp-list{
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 0 2px !important;
}


#skCreditLedgerPage .skcp-row{
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 0 !important;
  padding: 8px 9px !important;
  margin: 0 !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 6px rgba(15,23,42,.035) !important;
}


#skCreditLedgerPage .skcp-row-main{
  min-width: 0 !important;
  gap: 2px !important;
}


#skCreditLedgerPage .skcp-name{
  line-height: 1.25 !important;
  overflow-wrap: anywhere !important;
}


#skCreditLedgerPage .skcp-sub{
  margin-top: 1px !important;
  line-height: 1.25 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}


#skCreditLedgerPage .skcp-amt{
  line-height: 1.2 !important;
}


#skCreditLedgerPage .skcp-bill{
  margin-top: 1px !important;
  line-height: 1.2 !important;
}


@media (min-width: 700px) {
  
#skCreditLedgerPage .skcp-list{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

}




/* ==========================================================================
   SK MOBILES 5.6.95 — USED MOBILE INVENTORY GAP + DETAILS CONTENT FIT
   Targeted UI-only fix for the two supplied screenshots.
   No stock data, billing, pricing, or action handlers are changed.
   ========================================================================== */



/* Inventory view: collapse stacked margins and the mobile sheet's flex gap.
   This removes the blank band between the four summary values and the catalog. */






/* Detail popup: size the sheet to its actual content instead of stretching
   the details grid into unused vertical space. Keep scrolling for short screens. */












/* ==========================================================================
   SK MOBILES 5.6.97 — CONSOLIDATED RESPONSIVE COMPONENT LAYER
   Scoped to existing app components; presentation only.
   ========================================================================== */



/* 1. Compact metric groups: explicit app selectors, no broad substring matching. */



.skcp-summary,
.stats-grid {
  gap: 8px;
  margin-block: 10px 12px;
}




.skcp-summary > .skcp-stat,
.stats-grid > .stat-card {
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  padding: var(--sk-compact-card-pad-y) var(--sk-compact-card-pad-x);
  border-radius: var(--sk-compact-card-radius);
}




.skcp-summary > .skcp-stat,
.stats-grid > .stat-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sk-compact-metric-gap);
}




.skcp-summary .skcp-stat > span,
.stats-grid > .stat-card > :first-child {
  margin: 0;
  line-height: var(--sk-compact-label-line-height);
}




.skcp-summary .skcp-stat > b,
.stats-grid > .stat-card > :last-child {
  margin: 0;
  line-height: var(--sk-compact-value-line-height);
}



/* 2. Modal scroll ownership: the overlay never scrolls; its sheet is the only
      scroll container. This avoids nested/double scrollbars without changing DOM. */


#settingsModal,
#skCreditLedgerPage{
  overflow: hidden !important;
  overscroll-behavior: contain;
}



#settingsModal > .modal-sheet,
#skCreditLedgerPage > .modal-sheet{
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}



#settingsModal > .modal-sheet,
#skCreditLedgerPage > .modal-sheet{
  width: min(980px, calc(100vw - 20px));
  box-sizing: border-box;
}



#settingsModal > .modal-sheet > .modal-title,
#skCreditLedgerPage > .modal-sheet > .modal-title{
  position: sticky;
  top: 0;
  z-index: 50;
  flex-shrink: 0;
  background: var(--sk-modal-header-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--sk-modal-header-border);
  padding-top: max(8px, env(safe-area-inset-top, 0px));
  isolation: isolate;
}



/* Used Stock's existing first-child header has inline sticky positioning. */




#settingsModal > .modal-sheet > .modal-title,
#skCreditLedgerPage > .modal-sheet > .modal-title{
  margin: -1px 0 10px;
}



/* 3. Used mobile stock purchase form: two columns when space allows, no collision. */







#settingsModal input,
#settingsModal select,
#settingsModal textarea{
  min-height: var(--sk-compact-control-height);
  line-height: 1.35;
  box-sizing: border-box;
}





/* 4. Details modal: balanced actions, natural height, safe bottom spacing. */












/* 5. Customer ledger summary, toolbar and pills. */


.skcp-summary{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}



.skcp-toolbar{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-block: 10px;
}



.skcp-toolbar > input{
  flex: 1 1 auto;
  min-width: 0;
  min-height: 38px;
}



.skcp-toolbar > button,
.skcp-filters > button,
.skcp-btn{
  min-height: 38px;
  box-sizing: border-box;
  line-height: 1.2;
}



.skcp-filters{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-block: 8px 10px;
}



/* 6. Shared forms, cards and toolbars use consistent rhythm while retaining
      each module's existing grid and responsive structure. */


:is(.bill-section, .sk-ui-card, .sk-ui-panel, .skcp-stat){
  min-width: 0;
  box-sizing: border-box;
}



:is(.modal-actions, .action-toolbar, .list-toolbar, .search-toolbar, .filter-bar){
  gap: 8px;
  margin-block: 8px 10px;
}



:is(.search-input, input[type="search"], .search-box input, .search-bar input){
  min-height: 38px;
  box-sizing: border-box;
}







/* 7. Responsive layouts: preserve two-column forms except on narrow phones. */


@media (max-width: 479px) {
  
  
  
  
  
#settingsModal > .modal-sheet,
#skCreditLedgerPage > .modal-sheet{
    width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  }

}









/* ========================================================================
   SK MOBILES 5.6.98 — CREDIT LEDGER MICRO-LAYOUT FIX
   Presentation-only correction for customer detail and linked repair history.
   Existing IDs, markup generation, handlers, calculations and data are untouched.
   ======================================================================== */


#skCreditLedgerPage #skCPDetailView{
  padding: 10px 12px 16px !important;
  overflow-x: hidden !important;
}


#skCreditLedgerPage .skcp-page-head{
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 38px !important;
  margin: 0 0 8px !important;
}


#skCreditLedgerPage .skcp-page-head > div{
  min-width: 0 !important;
  line-height: 1.3 !important;
}


#skCreditLedgerPage .skcp-page-head > div > b{
  display: block !important;
  line-height: 1.3 !important;
  overflow-wrap: anywhere !important;
}


#skCreditLedgerPage .skcp-page-head > div > div{
  margin-top: 2px !important;
  line-height: 1.25 !important;
}


#skCreditLedgerPage .skcp-back{
  flex: 0 0 auto !important;
  min-width: 42px !important;
  min-height: 38px !important;
  padding: 0 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}


#skCreditLedgerPage .skcp-detail-box{
  padding: 9px 10px !important;
  margin: 0 0 10px !important;
  border-radius: 14px !important;
  box-sizing: border-box !important;
}


#skCreditLedgerPage .skcp-detail-grid{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 7px !important;
  margin: 0 0 7px !important;
}


#skCreditLedgerPage .skcp-mini{
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  justify-content: center !important;
  gap: 3px !important;
  padding: 8px 9px !important;
  border-radius: 11px !important;
  box-sizing: border-box !important;
}


#skCreditLedgerPage .skcp-mini b{
  font-size: clamp(.76rem, 2.2vw, .88rem) !important;
  line-height: 1.2 !important;
  overflow-wrap: anywhere !important;
}


#skCreditLedgerPage .skcp-mini span{
  font-size: .59rem !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
  overflow-wrap: anywhere !important;
}


#skCreditLedgerPage .skcp-detail-box > .skcp-bill-actions{
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 0 !important;
}


#skCreditLedgerPage .skcp-detail-box > .skcp-bill-actions .skcp-btn{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  min-height: 36px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  font-size: .72rem !important;
  line-height: 1.2 !important;
}


#skCreditLedgerPage #skCPDetailView > div[style*="CREDIT / PAYMENT HISTORY"],
#skCreditLedgerPage #skCPDetailView > div[style*="SALES BILL HISTORY"]{
  margin: 10px 0 6px !important;
  line-height: 1.3 !important;
  letter-spacing: .015em !important;
}


#skCreditLedgerPage .skcp-bill-card{
  min-width: 0 !important;
  margin: 0 0 8px !important;
  padding: 10px 11px !important;
  border-radius: 13px !important;
  box-sizing: border-box !important;
}


#skCreditLedgerPage .skcp-bill-card.skcp-repair-credit-link > div:first-child{
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  min-width: 0 !important;
}


#skCreditLedgerPage .skcp-bill-card.skcp-repair-credit-link > div:first-child > b{
  min-width: 0 !important;
  font-size: .82rem !important;
  line-height: 1.3 !important;
  overflow-wrap: anywhere !important;
}


#skCreditLedgerPage .skcp-bill-card.skcp-repair-credit-link .skcp-btn{
  flex: 0 0 auto !important;
  min-height: 36px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  font-size: .68rem !important;
  white-space: nowrap !important;
}


#skCreditLedgerPage .skcp-bill-card.skcp-repair-credit-link > div:nth-child(2){
  margin-top: 5px !important;
  font-size: .68rem !important;
  line-height: 1.45 !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}


#skCreditLedgerPage .skcp-open-job-hint{
  margin-top: 5px !important;
  padding-top: 5px !important;
  border-top: 1px solid color-mix(in srgb, var(--card-border) 65%, transparent) !important;
  font-size: .68rem !important;
  line-height: 1.35 !important;
}


@media (max-width: 480px) {
  
#skCreditLedgerPage #skCPDetailView{ padding: 8px 9px 14px !important; }

  
#skCreditLedgerPage .skcp-detail-box{ padding: 8px !important; }

  
#skCreditLedgerPage .skcp-detail-grid{ gap: 5px !important; }

  
#skCreditLedgerPage .skcp-mini{ padding: 7px 6px !important; }

  
#skCreditLedgerPage .skcp-mini span{ font-size: .54rem !important; }

  
#skCreditLedgerPage .skcp-bill-card{ padding: 9px !important; }

  
#skCreditLedgerPage .skcp-bill-card.skcp-repair-credit-link > div:nth-child(2){ font-size: .66rem !important; }

}





/* ==========================================================================
   SK MOBILES 5.6.99 — UNIVERSAL APPLICATION UI LAYER
   Presentation-only rules. Preserve page logic, IDs, data attributes and handlers.
   ========================================================================== */


:root{
  --sk-global-card-pad-y: 10px;
  --sk-global-card-pad-x: 12px;
  --sk-global-section-gap: 12px;
  --sk-global-control-height: 42px;
  --sk-global-metric-gap: 3px;
  --sk-global-radius: 12px;
  --sk-global-modal-header-bg: var(--header-bg, rgba(255,255,255,.96));
}



/* Prevent children from forcing page or grid overflow. */


.app-viewport,
.app-viewport > *,
.content-area,
.modal-overlay,
.modal-sheet,
.form-section,
.card,
.panel {
  min-width: 0;
  box-sizing: border-box;
}



:is(.view-section, .tab-content, .content-area, .page-section, .page-content){
  gap: var(--sk-global-section-gap);
}



/* Compact, consistent metric and summary grids across modules. */


:is(.stats-grid, .stat-grid, .summary-grid, .summary-cards, .metrics-grid, .metric-grid, .dashboard-stats, .analytics-stats, .ledger-summary, .credit-summary, .used-stock-metrics, .skcp-summary-grid, .skcp-stats, [class*="metric-grid"], [class*="summary-grid"], [class*="stats-grid"]){
  gap: 8px !important;
  margin-block: 10px 12px !important;
  min-width: 0 !important;
}



:is(.stat-card, .summary-card, .metric-card, .stat-box, .summary-box, .metric-box, .ledger-stat, .credit-stat, .dashboard-stat, .analytics-card, .skcp-mini, [class*="stat-card"], [class*="metric-card"], [class*="summary-card"]){
  min-height: 0 !important;
  height: auto !important;
  padding: 8px 12px !important;
  border-radius: var(--sk-global-radius) !important;
  box-sizing: border-box !important;
  gap: var(--sk-global-metric-gap) !important;
  overflow-wrap: anywhere;
}



:is(.stat-card, .summary-card, .metric-card, .stat-box, .summary-box, .metric-box, .ledger-stat, .credit-stat, .dashboard-stat, .analytics-card, .skcp-mini, [class*="stat-card"], [class*="metric-card"], [class*="summary-card"]) :is(small, label, .label, .stat-label, .metric-label, .summary-label, .sub-label){
  line-height: 1.2 !important;
  margin-block: 0 !important;
}



:is(.stat-card, .summary-card, .metric-card, .stat-box, .summary-box, .metric-box, .ledger-stat, .credit-stat, .dashboard-stat, .analytics-card, .skcp-mini, [class*="stat-card"], [class*="metric-card"], [class*="summary-card"]) :is(strong, b, .value, .stat-value, .metric-value, .summary-value, .count, .amount){
  line-height: 1.2 !important;
  margin-block: 0 !important;
}



/* Shared section spacing: avoid excessive whitespace without forcing fixed heights. */


:is(.card, .panel, .content-box, .form-section, .bill-card, .list-card){
  margin-block-end: 12px !important;
}



:is(.modal-title, .modal-header, .sheet-header, .panel-header, .section-header){
  line-height: 1.35;
}



:is(.modal-title, .modal-header, .sheet-header){
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--sk-global-modal-header-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border, rgba(15,23,42,.10));
}



/* Keep modal shells from producing nested outer scrollbars. */


:is(.modal-sheet, .modal-dialog, .dialog-panel, .bottom-sheet, .sk-device-detail-dialog){
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: calc(100dvh - 24px);
  overflow: hidden;
}











/* Consistent touch controls; preserve existing contextual colours and handlers. */


button,
[role="button"],
input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
select,
textarea{
  box-sizing: border-box;
}



:is(.search-input, .search-box input, .search-bar input, input[type="search"]){
  min-height: 40px;
  padding-block: 8px;
}



:is(.filter-pill, .filter-chip, .action-pill, .ledger-action, .btn-compact, button.btn-sm){
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1.25;
}



:is(.modal-actions, .action-row, .action-toolbar, .list-toolbar, .search-toolbar, .filter-bar){
  gap: 8px;
}



/* Forms use natural flow and safe two-column grids where their existing markup supports it. */


:is(.form-grid, .fields-grid, .purchase-form-grid, .settings-grid, .theme-grid-selector){
  min-width: 0;
  gap: 10px;
}



:is(.form-grid, .fields-grid, .purchase-form-grid) > * {
  min-width: 0;
}



input,
select,
textarea{
  max-width: 100%;
  line-height: 1.35;
}



textarea{
  resize: vertical;
}



/* Record cards and table wrappers should not overlay adjacent content. */


:is(.inventory-list, .used-mobile-list, .customer-list, .ledger-list, .history-list, .record-list){
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}



:is(.table-responsive, .table-wrap, .table-container, .inventory-table-wrap){
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}



:is(.inventory-card, .used-item-card, .customer-card, .ledger-card, .history-card){
  min-width: 0;
  height: auto;
  overflow-wrap: anywhere;
}



/* Mobile layout: protect fixed navigation and avoid horizontal overflow. */


html,
body{
  max-width: 100%;
  overflow-x: clip;
}



.app-viewport{
  padding-bottom: calc(82px + env(safe-area-inset-bottom));
}







@media (max-width: 480px) {
  
:is(.stats-grid, .stat-grid, .summary-grid, .metrics-grid, .metric-grid, .ledger-summary, .credit-summary){
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  
:is(.stat-card, .summary-card, .metric-card, .stat-box, .summary-box, .metric-box){
    padding: 8px 9px !important;
  }

  
:is(.modal-sheet, .modal-dialog, .dialog-panel, .bottom-sheet, .sk-device-detail-dialog){
    width: min(100%, 520px);
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }

}



@media (max-width: 359px) {
  
:is(.stats-grid, .stat-grid, .summary-grid, .metrics-grid, .metric-grid, .ledger-summary, .credit-summary){
    grid-template-columns: minmax(0, 1fr) !important;
  }

}





/* V5.6.103 — Sales Bill History typography and spacing correction.
   Presentation only: preserve existing values, IDs, data attributes and handlers. */


#skCreditLedgerPage .skcp-bill-card:not(.skcp-repair-credit-link){
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px 13px !important;
  margin: 0 0 10px !important;
  border: 1px solid var(--card-border, #cbd5e1);
  border-radius: 14px !important;
  background: var(--card-bg, #fff);
  box-sizing: border-box;
  min-width: 0;
}


#skCreditLedgerPage .skcp-bill-card:not(.skcp-repair-credit-link) .skcp-bill-top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  line-height: 1.35;
}


#skCreditLedgerPage .skcp-bill-card:not(.skcp-repair-credit-link) .skcp-bill-top > div{
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: .82rem;
  line-height: 1.4;
}


#skCreditLedgerPage .skcp-bill-card:not(.skcp-repair-credit-link) .skcp-bill-top > div > b{
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.35;
}


#skCreditLedgerPage .skcp-bill-card:not(.skcp-repair-credit-link) .skcp-bill-top > b{
  flex: 0 0 auto;
  font-size: .88rem;
  line-height: 1.3;
  white-space: nowrap;
}


#skCreditLedgerPage .skcp-sales-bill-finance{
  font-size: .74rem;
  line-height: 1.45;
  color: var(--text, #1e293b);
  overflow-wrap: anywhere;
}


#skCreditLedgerPage .skcp-bill-card:not(.skcp-repair-credit-link) .skcp-bill-actions{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 1px;
}


#skCreditLedgerPage .skcp-bill-card:not(.skcp-repair-credit-link) .skcp-bill-actions .skcp-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: .72rem;
  line-height: 1.2;
  white-space: nowrap;
}


#skCreditLedgerPage .skcp-sales-bill-paid{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 8px;
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.2;
}


#skCreditLedgerPage .skcp-sales-bill-receipts{
  margin-top: 2px;
  padding-top: 7px;
  border-top: 1px solid var(--card-border, #e2e8f0);
  color: var(--text-muted, #64748b);
  font-size: .70rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}


@media (max-width: 480px) {
  
#skCreditLedgerPage .skcp-bill-card:not(.skcp-repair-credit-link){
    padding: 11px !important;
    gap: 7px;
  }

  
#skCreditLedgerPage .skcp-bill-card:not(.skcp-repair-credit-link) .skcp-bill-top > div{
    font-size: .78rem;
  }

  
#skCreditLedgerPage .skcp-bill-card:not(.skcp-repair-credit-link) .skcp-bill-top > div > b,
#skCreditLedgerPage .skcp-bill-card:not(.skcp-repair-credit-link) .skcp-bill-top > b{
    font-size: .82rem;
  }

  
#skCreditLedgerPage .skcp-sales-bill-finance{
    font-size: .72rem;
  }

  
#skCreditLedgerPage .skcp-bill-card:not(.skcp-repair-credit-link) .skcp-bill-actions .skcp-btn{
    min-height: 34px;
    font-size: .70rem;
  }

}




/* ==========================================================================
   V5.6.107 — UNIVERSAL UI POLISH LAYER
   Presentation-only refinement across dashboard, billing, inventory, ledger,
   repair, history, settings, forms, and dialogs. No business logic is defined here.
   ========================================================================== */


:root{
  --sk105-space-1: 4px;
  --sk105-space-2: 8px;
  --sk105-space-3: 12px;
  --sk105-radius-card: 14px;
  --sk105-radius-panel: 16px;
  --sk105-control-height: 42px;
  --sk105-text-leading: 1.4;
  --sk105-muted: var(--text-muted, #64748b);
  --sk105-surface: var(--card-bg, #fff);
  --sk105-border: var(--card-border, rgba(100, 116, 139, .24));
}



/* Universal safe sizing and legible text rhythm. */


.app-viewport,
.app-viewport :is(main, section, article, aside, header, footer, form, fieldset),
.modal-overlay,
.modal-overlay .modal-sheet,
#skCreditLedgerPage,
#skRepairDetailModal #skRepairDetailContent {
  box-sizing: border-box;
  min-width: 0;
}


.app-viewport :is(p, small, label, .form-label, .field-label, .muted, .subtext, .helper-text),
.modal-overlay :is(p, small, label, .form-label, .field-label, .muted, .subtext, .helper-text){
  line-height: var(--sk105-text-leading);
}


.app-viewport :is(h1, h2, h3, h4, .page-title, .section-title, .card-title),
.modal-overlay :is(h1, h2, h3, h4, .page-title, .section-title, .card-title){
  line-height: 1.25;
  overflow-wrap: anywhere;
}


.app-viewport :is(.card, .panel, .content-box, .form-section, .form-card, .bill-section, .history-card, .repair-card, .customer-card, .inventory-card, .accessory-card, .summary-card, .stat-card, .metric-card, .ledger-card, .skcp-row, .sk-rj-card){
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}


.app-viewport :is(.card, .panel, .content-box, .form-section, .form-card, .history-card, .repair-card, .customer-card, .inventory-card, .accessory-card, .ledger-card){
  border-radius: var(--sk105-radius-card);
}



/* Shared page rhythm: compact gaps, natural flow, no forced heights. */


.app-viewport :is(.content-area, .page-content, .page-container, .view-section, .tab-content, .form-grid, .fields-grid, .settings-grid, .inventory-list, .customer-list, .ledger-list, .history-list, .record-list, .skcp-list){
  min-width: 0;
  row-gap: var(--sk105-space-3);
}


.app-viewport :is(.section-header, .panel-header, .card-header, .page-header){
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sk105-space-2);
  min-width: 0;
}


.app-viewport :is(.section-header, .panel-header, .card-header, .page-header) > *{
  min-width: 0;
}


.app-viewport :is(.stat-card, .summary-card, .metric-card, .stat-box, .summary-box, .metric-box, .skcp-stat, .sk-home-metric-card){
  min-height: 0;
  padding: 9px 11px;
  gap: 3px;
}


.app-viewport :is(.stat-card, .summary-card, .metric-card, .stat-box, .summary-box, .metric-box, .skcp-stat, .sk-home-metric-card) :is(small, label, .label, .stat-label, .metric-label, .summary-label, .count-label){
  margin: 0;
  line-height: 1.2;
}


.app-viewport :is(.stat-card, .summary-card, .metric-card, .stat-box, .summary-box, .metric-box, .skcp-stat, .sk-home-metric-card) :is(strong, b, .value, .stat-value, .metric-value, .summary-value, .amount, .count){
  line-height: 1.2;
  overflow-wrap: anywhere;
}



/* Consistent controls and input breathing room across forms. */


.app-viewport :is(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]), select, textarea, .form-input, .form-select){
  box-sizing: border-box;
  max-width: 100%;
  line-height: 1.35;
}


.app-viewport :is(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]), select, .form-input, .form-select){
  min-height: var(--sk105-control-height);
}


.app-viewport :is(button, .btn, .submit-btn, .btn-primary, .btn-secondary, .skcp-btn){
  box-sizing: border-box;
  line-height: 1.25;
  text-align: center;
}


.app-viewport :is(.action-row, .action-toolbar, .list-toolbar, .search-toolbar, .filter-bar, .sk-rj-history-actions, .sk-rj-actions, .skcp-bill-actions){
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sk105-space-2);
  min-width: 0;
}


.app-viewport :is(.table-responsive, .table-wrap, .table-container, .inventory-table-wrap){
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}



/* Modal sheets: one scroll owner, stable opaque headers and safe footer spacing. */


.modal-overlay .modal-sheet{
  max-width: min(960px, calc(100vw - 24px));
  max-height: calc(100dvh - 20px);
  min-height: 0;
  overflow: hidden;
  border-radius: var(--sk105-radius-panel);
}


.modal-overlay .modal-title{
  position: sticky;
  top: 0;
  z-index: 50;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--header-glass, var(--card-bg, rgba(255,255,255,.97)));
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--sk105-border);
}


.modal-overlay .modal-title > :first-child{
  min-width: 0;
  line-height: 1.25;
}


.modal-overlay .modal-close-btn{
  flex: 0 0 auto;
}






/* Repair Details: clearer hierarchy and better use of the available viewport. */


#skRepairDetailModal .modal-sheet{
  width: min(920px, calc(100vw - 24px));
  padding: 12px;
}


#skRepairDetailModal .modal-title{
  min-height: 48px;
  margin: 0 0 10px;
  padding: 7px 4px 10px;
  font-size: .98rem;
}


#skRepairDetailModal #skRepairDetailContent{
  min-width: 0;
  overflow-wrap: anywhere;
}


#skRepairDetailModal #skRepairDetailContent > div{
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .045);
}


#skRepairDetailModal #skRepairDetailContent > div > div:first-child{
  font-size: 1rem !important;
  line-height: 1.35;
}


#skRepairDetailModal #skRepairDetailContent > div > div:nth-child(2){
  margin-top: -4px !important;
  font-size: .82rem !important;
  line-height: 1.4;
  color: var(--sk105-muted);
}


#skRepairDetailModal #skRepairDetailContent .sk-rj-detail-finance{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
}


#skRepairDetailModal #skRepairDetailContent .sk-rj-detail-finance > div{
  min-width: 0;
  gap: 4px;
  padding: 10px 11px;
  border-radius: 12px;
  font-size: .78rem;
  line-height: 1.35;
}


#skRepairDetailModal #skRepairDetailContent .sk-rj-detail-finance span{
  line-height: 1.3;
}


#skRepairDetailModal #skRepairDetailContent .sk-rj-detail-finance b{
  font-size: .9rem;
  line-height: 1.25;
}


#skRepairDetailModal #skRepairDetailContent .sk-rj-detail-finance .sk-rj-finance-due{
  grid-column: 1 / -1;
  border-color: var(--primary, #2563eb);
  background: var(--badge-bg, rgba(37, 99, 235, .08));
}


#skRepairDetailModal #skRepairDetailContent .sk-rj-payment-summary{
  margin-top: 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: .78rem;
  line-height: 1.4;
}


#skRepairDetailModal #skRepairDetailContent .sk-rj-payment-summary > b{
  margin-bottom: 5px;
  font-size: .82rem;
}


#skRepairDetailModal #skRepairDetailContent .sk-rj-payment-summary > div{
  align-items: flex-start;
  gap: 12px;
  padding: 5px 0;
  line-height: 1.35;
}


#skRepairDetailModal #skRepairDetailContent .sk-rj-payment-summary > div > :last-child{
  flex: 0 0 auto;
  white-space: nowrap;
  font-weight: 700;
}


#skRepairDetailModal #skRepairDetailContent button.submit-btn{
  min-height: 42px;
  border-radius: 12px;
  font-size: .82rem;
  font-weight: 800;
}


#skRepairDetailModal #skRepairDetailContent > div > div:last-child{
  line-height: 1.45;
}


@media (min-width: 760px) {
  
#skRepairDetailModal .modal-sheet{
    width: min(920px, calc(100vw - 48px));
    padding: 16px;
  }

  
#skRepairDetailModal #skRepairDetailContent > div{
    padding: 18px !important;
  }

}


@media (max-width: 520px) {
  
.modal-overlay .modal-sheet{
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }

  
#skRepairDetailModal .modal-sheet{
    padding: 10px;
  }

  
#skRepairDetailModal #skRepairDetailContent > div{
    padding: 11px !important;
    gap: 8px;
  }

  
#skRepairDetailModal #skRepairDetailContent .sk-rj-detail-finance > div{
    padding: 8px 9px;
    font-size: .74rem;
  }

  
#skRepairDetailModal #skRepairDetailContent .sk-rj-detail-finance b{
    font-size: .84rem;
  }

}


@media (max-width: 359px) {
  
#skRepairDetailModal #skRepairDetailContent .sk-rj-detail-finance{
    grid-template-columns: minmax(0, 1fr);
  }

  
#skRepairDetailModal #skRepairDetailContent .sk-rj-detail-finance .sk-rj-finance-due{
    grid-column: auto;
  }

}




/* V5.6.107 — Universal UI typography and compact action-control alignment.
   Scope excludes printable invoice output; no application handlers or data logic changed. */


body button:not(#printableInvoiceCard button),
body [role="button"]:not(#printableInvoiceCard [role="button"]){
  font-family: var(--app-font, inherit);
  line-height: 1.3;
  letter-spacing: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}



/* Compact action pills and small utility controls use one readable type scale. */


.skcp-btn,
.sk-credit-btn,
.skcp-filter,
.skcp-back,
.skcp-bill-actions button,
.skcp-bill-actions .skcp-sales-bill-paid,
.sk-credit-actions button,
.sk-v43-keep-actions button,
.skcp-toolbar button,
.skcp-filters button,
.skcp-page-head button,
.sk-credit-search-row button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 10px;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}



.skcp-bill-actions .skcp-sales-bill-paid,
.skcp-sales-bill-paid{
  min-height: 30px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}



/* Keep icons and labels from touching or drifting vertically in compact controls. */


.skcp-btn > svg,
.sk-credit-btn > svg,
.skcp-filter > svg,
.skcp-back > svg,
.skcp-bill-actions button > svg,
.sk-credit-actions button > svg{
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
}



/* All ordinary app buttons inherit the same baseline without resizing primary actions. */


body button:not(#printableInvoiceCard button){
  font-kerning: normal;
  text-transform: none;
}



@media (max-width: 380px) {
  
.skcp-btn,
.sk-credit-btn,
.skcp-filter,
.skcp-back,
.skcp-bill-actions button,
.skcp-bill-actions .skcp-sales-bill-paid,
.sk-credit-actions button,
.sk-v43-keep-actions button,
.skcp-toolbar button,
.skcp-filters button,
.skcp-page-head button,
.sk-credit-search-row button {
    padding-inline: 8px;
    font-size: 12px;
  }

}




/* =====================================================================
   SK MOBILES 5.6.110 — UNIVERSAL COMPACT UI SPACING
   Visual-only layer: keep IDs, DOM structure, handlers and workflows intact.
   ===================================================================== */


:root{
  --sk-ui-page-gutter: 12px;
  --sk-ui-card-gap: 8px;
  --sk-ui-section-gap: 14px;
  --sk-ui-card-pad-y: 9px;
  --sk-ui-card-pad-x: 10px;
  --sk-ui-control-height: 42px;
  --sk-ui-action-height: 42px;
  --sk-ui-radius: 13px;
  --sk-ui-title-line: 1.25;
  --sk-ui-body-line: 1.35;
}



/* Reduce excess gaps without forcing every layout into one fixed height. */


main {
  gap: var(--sk-ui-card-gap);
}



.card,
.glass-card,
.history-card,
.stat-card,
.skcp-bill-card {
  box-sizing: border-box;
  padding: var(--sk-ui-card-pad-y) var(--sk-ui-card-pad-x);
  border-radius: var(--sk-ui-radius);
}



.form-section,
.bill-section,
.card-header,
.header-row {
  gap: var(--sk-ui-card-gap);
}



/* Tighten vertical rhythm inside content blocks; avoid changing invoice print. */


.card-title,
.section-title,
.modal-title {
  line-height: var(--sk-ui-title-line);
  margin-block: 0 6px;
}



.card p,
.glass-card p,
.history-card p {
  line-height: var(--sk-ui-body-line);
  margin-block: 3px;
}



/* Compact standard controls while retaining comfortable touch targets. */


body button:not(#printableInvoiceCard button),
body input:not([type="checkbox"]):not([type="radio"]),
body select,
body .form-input,
body .search-input,
body textarea{
  box-sizing: border-box;
}



body input:not([type="checkbox"]):not([type="radio"]),
body select,
body .form-input,
body .search-input{
  min-height: var(--sk-ui-control-height);
  padding-block: 8px;
}



body button:not(#printableInvoiceCard button){
  min-height: 38px;
  line-height: 1.25;
}



.submit-btn,
.action-btn,
.login-submit-btn,
.skcp-btn,
.sk-credit-btn{
  min-height: var(--sk-ui-action-height);
  padding-block: 8px;
}



/* Grids should use available width instead of stretching cards with fixed heights. */


.stats-grid,
.form-grid {
  gap: var(--sk-ui-card-gap);
  align-items: stretch;
}



/* Modal sheets: compact padding, but keep scroll regions and safe-area behavior. */


.modal-sheet{
  padding-inline: 12px;
}





.skcp-bill-actions,
.sk-credit-actions {
  gap: 8px;
}



@media (max-width: 480px) {
  
:root{
    --sk-ui-page-gutter: 10px;
    --sk-ui-card-gap: 7px;
    --sk-ui-section-gap: 12px;
    --sk-ui-card-pad-y: 8px;
    --sk-ui-card-pad-x: 9px;
    --sk-ui-control-height: 42px;
  }

  
main {
    gap: var(--sk-ui-card-gap);
  }

  
.modal-sheet{ padding-inline: 10px; }

  


}



@media (max-width: 360px) {
  
:root{
    --sk-ui-card-pad-x: 8px;
    --sk-ui-card-gap: 6px;
  }

}




/* V5.6.111 — Admin Control modal layout-only repair. Scoped to this modal. */


#skAdminPanelModal > .modal-sheet{
  display: block !important;
  box-sizing: border-box !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 86vh !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  padding: 0 0 12px !important;
}


#skAdminPanelModal > .modal-sheet > .sk-admin-box{
  position: relative !important;
  display: block !important;
  box-sizing: border-box !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  flex: none !important;
  margin-bottom: 10px !important;
}


#skAdminPanelModal #skManagerPermissionList{
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 6px !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}


#skAdminPanelModal #skManagerPermissionList > *{
  position: relative !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 42px !important;
  max-height: none !important;
  flex: none !important;
  white-space: normal !important;
}


#skAdminPanelModal > .modal-sheet > .submit-btn:last-child{
  display: block !important;
  position: relative !important;
  box-sizing: border-box !important;
  margin: 10px 14px 2px !important;
  width: calc(100% - 28px) !important;
}


@media (max-width: 600px) {
  
#skAdminPanelModal > .modal-sheet{
    max-height: 86vh !important;
    padding-bottom: 10px !important;
  }

  
#skAdminPanelModal > .modal-sheet > .submit-btn:last-child{
    margin: 10px 10px 2px !important;
    width: calc(100% - 20px) !important;
  }

}




/* V5.6.112 — targeted fixes from user screenshots only.
   Profile navigation drawer close is handled in skOpenRoleProfile().
   These rules are scoped to Tools & Others Notes and Billing mobile-type filters. */


#toolsOthersNoteModal{
  box-sizing:border-box !important;
  padding:10px !important;
  overflow-y:auto !important;
  align-items:center !important;
  justify-content:center !important;
}


#toolsOthersNoteModal > .modal-sheet{
  width:min(100%, 620px) !important;
  max-width:620px !important;
  max-height:calc(100dvh - 20px) !important;
  height:auto !important;
  box-sizing:border-box !important;
  padding:12px !important;
  margin:0 auto !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  display:flex !important;
  flex-direction:column !important;
  gap:0 !important;
}


#toolsOthersNoteModal .tools-others-head{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:8px !important;
  width:100% !important;
  margin:0 0 8px !important;
  flex:0 0 auto !important;
}


#toolsOthersNoteModal .tools-others-title{
  min-width:0 !important;
  flex:1 1 auto !important;
  font-size:clamp(.92rem, 3.8vw, 1.12rem) !important;
  line-height:1.25 !important;
  overflow-wrap:anywhere !important;
}


#toolsOthersNoteModal .tools-others-head .modal-close-btn{
  flex:0 0 auto !important;
  margin:0 !important;
}





#toolsOthersNoteModal .tools-others-label{
  width:100% !important;
  box-sizing:border-box !important;
  margin:0 0 5px !important;
  line-height:1.35 !important;
}


#toolsOthersNoteModal .tools-others-note{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  height:clamp(150px, 32dvh, 230px) !important;
  min-height:150px !important;
  max-height:42dvh !important;
  box-sizing:border-box !important;
  margin:0 0 8px !important;
  flex:0 0 auto !important;
}


#toolsOthersNoteModal .tools-others-actions{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  align-items:stretch !important;
  gap:8px !important;
  width:100% !important;
  margin:0 !important;
}


#toolsOthersNoteModal .tools-others-action{
  min-width:0 !important;
  width:100% !important;
  min-height:42px !important;
  box-sizing:border-box !important;
  padding:8px 6px !important;
  white-space:normal !important;
  line-height:1.25 !important;
  overflow-wrap:anywhere !important;
}


@media (max-width:420px) {
  
#toolsOthersNoteModal{ padding:6px !important; }

  
#toolsOthersNoteModal > .modal-sheet{ padding:10px !important; max-height:calc(100dvh - 12px) !important; }

  
#toolsOthersNoteModal .tools-others-actions{ gap:6px !important; }

  
#toolsOthersNoteModal .tools-others-action{ font-size:.72rem !important; }

}


#billingModal .mobile-type-tabs{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  align-items:stretch !important;
  gap:6px !important;
  width:auto !important;
  min-width:0 !important;
  box-sizing:border-box !important;
  margin:0 12px 9px !important;
}


#billingModal .mobile-type-btn{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-width:0 !important;
  width:100% !important;
  min-height:40px !important;
  box-sizing:border-box !important;
  padding:7px 4px !important;
  font-size:clamp(.62rem, 2.5vw, .72rem) !important;
  line-height:1.2 !important;
  text-align:center !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
  text-overflow:clip !important;
}




/* V5.6.118 — Vivo X300 Pro PWA mobile layout corrections (394px CSS viewport).
   Scoped to Order List and Used Mobile Stock/Inventory UI only. */


@media (max-width: 480px) {
  
/* Order row: reserve space for quantity/remove controls and let only details shrink. */

  
.sk-order-item-v39{
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 9px !important;
    overflow: hidden !important;
  }

  
.sk-order-item-v39 .sk-order-info{
    flex: 1 1 0% !important;
    width: 0 !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  
.sk-order-item-v39 .sk-order-title,
.sk-order-item-v39 .sk-order-meta{
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
  }

  
.sk-order-item-v39 .sk-order-qty{
    flex: 0 0 54px !important;
    width: 54px !important;
    min-width: 54px !important;
    box-sizing: border-box !important;
    padding: 7px 3px !important;
  }

  
.sk-order-item-v39 .sk-order-remove{
    flex: 0 0 auto !important;
    min-width: 44px !important;
    max-width: 64px !important;
    box-sizing: border-box !important;
    padding: 8px 7px !important;
    white-space: nowrap !important;
  }


  
/* Search row: make the input shrink predictably; retain a touch-sized Add Item control. */

  
#headerSearchRow{
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 7px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  
#headerSearchRow .search-input{
    flex: 1 1 0% !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  
#headerSearchRow .box-photo-scan-btn{
    flex: 0 0 auto !important;
    min-width: 78px !important;
    max-width: 102px !important;
    box-sizing: border-box !important;
    padding-inline: 7px !important;
    white-space: nowrap !important;
  }


  
/* Used-stock stats and purchase form: reduce excess inter-section whitespace only. */

  
  
  
  
  
  

  
/* Register remains horizontally scrollable by design; keep the table/cells from
     expanding the modal itself and compact the action column. */

  
  
  
  
  
}




/* ============================================================
   SK MOBILES 5.6.119 — MOBILE CONTROL SCALE + OVERFLOW GUARD
   UI-only correction based on the supplied Vivo screenshots.
   ============================================================ */


@media (max-width: 480px) {
  
/* Prevent flex/grid children and long text from forcing cards wider. */

  
  
:is(.modal-sheet, .modal-content, .bill-section, .form-section, .card, .settings-card, .sk-settings-card, .sk-ui-card) :is(*, *::before, *::after){
    box-sizing: border-box;
  }

  
:is(.modal-sheet, .modal-content, .bill-section, .form-section, .card, .settings-card, .sk-settings-card, .sk-ui-card) :is(p, span, label, small, strong, b, div){
    overflow-wrap: anywhere;
    min-width: 0;
  }


  
/* Smaller, consistent controls; preserve existing button actions and labels. */

  
:is(button, .btn, .button, input[type="button"], input[type="submit"]){
    min-width: 0;
    max-width: 100%;
    min-height: 38px !important;
    padding: 8px 12px !important;
    line-height: 1.2 !important;
    font-size: 13px !important;
    box-sizing: border-box !important;
  }

  



  
/* Search fields: clear icon/placeholder collision and keep the field inside its row. */

  
:is(.search-input, .search-box input, .search-bar input, input[type="search"], input[placeholder*="Search" i], input[placeholder*="model" i], input[placeholder*="IMEI" i]){
    width: 100%;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 42px !important;
    padding: 9px 12px !important;
    font-size: 13.5px !important;
    line-height: 1.3 !important;
    box-sizing: border-box !important;
  }

  
:is(.search-box, .search-bar, .search-field, .search-wrapper){
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  
:is(.search-box, .search-bar, .search-field, .search-wrapper) :is(svg, i, .search-icon){
    flex-shrink: 0 !important;
  }


  
/* Text areas and helper notes must wrap instead of escaping their card. */

  
textarea,
#settingsModal textarea{
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 76px !important;
    padding: 10px 11px !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere !important;
    box-sizing: border-box !important;
  }

  
:is(input, select, textarea){
    max-width: 100% !important;
    min-width: 0;
    box-sizing: border-box !important;
  }


  
/* Compact stock cards and theme/style profile tiles without changing their content. */

  
  
  


  


}




/* V5.6.122 — align the model-search glyph visually with the input text.
   Scope remains limited to the mobile header search control. */


@media (max-width: 600px) {
  
#headerSearchRow{
    position: relative !important;
    min-width: 0 !important;
  }

  
#headerSearchRow .search-icon-left{
    position: absolute !important;
    left: 12px !important;
    top: 47% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: var(--app-font) !important;
    font-size: 12px !important;
    line-height: 16px !important;
    pointer-events: none !important;
    z-index: 3 !important;
  }

  
#headerSearchRow #searchInput,
#headerSearchRow .search-input{
    flex: 1 1 0% !important;
    width: 0 !important;
    min-width: 0 !important;
    padding-left: 38px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
  }

}



/* ============================================================
   SK MOBILES HOME — TARGET REFERENCE REBUILD
   Scoped exclusively to the Home dashboard; other screens retain
   their existing layout and behaviour.
   ============================================================ */


.sk-home-header-actions,
.home-search-scan-btn{display:none;}


.app-sub-home{display:none;}


body:has(#cardsContainer.sk-home-redesign){
  background:#eef5ff!important;
  background-image:radial-gradient(ellipse at 12% 0%,rgba(191,219,254,.34),transparent 38%),linear-gradient(180deg,#f6f9ff 0%,#edf4ff 100%)!important;
}


body:has(#cardsContainer.sk-home-redesign) .app-viewport{padding:0 12px calc(82px + env(safe-area-inset-bottom,0px))!important;background:transparent!important;overflow-x:clip!important;}


body:has(#cardsContainer.sk-home-redesign) .app-header{position:relative!important;top:auto!important;z-index:100!important;min-height:0!important;padding:10px 0 7px!important;border:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;gap:0!important;}


body:has(#cardsContainer.sk-home-redesign) .header-row{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;width:100%!important;min-width:0!important;}


body:has(#cardsContainer.sk-home-redesign) .brand-logo-wrap{display:flex!important;align-items:center!important;gap:9px!important;flex:1 1 auto!important;min-width:0!important;}


body:has(#cardsContainer.sk-home-redesign) .menu-icon-btn{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;display:flex!important;align-items:center!important;justify-content:center!important;border:1px solid rgba(255,255,255,.9)!important;border-radius:15px!important;background:rgba(255,255,255,.88)!important;color:#0f1b39!important;box-shadow:0 5px 18px rgba(37,99,235,.12)!important;font-size:23px!important;flex:0 0 38px!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-logo-img{width:48px!important;height:48px!important;flex:0 0 48px!important;border:2px solid rgba(255,255,255,.95)!important;box-shadow:0 4px 16px rgba(37,99,235,.12)!important;background:#fff!important;}


body:has(#cardsContainer.sk-home-redesign) .brand-logo-wrap>div{flex:1 1 auto!important;min-width:0!important;}


body:has(#cardsContainer.sk-home-redesign) .app-name{font-size:18px!important;line-height:1.08!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#0e1837!important;background:none!important;-webkit-text-fill-color:#0e1837!important;}


body:has(#cardsContainer.sk-home-redesign) .app-sub-default{display:none!important;}


body:has(#cardsContainer.sk-home-redesign) .app-sub-home{display:block!important;}


body:has(#cardsContainer.sk-home-redesign) .app-sub{font-size:9px!important;line-height:1.2!important;margin-top:4px!important;color:#64799e!important;white-space:normal!important;overflow:hidden!important;max-height:22px!important;}


body:has(#cardsContainer.sk-home-redesign) #skAppVersionBadge{display:none!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-header-actions{display:flex!important;align-items:center!important;gap:8px!important;flex:0 0 auto!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-header-icon{position:relative!important;width:38px!important;height:38px!important;flex:0 0 38px!important;border:1px solid rgba(255,255,255,.92)!important;border-radius:50%!important;display:flex!important;align-items:center!important;justify-content:center!important;background:rgba(255,255,255,.94)!important;color:#1b2d52!important;box-shadow:0 5px 17px rgba(37,99,235,.12)!important;padding:0!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-header-icon svg{width:20px!important;height:20px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-header-icon i{display:none!important;position:absolute!important;right:2px!important;top:2px!important;width:8px!important;height:8px!important;border-radius:50%!important;background:#fb3652!important;border:1px solid #fff!important;}
body:has(#cardsContainer.sk-home-redesign) .sk-home-header-icon.has-alert i{display:block!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-profile-btn{background:linear-gradient(145deg,#fff,#eef6ff)!important;color:#1475f8!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-profile-btn svg{width:23px!important;height:23px!important;stroke-width:2.2!important;}


body:has(#cardsContainer.sk-home-redesign) #headerSearchRow{display:grid!important;grid-template-columns:minmax(0,1fr) 34px 80px!important;align-items:center!important;gap:7px!important;width:100%!important;margin:5px 0 9px!important;padding:0!important;position:relative!important;}


body:has(#cardsContainer.sk-home-redesign) #headerSearchRow .search-input{grid-column:1!important;grid-row:1!important;width:100%!important;height:35px!important;min-height:35px!important;padding:0 30px 0 38px!important;border:1px solid #d7e5ff!important;border-radius:12px!important;background:rgba(255,255,255,.96)!important;color:#14213e!important;font-size:10px!important;box-shadow:0 5px 16px rgba(37,99,235,.10)!important;}


body:has(#cardsContainer.sk-home-redesign) #headerSearchRow .search-icon-left{left:12px!important;top:50%!important;transform:translateY(-50%)!important;font-size:0!important;color:#13234a!important;z-index:2!important;}


body:has(#cardsContainer.sk-home-redesign) #headerSearchRow .search-icon-left:before{content:"";display:block;width:12px;height:12px;border:2px solid #17274c;border-radius:50%;}


body:has(#cardsContainer.sk-home-redesign) #headerSearchRow .search-icon-left:after{content:"";display:block;width:6px;height:2px;background:#17274c;position:absolute;right:-4px;bottom:-2px;transform:rotate(48deg);border-radius:2px;}


body:has(#cardsContainer.sk-home-redesign) #headerSearchRow .clear-search-btn{right:127px!important;top:50%!important;transform:translateY(-50%)!important;width:17px!important;height:17px!important;}


body:has(#cardsContainer.sk-home-redesign) #headerSearchRow .home-search-scan-btn{grid-column:2!important;grid-row:1!important;width:34px!important;height:35px!important;min-width:34px!important;min-height:35px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;border:1px solid #d9e6ff!important;border-radius:12px!important;background:#fff!important;color:#1b2c51!important;box-shadow:0 5px 16px rgba(37,99,235,.10)!important;}


body:has(#cardsContainer.sk-home-redesign) #headerSearchRow .home-search-scan-btn svg{width:19px!important;height:19px!important;fill:none!important;stroke:currentColor!important;stroke-width:2!important;stroke-linecap:round!important;stroke-linejoin:round!important;}


body:has(#cardsContainer.sk-home-redesign) #headerSearchRow .box-photo-scan-btn{grid-column:3!important;grid-row:1!important;width:80px!important;height:35px!important;min-width:0!important;justify-content:center!important;gap:3px!important;padding:0 5px!important;border:0!important;border-radius:13px!important;background:linear-gradient(145deg,#477bff,#087cff 70%,#24c5f2)!important;color:#fff!important;font-size:10px!important;white-space:nowrap!important;box-shadow:0 6px 16px rgba(37,99,235,.18)!important;}


body:has(#cardsContainer.sk-home-redesign) .content-area#cardsContainer{display:flex!important;flex-direction:column!important;gap:8px!important;width:100%!important;max-width:100%!important;min-width:0!important;padding:0!important;margin:0!important;overflow:visible!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-hero{width:100%!important;min-width:0!important;overflow:hidden!important;border-radius:17px!important;border:1px solid rgba(255,255,255,.88)!important;background:#dbeafe!important;box-shadow:0 7px 20px rgba(59,130,246,.12)!important;aspect-ratio:3.85/1!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-hero img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;max-width:none!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-metrics{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important;width:100%!important;min-width:0!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-metric{display:flex!important;align-items:center!important;gap:5px!important;min-width:0!important;width:100%!important;height:45px!important;min-height:45px!important;padding:5px!important;border:1px solid rgba(220,231,255,.9)!important;border-radius:13px!important;background:rgba(255,255,255,.91)!important;box-shadow:0 5px 14px rgba(37,99,235,.07)!important;text-align:left!important;overflow:hidden!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-metric-icon svg{display:block!important;width:18px!important;height:18px!important;flex:0 0 18px!important;fill:none!important;stroke:currentColor!important;stroke-width:2!important;stroke-linecap:round!important;stroke-linejoin:round!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-metric-icon{display:flex!important;align-items:center!important;justify-content:center!important;width:25px!important;height:29px!important;flex:0 0 25px!important;border-radius:9px!important;font-size:15px!important;font-weight:900!important;line-height:1!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-metric-icon.purple{background:#f2e6ff!important;color:#9333ea!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-metric-icon.blue{background:#e5f0ff!important;color:#1768ed!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-metric-icon.rose{background:#ffe6ed!important;color:#f43f5e!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-metric-icon.green{background:#ddfaec!important;color:#10a765!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-metric-copy{display:flex!important;flex:1 1 auto!important;min-width:0!important;flex-direction:column!important;gap:2px!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-metric-copy b{display:block!important;font-size:7.5px!important;line-height:1.05!important;color:#1a2947!important;font-weight:800!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-metric-copy strong{display:block!important;font-size:10.5px!important;line-height:1.1!important;color:#1768ed!important;font-weight:950!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;letter-spacing:-.03em!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-metric:nth-child(1) .sk-home-v2-metric-copy strong{color:#9333ea!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-metric:nth-child(3) .sk-home-v2-metric-copy strong{color:#e11d48!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-metric:nth-child(4) .sk-home-v2-metric-copy strong{color:#d99a00!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-metric-arrow{display:none!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-features{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;width:100%!important;min-width:0!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-feature{position:relative!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;isolation:isolate!important;width:100%!important;min-width:0!important;height:66px!important;min-height:66px!important;padding:6px 7px 6px 0!important;border:1px solid rgba(255,255,255,.95)!important;border-radius:15px!important;overflow:hidden!important;text-align:left!important;box-shadow:0 5px 15px rgba(37,99,235,.09)!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-feature:after{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-feature.glass{background:linear-gradient(125deg,#e1f3ff,#c9e9ff)!important;border-color:#b9e2ff!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-feature.used{background:linear-gradient(125deg,#f3eaff,#e7d4ff)!important;border-color:#dfc7ff!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-feature.stock{background:linear-gradient(125deg,#fff2df,#ffe5c6)!important;border-color:#ffdfb8!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-feature.accessories{background:linear-gradient(125deg,#e4fff2,#cdf9e6)!important;border-color:#c1f1dc!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-feature.repair{background:linear-gradient(125deg,#ffeaf0,#ffd8e2)!important;border-color:#ffc9d7!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-feature.other{background:linear-gradient(125deg,#e6f3ff,#cfe6ff)!important;border-color:#bfddff!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-feature>img{position:absolute!important;left:0!important;top:0!important;width:49%!important;height:100%!important;max-width:none!important;object-fit:cover!important;object-position:center!important;z-index:-1!important;pointer-events:none!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-feature-copy{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:3px!important;width:52%!important;min-width:0!important;margin-left:auto!important;position:relative!important;z-index:1!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-feature-copy b{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important;font-size:9.5px!important;line-height:1.12!important;font-weight:900!important;letter-spacing:-.025em!important;color:#111d38!important;overflow-wrap:anywhere!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-feature-copy small{display:block!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:8px!important;line-height:1.1!important;color:#526b93!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-feature-copy i{display:flex!important;align-items:center!important;justify-content:center!important;width:20px!important;height:20px!important;border-radius:50%!important;background:linear-gradient(135deg,#1686ff,#48c9ff)!important;color:#fff!important;font-style:normal!important;font-size:15px!important;line-height:1!important;margin-top:1px!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-feature.used .sk-home-v2-feature-copy i{background:linear-gradient(135deg,#8b3df5,#d946ef)!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-feature.stock .sk-home-v2-feature-copy i{background:linear-gradient(135deg,#fb923c,#f97316)!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-feature.accessories .sk-home-v2-feature-copy i{background:linear-gradient(135deg,#10b981,#34d399)!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-feature.repair .sk-home-v2-feature-copy i{background:linear-gradient(135deg,#fb7185,#f43f5e)!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-section{display:block!important;width:100%!important;min-width:0!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-section-heading{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;margin:1px 0 6px!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-section-heading h2{font-size:12px!important;line-height:1.2!important;font-weight:950!important;color:#101c39!important;letter-spacing:-.03em!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-section-heading>button{display:inline-flex!important;align-items:center!important;gap:4px!important;border:0!important;background:transparent!important;color:#4c6fb3!important;font-size:9px!important;font-weight:800!important;padding:3px 0!important;white-space:nowrap!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-quick-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:6px!important;width:100%!important;min-width:0!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-quick{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;width:100%!important;min-width:0!important;height:44px!important;min-height:44px!important;padding:4px 2px!important;border:1px solid rgba(255,255,255,.92)!important;border-radius:12px!important;box-shadow:0 4px 12px rgba(37,99,235,.07)!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-quick>span{display:flex!important;align-items:center!important;justify-content:center!important;width:22px!important;height:22px!important;font-size:16px!important;font-weight:900!important;line-height:1!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-quick>span svg{display:block!important;width:21px!important;height:21px!important;fill:none!important;stroke:currentColor!important;stroke-width:2.1!important;stroke-linecap:round!important;stroke-linejoin:round!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-quick>b{font-size:7.5px!important;line-height:1!important;white-space:nowrap!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;font-weight:850!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-quick.blue{background:linear-gradient(135deg,#e5f2ff,#d7eaff)!important;color:#1768ed!important;border-color:#c7e0ff!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-quick.rose{background:linear-gradient(135deg,#fff0f3,#ffe2e9)!important;color:#e11d48!important;border-color:#ffd5df!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-quick.green{background:linear-gradient(135deg,#e7fff4,#d9fbed)!important;color:#059669!important;border-color:#c8f5df!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-quick.purple{background:linear-gradient(135deg,#f5edff,#ede2ff)!important;color:#7c3aed!important;border-color:#e4d7ff!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-quick.orange{background:linear-gradient(135deg,#fff4e7,#ffead5)!important;color:#ea580c!important;border-color:#ffe0c0!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-recent-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;width:100%!important;min-width:0!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-recent-card{display:flex!important;align-items:center!important;gap:5px!important;min-width:0!important;min-height:57px!important;padding:6px!important;border:1px solid rgba(221,232,255,.94)!important;border-radius:13px!important;background:rgba(255,255,255,.92)!important;box-shadow:0 4px 12px rgba(37,99,235,.07)!important;overflow:hidden!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-recent-icon{display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 27px!important;width:27px!important;height:34px!important;border-radius:9px!important;font-size:15px!important;font-weight:900!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-recent-icon svg{display:block!important;width:21px!important;height:21px!important;fill:none!important;stroke:currentColor!important;stroke-width:2!important;stroke-linecap:round!important;stroke-linejoin:round!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-recent-icon.blue{background:#e2efff!important;color:#1673f8!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-recent-icon.rose{background:#ffe7ee!important;color:#f05267!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-recent-copy{display:flex!important;flex-direction:column!important;gap:3px!important;min-width:0!important;flex:1 1 auto!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-recent-copy b{font-size:7.5px!important;line-height:1.1!important;color:#13213f!important;font-weight:900!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-recent-copy strong{font-size:8.5px!important;line-height:1.1!important;color:#14945b!important;font-weight:900!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}


body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-recent-copy small{font-size:7px!important;line-height:1.1!important;color:#64799e!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}




















body:has(#cardsContainer.sk-home-redesign) #skUrgentRepairCard{grid-column:1/-1!important;width:100%!important;max-width:100%!important;margin-top:6px!important;}


@media(max-width:360px){
 
body:has(#cardsContainer.sk-home-redesign) .brand-logo-wrap{gap:6px!important;}

 
body:has(#cardsContainer.sk-home-redesign) .app-name{font-size:16px!important;}

 
body:has(#cardsContainer.sk-home-redesign) .app-sub{font-size:8px!important;}

 
body:has(#cardsContainer.sk-home-redesign) .sk-home-header-actions{gap:5px!important;}

 
body:has(#cardsContainer.sk-home-redesign) .sk-home-header-icon{width:32px!important;height:32px!important;flex-basis:32px!important;}

 
body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-metric{gap:3px!important;padding:4px!important;}

 
body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-metric-icon{width:21px!important;flex-basis:21px!important;}

 
body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-metric-copy b{font-size:6.5px!important;}

 
body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-metric-copy strong{font-size:10px!important;}

 
body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-feature-copy b{font-size:8.5px!important;}

 
body:has(#cardsContainer.sk-home-redesign) .sk-home-v2-quick>b{font-size:6.5px!important;}

}




/* ============================================================
   Used Mobile Stock styles are isolated in css/used-mobile-stock.css.
   ============================================================ */





























































































 































@media (max-width: 700px) {
  
  
  
  
  
  
  
  
  
  
  
  

  
/* The sheet is not scrollable. Only this main region scrolls; header and navigation stay in place. */

  
  
  
  
  
  
  
  
  

  
  
  
  
  
  
  
  
  
  
  

  
  
  
  
  
  

  
  
  
  
  
  
  

  
/* Desktop and mobile headings are distinct so mobile labels match the compact row grid. */

  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  

  
/* Navigation is a non-scrolling flex sibling, anchored to the bottom of the sheet. */

  
  
  
  
  

  
  
  
  
  
  
  
  
}



