/* V8.271: isolated HR components; global dashboard header/dialog rules stay outside. */
body:has(#leaderHr) #referenceMenuHeading,body:has(#liveZoom) #referenceMenuHeading{display:none!important}
html body.mc-v852 #leaderHr{--hc:var(--ui-ink,#172337);--hp:var(--ui-surface,#fff);--hb:var(--ui-line,#e2e8f0);--hm:var(--ui-muted,#7a899c);padding:6px 0 24px;font-family:inherit}
#leaderHr .hr-heading{padding:26px 28px;border:1px solid var(--hb);border-radius:18px;background:var(--hp);margin-bottom:20px;box-shadow:0 4px 18px #17233703}
#leaderHr .hr-heading small{font-size:10px;font-weight:700;letter-spacing:1.7px;color:var(--hm)}
#leaderHr .hr-heading h2{display:flex;align-items:center;gap:12px;color:var(--hc)!important;font-size:26px;letter-spacing:-.7px;margin:12px 0 8px}
#leaderHr .hr-heading h2 svg{width:26px;height:26px;stroke:currentColor;fill:none;stroke-width:1.7}
#leaderHr .hr-heading p{margin:0;font-size:12px}#leaderHr .hr-pill{background:var(--ui-soft,#f4f6fa);border-color:var(--hb);color:var(--hm);font-weight:600}
#leaderHr .hr-stats{gap:16px;margin:0 0 20px}#leaderHr .hr-stats article{position:relative;padding:23px 26px;gap:13px;border-radius:15px;overflow:hidden}#leaderHr .hr-stats strong{font-size:27px;letter-spacing:-.8px;color:var(--hc)}#leaderHr .hr-stats article:after{content:'';position:absolute;right:22px;top:25px;width:30px;height:30px;border:7px solid var(--ui-soft,#edf1f8);border-radius:12px;transform:rotate(-12deg)}
#leaderHr .hr-toolbar{background:var(--hp);border:1px solid var(--hb);border-radius:15px;padding:20px;gap:12px}#leaderHr .hr-search{flex:1;min-width:180px}#leaderHr .hr-toolbar label{font-size:11px;gap:8px;color:var(--hm)}#leaderHr :is(input,select,textarea){min-height:43px;font-size:12px;border-radius:9px;line-height:1.5;background:var(--hp);color:var(--hc)}#leaderHr :is(input,select,textarea):focus{outline:2px solid #3164ed2b;outline-offset:2px;border-color:#5474cf}
#leaderHr button{min-height:42px;border-radius:9px;font-weight:600;transition:background .15s,box-shadow .15s}#leaderHr button:hover:not(:disabled){box-shadow:0 3px 9px #1723370b;background:var(--ui-soft,#f2f5fa)}#leaderHr button.hr-primary{background:#2f60df!important;color:#fff!important;border-color:#2f60df!important;box-shadow:0 4px 10px #2f60df16}#leaderHr button.hr-primary:hover{background:#244fc0!important}
#leaderHr .hr-rules{background:var(--hp);border:1px solid var(--hb);border-radius:12px;padding:14px 18px;margin:14px 0;color:var(--hm);font-size:11px}#leaderHr .hr-table-wrap{border-radius:15px}#leaderHr table{min-width:680px}#leaderHr th{padding:16px 18px;background:var(--ui-soft,#f4f6fa);font-size:10px;text-transform:uppercase;letter-spacing:.6px}#leaderHr td{padding:18px;line-height:1.65;color:var(--hc);font-size:12px}#leaderHr tbody tr:hover{background:var(--ui-soft,#f7f9fc)}#leaderHr .hr-actions button{padding:7px 11px;min-height:32px;font-size:10px;background:var(--hp)}#leaderHr .hr-tag{padding:5px 10px;font-weight:600;white-space:nowrap}
#leaderHr .hr-card{padding:26px;border-radius:16px;margin:18px 0}#leaderHr .hr-card h3{font-size:16px;letter-spacing:-.3px;padding-bottom:17px;border-bottom:1px solid var(--hb)}#leaderHr .hr-form-grid{gap:18px 22px}#leaderHr .hr-card label{font-size:11px;color:var(--hm)}#leaderHr .hr-check{font-weight:400;color:var(--hc)}#leaderHr .hr-check input{min-height:0;accent-color:#2f60df}
html body.mc-v852 #leaderHr dialog.hr-dialog{position:fixed!important;inset:0!important;margin:auto!important;width:min(840px,calc(100vw - 40px))!important;max-width:840px!important;min-width:0!important;height:fit-content!important;max-height:calc(100dvh - 48px)!important;border-radius:20px!important;padding:0!important;overflow:auto!important;border:1px solid var(--hb)!important;background:var(--hp)!important;color:var(--hc)!important;box-shadow:0 24px 90px #070f2540!important}
#leaderHr .hr-dialog::backdrop{background:#111c32a3;backdrop-filter:blur(5px)}
html body.mc-v852 #leaderHr .hr-dialog :is(.hr-dialog-head,.hr-dialog-foot){position:static!important;inset:auto!important;width:auto!important;height:auto!important;min-height:0!important;transform:none!important;background:var(--hp)!important;display:flex!important;align-items:center;justify-content:space-between;gap:14px;padding:24px 28px!important;margin:0!important;border:0!important;box-shadow:none!important}
#leaderHr .hr-dialog .hr-dialog-head{border-bottom:1px solid var(--hb)!important}#leaderHr .hr-dialog-head small{display:block;font-size:9px;letter-spacing:1.5px;color:var(--hm);margin-bottom:9px}#leaderHr .hr-dialog-head h3{font-size:21px;color:var(--hc)!important;letter-spacing:-.5px}#leaderHr .hr-dialog-head p{font-size:11px;color:var(--hm);margin:8px 0 0}#leaderHr .hr-dialog-head>button{width:34px;min-width:34px;min-height:34px;padding:0;align-self:flex-start;font-size:20px;background:var(--ui-soft,#f4f6fa)}
#leaderHr .hr-dialog .hr-form-grid{padding:25px 28px 0;margin:0;gap:20px}#leaderHr .hr-dialog .hr-wide{padding-top:6px}#leaderHr .hr-dialog label{font-size:11px;color:var(--hm)}#leaderHr .hr-dialog textarea{min-height:90px}#leaderHr .hr-dialog #hrPersonal{margin:24px 28px 12px;padding:14px 16px;line-height:1.8;background:var(--ui-soft,#f4f6fa);font-size:11px;color:var(--hm)}#leaderHr .hr-dialog #hrFormError{padding:0 28px;margin:14px 0 0}#leaderHr .hr-dialog #hrFormError:empty{display:none}
html body.mc-v852 #leaderHr .hr-dialog .hr-dialog-foot{justify-content:flex-end!important;border-top:1px solid var(--hb)!important;margin-top:22px!important;padding:18px 28px!important;background:var(--ui-soft,#f7f9fc)!important;position:sticky!important;bottom:0!important}
#leaderHr #hrConfirm{max-width:480px!important}#leaderHr #hrConfirm :is(#hrConfirmText,label){margin:20px 28px;line-height:1.8;font-size:12px}#leaderHr #hrConfirm textarea{margin-top:8px}#leaderHr #hrConfirmTitle{font-size:20px}
#leaderHr .hr-detail-grid{display:grid;grid-template-columns:140px minmax(0,1fr);gap:12px 20px;padding:24px 28px;margin:0;font-size:12px;line-height:1.7}#leaderHr .hr-detail-grid dt{color:var(--hm)}#leaderHr .hr-detail-grid dd{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}#leaderHr .hr-pagination{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:16px 0;font-size:11px;color:var(--hm)}#leaderHr .hr-pagination>div{display:flex;gap:8px}#leaderHr .hr-pagination button{font-size:11px;min-height:34px;padding:8px 12px}
#leaderHr .hr-calendar{grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}#leaderHr .hr-day{border-radius:12px;min-height:94px;padding:13px}#leaderHr .hr-day b{font-size:10px;color:var(--hc)}#leaderHr .hr-day span{font-size:10px;line-height:1.8}#leaderHr .hr-day:has(span){background:var(--ui-soft,#f0f5ff)}
@media(max-width:1100px){#leaderHr .hr-toolbar .hr-search{flex-basis:100%}#leaderHr .hr-calendar{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:650px){#leaderHr .hr-heading{padding:20px}#leaderHr .hr-heading h2{font-size:22px}#leaderHr .hr-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#leaderHr .hr-stats article{padding:17px}#leaderHr .hr-stats article:last-child{grid-column:1/-1}#leaderHr .hr-stats strong{font-size:23px}#leaderHr .hr-stats article:after{display:none}#leaderHr .hr-toolbar{padding:16px}#leaderHr .hr-toolbar label{flex:1;min-width:120px}#leaderHr .hr-toolbar button{flex:1;min-width:110px}#leaderHr .hr-calendar{grid-template-columns:repeat(2,minmax(0,1fr))}#leaderHr .hr-card{padding:20px}html body.mc-v852 #leaderHr dialog.hr-dialog{width:calc(100vw - 20px)!important;max-height:calc(100dvh - 24px)!important;border-radius:16px!important}html body.mc-v852 #leaderHr .hr-dialog :is(.hr-dialog-head,.hr-dialog-foot){padding:20px!important}#leaderHr .hr-dialog .hr-form-grid{padding:20px 20px 0;grid-template-columns:1fr}#leaderHr .hr-dialog #hrPersonal{margin:20px}#leaderHr .hr-detail-grid{padding:20px;grid-template-columns:1fr;gap:4px}#leaderHr .hr-detail-grid dd{padding-bottom:12px}#leaderHr .hr-pagination{align-items:flex-start;flex-direction:column}}
html body.dark #leaderHr .hr-tag{background:#23334f!important;color:#abc8ff!important}html body.dark #leaderHr .hr-tag.ok{background:#153829!important;color:#8edeb5!important}html body.dark #leaderHr .hr-tag.bad{background:#47262b!important;color:#f0adb4!important}
@media(max-width:650px){
html body.mc-v852 #leaderHr .hr-table-wrap{overflow:hidden!important;border:0;background:transparent}
html body.mc-v852 #leaderHr table{min-width:0!important;width:100%!important;display:block}
#leaderHr table thead{display:none!important}#leaderHr table tbody{display:grid;gap:14px}#leaderHr table tbody tr{display:grid!important;grid-template-columns:minmax(0,1fr);border:1px solid var(--hb);border-radius:14px;background:var(--hp);padding:14px 18px}
#leaderHr table td{display:block!important;padding:8px 0!important;border:0!important;overflow-wrap:anywhere;white-space:normal!important}#leaderHr table td:before{display:block;font-size:9px;letter-spacing:.5px;color:var(--hm);font-weight:600;margin-bottom:5px;text-transform:uppercase}#leaderHr table td:nth-child(1):before{content:'Nama / Role'}#leaderHr table td:nth-child(2):before{content:'Tanggal'}#leaderHr table td:nth-child(3):before{content:'Detail'}#leaderHr table td:nth-child(4):before{content:'Status'}#leaderHr table td:nth-child(5):before{content:'Tindakan'}#leaderHr table td[colspan]:before{content:none}
#leaderHr[data-kind=recap] td:nth-child(2):before{content:'Kategori'}#leaderHr[data-kind=recap] td:nth-child(3):before{content:'Periode'}#leaderHr[data-kind=recap] td:nth-child(4):before{content:'Total Off Day'}#leaderHr[data-kind=recap] td:nth-child(5):before{content:'Tanggal Off Day'}#leaderHr .hr-actions{gap:8px}#leaderHr .hr-actions button{min-height:34px;padding:8px 12px}
}
@media(max-width:650px){html body.mc-v852 #leaderHr table tbody tr{height:auto!important;min-height:0!important;max-height:none!important;grid-auto-rows:auto!important;align-content:start!important;gap:2px!important}html body.mc-v852 #leaderHr table tbody td{height:auto!important;min-height:0!important;max-height:none!important}html body.mc-v852 #leaderHr table tbody td small{display:block!important}html body.mc-v852 #leaderHr .hr-actions{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;padding-bottom:3px!important}}
