/* SK MOBILES V5.20.58 - popups, confirm boxes and snackbars.
   Root cause of "letters touching the box edge": style.css has a global reset  *:not(#printableInvoiceCard):not(#printableInvoiceCard *){padding:0}
   whose ID selector beats every normal class rule, so any popup written with plain padding lost its padding.
   Everything here uses !important on purpose. Works in light and dark, never covers the bottom navigation. */
:root{--sk-pop-bg:#ffffff;--sk-pop-text:#0f172a;--sk-pop-muted:#475569;--sk-pop-line:rgba(15,23,42,.14);--sk-pop-shadow:0 18px 50px rgba(15,23,42,.28)}
html[data-ui-mode="dark"]{--sk-pop-bg:#18221f;--sk-pop-text:#f1f5f9;--sk-pop-muted:#b6c2bd;--sk-pop-line:rgba(255,255,255,.16);--sk-pop-shadow:0 18px 50px rgba(0,0,0,.6)}

/* ---- confirm popup (skAsk): Delete this entry? ---- */
html body .skask{padding:16px 16px calc(var(--nav-h,66px) + 34px + env(safe-area-inset-bottom,0px)) !important;background:rgba(2,6,12,.55) !important;align-items:flex-end !important}
html body .skask-card{box-sizing:border-box !important;width:100% !important;max-width:380px !important;padding:20px 18px 16px !important;border-radius:22px !important;background:var(--sk-pop-bg) !important;color:var(--sk-pop-text) !important;border:1px solid var(--sk-pop-line) !important;box-shadow:var(--sk-pop-shadow) !important;overflow-wrap:anywhere;word-break:break-word}
html body .skask-t{padding:0 !important;margin:0 0 8px !important;font-size:17px !important;line-height:1.3 !important;font-weight:800 !important;color:var(--sk-pop-text) !important}
html body .skask-b{padding:0 !important;margin:0 0 6px !important;font-size:14px !important;line-height:1.5 !important;color:var(--sk-pop-muted) !important}
html body .skask-r{display:flex !important;gap:10px !important;margin:14px 0 0 !important;padding:0 !important}
html body .skask-r button{flex:1 1 0 !important;min-width:0 !important;min-height:46px !important;padding:10px 12px !important;border-radius:14px !important;border:1px solid var(--sk-pop-line) !important;background:transparent !important;color:var(--sk-pop-text) !important;font-weight:800 !important;font-size:15px !important;box-shadow:none !important}
html body .skask-r .skask-ok{background:#dc2626 !important;border-color:#dc2626 !important;color:#fff !important}

/* ---- snackbar (Saved / Undo): inside pages, above the bottom navigation ---- */
html body .skpk-snack{box-sizing:border-box !important;left:14px !important;right:14px !important;bottom:calc(var(--nav-h,66px) + 26px + env(safe-area-inset-bottom,0px)) !important;padding:12px 12px 12px 18px !important;gap:12px !important;border-radius:16px !important;background:#0f172a !important;color:#fff !important;border:1px solid rgba(255,255,255,.14) !important;font-size:14px !important;line-height:1.3 !important;font-weight:700 !important;box-shadow:0 10px 28px rgba(0,0,0,.4) !important;overflow-wrap:anywhere}
html body .skpk-snack>span{flex:1 1 auto;min-width:0;padding:0 !important}
html body .skpk-snack button{flex:0 0 auto !important;min-height:38px !important;padding:8px 18px !important;border-radius:12px !important;background:#fff !important;color:#0f172a !important;font-weight:800 !important;font-size:14px !important}

/* ---- top toast: keep inside the screen, wrap long text ---- */
html body .toast{box-sizing:border-box !important;top:calc(env(safe-area-inset-top,0px) + 14px) !important;max-width:calc(100vw - 28px) !important;width:max-content !important;padding:12px 18px !important;border-radius:16px !important;font-size:14px !important;line-height:1.4 !important;text-align:center !important;overflow-wrap:anywhere;word-break:break-word;white-space:normal !important}

/* ---- small boxes found by the audit whose text touched the edge ---- */
html:not(#a) body .pay-mode-btn{padding:9px 4px !important}
/* V5.20.82: Customize Bottom Menu - 14px side padding squeezed the labels ("Acces sories" broke in two) and the rows sat tight against each other */
html body .sknc-chip{padding:9px 4px !important;white-space:nowrap !important;overflow:hidden !important;text-overflow:clip !important;font-size:9.5px !important;letter-spacing:-.2px !important}
html body #skNavCustomModal .sknc-hint{margin:0 0 14px !important}
html body #skNavCustomModal .sknc-preview{margin:0 0 18px !important;gap:6px !important}
html body #skNavCustomModal .sknc-row{margin:0 0 12px !important;gap:12px !important}
html body #skNavCustomModal .sknc-actions{margin:18px 0 0 !important;gap:10px !important}
html body .sk-rj-empty,html body .sk-order-empty-v39,html body .skpk-empty{padding:22px 14px !important;text-align:center !important}
html body #skAdminCurrentRole{padding:2px 0 !important}

/* V5.20.59 */
html body .sk-cp-row{display:grid !important;grid-template-columns:1fr 1fr;gap:10px;align-items:start}
html body .sk-cp-row .form-group{margin:0 0 10px !important;min-width:0}
html body .sk-cp-catnew{display:flex;gap:8px;margin:0 0 10px !important}
html body .sk-cp-catnew .form-input{flex:1;min-width:0}
html body .sk-cp-catadd{padding:0 16px !important;border:0;border-radius:12px;background:var(--primary,#2563eb);color:#fff;font-weight:700}
html body .sk-note-clear{display:inline-flex;align-items:center;margin:8px 0 0 !important;padding:7px 14px !important;border:1px solid var(--danger,#dc2626);border-radius:10px;background:transparent;color:var(--danger,#dc2626);font-size:.8rem;font-weight:700}
html body .sk-seg{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}
html body .sk-seg button{padding:9px 4px !important;border:1px solid var(--card-border,#cbd5e1);border-radius:10px;background:transparent;color:var(--text,#0f172a);font-size:.72rem;font-weight:700;line-height:1.2}
html body .sk-seg button.on{background:var(--primary,#2563eb);border-color:var(--primary,#2563eb);color:#fff}
html body .skask.skask-info .skask-ok{background:var(--primary,#2563eb) !important;color:#fff !important}
html body .sk-split-box{padding:12px 14px !important;margin:10px 0 4px !important}
html body .sk-split-tog{display:flex;align-items:center;gap:10px;padding:2px 0 !important}
html body .sk-split-fields{margin-top:10px !important}
html body .skba-man{display:grid;grid-template-columns:1.6fr 1fr;gap:8px;margin-top:8px}

/* Settings page: no scroll flicker (blur layers + repaint of sticky header removed) */
html body #settingsModal,html body #settingsModal *{-webkit-backdrop-filter:none !important;backdrop-filter:none !important}
html body #settingsModal .modal-sheet{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;transform:translateZ(0);backface-visibility:hidden}
html body #settingsModal .modal-sheet::after,html body #settingsModal .modal-sheet::before{display:none !important}
/* V5.20.81: Purchase Details has the same modal-sheet-is-the-scroller structure as Settings above —
   give it the same smooth, properly-bouncing momentum scroll (it was missing this rule). */
html body #skPurchaseDetailsModal .modal-sheet{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;transform:translateZ(0);backface-visibility:hidden}
html body #settingsModal .st-section,html body #settingsModal .st-profile,html body #settingsModal .st-mode{transition:none !important;animation:none !important}
html[data-ui-header="glass"] body #settingsModal .sk-livepv-hdr{background:color-mix(in srgb,var(--primary,#2563eb) 88%,#000) !important}
/* Bottom nav: selected circle fades in smoothly instead of snapping */

/* Repair Guide: tall sheet so PDF pages are big enough to read */
html body #skRepairGuideModal.active{align-items:flex-start !important;padding-top:calc(env(safe-area-inset-top) + 8px) !important}
html body #skRepairGuideModal .modal-sheet.skrg-sheet{height:calc(100dvh - var(--nav-h,66px) - 44px - env(safe-area-inset-bottom)) !important;max-height:none !important;margin-top:0 !important;overflow-y:auto !important}
html body .skask.skask-info .skask-ok{border-color:transparent !important;box-shadow:none !important}
html body #skSplitOn{min-height:0 !important;max-height:20px !important;line-height:1 !important;-webkit-appearance:checkbox !important;appearance:auto !important;width:20px !important;height:20px !important;min-width:20px !important;flex:0 0 20px !important;padding:0 !important;margin:0 !important;background:transparent !important;border:0 !important;box-shadow:none !important;border-radius:0 !important;accent-color:var(--primary,#2563eb)}
html body .sk-split-tog{gap:12px !important}

/* Bottom nav: circle and icon switch together, no lag */
html:not(#n1#n2):not([data-sk-premium="off"]) body nav.bottom-nav > .nav-item svg,html:not(#n1#n2) body nav.bottom-nav > .nav-item svg,html:not(#n1#n2) body nav.bottom-nav > .nav-item::before{transition:none !important;animation:none !important}
html body nav.bottom-nav > .nav-item.sk-nav-tap,html body nav.bottom-nav > .nav-item:active{animation:none !important;transform:none !important}

/* ---------- V5.20.88: the app popup also shows messages (one OK button) and asks for a line of text ---------- */
html body .skask-b{max-height:44vh !important;overflow-y:auto !important;overscroll-behavior:contain !important;word-break:break-word !important}
html body .skask.skask-alert .skask-r button{flex:1 1 100% !important}
html body .skask .skask-inp{display:block !important;box-sizing:border-box !important;width:100% !important;min-height:46px !important;margin:10px 0 0 !important;padding:10px 12px !important;border-radius:12px !important;border:1px solid var(--sk-pop-line) !important;background:transparent !important;color:var(--sk-pop-text) !important;font:inherit !important;font-size:16px !important}
html body .skask .skask-inp:focus{outline:2px solid var(--primary,#2563eb) !important;outline-offset:1px !important}
