/* v1.24.0 - explicit button-based scheduling dialog. No calendar dropdowns. */
#modal.sp-dialog{width:min(980px,calc(100vw - 40px));max-width:980px;max-height:calc(100dvh - 40px);padding:0;border:1px solid #c3ceda;border-radius:18px;color:#17324c;background:#fff;overflow:auto}
#modal.sp-dialog #modal-content{padding:0;background:#fff;color:#17324c}
#modal.sp-dialog .modal-head{position:sticky;top:0;z-index:3;background:#fff;padding:20px 26px;border-bottom:1px solid #e1e8ef;margin:0}
#modal.sp-dialog .modal-head h2{color:#183751;font-size:23px;margin:0}
.sp-person{display:flex;justify-content:space-between;gap:18px;padding:22px 26px 12px;align-items:center;background:linear-gradient(110deg,#f2f6fa,#faf8f1)}
.sp-person h3{margin:7px 0 4px;font-size:27px;color:#152f47}.sp-person p{margin:0;color:#51697e;font-size:14px}
.sp-hours{text-align:right;min-width:170px}.sp-hours strong{display:block;font-size:23px}.sp-hours span{display:block;font-size:12px;color:#587087;margin-top:3px}
.sp-intro{margin:0;padding:12px 26px;color:#53697b;font-size:13px;background:#f6f8fa}
#sp-form{padding:20px 26px 0}
.sp-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}
.sp-column{min-width:0}.sp-column>h3,.sp-labels>h3,.sp-custom-fields>h3,.sp-scope>h3{font-size:16px;margin:0 0 4px;color:#15324c}.sp-column>p{font-size:12px;color:#65798a;margin:0 0 12px}
.sp-shift-list,.sp-custom-list{display:grid;gap:8px}.sp-custom-list{max-height:275px;overflow:auto;padding:2px}
.sp-shift{width:100%;min-height:83px;padding:12px 14px;border:1px solid #ccd8e4;border-left:4px solid #a1b5c8;border-radius:9px;background:#f8fafc;text-align:left;cursor:pointer;color:#17324c;display:flex;flex-direction:column;gap:5px;transition:border-color .15s,box-shadow .15s}
.sp-shift strong{font-size:19px;line-height:1.25;letter-spacing:-.025em}.sp-shift small{font-size:11px;color:#60778b}.sp-shift-name{font-size:12px;font-weight:650;line-height:1.3}.sp-morning{border-left-color:#62a68b;background:#f2faf6}.sp-evening{border-left-color:#6d99d5;background:#f3f7ff}.sp-audit{border-left-color:#ad93d1;background:#f7f4fc}.sp-custom{border-left-color:#c9a25a;background:#fdf9f0}
.sp-shift:hover:not(:disabled),.sp-label:hover{box-shadow:0 3px 12px #15365015}.sp-shift[aria-pressed=true],.sp-label[aria-pressed=true],.sp-new[aria-pressed=true],.sp-scope-buttons button[aria-pressed=true],.sp-target-buttons button[aria-pressed=true]{outline:2px solid #244967;outline-offset:1px;box-shadow:0 0 0 4px #e9eff4}
.sp-shift:disabled,.sp-new:disabled{opacity:.5;cursor:not-allowed}.sp-shift:focus-visible,.sp-label:focus-visible,.sp-new:focus-visible,.sp-scope-buttons button:focus-visible,.sp-target-buttons button:focus-visible{outline:3px solid #ba8b30;outline-offset:3px}
.sp-new{border:1px dashed #bb9650;width:100%;padding:12px;margin-top:10px;border-radius:8px;color:#715315;background:#fffaf0;cursor:pointer;font-weight:650;min-height:44px}
.sp-empty{font-size:13px;line-height:1.6;border:1px dashed #d8dde4;border-radius:9px;padding:18px;color:#647889;margin:0}.sp-search{margin:0 0 10px;display:block}.sp-search input{min-height:40px;width:100%;font-size:14px}
.sp-labels{border-top:1px solid #e1e8ef;padding-top:18px;margin-top:22px}.sp-labels>div{display:flex;gap:9px;flex-wrap:wrap;margin-top:11px}.sp-label{min-height:42px;border:1px solid #c0cfdd;border-radius:8px;padding:9px 16px;background:var(--label-color,#eef3f8);color:#17324c;cursor:pointer;font-size:13px;font-weight:700}
.sp-custom-fields{padding:18px;border:1px solid #e5d4ab;background:#fffcf6;border-radius:10px;margin-top:18px}.sp-time-fields{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;margin-top:14px}.sp-custom-fields label{font-size:13px;display:grid;gap:6px;color:#284256}.sp-custom-fields>label{margin-top:14px}.sp-custom-fields input{width:100%;background:#fff;min-width:0;min-height:44px;font-size:15px;color:#17324c}.sp-custom-fields p{margin:13px 0 0;font-size:12px;line-height:1.6}
.sp-summary{background:#f0f5f9;border:1px solid #d4e1eb;border-radius:10px;padding:13px 16px;display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:18px}.sp-summary span{font-size:12px;color:#577187}.sp-summary strong{font-size:17px;color:#173b59}
.sp-options{margin:15px 0;color:#233f55}.sp-options summary{cursor:pointer;font-size:13px;font-weight:650}.sp-options label{margin-top:12px}.sp-options p{font-size:12px}
.sp-replace{margin:16px 0!important;font-size:13px;align-items:flex-start!important}.sp-replace input{flex:0 0 auto;width:19px!important;height:19px!important;margin-top:2px!important}
.sp-target-box{border:1px solid #d2dfe8;background:#f8fafc;border-radius:9px;padding:12px;margin-bottom:18px;font-size:13px}.sp-target-buttons{display:flex;flex-wrap:wrap;gap:8px;margin-top:9px}.sp-target-buttons button,.sp-scope-buttons button{cursor:pointer;min-height:40px;border:1px solid #c2d1de;background:white;color:#213f56;padding:9px 12px;border-radius:7px;font-size:12px}.sp-target-box p{font-size:12px;margin-bottom:0}
.sp-scope{margin-top:16px;padding:16px;background:#f3f6fa;border-radius:10px}.sp-scope-buttons{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.sp-scope p{font-size:13px;line-height:1.5;margin:12px 0 8px}.sp-scope small{font-size:12px;color:#546b7e}
.sp-overnight{background:#edf6fc;border-left:3px solid #618fac;border-radius:6px;padding:11px 14px;font-size:13px;margin:14px 0}.sp-overnight strong,.sp-overnight span{display:block}.sp-overnight span{font-size:12px;color:#597185;margin-top:5px}
.sp-footer{position:sticky;bottom:-1px;background:#fff;border-top:1px solid #d9e3eb;padding:12px 0 16px;z-index:2;margin-top:14px}.sp-footer p{font-size:11px;color:#596e80;margin:0 0 11px}.sp-footer>div{display:flex;gap:10px;align-items:center}.sp-footer>div>span{flex:1}.sp-footer .btn{min-height:44px}.sp-footer .primary{background:#173e60!important;color:white!important;border:1px solid #173e60!important}.sp-footer .primary:disabled{opacity:.45}
#sp-validation{font-size:13px;line-height:1.5;margin:12px 0}.sp-dialog [hidden]{display:none!important}.qs-scope-label{display:block;font-size:10px;opacity:.85;line-height:1.3;margin-top:2px}
@media(max-width:650px){#modal.sp-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));border-radius:13px;margin:auto}#modal.sp-dialog .modal-head{padding:15px 16px}#modal.sp-dialog .modal-head h2{font-size:20px}.sp-person{padding:16px;gap:10px}.sp-person h3{font-size:23px}.sp-person p{font-size:12px}.sp-hours{min-width:100px}.sp-hours strong{font-size:17px}.sp-hours span{font-size:10px}.sp-person .eyebrow{font-size:9px}.sp-intro{padding:10px 16px;font-size:12px}#sp-form{padding:16px 16px 0}.sp-columns{gap:12px}.sp-column>h3{font-size:14px}.sp-column>p{font-size:11px;min-height:30px}.sp-shift{padding:9px 8px;min-height:105px;gap:7px}.sp-shift strong{font-size:14px;line-height:1.5}.sp-shift small{font-size:10px}.sp-shift-name{font-size:11px}.sp-custom-list{max-height:355px}.sp-new{font-size:12px;padding:10px 7px}.sp-empty{font-size:12px;padding:12px}.sp-summary{align-items:flex-start;flex-direction:column;gap:5px}.sp-summary strong{font-size:16px}.sp-time-fields{grid-template-columns:1fr 1fr}.sp-time-fields>label:last-child{grid-column:1/-1}.sp-custom-fields input,.sp-search input{font-size:16px}.sp-scope-buttons{display:grid}.sp-scope-buttons button{text-align:left;font-size:13px}.sp-footer{padding-bottom:max(12px,env(safe-area-inset-bottom,0px))}.sp-footer>div{flex-wrap:wrap}.sp-footer .btn{padding:10px 11px;font-size:13px}.sp-footer .danger{flex:1 1 100%;font-size:12px;min-height:35px}.sp-footer p{font-size:10px}.sp-label{min-height:44px;padding:10px 12px}}
@media(prefers-reduced-motion:reduce){.sp-shift{transition:none}}
@media print{.sp-dialog{display:none!important}}

.sp-shift strong>span{white-space:nowrap}
@media(max-width:650px){.sp-shift strong .sp-to{display:none}.sp-shift strong .sp-end{display:block}.sp-shift strong{font-size:13px}}
