/* SK MOBILES — fit fixes (loaded last).
   1. A small icon badge in front of a label text is aligned with the text (one line, centred) instead of floating above / below it.
   2. Repair Jobs: Search on its own row, the two dates side by side, so "DD/MM/YYYY" and the calendar button no longer cut each other.
   3. Long names / Tamil text / words wrap INSIDE their box instead of running out of it.
   4. Placeholder text is scaled by js/features/fit-text.js so it fits its field (here: only the smooth transition). */
html body label:has(> .sk-fi){display:flex;align-items:center;gap:6px;min-width:0;line-height:1.25}
html body label:has(> .sk-fi) > .sk-fi{margin:0;vertical-align:baseline;flex:0 0 20px}

@media (max-width:560px){
  html body #skRepairJobsModal #skRjHistoryView .sk-rj-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  html body #skRepairJobsModal #skRjHistoryView .sk-rj-filters > div:first-child{grid-column:1 / -1!important}
  html body #skRepairJobsModal #skRjHistoryView .sk-rj-filters > div{min-width:0}
}

/* zero-specificity safety net: text may break inside a box, boxes may shrink */
html body :where(.modal-sheet) :where(span,b,strong,p,label,button,h1,h2,h3,h4,h5,h6,td,th,li,small,a){overflow-wrap:anywhere;min-width:0}
html body :where(.modal-sheet) :where(button){max-width:100%}

input::placeholder,textarea::placeholder{font-size:var(--sk-ph-fs,inherit)}

/* round icon buttons (edit / delete) are circles, not tall ovals: they were stretched to the height of the text buttons next to them */
html:not(#z0#z1#z2#z3#z4#z5#z6#z7#z8#z9#z10#z11#z12#z13#z14#z15#z16#z17#z18#z19) body #skRepairJobsModal :is(.sk-rj-history-actions,.sk-rj-actions) :is(.sk-rj-edit,.sk-rj-delete){
  width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;max-height:44px!important;border-radius:50%!important;align-self:center!important;justify-self:center!important;padding:0!important}

/* very narrow phones: the four buttons of a delivered / ready repair card share the row instead of overflowing it */
@media (max-width:400px){
  html:not(#z0#z1#z2#z3#z4#z5#z6#z7#z8#z9#z10#z11#z12#z13#z14#z15#z16#z17#z18#z19) body #skRepairJobsModal #skRjHistoryView .sk-rj-history-actions{grid-template-columns:44px 44px minmax(0,1fr) minmax(0,1fr)!important}
}
/* a long window title wraps instead of running past the edge */
html body .modal-title > span{white-space:normal!important;min-width:0;flex:1 1 auto;overflow-wrap:anywhere}

/* icons centred in their buttons.
   Edit / delete: the SVG had a side margin and a lowered baseline meant for text lines, which pushed it up-left inside the round button.
   Previous / Next: the text glyphs sit above the text middle, so they are drawn as shapes centred on the label instead. */
html:not(#z0#z1#z2#z3#z4#z5#z6#z7#z8#z9#z10#z11#z12#z13#z14#z15#z16#z17#z18#z19) body #skRepairJobsModal :is(.sk-rj-edit,.sk-rj-delete){display:flex!important;align-items:center!important;justify-content:center!important}
html:not(#z0#z1#z2#z3#z4#z5#z6#z7#z8#z9#z10#z11#z12#z13#z14#z15#z16#z17#z18#z19) body #skRepairJobsModal :is(.sk-rj-edit,.sk-rj-delete) > i{display:flex!important;align-items:center!important;justify-content:center!important;width:22px!important;height:22px!important;margin:0!important;padding:0!important;line-height:1!important}
html:not(#z0#z1#z2#z3#z4#z5#z6#z7#z8#z9#z10#z11#z12#z13#z14#z15#z16#z17#z18#z19) body #skRepairJobsModal :is(.sk-rj-edit,.sk-rj-delete) .skp-ico{margin:0!important;vertical-align:middle!important;width:20px!important;height:20px!important;display:block!important}
html:not(#z0#z1#z2#z3#z4#z5#z6#z7#z8#z9#z10#z11#z12#z13#z14#z15#z16#z17#z18#z19) body #skRepairJobsModal :is(.sk-rj-prev,.sk-rj-next){display:flex!important;align-items:center!important;justify-content:center!important;line-height:1!important}
html:not(#z0#z1#z2#z3#z4#z5#z6#z7#z8#z9#z10#z11#z12#z13#z14#z15#z16#z17#z18#z19) body #skRepairJobsModal :is(.sk-rj-prev,.sk-rj-next) > span{display:block!important;line-height:1!important}
html:not(#z0#z1#z2#z3#z4#z5#z6#z7#z8#z9#z10#z11#z12#z13#z14#z15#z16#z17#z18#z19) body #skRepairJobsModal :is(.sk-rj-prev,.sk-rj-next) > i{display:block!important;flex:0 0 12px!important;width:12px!important;height:14px!important;margin:0!important;padding:0!important;font-size:0!important;line-height:0!important;color:inherit!important;background:currentColor!important}
html:not(#z0#z1#z2#z3#z4#z5#z6#z7#z8#z9#z10#z11#z12#z13#z14#z15#z16#z17#z18#z19) body #skRepairJobsModal .sk-rj-prev > i{clip-path:polygon(100% 0,0 50%,100% 100%)!important}
html:not(#z0#z1#z2#z3#z4#z5#z6#z7#z8#z9#z10#z11#z12#z13#z14#z15#z16#z17#z18#z19) body #skRepairJobsModal .sk-rj-next > i{clip-path:polygon(0 0,100% 50%,0 100%)!important}

/* bottom bar: the pressed look no longer depends on :active (on phones :active can stay on after a tap, so the icon looked held down).
   A short tap pulse is played once by js/features/nav-sync.js instead and always ends on its own. */
html:not(#z0#z1#z2#z3#z4#z5#z6#z7#z8#z9#z10#z11#z12#z13#z14#z15#z16#z17#z18#z19) body nav.bottom-nav > .nav-item:active,html:not(#z0#z1#z2#z3#z4#z5#z6#z7#z8#z9#z10#z11#z12#z13#z14#z15#z16#z17#z18#z19) body nav.bottom-nav > .nav-item:focus{transform:none!important;outline:0!important}
html:not(#z0#z1#z2#z3#z4#z5#z6#z7#z8#z9#z10#z11#z12#z13#z14#z15#z16#z17#z18#z19) body nav.bottom-nav > .nav-item.sk-nav-tap{animation:skNavTap .16s ease-out 1}
@keyframes skNavTap{0%{transform:scale(1)}50%{transform:scale(.94)}100%{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){html:not(#z0#z1#z2#z3#z4#z5#z6#z7#z8#z9#z10#z11#z12#z13#z14#z15#z16#z17#z18#z19) body nav.bottom-nav > .nav-item.sk-nav-tap{animation:none}}

/* login logo: the picture frame is always a true circle (it was stretched to an oval when the box around it was not square).
   Same layer as the premium theme so this rule can override it (layered !important rules beat unlayered ones). */
@layer skp{
html:not(#z0#z1#z2#z3#z4#z5#z6#z7#z8#z9#z10#z11#z12#z13#z14#z15#z16#z17#z18#z19) body #skLoginModal .login-logo-glow > img{width:76px!important;height:76px!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;aspect-ratio:1/1!important;border-radius:50%!important;object-fit:contain!important;align-self:center!important;justify-self:center!important}
@media (max-width:380px){html:not(#z0#z1#z2#z3#z4#z5#z6#z7#z8#z9#z10#z11#z12#z13#z14#z15#z16#z17#z18#z19) body #skLoginModal .login-logo-glow > img{width:44px!important;height:44px!important}}
}
