/* My leave component + HR page building blocks (shared by team portal and management HR page). */
.hr-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin:0 0 16px}
.hr-card{background:#fffef8;border:1px solid #dfe7d6;border-radius:8px;padding:14px 16px;min-height:104px}
.hr-card.hr-accent{border-color:#9bbf8f;box-shadow:inset 3px 0 0 #2c6a45}
.hr-card.hr-warn{border-color:#d9a36b;box-shadow:inset 3px 0 0 #b3672d}
[dir=rtl] .hr-card.hr-accent{box-shadow:inset -3px 0 0 #2c6a45}
.hr-card-title{font-size:12px;font-weight:650;color:#3a5b46}
.hr-card-value{font-size:26px;font-weight:600;color:#183f32;margin:4px 0}
.hr-card-detail{font-size:12px;color:#5f7568;line-height:1.5}
.hr-notice{padding:12px 14px;border:1px solid #e3d3a8;border-radius:6px;background:#fbf5e4;color:#6d5a26;font-size:13px;margin:0 0 14px}
.hr-error{padding:12px 14px;border:1px solid #e0b3a8;border-radius:6px;background:#fbeeea;color:#8a3522;font-size:13px;margin:0 0 14px}
.hr-error-text{color:#8a3522}
.hr-ok{color:#2c6a45;font-weight:600;margin:10px 0 0}
.hr-muted{color:#5f7568}
.hr-form,.hr-section{background:#fffef8;border:1px solid #dfe7d6;border-radius:8px;padding:16px;margin:0 0 16px}
.hr-form h3,.hr-section h3{margin:0 0 12px;font-size:15px;color:#183f32}
.hr-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}
.hr-grid label,.hr-form label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:600;color:#3a5b46}
.hr-grid .hr-wide{grid-column:1/-1}
.hr-form input,.hr-form select,.hr-section input,.hr-section select,.hr-section textarea{min-height:40px;border:1px solid #cfdcc4;border-radius:6px;padding:8px 10px;background:#fff;color:#183f32;font-size:14px}
.hr-preview{margin:12px 0 0;font-size:13px;color:#244532}
.hr-preview ul{margin:6px 0 0;padding-inline-start:18px}
.hr-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.hr-actions .button,.hr-list .button{min-height:40px;font-size:13px}
.hr-table .button.small,.hr-section .button.small{min-height:36px;padding:6px 12px;font-size:12px}
.hr-list{list-style:none;margin:0;padding:0}
.hr-list li{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 0;border-top:1px solid #edf1e6;font-size:13px}
.hr-list li:first-child{border-top:0}
.hr-row-end{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.hr-page [hidden],#teamLeave [hidden]{display:none!important}
.hr-status{display:inline-block;padding:3px 9px;border-radius:12px;font-size:12px;font-weight:600;background:#eef2e8;color:#3a5b46}
.hr-status.hr-approved{background:#e2f0e1;color:#1f5e37}
.hr-status.hr-pending{background:#fbf1d8;color:#7a5a12}
.hr-status.hr-rejected{background:#f8e3de;color:#8a3522}
.hr-status.hr-cancelled{background:#eceeea;color:#58605a}
@media (max-width:420px){.hr-card-value{font-size:22px}.hr-list li{align-items:flex-start}}
