/* SK MOBILES - Brand theme (WhatsApp / Meta / YouTube style). DRAFT for Phase 0 demo - not linked in index.html yet.
   Active only when <html data-brand="forest|ocean">. Everything sits in @layer brand, which index.html must declare
   BEFORE any other layer ("@layer brand, skp;") - for !important rules the earliest layer wins, so this file beats
   the older premium layer and the unlayered patch files without :not(#q0)... chains.
   Rule of the look: neutral surfaces, ONE accent colour, flat lists, grey outline icons, no glow / gradient / inset. */
@layer brand{

/* V5.20.84: old theme options (Premium colours, Style profiles, Accent, Background, Corners, Buttons, Header & bar, dark-mode variants)
   are hidden while the brand look is on - js/features/brand-theme.js marks them; choosing "Old look" shows them again. */
html[data-brand] .sk-brand-hide{display:none!important}

/* ---------- 1. Tokens ---------- */
html[data-brand]{
  --b-acc:#198754;--b-acc-d:#0F5132;--b-rgb:25,135,84;--b-tint:#E8F5E9;
  --b-page:#F2F4F7;--b-surf:#FFFFFF;--b-line:#E2E8F0;--b-input:#F8FAFC;--b-input-line:#E2E8F0;--b-search:#F1F5F9;
  --b-text:#0F172A;--b-sub:#475569;--b-muted:#64748B;--b-icon:#475569;--b-track:#F1F5F9;
  --b-shadow:0 1px 3px rgba(0,0,0,.06),0 1px 2px rgba(0,0,0,.04);
}
html[data-brand="ocean"]{--b-acc:#0284C7;--b-acc-d:#0369A1;--b-rgb:2,132,199;--b-tint:#E0F2FE}
html[data-brand]:is([data-theme="dark"],[data-ui-mode="dark"]){
  --b-page:#0B0F14;--b-surf:#111827;--b-line:rgba(255,255,255,.08);--b-input:#0F172A;--b-input-line:rgba(255,255,255,.14);
  --b-text:#E5E7EB;--b-sub:#CBD5E1;--b-muted:#94A3B8;--b-icon:#94A3B8;--b-track:rgba(255,255,255,.06);
  --b-shadow:none;--b-tint:rgba(var(--b-rgb),.16);--b-search:rgba(255,255,255,.07);
}
html[data-brand]:is([data-theme="dark"],[data-ui-mode="dark"])[data-brand="forest"]{--b-acc:#1FA463;--b-rgb:31,164,99}
html[data-brand]:is([data-theme="dark"],[data-ui-mode="dark"])[data-brand="ocean"]{--b-acc:#0EA5E9;--b-rgb:14,165,233}

/* map onto the variables the whole app already reads */
html[data-brand]{
  --skp-pri:var(--b-acc)!important;--skp-pri2:var(--b-acc)!important;--skp-rgb:var(--b-rgb)!important;
  --primary:var(--b-acc)!important;--primary-gradient:linear-gradient(var(--b-acc),var(--b-acc))!important;
  --bg:var(--b-page)!important;--page-bg:var(--b-page)!important;--card-bg:var(--b-surf)!important;--model-bg:var(--b-surf)!important;
  --modal-bg:var(--b-page)!important;--bottom-nav-bg:var(--b-surf)!important;--header-bg:var(--b-surf)!important;
  --card-border:var(--b-line)!important;--input-bg:var(--b-input)!important;--text:var(--b-text)!important;--text-muted:var(--b-muted)!important;
  --skp-shadow:var(--b-shadow)!important;--skp-inset:none!important;--skp-glow:none!important;--skp-track:var(--b-track)!important;
  --glass-shadow:var(--b-shadow)!important;--sk-nav-strip:var(--b-surf)!important;
  --success:#16A34A!important;--danger:#DC2626!important;
}
html[data-brand] body{font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif!important;color:var(--b-text)!important}

/* ---------- 2. Surfaces: flat, one radius, hairline border, no glow ---------- */
html[data-brand] :is(.glass-card,.modal-sheet){border-radius:14px!important;border:1px solid var(--b-line)!important;box-shadow:var(--b-shadow)!important;backdrop-filter:none!important}
/* full pages stay edge-to-edge (same exceptions the older files make) */
html[data-brand] .modal-overlay > .modal-sheet.sk-flatsheet,
html[data-brand] :is(#skCreditLedgerPage,#settingsModal,#billingModal,#skRepairJobsModal,#skAccessoriesPage,#skMonthReportModal,#skDailyReportModal,#skStorageHealthModal,#skBulkModal,#skReviewModal,#skAdminPanelModal,#itemEditorModal,#toolsOthersNoteModal,#skWorkerEditModal,#viewBillModal,#skRecentModal,#skPurchaseDetailsModal,#skUsedStockModal).active > .modal-sheet{border-radius:0!important;border:0!important;box-shadow:none!important}
html[data-brand] .modal-overlay.active.sk-pop-center:not(#skLoginModal) > .modal-sheet{border-radius:14px!important}
html[data-brand] [class*="-card"]:not(.glass-card):not([class*="-card-"]):not(.sk-home-v2-card):not(.skp-prev-card){box-shadow:var(--b-shadow)!important}
/* V5.20.85: section wrappers and their heading rows are not cards - no shadow / line under "Shop Tools", "Business Summary" */
html[data-brand] :is(.sk-home-v2-card,.sk-home-v2-card-head){box-shadow:none!important;border:0!important;background:transparent!important}
html[data-brand] [class*="-card"]::before{box-shadow:none!important}

/* ---------- 3. Icons: the app's own icon colours stay exactly as they are (owner's choice) - only sizes / shapes are tidied below ---------- */

/* ---------- 4. Type ---------- */
html[data-brand] :is(h1,h2,.modal-title,.section-title,.sk-home-v2-title){color:var(--b-text)!important;letter-spacing:-.01em!important}
html[data-brand] :is(.text-muted,.sk-muted){color:var(--b-muted)!important}   /* V5.20.85: not every <small> - text on coloured cards keeps its own colour */
html[data-brand] label{color:var(--b-sub)!important;font-weight:500!important}

/* ---------- 5. Inputs: 44px, flat, hairline, focus ring ---------- */
html[data-brand] :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]),select,textarea){
  background-color:var(--b-input)!important;border:1px solid var(--b-input-line)!important;border-radius:10px!important;box-shadow:none!important;color:var(--b-text)!important;box-sizing:border-box!important}
html[data-brand] :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]),select){min-height:42px!important;height:42px}
html[data-brand] :is(input,select,textarea):focus{border-color:var(--b-acc)!important;box-shadow:0 0 0 3px rgba(var(--b-rgb),.2)!important;outline:0!important}
html[data-brand] .search-wrapper .search-input{border-radius:999px!important}

/* ---------- 6. Buttons: primary / secondary / danger ---------- */
html[data-brand] :is(.submit-btn,.btn-primary,.sk-login-btn,.bill-action-save,.bill-action-pdf,.bill-action-print,.box-photo-scan-btn,.sk-used-bill-btn,.sk-used-bill-button,.skcp-btn.credit){
  background:var(--b-acc)!important;color:#fff!important;border:0!important;border-radius:10px!important;font-weight:600!important;box-shadow:none!important;min-height:44px}
html[data-brand] :is(.btn-secondary,.copy-btn,.sk-used-filter-button){background:var(--b-track)!important;color:var(--b-text)!important;border:1px solid var(--b-line)!important;border-radius:10px!important;box-shadow:none!important;font-weight:600!important}
html[data-brand] :is(.submit-btn[style*="dc2626"],.submit-btn[style*="ef4444"],.submit-btn[style*="b91c1c"],.is-danger,.sk-used-detail-danger,.sk-clear-data-btn){background:#FEE2E2!important;color:#DC2626!important;border:1px solid #FECACA!important;box-shadow:none!important}
html[data-brand]:is([data-theme="dark"],[data-ui-mode="dark"]) :is(.submit-btn[style*="dc2626"],.is-danger,.sk-used-detail-danger,.sk-clear-data-btn){background:rgba(220,38,38,.14)!important;color:#F87171!important;border-color:rgba(220,38,38,.3)!important}
html[data-brand] :is(.modal-close-btn,.menu-icon-btn,.drawer-close-btn,.home-search-scan-btn,.sk-rj-filter-btn,.sk-used-row-menu summary,.sk-home-header-icon){background-color:transparent!important;border:0!important;box-shadow:none!important;color:var(--b-text)!important}
html[data-brand] :is(button,.submit-btn,[role=button]){transition:transform .15s ease!important}
html[data-brand] :is(button,.submit-btn,[role=button]):active{transform:scale(.97)!important}
@media (prefers-reduced-motion:reduce){html[data-brand] :is(button,.submit-btn,[role=button]):active{transform:none!important}}

/* ---------- 7. Tabs / chips: grey track, active = accent ---------- */
html[data-brand] :is(.mobile-type-tabs,.sk-rj-tabs,.billing-tabs,.skot-tabs,.skw-tabs,.skspr-segs,.skpl-seg,.skdl2-tabs,.sk-used-view-chips,.skcp-filters){background:var(--b-track)!important;box-shadow:none!important;border:0!important}
html[data-brand] :is(.mobile-type-tabs,.sk-rj-tabs,.billing-tabs,.skot-tabs,.skw-tabs,.skspr-segs,.skpl-seg,.skdl2-tabs,.sk-used-view-chips,.skcp-filters) > *{box-shadow:none!important;font-weight:600!important;min-width:0!important}
html[data-brand] :is(.mobile-type-tabs,.sk-rj-tabs,.billing-tabs,.skot-tabs,.skw-tabs,.skspr-segs,.skpl-seg,.skdl2-tabs,.sk-used-view-chips,.skcp-filters) > :is(.active,[aria-selected="true"],[aria-pressed="true"]){background:var(--b-acc)!important;color:#fff!important}

/* ---------- 8. Bottom nav: flat bar, accent only on the active item ---------- */
html[data-brand] .bottom-nav{left:0!important;right:0!important;bottom:0!important;width:100%!important;max-width:none!important;transform:none!important;padding-bottom:env(safe-area-inset-bottom,0px)!important;background:color-mix(in srgb,var(--b-surf) 92%,transparent)!important;backdrop-filter:blur(14px)!important;-webkit-backdrop-filter:blur(14px)!important;border:0!important;border-top:1px solid var(--b-line)!important;box-shadow:none!important;border-radius:0!important}
html[data-brand] .bottom-nav :is(button,a){color:var(--b-muted)!important;box-shadow:none!important}
html[data-brand] .bottom-nav :is(button,a) svg{stroke:currentColor!important}
html[data-brand] .bottom-nav :is(button,a):is(.active,[aria-current="page"]){color:var(--b-acc)!important}
html[data-brand] .bottom-nav [class*="center"],html[data-brand] .bottom-nav [class*="home"] [class*="ic"]{box-shadow:none!important;border-color:var(--b-line)!important}

/* ---------- 9. Status pills & text containment ---------- */
html[data-brand] .sk-used-status{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;max-width:100%!important;padding:3px 10px!important;border-radius:999px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-weight:600!important}
html[data-brand] .sk-used-status.is-stock{background:var(--b-tint)!important;color:var(--b-acc)!important;border:0!important}
html[data-brand] .sk-used-status.is-sold{background:var(--b-track)!important;color:var(--b-sub)!important;border:0!important}
html[data-brand] .sk-uc-no{background:var(--b-track)!important;color:var(--b-muted)!important}

/* ---------- 10. Toasts & sync status: small quiet pill (stays at the top, where the app has always shown notices) ---------- */
html[data-brand] .toast{max-width:calc(100vw - 48px)!important;padding:8px 14px!important;font-size:12.5px!important;font-weight:600!important;border-radius:999px!important;background:#1F2937!important;color:#fff!important;border:0!important;box-shadow:0 6px 18px rgba(0,0,0,.18)!important;backdrop-filter:none!important}
html[data-brand] #skRealtimeSyncStatus{max-width:min(260px,calc(100vw - 32px))!important;padding:5px 12px!important;font-size:11px!important;font-weight:600!important;line-height:1.3!important;border-radius:999px!important;background:var(--b-surf)!important;color:var(--b-sub)!important;border:1px solid var(--b-line)!important;box-shadow:0 2px 8px rgba(15,23,42,.08)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}

/* ======================= V2: layout, alignment & spacing (not just colour) ======================= */

/* ---------- A. Home search row: ONE pill, everything vertically centred ---------- */
html[data-brand] #headerSearchRow:not([style*="none"]){display:flex!important;align-items:center!important;gap:6px!important;position:relative!important;height:42px!important;margin:10px 0 4px!important;padding:0!important}
html[data-brand] #headerSearchRow .search-icon-left{display:none!important}
html[data-brand] #headerSearchRow #searchInput{flex:1 1 auto!important;order:0!important;min-width:0!important;width:auto!important;height:42px!important;min-height:42px!important;
  padding:0 8px 0 38px!important;margin:0!important;border:0!important;border-radius:24px!important;background:var(--b-search)!important;box-shadow:none!important;
  font-size:14px!important;text-overflow:ellipsis!important;line-height:42px!important;color:var(--b-text)!important}
html[data-brand] #headerSearchRow #searchInput::placeholder{color:var(--b-muted)!important;opacity:1!important}
html[data-brand] #headerSearchRow #searchInput:focus{box-shadow:0 0 0 2px rgba(var(--b-rgb),.35)!important}
/* the single search icon lives INSIDE the pill (it still opens "search everywhere"; typing still searches stock) */
html[data-brand] #headerSearchRow .home-search-scan-btn{position:absolute!important;left:2px!important;top:50%!important;transform:translateY(-50%)!important;z-index:2!important;
  width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;padding:0!important;margin:0!important;display:grid!important;place-items:center!important;
  border:0!important;border-radius:50%!important;background-color:transparent!important;box-shadow:none!important;color:var(--b-muted)!important}
html[data-brand] #headerSearchRow .home-search-scan-btn svg{width:20px!important;height:20px!important;stroke:currentColor!important}
html[data-brand] #headerSearchRow .home-search-scan-btn:active{transform:translateY(-50%) scale(.94)!important}
html[data-brand] #headerSearchRow .box-photo-scan-btn{flex:0 0 auto!important;width:auto!important;max-width:none!important;min-width:max-content!important;height:42px!important;min-height:42px!important;padding:0 12px!important;margin:0!important;border-radius:24px!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;white-space:nowrap!important;font-size:13.5px!important;font-weight:600!important;line-height:1!important}
html[data-brand] #headerSearchRow .box-photo-scan-btn .ski{color:#fff!important;stroke:#fff!important}
html[data-brand] #headerSearchRow > button:last-child:not(.box-photo-scan-btn):not(.home-search-scan-btn){flex:0 0 42px!important;width:42px!important;height:42px!important;min-height:42px!important;padding:0!important;margin:0!important;
  border:0!important;border-radius:50%!important;background-color:var(--b-search)!important;box-shadow:none!important;display:grid!important;place-items:center!important}

/* ---------- B. Business Summary: clean 2x2 - value on top, label below, icon centred on the right ---------- */
html[data-brand] .sk-home-v2-card{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
html[data-brand] .sk-home-v2-card-head{display:flex!important;align-items:center!important;justify-content:space-between!important;margin:20px 2px 10px!important;min-height:32px!important}
html[data-brand] .sk-home-v2-card-head h2{font-size:17px!important;font-weight:700!important;line-height:1.2!important;margin:0!important}
html[data-brand] .sk-home-v2-metrics{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
html[data-brand] .sk-home-v2-metric{display:grid!important;grid-template-columns:minmax(0,1fr) 36px!important;align-items:center!important;column-gap:12px!important;
  min-height:72px!important;height:auto!important;padding:14px 16px!important;margin:0!important;text-align:left!important;
  background:var(--b-surf)!important;border:0!important;border-radius:14px!important;box-shadow:var(--b-shadow)!important}
html[data-brand] .sk-home-v2-metric-copy{grid-column:1!important;grid-row:1!important;display:flex!important;flex-direction:column-reverse!important;justify-content:center!important;gap:3px!important;min-width:0!important;padding:0!important;margin:0!important}
html[data-brand] .sk-home-v2-metric-copy > strong{font-size:18px!important;font-weight:700!important;line-height:1.2!important;color:var(--b-text)!important;margin:0!important;padding:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html[data-brand] .sk-home-v2-metric-copy > strong.sk-home-v2-metric-sub{font-size:14px!important;font-weight:600!important}
html[data-brand] .sk-home-v2-metric-copy > b{font-size:13px!important;font-weight:500!important;line-height:1.25!important;color:var(--b-muted)!important;margin:0!important;padding:0!important;white-space:normal!important;overflow:hidden!important;overflow-wrap:anywhere!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important}
html[data-brand] .sk-home-v2-metric-icon{grid-column:2!important;grid-row:1!important;position:static!important;inset:auto!important;width:36px!important;height:36px!important;margin:0!important;border-radius:10px!important;align-self:center!important}
html[data-brand] .sk-home-v2-metric-icon svg{width:20px!important;height:20px!important}
html[data-brand] .sk-home-v2-metric-arrow{display:none!important}

/* the Repair Spares card has a note instead of a number: title on top, note below */
html[data-brand] .sk-home-v2-metric-copy:has(> .sk-home-v2-metric-sub){flex-direction:column!important}
html[data-brand] .sk-home-v2-metric-copy:has(> .sk-home-v2-metric-sub) > b{font-size:13px!important;font-weight:600!important;line-height:1.25!important;color:var(--b-text)!important;-webkit-line-clamp:unset!important;display:block!important;overflow:visible!important}
html[data-brand] .sk-home-v2-metric-copy > strong.sk-home-v2-metric-sub{font-size:11.5px!important;font-weight:500!important;line-height:1.25!important;color:#64748B!important;white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere!important;display:block!important}
html[data-brand]:is([data-theme="dark"],[data-ui-mode="dark"]) .sk-home-v2-metric-copy > strong.sk-home-v2-metric-sub{color:var(--b-muted)!important}

/* ---------- C. Shop Tools tiles: no heavy border, soft shadow, even spacing ---------- */
html[data-brand]:not([data-sk-layout="rows"]) .sk-home-v2-features{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
html[data-brand]:not([data-sk-layout="rows"]) .sk-home-v2-feature{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:8px!important;
  min-height:104px!important;height:auto!important;padding:14px 8px!important;margin:0!important;background:var(--b-surf)!important;border:0!important;border-radius:14px!important;box-shadow:var(--b-shadow)!important}
html[data-brand] .sk-home-v2-feature-icon{width:40px!important;height:40px!important;border-radius:12px!important;margin:0!important}
html[data-brand] .sk-home-v2-feature-icon svg{width:22px!important;height:22px!important}
html[data-brand]:not([data-sk-layout="rows"]) .sk-home-v2-feature-copy{display:flex!important;flex-direction:column!important;align-items:center!important;min-width:0!important;width:100%!important}
html[data-brand]:not([data-sk-layout="rows"]) .sk-home-v2-feature-copy b{font-size:12.5px!important;font-weight:600!important;line-height:1.3!important;color:var(--b-text)!important;text-align:center!important;overflow-wrap:anywhere!important}
html[data-brand] .sk-home-v2-feature-copy small{display:none!important}
html[data-brand] .sk-home-v2-card-head :is(button,a){height:32px!important;min-height:32px!important;padding:0 14px!important;border-radius:16px!important;font-size:13px!important;font-weight:600!important;box-shadow:none!important;border:0!important;background:var(--b-track)!important;color:var(--b-text)!important;display:inline-flex!important;align-items:center!important}

/* ---------- D. Cards & forms: no heavy borders in light mode (shadow carries the edge), hairline in dark ---------- */
html[data-brand] :is(.glass-card,.sk-used-purchase-form,.bill-section,.sk-used-stat-card,.sk-used-card){border:0!important;box-shadow:var(--b-shadow)!important;background-color:var(--b-surf)!important}
html[data-brand]:is([data-theme="dark"],[data-ui-mode="dark"]) :is(.glass-card,.sk-used-purchase-form,.bill-section,.sk-used-stat-card,.sk-used-card,.sk-home-v2-metric,.sk-home-v2-feature){border:1px solid var(--b-line)!important}

/* ---------- E. "Add / Update Purchase" form: label, 6px, then a crisp 42px field; icon centred in the field ---------- */
html[data-brand] #skUsedStockModal .sk-used-purchase-form{padding:16px!important;border-radius:14px!important}
html[data-brand] #skUsedStockModal .sk-used-form-grid{column-gap:12px!important;row-gap:14px!important}
html[data-brand] #skUsedStockModal .sk-used-form-grid > .form-label{position:relative!important;display:flex!important;flex-direction:column!important;gap:6px!important;margin:0!important;
  font-size:13px!important;font-weight:500!important;line-height:1.2!important;color:var(--b-sub)!important;min-width:0!important}
html[data-brand] #skUsedStockModal .sk-used-form-grid .form-input{height:42px!important;min-height:42px!important;margin:0!important;padding:0 12px 0 40px!important;
  background-color:var(--b-input)!important;border:1px solid var(--b-input-line)!important;border-radius:10px!important;box-shadow:none!important;font-size:14px!important;line-height:40px!important}
html[data-brand] #skUsedStockModal .sk-used-form-grid textarea.form-input{height:auto!important;min-height:84px!important;line-height:1.4!important;padding:11px 12px 11px 40px!important}
html[data-brand] #skUsedStockModal .sk-used-form-grid > .form-label::after{bottom:11px!important;left:12px!important;width:18px!important;height:18px!important}
html[data-brand] #skUsedStockModal .sk-used-form-grid > .sk-used-field-issue::after{bottom:auto!important;top:calc(1.2em + 6px + 12px)!important}
html[data-brand] #skUsedStockModal .sk-used-form-grid .sk-dmy{display:block!important;position:relative!important}
html[data-brand] #skUsedStockModal .sk-used-form-grid .sk-dmy-txt{top:50%!important;transform:translateY(-50%)!important;line-height:1!important;font-size:14px!important}
html[data-brand] #skUsedStockModal .sk-used-form-grid .form-input:focus{border-color:var(--b-acc)!important;box-shadow:0 0 0 3px rgba(var(--b-rgb),.2)!important}
/* the same label / field rhythm on the billing form */
html[data-brand] #billingModal .form-group{margin-bottom:14px!important}
html[data-brand] #billingModal .form-label{display:flex!important;align-items:center!important;gap:6px!important;margin:0 0 6px!important;font-size:13px!important;line-height:1.2!important;min-height:18px!important}
html[data-brand] #billingModal .form-label .sk-fi{width:16px!important;height:16px!important;flex:0 0 16px!important;margin:0!important;display:inline-grid!important;place-items:center!important}
html[data-brand] #billingModal .form-input{height:42px!important;min-height:42px!important;font-size:14px!important}
html[data-brand] #billingModal textarea.form-input{height:auto!important;min-height:76px!important;padding:10px 12px!important}

/* ---------- F. Bottom nav: 60px bar, evenly spaced touch targets, clean raised Home ---------- */
html[data-brand] body nav.bottom-nav{display:flex!important;align-items:stretch!important;justify-content:space-around!important;height:calc(60px + env(safe-area-inset-bottom,0px))!important;min-height:0!important;padding:0 4px env(safe-area-inset-bottom,0px)!important}
html[data-brand] body nav.bottom-nav > .nav-item{flex:1 1 0!important;min-width:0!important;height:60px!important;padding:6px 0!important;margin:0!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;background:transparent!important}
html[data-brand] body nav.bottom-nav > .nav-item:not(#navHome) svg{width:22px!important;height:22px!important;padding:0!important;margin:0!important;stroke-width:1.8!important}
html[data-brand] body nav.bottom-nav > .nav-item span{font-size:11px!important;font-weight:500!important;line-height:1!important;white-space:nowrap!important}
html[data-brand] body nav.bottom-nav > .nav-item.active:not(#navHome) span{font-weight:700!important}
/* the raised circle follows the active tab (existing behaviour) - explicit geometry: 52px circle raised 16px, icon centred, label at the bottom */
html[data-brand] body nav.bottom-nav > .nav-item{position:relative!important;overflow:visible!important}
html[data-brand] body nav.bottom-nav > .nav-item.active::before{content:""!important;display:block!important;position:absolute!important;top:-16px!important;left:50%!important;width:52px!important;height:52px!important;
  border-radius:50%!important;box-sizing:border-box!important;transform:translateX(-50%)!important;border:4px solid var(--b-page)!important;background:var(--b-acc)!important;box-shadow:0 2px 6px rgba(0,0,0,.12)!important;animation:none!important;z-index:0!important}
html[data-brand] body nav.bottom-nav > .nav-item.active:active::before{transform:translateX(-50%) scale(.94)!important}
html[data-brand] body nav.bottom-nav > .nav-item.active svg{position:absolute!important;top:-2px!important;left:50%!important;width:24px!important;height:24px!important;padding:0!important;margin:0!important;transform:translateX(-50%)!important;animation:none!important;stroke:#fff!important;color:#fff!important;z-index:2!important;background:transparent!important}
html[data-brand] body nav.bottom-nav > .nav-item.active span{position:absolute!important;bottom:9px!important;left:0!important;right:0!important;text-align:center!important;color:var(--b-acc)!important;font-weight:700!important}
html[data-brand] body nav.bottom-nav > #navHome:not(.active)::before{display:none!important}
html[data-brand] body nav.bottom-nav > #navHome:not(.active) svg{position:static!important;transform:none!important;width:22px!important;height:22px!important;stroke:currentColor!important;color:var(--b-muted)!important}
html[data-brand] body nav.bottom-nav > #navHome::after{color:var(--b-muted)!important;font-size:11px!important;font-weight:500!important;line-height:1!important;margin:0!important}
html[data-brand] body nav.bottom-nav > #navHome.active::after{position:absolute!important;bottom:9px!important;left:0!important;right:0!important;text-align:center!important;color:var(--b-acc)!important;font-weight:700!important}

/* ---------- G. Used stock stats: value on top, label below, three equal boxes ---------- */
html[data-brand] .sk-used-stats-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;padding:0!important;margin:10px 0 12px!important;background:transparent!important;box-shadow:none!important;border:0!important}
html[data-brand] .sk-used-stat-card{display:flex!important;flex-direction:column-reverse!important;align-items:flex-start!important;justify-content:center!important;gap:3px!important;min-width:0!important;min-height:64px!important;padding:12px 14px!important;margin:0!important;border-radius:14px!important;width:auto!important}
html[data-brand] .sk-used-stat-card .sk-used-stat-icon{display:none!important}
html[data-brand] .sk-used-stat-card > div{display:flex!important;flex-direction:column-reverse!important;align-items:flex-start!important;gap:3px!important;min-width:0!important;width:100%!important;text-align:left!important}
html[data-brand] .sk-used-stat-card strong{font-size:18px!important;font-weight:700!important;line-height:1.2!important;color:var(--b-text)!important}
html[data-brand] .sk-used-stat-card small{font-size:12px!important;font-weight:500!important;line-height:1.2!important;color:var(--b-muted)!important;white-space:normal!important;overflow-wrap:anywhere!important;max-width:100%!important}

/* ---------- H. Never un-hide what the app hid: these get display:!important above, so an inline display:none must still win ---------- */
html[data-brand] body:not(#_a):not(#_b) :is(.form-label,.nav-item,.sk-home-v2-metric,.sk-home-v2-feature,.search-wrapper,.sk-home-v2-features,.sk-home-v2-metrics,.sk-home-v2-card-head,.sk-dmy,.sk-home-v2-metric-copy,.sk-home-v2-feature-copy,.sk-home-v2-metric-icon,.home-search-scan-btn,.box-photo-scan-btn,.sk-home-v2-card-head *):is([style*="display: none"],[style*="display:none"]),
html[data-brand] body:not(#_a):not(#_b) #headerSearchRow > button:is([style*="display: none"],[style*="display:none"]){display:none!important}

/* ======================= V5.20.85: polish round ======================= */

/* ---------- I. Rows view (the grid / rows button) must really change the Shop Tools layout ---------- */
html[data-brand][data-sk-layout="rows"] .sk-home-v2-features{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
html[data-brand][data-sk-layout="rows"] .sk-home-v2-feature{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:12px!important;
  min-height:56px!important;height:auto!important;padding:10px 14px!important;margin:0!important;text-align:left!important;background:var(--b-surf)!important;border:0!important;border-radius:14px!important;box-shadow:var(--b-shadow)!important}
html[data-brand][data-sk-layout="rows"] .sk-home-v2-feature-icon{width:36px!important;height:36px!important;flex:0 0 36px!important;border-radius:10px!important;margin:0!important}
html[data-brand][data-sk-layout="rows"] .sk-home-v2-feature-copy{display:flex!important;flex-direction:column!important;align-items:flex-start!important;min-width:0!important;flex:1 1 auto!important}
html[data-brand][data-sk-layout="rows"] .sk-home-v2-feature-copy b{font-size:14px!important;font-weight:600!important;text-align:left!important;color:var(--b-text)!important}
html[data-brand][data-sk-layout="rows"] .sk-home-v2-feature-copy small{display:block!important;font-size:12px!important;color:var(--b-muted)!important;text-align:left!important;margin:2px 0 0!important}
html[data-brand]:is([data-theme="dark"],[data-ui-mode="dark"])[data-sk-layout="rows"] .sk-home-v2-feature{border:1px solid var(--b-line)!important}
html[data-brand] .sk-home-v2-card-head{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:8px!important}
html[data-brand] .sk-home-v2-card-head > div{display:flex!important;align-items:center!important;gap:8px!important}

/* ---------- J. Bottom bar: light elevation, no muddy shadow; no fade band above it ---------- */
html[data-brand] body nav.bottom-nav{box-shadow:0 -2px 10px rgba(0,0,0,.04)!important;border-top:1px solid #F1F5F9!important}
html[data-brand]:is([data-theme="dark"],[data-ui-mode="dark"]) body nav.bottom-nav{box-shadow:none!important;border-top:1px solid rgba(255,255,255,.06)!important}
html[data-brand] body nav.bottom-nav > .nav-item.active::before{box-shadow:0 2px 6px rgba(var(--b-rgb),.25)!important}
html[data-brand] body .modal-overlay.active > .modal-sheet.sk-scrolls{-webkit-mask-image:none!important;mask-image:none!important}
html[data-brand] #skNavFade{display:none!important}

/* ---------- K. Page headers span the full width (no gap on the right where the page showed through) ---------- */
html[data-brand] .modal-overlay > .modal-sheet.sk-flatsheet > :is(.modal-title:first-of-type,.skpro-head,.sk-used-stock-header,.repair-spares-head,.tools-others-head){
  width:calc(100% + var(--sk-pl,8px) + var(--sk-pr,8px))!important;max-width:none!important;box-sizing:border-box!important;
  margin-left:calc(-1 * var(--sk-pl,8px))!important;margin-right:calc(-1 * var(--sk-pr,8px))!important;background:var(--b-page)!important;border:0!important;box-shadow:none!important;border-radius:0!important}

/* ---------- L. One button family everywhere ---------- */
/* primary: Save / Bill / WhatsApp PDF / Download / Print / Start ... */
html[data-brand] :is(.bill-action-btn,.skpk-save,.sk-used-save-primary){background:var(--b-acc)!important;color:#fff!important;border:0!important;border-radius:10px!important;box-shadow:none!important;font-weight:600!important;background-image:none!important}
html[data-brand] :is(.bill-action-btn,.skpk-save) *{color:#fff!important}
/* secondary: Clear / Export / Import ... */
html[data-brand] :is(.sk-used-action-secondary,.sk-used-filter-reset){min-height:44px!important;border-radius:10px!important;background:#F1F5F9!important;color:#334155!important;border:1px solid #E2E8F0!important;box-shadow:none!important;font-weight:600!important}
html[data-brand]:is([data-theme="dark"],[data-ui-mode="dark"]) :is(.sk-used-action-secondary,.sk-used-filter-reset){background:var(--b-track)!important;color:var(--b-text)!important;border-color:var(--b-line)!important}
html[data-brand] :is(.sk-used-action-secondary,.sk-used-filter-reset) svg{stroke:currentColor!important}
/* segmented tabs: pill track AND pill selected button (no square button inside a round track) */
html[data-brand] :is(.mobile-type-tabs,.sk-rj-tabs,.billing-tabs,.skot-tabs,.skw-tabs,.skspr-segs,.skpl-seg,.skdl2-tabs,.sk-used-view-chips,.skcp-filters,.skpk-seg,[class*="-seg"]:not(button):not(.skp-seg)){border-radius:999px!important}
html[data-brand] :is(.mobile-type-tabs,.sk-rj-tabs,.billing-tabs,.skot-tabs,.skw-tabs,.skspr-segs,.skpl-seg,.skdl2-tabs,.sk-used-view-chips,.skcp-filters,.skpk-seg,[class*="-seg"]:not(button):not(.skp-seg)) > :is(button,a,label,span[role="button"]){border-radius:999px!important}
/* choice chips (Paid by: Cash / GPay / EMI / Credit, category chips): pill, accent when selected */
html[data-brand] :is(.skl-chip,.skpk-chip,.sk-chip,.skld-chip){border-radius:999px!important;box-shadow:none!important}
html[data-brand] :is(.skl-chip,.skpk-chip,.sk-chip,.skld-chip):is(.on,.active,[aria-pressed="true"]){background:var(--b-tint)!important;color:var(--b-acc)!important;border-color:var(--b-acc)!important}

/* ---------- M. No light band above the bottom bar: full pages now reach the bar (it was sized for the old 66px floating bar + gap) ---------- */
html[data-brand] body .modal-overlay.active:not(.sk-pop-center):has(> .modal-sheet.sk-flatsheet){padding-bottom:calc(60px + env(safe-area-inset-bottom,0px))!important}
html[data-brand] body .modal-overlay.active:not(.sk-pop-center) > .modal-sheet.sk-flatsheet{margin-bottom:0!important}

/* the "Clear All Orders" style button was drawn as a primary button with dark text - it is a secondary action */
html[data-brand] .submit-btn:is([style*="pill-bg"],[style*="card-bg"]){background:#F1F5F9!important;color:#334155!important;border:1px solid #E2E8F0!important;box-shadow:none!important}
html[data-brand]:is([data-theme="dark"],[data-ui-mode="dark"]) .submit-btn:is([style*="pill-bg"],[style*="card-bg"]){background:var(--b-track)!important;color:var(--b-text)!important;border-color:var(--b-line)!important}

/* ---------- N. Accessories box view: small icon, name gets the room (2 lines instead of "Tempe...") ---------- */
html[data-brand] .skac-box{padding:10px!important;border-radius:14px!important;box-shadow:var(--b-shadow)!important}
html[data-brand] .skac-box .skpk-pod{width:30px!important;height:30px!important;min-width:30px!important;flex:0 0 30px!important;border-radius:9px!important;margin:0!important}
html[data-brand] .skac-box .skpk-pod svg{width:16px!important;height:16px!important}
/* icon + menu on the first row, the name gets the FULL card width below them - so words never split ("Earphone / s") */
html[data-brand] .skac-box > div:first-child{display:grid!important;grid-template-columns:30px minmax(0,1fr) 24px!important;column-gap:8px!important;row-gap:6px!important;align-items:center!important}
html[data-brand] .skac-box > div:first-child > .skpk-pod{grid-column:1!important;grid-row:1!important}
html[data-brand] .skac-box > div:first-child > .skpk-dots{grid-column:3!important;grid-row:1!important;justify-self:end!important}
html[data-brand] .skac-box > div:first-child > :is(button[data-ac="edit"],.skpd-row){grid-column:1 / -1!important;grid-row:2!important;padding:0!important;margin:0!important;width:100%!important;min-width:0!important}
html[data-brand] .skac-box b{white-space:normal!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important;overflow-wrap:break-word!important;word-break:normal!important;font-size:13px!important;line-height:1.25!important;font-weight:600!important}
html[data-brand] .skac-box small{font-size:11.5px!important;margin-top:2px!important}
html[data-brand] .skac-box .skpk-dots{width:24px!important;height:24px!important;min-width:24px!important;flex:0 0 24px!important;margin:-2px -4px 0 0!important}

/* ======================= V5.20.86 ======================= */

/* ---------- P. One box corner everywhere: 14px, like the Accessories boxes (a survey of every page found 10-24px mixed) ---------- */
html[data-brand] :is(.bill-section,.sk-home-v2-recent-card,.sk-order-item-v39,.skl-hero,.skl-sug,.skot-manual,.skst-group,.sk-split-box,.sk-signature-panel,.bill-action-grid,.sk-home-v2-hero,.st-tpl,.st-note,.sk-rj-card,.skcp-row,.skdr-card,.sk-invoice-paper){border-radius:14px!important}
html[data-brand]:not([data-sk-layout="rows"]) #skUsedStockModal td.sk-uc{border-radius:14px!important}
/* Tools & Others templates: the same white box as everywhere else (icon tiles keep their colours) */
html[data-brand] .st-tpl{background:var(--b-surf)!important;border:1px solid var(--b-line)!important;box-shadow:var(--b-shadow)!important}

/* ---------- Q. Menu > RECENT / PINNED: two chips per line, each the same width ---------- */
html[data-brand] #skMrHost .skmr-chips{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important}
html[data-brand] #skMrHost .skmr-chip{width:100%!important;min-width:0!important;height:auto!important;min-height:40px!important;padding:6px 12px!important;margin:0!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;
  white-space:normal!important;line-height:1.2!important;overflow-wrap:break-word!important;font-size:12.5px!important;font-weight:600!important;border-radius:20px!important;box-shadow:none!important}

/* ---------- R. Modern choice sheet (replaces the phone's own grey <select> list - js/features/brand-theme.js) ---------- */
html[data-brand] .skb-sheet{position:fixed!important;inset:0!important;z-index:2147483646!important;background:rgba(15,23,42,.38)!important;display:flex!important;align-items:flex-end!important;justify-content:center!important;padding:0 8px calc(60px + 12px + env(safe-area-inset-bottom,0px))!important;box-sizing:border-box!important;animation:skbFade .15s ease!important}
html[data-brand] .skb-sheet-in{width:100%!important;max-width:520px!important;max-height:min(65dvh,520px)!important;overflow-y:auto!important;box-sizing:border-box!important;background:var(--b-surf)!important;color:var(--b-text)!important;border-radius:20px!important;padding:8px!important;box-shadow:0 -8px 30px rgba(0,0,0,.18)!important;animation:skbUp .2s ease!important}
html[data-brand] .skb-grab{width:40px!important;height:4px!important;border-radius:4px!important;background:var(--b-line)!important;margin:4px auto 8px!important}
html[data-brand] .skb-title{font-size:15px!important;font-weight:700!important;margin:2px 6px 8px!important;color:var(--b-text)!important}
html[data-brand] .skb-opt{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;width:100%!important;min-height:48px!important;padding:0 14px!important;margin:0 0 4px!important;border:0!important;border-radius:12px!important;background:transparent!important;color:var(--b-text)!important;font:inherit!important;font-size:15px!important;font-weight:500!important;text-align:left!important;cursor:pointer!important}
html[data-brand] .skb-opt:active{background:var(--b-track)!important}
html[data-brand] .skb-opt.on{background:var(--b-tint)!important;color:var(--b-acc)!important;font-weight:700!important}
html[data-brand] .skb-opt .skb-ck{width:20px!important;height:20px!important;border-radius:50%!important;border:2px solid var(--b-line)!important;box-sizing:border-box!important;flex:0 0 20px!important}
html[data-brand] .skb-opt.on .skb-ck{border:6px solid var(--b-acc)!important}
@keyframes skbFade{from{opacity:0}to{opacity:1}}@keyframes skbUp{from{transform:translateY(40px)}to{transform:none}}

/* ---------- S. Used Mobile Stock box = the Accessories box: icon + ⋮ on top, full-width name, seller, then price | Bill (or Sold), IMEI ----------
   Pure CSS: the inner wrappers become display:contents so their pieces sit on one grid - no markup / handler changes. */
html[data-brand]:not([data-sk-layout="rows"]) #skUsedStockModal td.sk-uc{display:grid!important;grid-template-columns:30px minmax(0,1fr) auto!important;
  grid-template-areas:"thumb . menu" "name name name" "dealer dealer dealer" "price price act" "imei imei imei"!important;column-gap:0!important;row-gap:4px!important;
  align-items:center!important;align-content:start!important;min-height:140px!important;padding:12px!important;box-sizing:border-box!important;border-radius:14px!important;
  background:var(--b-surf)!important;border:1px solid var(--b-line)!important;box-shadow:0 1px 3px rgba(0,0,0,.04)!important}
html[data-brand]:not([data-sk-layout="rows"]) #skUsedStockModal td.sk-uc :is(.sk-uc-top,.sk-uc-main,.sk-uc-side,.sk-uc-bottom,.sk-uc-acts){display:contents!important}
html[data-brand]:not([data-sk-layout="rows"]) #skUsedStockModal td.sk-uc .sk-uc-thumb{grid-area:thumb!important;width:30px!important;height:30px!important;min-width:30px!important;margin:0!important;border-radius:9px!important;position:static!important}
html[data-brand]:not([data-sk-layout="rows"]) #skUsedStockModal td.sk-uc .sk-uc-thumb svg{width:16px!important;height:20px!important}
html[data-brand]:not([data-sk-layout="rows"]) #skUsedStockModal td.sk-uc .sk-used-row-menu{grid-area:menu!important;justify-self:end!important;margin:0 -4px 0 0!important}
html[data-brand]:not([data-sk-layout="rows"]) #skUsedStockModal td.sk-uc .sk-used-row-menu summary{width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important}
html[data-brand]:not([data-sk-layout="rows"]) #skUsedStockModal td.sk-uc .sk-uc-name{grid-area:name!important;margin:4px 0 0!important;font-size:13px!important;font-weight:600!important;line-height:1.25!important;
  white-space:normal!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important;overflow-wrap:break-word!important}
html[data-brand]:not([data-sk-layout="rows"]) #skUsedStockModal td.sk-uc .sk-uc-no{font-size:10.5px!important;padding:1px 6px!important;margin-right:4px!important;vertical-align:1px!important}
html[data-brand]:not([data-sk-layout="rows"]) #skUsedStockModal td.sk-uc .sk-uc-dealer{grid-area:dealer!important;font-size:11.5px!important;line-height:1.3!important;color:var(--b-muted)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;margin:0!important}
html[data-brand]:not([data-sk-layout="rows"]) #skUsedStockModal td.sk-uc :is(.sk-uc-price,.sk-used-status,.sk-uc-bill){margin-top:4px!important}
html[data-brand]:not([data-sk-layout="rows"]) #skUsedStockModal td.sk-uc .sk-uc-price{grid-area:price!important;font-size:14px!important;font-weight:700!important;padding-top:8px!important;border-top:1px solid var(--b-line)!important;align-self:stretch!important;display:flex!important;align-items:center!important}
html[data-brand]:not([data-sk-layout="rows"]) #skUsedStockModal td.sk-uc :is(.sk-used-status,.sk-uc-bill){grid-area:act!important;justify-self:stretch!important;padding-top:0!important}
html[data-brand]:not([data-sk-layout="rows"]) #skUsedStockModal td.sk-uc :is(.sk-used-status,.sk-uc-bill){box-shadow:0 -1px 0 0 var(--b-line)!important}
html[data-brand]:not([data-sk-layout="rows"]) #skUsedStockModal td.sk-uc .sk-uc-bill{height:28px!important;min-height:28px!important;padding:0 10px!important;font-size:12px!important;border-radius:10px!important;align-self:end!important}
html[data-brand]:not([data-sk-layout="rows"]) #skUsedStockModal td.sk-uc:has(.sk-uc-bill) .sk-used-status{display:none!important}
html[data-brand]:not([data-sk-layout="rows"]) #skUsedStockModal td.sk-uc .sk-uc-imei{grid-area:imei!important;font-size:11px!important;color:var(--b-muted)!important;margin-top:2px!important;overflow-wrap:anywhere!important}

/* ---------- T. Short popups get a dimmed backdrop (the brand page colour was painting a solid sheet behind them) ---------- */
html[data-brand] body .modal-overlay.active.sk-pop-center:not(#skLoginModal):not(#orderModal),html[data-brand] body #skPdMenuOv{background:rgba(15,23,42,.38)!important;backdrop-filter:none!important}
/* the popup itself stays solid (some sheets inherit their background from the overlay) - Order List is a page, it keeps the page colour */
html[data-brand] body .modal-overlay.active.sk-pop-center:not(#skLoginModal):not(#orderModal) > .modal-sheet{background:var(--b-surf)!important;background-image:none!important}
/* Purchase Details ⋮ menu: the same action sheet as the other menus - full-width rows, above the bottom bar */
html[data-brand] body #skPdMenuOv{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-end!important;padding:0 8px calc(60px + 12px + env(safe-area-inset-bottom,0px))!important;box-sizing:border-box!important}
html[data-brand] body #skPdMenuOv > .modal-sheet{align-self:center!important;flex:0 0 auto!important;height:auto!important;max-height:70dvh!important;width:100%!important;max-width:520px!important;padding:8px!important;border-radius:20px!important;background:var(--b-surf)!important;border:0!important;box-shadow:0 10px 30px rgba(0,0,0,.18)!important;margin:0 auto!important}
html[data-brand] body #skPdMenuOv > .modal-sheet > div{display:none!important}
html[data-brand] body #skPdMenuOv > .modal-sheet > button{display:flex!important;align-items:center!important;min-height:48px!important;padding:0 14px!important;border-radius:12px!important;font-size:15px!important;font-weight:600!important}
html[data-brand] body #skPdMenuOv > .modal-sheet > button:active{background:var(--b-track)!important}

/* ---------- U. List (Rows) cards on Accessories / Purchase Details / Used Stock: one row size ---------- */
html[data-brand] :is(#skAccessoriesPage .skpk-row,#skPurchaseDetailsModal .skl-sug:not(.skac-box)){min-height:74px!important;padding:12px 16px!important;border-radius:14px!important;box-sizing:border-box!important;
  background:var(--b-surf)!important;border:1px solid var(--b-line)!important;box-shadow:0 1px 3px rgba(0,0,0,.04)!important;display:flex!important;align-items:center!important;gap:12px!important;min-width:0!important}
html[data-brand] #skAccessoriesPage .skpk-row > .skpk-pod{width:44px!important;height:44px!important;flex:0 0 44px!important;border-radius:10px!important}
html[data-brand] #skPurchaseDetailsModal .skl-sug:not(.skac-box) > .skpd-row{padding:0!important}
html[data-brand] :is(#skAccessoriesPage .skpk-row,#skPurchaseDetailsModal .skl-sug:not(.skac-box)) b{font-size:14px!important;font-weight:700!important}
html[data-brand] :is(#skAccessoriesPage .skpk-row,#skPurchaseDetailsModal .skl-sug:not(.skac-box)) small{font-size:12px!important;color:var(--b-muted)!important}
html[data-brand][data-sk-layout="rows"] #skUsedStockModal td.sk-uc{min-height:74px!important;padding:12px 16px!important;border-radius:14px!important;background:var(--b-surf)!important;border:1px solid var(--b-line)!important;box-shadow:0 1px 3px rgba(0,0,0,.04)!important}
/* grid boxes on these pages share the Accessories box look and height */
html[data-brand] :is(.skac-box){min-height:120px!important;box-sizing:border-box!important;background:var(--b-surf)!important;border:1px solid var(--b-line)!important;box-shadow:0 1px 3px rgba(0,0,0,.04)!important}
/* the ⋮ menu always sits on the RIGHT (Rows view too, and on a sold phone that has no Bill button) */
html[data-brand][data-sk-layout="rows"] #skUsedStockModal .sk-uc-acts{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important}
html[data-brand][data-sk-layout="rows"] #skUsedStockModal .sk-uc-acts > .sk-used-row-menu{margin-left:auto!important}

/* ======================= V5.20.87 =======================
   One box on Used Mobile Stock / Accessories / Purchase Details: same size as before, same inner layout everywhere -
   icon + ⋮ on top, name, small line, a FULL-WIDTH grey line, bold price (with Bill / profit beside it), small line under it. */
/* Used Mobile Stock: the grey line was the price's own top border, so it stopped where the Bill button starts.
   It is now one line across the whole box, and the Bill button sits clear below it. */
html[data-brand]:not([data-sk-layout="rows"]) #skUsedStockModal td.sk-uc .sk-uc-price{border-top:0!important;padding-top:12px!important}
html[data-brand]:not([data-sk-layout="rows"]) #skUsedStockModal td.sk-uc :is(.sk-used-status,.sk-uc-bill){box-shadow:none!important}
html[data-brand]:not([data-sk-layout="rows"]) #skUsedStockModal td.sk-uc::before{content:""!important;display:block!important;grid-column:1 / -1!important;grid-row:4!important;align-self:start!important;height:1px!important;margin-top:4px!important;background:var(--b-line)!important;pointer-events:none!important}
/* Accessories + Purchase Details boxes: the ⋮ is the same size and shape as on Used Mobile Stock */
html[data-brand] .skac-box > div:first-child{grid-template-columns:30px minmax(0,1fr) 28px!important}
html[data-brand] .skac-box .skpk-dots.skbx-dots{width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;flex:0 0 28px!important;margin:-2px -4px 0 0!important;display:grid!important;place-items:center!important;font-size:0!important;color:var(--b-text)!important;background:transparent!important}
html[data-brand] .skac-box .skpk-dots.skbx-dots svg{width:16px!important;height:16px!important;display:block!important;overflow:visible!important;fill:none!important;stroke:#31527f!important;stroke-width:2.4!important;stroke-linecap:round!important;stroke-linejoin:round!important}
html[data-brand]:is([data-theme="dark"],[data-ui-mode="dark"]) .skac-box .skpk-dots.skbx-dots svg{stroke:currentColor!important}
/* line, bold price, small line under it */
html[data-brand] .skac-box > .skbx-row{margin-top:8px!important;padding-top:8px!important;border-top:1px solid var(--b-line)!important;min-height:22px!important}
html[data-brand] .skac-box b.skbx-price{display:block!important;-webkit-line-clamp:unset!important;white-space:nowrap!important;font-size:14px!important;line-height:1.3!important;font-weight:700!important}
html[data-brand] .skac-box small.skbx-foot{display:block!important;margin-top:6px!important;font-size:11.5px!important;line-height:1.3!important}
html[data-brand] .skac-box .skbx-chip{font-size:11px!important;line-height:1.3!important}
html[data-brand]:is([data-theme="dark"],[data-ui-mode="dark"]) .skac-box .skbx-chip{background:transparent!important;border:1px solid currentColor!important}

/* ======================= V5.20.88 =======================
   One corner size for boxes: 14px, the size most pages already use. These were the odd ones out
   (9 / 12 / 16 / 20 / 22px on Accessories, Repair Details, Dealer Payments, Orders and Customer Credit). */
html[data-brand] :is(.skpk-amtrow,.rjd,.rjd-problem,.rjd-card,.rjd-hero,.skdl3-sum,.skdl-start,.skdl2-list,.sk-order-empty-v39,.skcp-stat){border-radius:14px!important}
}
