/* 上下班打卡 */
.clock-hero{text-align:center;padding:6px 0 4px}
.clock-now{font-size:52px;font-weight:700;color:#bd4e16;font-variant-numeric:tabular-nums;letter-spacing:2px;line-height:1.1}
.clock-date{font-size:15px;color:#675345;margin-top:4px}
.clock-where{display:inline-block;margin-top:12px;padding:8px 14px;border-radius:999px;font-size:13px;line-height:1.5}
.clock-where-ok{background:#e7f4ec;color:#2f6b4a}
.clock-where-info{background:#fff0e4;color:#91572f}
.clock-where-warn{background:#fdeaea;color:#a23e3e}
.clock-kind{border:0;padding:0;margin:18px 0 0;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.clock-kind legend{font-size:12px;margin-bottom:8px;color:#786353}
.clock-kind label{position:relative;cursor:pointer}
.clock-kind input{position:absolute;opacity:0;width:1px;height:1px}
.clock-kind span{display:block;text-align:center;padding:12px;border:1px solid #ead9cb;border-radius:10px;font-size:15px;font-weight:600;color:#675345;background:#fff}
.clock-kind input:checked+span{background:#bd4e16;border-color:#bd4e16;color:#fff}
.clock-kind input:focus-visible+span{outline:3px solid #f0b48f;outline-offset:2px}
.clock-punch,.clock-team{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;padding:9px 0;border-bottom:1px dashed var(--line);font-size:14px}
.clock-punch b{min-width:36px}
.clock-punch span:first-of-type{font-variant-numeric:tabular-nums;font-weight:600}
.clock-team strong{min-width:96px;font-weight:600}
.clock-team span{font-variant-numeric:tabular-nums}
.badge.clock-wifi,.badge.clock-gps,.badge.clock-state-done{background:#e7f4ec;color:#2f6b4a}
.badge.clock-state-working{background:#e8f2fb;color:#386a91}
.badge.clock-outside,.badge.clock-flag,.badge.clock-state-none{background:#fdeaea;color:#a23e3e}
.badge.clock-fix,.badge.clock-unset{background:#f1ebfa;color:#7952a1}
.clock-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px}
.clock-actions .text-btn,.notification-delivery .text-btn{color:#bd4e16;font-size:12px;padding:2px 4px}
.clock-report{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}
.clock-report .field{margin:12px 0 0;flex:1;min-width:160px}
.clock-ip{display:grid;grid-template-columns:1.3fr 1fr auto;gap:8px;align-items:center;margin-top:8px}
.clock-ip .text-btn{color:#a23e3e;font-size:12px}
/* 對話框底部內距 22px（手機）／27px（桌面）：用負的 bottom 蓋住內距，捲動時內容不會從按鈕下方露出。 */
#modal.clock-modal .modal-actions{position:sticky;bottom:-27px;background:#fffefb;margin-bottom:-27px;padding-bottom:27px;box-shadow:0 -12px 16px -12px #6b3a1a30}
@media(max-width:720px){#modal.clock-modal .modal-actions{bottom:-22px;margin-bottom:-22px;padding-bottom:22px}}
#modal.clock-modal #save-button{flex:1;font-size:17px;padding:14px 18px;border-radius:12px}
.quick-mode .clock-hero{padding-top:12px}
@media(max-width:720px){.clock-now{font-size:44px}.clock-ip{grid-template-columns:1fr auto}.clock-ip input[name=ip_label]{grid-column:1}.clock-ip .text-btn{grid-row:1/3;grid-column:2}}
#clock-accuracy{flex-basis:100%;order:3;margin-top:4px;border-radius:10px}
/* 事件處理過程 */
.incident-state{display:inline-block;padding:5px 12px;border-radius:999px;font-size:13px;font-weight:600}
.incident-state.open{background:#fdebe7;color:#b55f4b}.incident-state.closed{background:#e7f4ec;color:#2f6b4a}
.incident-timeline{list-style:none;margin:16px 0 8px;padding:0 0 0 18px;border-left:2px solid #ecd7c4}
.incident-timeline li{position:relative;padding:0 0 14px 6px}
.incident-timeline li::before{content:'';position:absolute;left:-25px;top:5px;width:10px;height:10px;border-radius:50%;background:#e0b896;border:2px solid #fffefb}
.incident-timeline li.start::before{background:#b55f4b}.incident-timeline li.end::before{background:#2f6b4a}
.incident-when{font-size:12px;color:#8a7262;font-variant-numeric:tabular-nums}
.incident-timeline p{font-size:15px;color:#49362c;margin-top:3px;white-space:pre-wrap;overflow-wrap:anywhere}
