.hours-panel{margin-top:1.5rem;padding:clamp(1rem,3vw,1.75rem);background:#fff;border:1px solid #d9e1e9;border-radius:16px;min-width:0;color:#152c42}
.hours-heading,.hours-row,.hours-actions{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap}
.hours-heading h2,.hours-row p,.hours-rules p{margin:0}
.hours-notice,.hours-row small{color:#455a6b}
.hours-row{padding:.8rem 0;border-top:1px solid #d9e1e9}
.hours-row div{min-width:0;overflow-wrap:anywhere}
.hours-row small{display:block}
.hours-rules{margin-top:1rem;border-top:1px solid #d9e1e9;padding-top:1rem}
.hours-rules summary{cursor:pointer;font-weight:650}
.hours-rules section{margin-top:1rem;max-width:64ch}
.hours-rules h4{margin:.2rem 0}
.hours-rules a{color:#23587c;text-decoration:underline}
.hours-dialog{width:min(34rem,calc(100vw - 1.25rem));max-height:90dvh;box-sizing:border-box;padding:clamp(1rem,3vw,1.5rem);border:0;border-radius:16px;color:#152c42}
.hours-dialog::backdrop{background:#10223680}
.hours-dialog form{display:grid;gap:1rem}
.hours-dialog h2{margin:0}
.hours-dialog label{display:grid;gap:.3rem;font-size:.875rem;font-weight:600;min-width:0}
.hours-dialog input,.hours-dialog select{font:inherit;min-height:2.7rem;max-width:100%;width:100%;box-sizing:border-box;border:1px solid #adbdc9;border-radius:.5rem;padding:.4rem .6rem;background:white;color:#142a3c}
.hours-dialog label:has(input[type=checkbox]){display:flex;align-items:center;gap:.5rem}
.hours-dialog input[type=checkbox]{width:1.2rem;min-height:1.2rem;order:-1}
.hours-dialog fieldset{min-width:0;margin:0;border:1px solid #d9e1e9;border-radius:10px;padding:.75rem;display:grid;gap:.65rem}
.hours-dialog legend{font-weight:650}
.hours-fields,.hours-break{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}
.hours-fields[hidden]{display:none}
.hours-break{margin-bottom:.8rem}
@media(max-width:410px){.hours-dialog input,.hours-dialog select{font-size:16px}.hours-actions,.hours-heading{align-items:stretch}.hours-heading>.button{width:100%}}

.hours-leave{margin-top:1.1rem;padding-top:1rem;border-top:1px solid #d9e1e9}
.hours-leave h3{font-size:1.1rem;margin:0}
.hours-leave-stats{display:flex;flex-wrap:wrap;gap:.75rem 2rem;margin:.6rem 0}
.hours-leave-stats dt{font-size:.875rem;color:#455a6b}
.hours-leave-stats dd{font-size:1.05rem;font-weight:650;margin:.15rem 0}
.hours-leave-periods{margin:.5rem 0}
.hours-dialog .inline-error:empty{display:none}
