/* RUNEXT history v1.4 — additive; keeps the existing space theme. */
.hr-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:22px 0}.hr-metrics article{padding:22px;border:1px solid #dce3ee;border-radius:20px;background:linear-gradient(135deg,#fff,#f1f5ff)}.hr-metrics span{display:block;color:#5c6681;font-size:13px}.hr-metrics strong{display:block;font-size:28px;margin-top:10px;color:#152748}.hr-metrics small{font-size:12px;font-weight:500}.hr-legend{display:flex;flex-wrap:wrap;gap:14px;margin:24px 0;font-size:12px}.hr-legend span{display:flex;align-items:center;gap:7px}.hr-dot{width:10px;height:10px;display:inline-block;border-radius:50%;background:#eff3fa}.hr-year{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start}.hr-month{padding:12px!important;margin:0!important;min-width:0}.hr-month h2{font-size:17px;padding:5px 6px;display:flex;justify-content:space-between}.hr-month h2 small{font-size:12px;color:#788197}.hr-month table{width:100%;min-width:0;border-collapse:separate;border-spacing:0 2px;font-size:11px}.hr-month th,.hr-month td{padding:5px 4px;white-space:normal}.hr-month td:first-child{width:25px}.hr-month a{font-weight:700;text-decoration:underline;text-underline-offset:2px}.hr-month td:nth-child(n+3){text-align:right}.hr-month tr.regular,.hr-dot.regular{background:#ecf5ee}.hr-month tr.holiday,.hr-dot.holiday{background:#f6b26b;color:#563309}.hr-month tr.leave,.hr-dot.leave{background:#e9e4ff}.hr-month tr.sick,.hr-dot.sick{background:#ffe1e8}.hr-month tr.special,.hr-dot.special{background:#e1f3fa}.hr-month tr.mission,.hr-dot.mission{background:#d5f3eb}.hr-month tr.not_employed,.hr-dot.not_employed{background:#f2c6c6;color:#754a4a}.hr-month tr.absent,.hr-dot.absent{background:#ffb9ae}.hr-month tr.unknown,.hr-dot.unknown{background:#fff4d2}.hr-month tr.future{color:#9ba4b1;background:#f4f6f9}.hr-month tr.needs-review{outline:1px dashed #a35313}.hr-edit{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.hr-edit label{display:flex;flex-direction:column;gap:8px}.hr-edit input,.hr-edit select,.hr-edit textarea{min-width:0;width:100%;box-sizing:border-box}.hr-edit label:has(input[type=checkbox]){display:block}.hr-edit input[type=checkbox]{width:auto}.hr-message{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;font-family:inherit;background:#eef3fa;padding:24px;border-radius:16px;color:#173052}details{padding:12px 0}details summary{cursor:pointer}.hr-edit textarea{min-height:95px}
@media(min-width:1700px){.hr-year{grid-template-columns:repeat(6,minmax(0,1fr))}}@media(max-width:1150px){.hr-year{grid-template-columns:repeat(2,minmax(0,1fr))}.hr-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.hr-year,.hr-edit,.hr-metrics{grid-template-columns:1fr}.hr-month table{font-size:12px}.hr-month th,.hr-month td{padding:7px 5px}}
