/* STAFF_SORTED_CONTACT_V1 */
.staff-contact-actions{display:none;position:fixed;z-index:55;bottom:calc(10px + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);width:min(390px,calc(100vw - 24px));grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:7px;border:1px solid #d9e4dd;border-radius:15px;background:rgba(255,255,255,.97);box-shadow:0 6px 24px rgba(25,49,34,.13)}
body.staff-contact-active .staff-contact-actions{display:grid}
.staff-contact-actions a{display:flex;align-items:center;justify-content:center;gap:8px;min-height:45px;border-radius:10px;font:750 13px system-ui,sans-serif;text-decoration:none}
.staff-contact-call{background:#245b3d;color:#fff}.staff-contact-text{background:#eef5f0;border:1px solid #d4e4d9;color:#26543c}
body.staff-contact-active main{padding-bottom:calc(110px + env(safe-area-inset-bottom,0px))}
@media(min-width:740px){.staff-contact-actions{left:auto;right:20px;transform:none;width:320px}}
.pure-v1-card .pure-sorted-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}
.pure-v1-card .pure-sorted-actions button{width:100%;min-width:0;min-height:48px;border-radius:9px;font-size:14px;font-weight:800}
.pure-v1-card .pure-v1-sort-button{background:#205d3c;color:#fff;border:1px solid #205d3c}
.pure-v1-card .pure-sorted-word{position:relative;display:inline-block}
/* Line through Sorted is reserved for completed job status, never its action button. */
.pure-v1-card .pure-v1-undone-button{background:#fff3d8;color:#855b17;border:1px solid #ddb971}
.pure-v1-card .pure-sorted-complete,.pure-v1-card .pure-sorted-missed{display:flex;align-items:center;justify-content:space-between;gap:8px;border-radius:9px;padding:10px;margin:10px 0;overflow-wrap:anywhere;font-size:13px;font-weight:750}
.pure-v1-card .pure-sorted-complete{background:#e6f4e9;color:#1d633d;border:1px solid #b0d7bd}
.pure-v1-card .pure-sorted-missed{background:#fff4df;color:#7d591b;border:1px solid #e4c184}
.pure-v1-card .pure-sorted-complete>span{position:relative;display:inline-block}
.pure-v1-card .pure-sorted-complete>span:after{content:"";position:absolute;left:-3px;right:-3px;top:49%;height:2px;background:#389257;transform:rotate(-7deg)}
.pure-v1-card .pure-sorted-aux{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px}
.pure-v1-card .pure-sorted-aux a{flex:1 1 105px;min-width:0;border:1px solid #dce7df;background:#f5f8f6;color:#355d43;border-radius:8px;min-height:43px;display:flex;align-items:center;justify-content:center;text-decoration:none;font-size:12px;font-weight:700}

/* Planner V4: consistent status controls, timer reset and responsive reason picker. */
.pure-v1-card .pure-sorted-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch;gap:8px!important;margin:10px 0 7px!important}
.pure-v1-card .pure-sorted-actions button{width:100%!important;box-sizing:border-box;min-height:48px!important;height:48px!important;padding:8px 10px!important;border-radius:9px!important;display:flex;justify-content:center;align-items:center;transition:background-color .18s ease,border-color .18s ease,color .18s ease,opacity .18s ease}
.pure-v1-card .pure-sorted-actions button.is-finished{opacity:.46!important;cursor:default!important;filter:saturate(.45)}
.pure-v1-card .pure-sorted-actions .is-finished span{text-decoration:line-through;text-decoration-thickness:2px;text-decoration-color:currentColor}
.pure-v1-card .pure-sorted-actions .is-finished .pure-sorted-word::after{display:none!important}
.pure-status-reverse{display:flex;justify-content:flex-end;margin:-2px 0 7px}
.pure-status-reverse button{background:none;border:0;padding:6px 4px;min-height:30px;font-size:12px;font-weight:650;color:#597164;text-decoration:underline;text-underline-offset:3px}
.pure-status-reason{margin:0 0 5px;font-size:12px;font-weight:600;color:#805e2b;overflow-wrap:anywhere}
.pure-v1-card .pure-sorted-aux{margin-top:4px}
.pw-reason-choices{border:0;padding:0;margin:0 0 12px;display:grid;gap:8px;min-width:0}
.pw-reason-choices legend{font-size:13px;font-weight:750;margin-bottom:9px}
.pw-reason-choices label{border:1px solid #d2ddd3;border-radius:10px;padding:12px;display:flex;gap:11px;align-items:center;font-size:14px;color:#294635;background:#fff;min-height:50px;cursor:pointer}
.pw-reason-choices label:has(input:checked){border-color:#3c8056;background:#edf7f0}
.pw-reason-choices input[type=radio]{width:19px!important;height:19px!important;min-height:0!important;flex:none;margin:0!important;accent-color:#286f47}
.pw-reason-note[hidden]{display:none!important}
.pw-reason-note textarea{margin-top:7px!important}
body.jude-v1 .jude-timer-buttons{display:flex;align-items:center;gap:7px;flex-shrink:0}
body.jude-v1 .jude-timer-reset{min-height:40px;padding:8px 11px;border-radius:8px;border:1px solid #d3dfd5;background:#fff;color:#466d54;font-size:12px;font-weight:750}
body.jude-v1 .jude-timer-reset:disabled{opacity:.38;cursor:default}
body.jude-v1 .jude-timer-control{width:auto}
body.jude-v1 .pw-roll-nav{display:flex;gap:9px;align-items:center;justify-content:space-between;margin:4px 0 12px;font-size:12px;color:#617467;min-width:0}
body.jude-v1 .pw-roll-nav button{min-height:37px;border-radius:8px;padding:8px 12px;border:1px solid #cdded2;background:#fff;color:#20563a;font-weight:700}
body.jude-v1 .pw-roll-nav button:disabled{opacity:.4}
@media(max-width:430px){body.jude-v1 .jude-job-timer{flex-wrap:wrap}body.jude-v1 .jude-timer-buttons{width:100%;display:grid;grid-template-columns:1fr 1fr}body.jude-v1 .jude-timer-buttons button{width:100%;min-width:0}body.jude-v1 .pw-roll-nav{gap:5px}body.jude-v1 .pw-roll-nav button{padding:8px 9px}}
@media(prefers-reduced-motion:reduce){.pure-v1-card .pure-sorted-actions button{transition:none!important}}
