/* it-switch-v1.css: one iOS style on/off switch for the whole site (v672).
   Track 51x31, round, white knob with a soft shadow. On = #34C759, knob right, no border.
   Off = #E9E9EA, knob left. Look only: ids, classes, aria and events of each control are unchanged.
   Compact variant (toolbar chips): 40x24, then 34x20 under 900px. */
:root{
  --sw-w:51px;--sw-h:31px;--sw-pad:2px;--sw-knob:27px;--sw-move:20px;
  --sw-on:#34C759;--sw-off:#E9E9EA;--sw-off-edge:#8E8E93;--sw-focus:#007AFF;
  --sw-shadow:0 3px 8px rgba(0,0,0,.15),0 1px 1px rgba(0,0,0,.16),0 3px 1px rgba(0,0,0,.10);
}
.it-sr-only{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---------- checkbox switches inside labels (generators, editors) ---------- */
label.ige-switch>input[type="checkbox"],label.cee-switch>input[type="checkbox"],
label.rce-switch>input[type="checkbox"],label.ie-switch>input[type="checkbox"],
label.cne-opt-toggle>input[type="checkbox"]{
  -webkit-appearance:none!important;appearance:none!important;position:relative;flex:0 0 auto;
  width:var(--sw-w)!important;height:var(--sw-h)!important;min-height:0!important;min-width:0!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:999px!important;
  background:var(--sw-off)!important;box-shadow:inset 0 0 0 1px var(--sw-off-edge)!important;
  cursor:pointer;transition:background-color .2s ease,box-shadow .2s ease;accent-color:var(--sw-on);
}
label.ige-switch>input[type="checkbox"]::after,label.cee-switch>input[type="checkbox"]::after,
label.rce-switch>input[type="checkbox"]::after,label.ie-switch>input[type="checkbox"]::after,
label.cne-opt-toggle>input[type="checkbox"]::after{
  content:"";position:absolute;top:var(--sw-pad);left:var(--sw-pad);width:var(--sw-knob);height:var(--sw-knob);
  border-radius:50%;background:#fff;box-shadow:var(--sw-shadow);transition:transform .2s ease;
}
label.ige-switch>input[type="checkbox"]:checked,label.cee-switch>input[type="checkbox"]:checked,
label.rce-switch>input[type="checkbox"]:checked,label.ie-switch>input[type="checkbox"]:checked,
label.cne-opt-toggle>input[type="checkbox"]:checked{background:var(--sw-on)!important;box-shadow:none!important}
label.ige-switch>input[type="checkbox"]:checked::after,label.cee-switch>input[type="checkbox"]:checked::after,
label.rce-switch>input[type="checkbox"]:checked::after,label.ie-switch>input[type="checkbox"]:checked::after,
label.cne-opt-toggle>input[type="checkbox"]:checked::after{transform:translateX(var(--sw-move))}
label.ige-switch>input[type="checkbox"]:focus-visible,label.cee-switch>input[type="checkbox"]:focus-visible,
label.rce-switch>input[type="checkbox"]:focus-visible,label.ie-switch>input[type="checkbox"]:focus-visible,
label.cne-opt-toggle>input[type="checkbox"]:focus-visible{outline:2px solid var(--sw-focus);outline-offset:2px}
label.ige-switch>input[type="checkbox"]:disabled,label.cee-switch>input[type="checkbox"]:disabled,
label.rce-switch>input[type="checkbox"]:disabled,label.ie-switch>input[type="checkbox"]:disabled,
label.cne-opt-toggle>input[type="checkbox"]:disabled{opacity:.5;cursor:default}
label.cne-opt-toggle{gap:12px;min-height:44px}

/* ---------- late fees (account) and quote follow-ups: input + .X-track ---------- */
.llf-sw .llf-track,.qf-sw .qf-track{
  width:var(--sw-w)!important;height:var(--sw-h)!important;border-radius:999px!important;
  background:var(--sw-off)!important;box-shadow:inset 0 0 0 1px var(--sw-off-edge);transition:background-color .2s ease,box-shadow .2s ease!important;
}
.llf-sw .llf-track::after,.qf-sw .qf-track::after{
  top:var(--sw-pad)!important;left:var(--sw-pad)!important;width:var(--sw-knob)!important;height:var(--sw-knob)!important;
  box-shadow:var(--sw-shadow);transition:transform .2s ease!important;
}
.llf-sw input:checked+.llf-track,.qf-sw input:checked+.qf-track{background:var(--sw-on)!important;box-shadow:none}
.llf-sw input:checked+.llf-track::after,.qf-sw input:checked+.qf-track::after{transform:translateX(var(--sw-move))!important}
.llf-sw input:focus-visible+.llf-track,.qf-sw input:focus-visible+.qf-track{outline:2px solid var(--sw-focus)!important;outline-offset:2px}
.llf-sw,.qf-sw{min-height:44px}

/* ---------- client page buttons (role=switch) ---------- */
.cl-sw{padding:0!important;border:0!important;background:transparent!important;gap:0!important;min-width:51px}
.cl-sw .cl-sw-k{width:var(--sw-w)!important;height:var(--sw-h)!important;background:var(--sw-on)!important;
  transition:background-color .2s ease,box-shadow .2s ease}
.cl-sw .cl-sw-k:after{top:var(--sw-pad)!important;left:var(--sw-pad)!important;width:var(--sw-knob)!important;height:var(--sw-knob)!important;
  background:#fff;box-shadow:var(--sw-shadow);transform:translateX(var(--sw-move));transition:transform .2s ease}
.cl-sw[aria-checked="false"] .cl-sw-k{background:var(--sw-off)!important;box-shadow:inset 0 0 0 1px var(--sw-off-edge)}
.cl-sw[aria-checked="false"] .cl-sw-k:after{left:var(--sw-pad)!important;transform:none}
.cl-sw .cl-sw-t{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.cl-sw:focus-visible{outline:2px solid var(--sw-focus)!important;outline-offset:2px}

/* ---------- work order reveal buttons (aria-pressed) ---------- */
.woe-fieldtoggle-btn{
  position:relative;flex:none;width:var(--sw-w);height:var(--sw-h)!important;min-height:0!important;padding:0!important;border:0!important;
  border-radius:999px;background:var(--sw-off)!important;box-shadow:inset 0 0 0 1px var(--sw-off-edge);
  font-size:0!important;line-height:0;color:transparent!important;cursor:pointer;transition:background-color .2s ease,box-shadow .2s ease;
}
.woe-fieldtoggle-btn::after{content:"";position:absolute;top:var(--sw-pad);left:var(--sw-pad);width:var(--sw-knob);height:var(--sw-knob);
  border-radius:50%;background:#fff;box-shadow:var(--sw-shadow);transition:transform .2s ease}
.woe-fieldtoggle-btn[aria-pressed="true"]{background:var(--sw-on)!important;box-shadow:none}
.woe-fieldtoggle-btn[aria-pressed="true"]::after{transform:translateX(var(--sw-move))}
.woe-fieldtoggle-btn::before{content:"";position:absolute;inset:-7px -4px}
.woe-fieldtoggle-btn:focus-visible{outline:2px solid var(--sw-focus);outline-offset:2px}
.woe-fieldtoggle-btn:disabled{opacity:.5}

/* ---------- Simple switch in the docrail toolbars (compact) ---------- */
button[role="switch"][class*="-simple-seg"] [class*="-simple-dot"]{
  width:40px!important;height:24px!important;border-radius:999px!important;position:relative;flex:0 0 auto;
  background:var(--sw-off)!important;box-shadow:inset 0 0 0 1px var(--sw-off-edge);transition:background-color .2s ease,box-shadow .2s ease;
}
button[role="switch"][class*="-simple-seg"] [class*="-simple-dot"]::after{
  content:"";position:absolute;top:2px;left:2px;width:20px;height:20px;border-radius:50%;background:#fff;
  box-shadow:var(--sw-shadow);transition:transform .2s ease;
}
button[role="switch"][class*="-simple-seg"][aria-checked="true"] [class*="-simple-dot"]{background:var(--sw-on)!important;box-shadow:none}
button[role="switch"][class*="-simple-seg"][aria-checked="true"] [class*="-simple-dot"]::after{transform:translateX(16px)}
button[role="switch"][class*="-simple-seg"]:focus-visible{outline:2px solid var(--sw-focus);outline-offset:2px}
@media (max-width:900px){
  button[role="switch"][class*="-simple-seg"] [class*="-simple-dot"]{width:34px!important;height:20px!important}
  button[role="switch"][class*="-simple-seg"] [class*="-simple-dot"]::after{width:16px;height:16px}
  button[role="switch"][class*="-simple-seg"][aria-checked="true"] [class*="-simple-dot"]::after{transform:translateX(14px)}
}

@media (max-width:420px){
  button[role="switch"][class*="-simple-seg"] [class*="-simple-dot"]{width:30px!important;height:18px!important}
  button[role="switch"][class*="-simple-seg"] [class*="-simple-dot"]::after{width:14px;height:14px}
  button[role="switch"][class*="-simple-seg"][aria-checked="true"] [class*="-simple-dot"]::after{transform:translateX(12px)}
  button[role="switch"][class*="-simple-seg"]{padding:0 5px!important;gap:3px!important}
}

/* ---------- read-only status: a non interactive switch graphic ---------- */
.cu-step b,.ih-pill:not(.cu-tag),.pl-rem-row .pl-pill{
  display:inline-block;position:relative;flex:none;width:var(--sw-w);height:var(--sw-h);padding:0!important;margin:0;
  border-radius:999px;vertical-align:middle;background:var(--sw-on)!important;box-shadow:none;
  font-size:0!important;line-height:0;color:transparent!important;pointer-events:none;cursor:default;
}
.cu-step b::after,.ih-pill:not(.cu-tag)::after,.pl-rem-row .pl-pill::after{
  content:"";position:absolute;top:var(--sw-pad);left:var(--sw-pad);width:var(--sw-knob);height:var(--sw-knob);
  border-radius:50%;background:#fff;box-shadow:var(--sw-shadow);transform:translateX(var(--sw-move));
}
.cu-step.off b,.ih-pill.off:not(.cu-tag),.pl-rem-row .pl-pill:not(.on){background:var(--sw-off)!important;box-shadow:inset 0 0 0 1px var(--sw-off-edge)}
.cu-step.off b::after,.ih-pill.off:not(.cu-tag)::after,.pl-rem-row .pl-pill:not(.on)::after{transform:none}
.cu-step{padding:4px 6px 4px 12px}

@media (prefers-reduced-motion:reduce){
  *[class*="sw"],*[class*="switch"],*[class*="track"],*[class*="toggle"],
  *[class*="sw"]::after,*[class*="switch"]::after,*[class*="track"]::after,*[class*="toggle"]::after,
  label>input[type="checkbox"],label>input[type="checkbox"]::after,
  .cu-step b::after,.cl-sw-k:after{transition:none!important}
}
