/* Helen & Sons — Admin + HR Manager private employee master.
   Consistent navy / gold, light and dark variants, mobile friendly. */
#page-employees #hr-master-panel{margin:16px 0 20px;border-radius:16px;overflow:hidden}
#hr-master-panel .hr-master-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px 22px 16px}
#hr-master-panel .hr-master-head h2{font-size:19px;font-weight:800;letter-spacing:-.02em;margin:5px 0 7px;color:var(--hs-ink,#182147)}
#hr-master-panel .hr-master-head p{font-size:12px;line-height:1.6;color:var(--muted,#617087);margin:0;max-width:680px}
#hr-master-panel .hr-master-buttons{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}
#hr-master-panel .hr-master-buttons button{white-space:normal;min-height:40px;font-size:12px}
#hr-master-panel .hr-master-toolbar{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;padding:0 22px 13px}
#hr-master-panel .hr-master-toolbar label{font-size:11px;font-weight:800;color:var(--hs-ink,#182147);display:grid;gap:7px;width:min(100%,400px)}
#hr-master-panel .hr-master-toolbar input{background:var(--hs-card,#fff);color:var(--hs-ink,#182147);border:1px solid var(--border,#cfd7e5);padding:10px 12px;border-radius:10px;font-size:13px;min-height:41px}
#hr-master-panel .hr-master-count{font-size:12px;color:var(--muted,#617087);font-weight:700}
#hr-master-panel .hr-master-status{margin:0 22px 12px;color:var(--muted,#617087);font-size:12px}
#hr-master-panel .hr-master-status.is-error{color:#b83434;font-weight:750}
#hr-master-panel .hr-master-scroll{margin:0 14px}
#hr-master-panel .hr-master-scroll table{width:100%;border-collapse:collapse;min-width:710px}
#hr-master-panel .hr-master-scroll table th{white-space:nowrap}
#hr-master-panel .hr-master-scroll table td{vertical-align:middle}
#hr-master-panel .hr-master-code{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:800;color:var(--hs-ink,#182147)}
#hr-master-panel .hr-master-person,.hr-master-login-link{font:inherit;font-weight:750;color:var(--hs-ink,#182147);background:none;padding:3px 0;border:0;text-align:left;cursor:pointer;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:3px}
#hr-master-panel .hr-master-person:hover,#hr-master-panel .hr-master-person:focus-visible,.hr-master-login-link:hover,.hr-master-login-link:focus-visible{text-decoration-color:#cba55e;color:var(--hs-gold,#b49350)}
#hr-master-panel .hr-master-small{display:block;font-size:11px;margin-top:4px;color:var(--muted,#617087)}
#hr-master-panel .hr-master-status-badge{display:inline-block;padding:5px 10px;border:1px solid var(--border,#d9e0eb);border-radius:999px;font-size:11px;font-weight:750;color:var(--muted,#64748b);white-space:nowrap}
#hr-master-panel .hr-master-status-badge.has-details{background:rgba(21,141,85,.11);border-color:rgba(21,141,85,.29);color:#157546}
#hr-master-panel .hr-master-note{padding:8px 22px 17px;margin:0;color:var(--muted,#617087);font-size:11px;line-height:1.55}
.hr-master-backdrop{position:fixed;inset:0;z-index:9000;display:flex;justify-content:center;align-items:center;padding:14px;background:rgba(10,20,44,.66);backdrop-filter:blur(3px)}
.hr-master-backdrop.hidden{display:none!important}
.hr-master-dialog{background:var(--hs-card,#fff);color:var(--hs-ink,#182147);width:min(940px,100%);height:auto;max-height:min(94dvh,1020px);display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--border,#cfd7e5);border-radius:19px;box-shadow:0 24px 65px rgba(0,0,0,.24)}
.hr-master-modal-head{padding:17px 24px;background:linear-gradient(120deg,#152b5c,#243e77);color:#fff;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-shrink:0}
.hr-master-modal-head h2{margin:5px 0 0;font-size:21px;color:#fff}
.hr-master-modal-head .panel-kicker{color:#e9d4a4;letter-spacing:.09em;font-size:10px}
.hr-master-modal-close{border:1px solid rgba(255,255,255,.4);border-radius:10px;background:rgba(255,255,255,.1);color:#fff;font-size:27px;line-height:1;width:42px;height:42px;cursor:pointer}
.hr-master-modal-body{overflow-y:auto;overscroll-behavior:contain;padding:23px 25px 29px}
.hr-master-profile-summary{display:flex;align-items:flex-start;justify-content:space-between;gap:13px;padding-bottom:17px;border-bottom:1px solid var(--border,#e3e6ee);margin-bottom:12px}
.hr-master-profile-summary strong{display:block;font-size:20px;line-height:1.3}
.hr-master-profile-summary span{display:block;color:var(--muted,#66748b);font-size:12px;margin-top:3px}
.hr-master-profile-dept{font-size:12px!important;font-weight:750;padding:7px 10px;border-radius:8px;background:rgba(186,148,75,.12);color:var(--hs-ink,#182147)!important}
.hr-master-modal-body>.hr-master-note,.hr-master-import-results .hr-master-note{font-size:12px;line-height:1.65;color:var(--muted,#64748b);padding:3px 0 12px}
.hr-master-group{margin:17px 0 0;border:1px solid var(--border,#dae1ec);border-radius:13px;padding:18px 17px 17px;min-width:0}
.hr-master-group legend{padding:0 8px;font-size:13px;font-weight:800;color:var(--hs-ink,#182147)}
.hr-master-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.hr-master-field{min-width:0;display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:750;color:var(--hs-ink,#182147)}
.hr-master-field input{width:100%;min-width:0;background:var(--hs-card,#fff);color:var(--hs-ink,#182147);border:1px solid var(--border,#cbd5e1);border-radius:9px;padding:11px 12px;min-height:43px;box-sizing:border-box;font-size:13px}
.hr-master-field input:focus{outline:2px solid rgba(188,148,69,.5);outline-offset:1px}
.hr-master-expired{border-color:#c0693f!important}
.hr-master-expiry-warning{color:#b65327;font-size:11px}
.hr-master-drive-existing{display:grid;gap:6px;margin:15px 0;padding:14px 16px;border-radius:10px;border:1px solid #c5d9cd;background:rgba(24,121,71,.065)}
.hr-master-drive-existing span{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.03em}
.hr-master-drive-existing a{color:#176c48;font-weight:800;font-size:13px;overflow-wrap:anywhere}
.hr-master-drive-existing small{color:var(--muted,#64748b)}
.hr-master-form-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:19px 0 7px}
#hr-master-save-message{font-size:12px;color:#176e46;font-weight:800}
#hr-master-save-message.is-error{color:#b43230}
.hr-master-audit{border-top:1px solid var(--border,#e2e8f0);margin-top:20px;padding-top:16px}
.hr-master-audit h3{font-size:14px;margin:0 0 6px}
.hr-master-audit p{margin:0 0 12px;font-size:11px;color:var(--muted,#66748b)}
.hr-master-audit-item{font-size:11px;padding:7px 0;border-bottom:1px solid var(--border,#e3e8ef);color:var(--muted,#66748b);overflow-wrap:anywhere}
.hr-master-file-label{display:block;font-weight:800;font-size:12px;margin-bottom:8px}
#hr-master-csv{display:block;padding:15px;margin-bottom:15px;border:1px dashed var(--border,#a9b8cd);border-radius:12px;width:100%;max-width:100%;box-sizing:border-box}
.hr-master-import-results{padding:15px;border:1px solid var(--border,#dae1ec);border-radius:10px;margin-top:15px}
.hr-master-import-scroll{overflow:auto;max-height:235px;margin:11px 0 17px}
.hr-master-import-ok,.hr-master-import-error{padding:7px 9px;font-size:12px;border-radius:8px;line-height:1.45;margin:3px 0}
.hr-master-import-ok{background:rgba(23,116,66,.09);color:#1b824e}
.hr-master-import-error,.hr-master-error{background:rgba(189,47,47,.075);color:#b63131;padding:12px;border-radius:8px}
.hr-master-import-success{padding:18px;border:1px solid rgba(23,136,79,.3);background:rgba(23,136,79,.075);border-radius:12px}
.hr-master-import-success strong{font-size:18px;color:#157747}
.hr-master-import-success p{font-size:13px;line-height:1.6;margin:12px 0 16px}
html[data-theme="dark"] #hr-master-panel .hr-master-status-badge.has-details{color:#99ddb0}
html[data-theme="dark"] .hr-master-drive-existing{background:rgba(19,106,74,.16);border-color:#39745c}
html[data-theme="dark"] .hr-master-drive-existing a{color:#9de4bb}
html[data-theme="dark"] .hr-master-import-ok{color:#9ce2b5}
html[data-theme="dark"] .hr-master-import-success strong{color:#99e2b5}
html[data-theme="dark"] #hr-master-panel .hr-master-status-badge{color:#bed0ef}
html[data-theme="dark"] .hr-master-modal-body{background:var(--hs-card,#182147)}
@media(max-width:760px){
 #hr-master-panel .hr-master-head{padding:16px;display:grid;gap:15px}
 #hr-master-panel .hr-master-buttons{justify-content:flex-start}
 #hr-master-panel .hr-master-toolbar{padding:0 16px 12px;display:grid;gap:9px}
 #hr-master-panel .hr-master-toolbar label{width:100%}
 #hr-master-panel .hr-master-status{margin:0 16px 10px}
 #hr-master-panel .hr-master-note{padding:8px 16px 15px}
 .hr-master-backdrop{padding:6px}
 .hr-master-dialog{max-height:96dvh;border-radius:13px}
 .hr-master-modal-head{padding:14px 16px}
 .hr-master-modal-head h2{font-size:17px}
 .hr-master-modal-body{padding:14px 16px 22px}
 .hr-master-profile-summary{display:grid;gap:9px}
 .hr-master-field-grid{grid-template-columns:1fr;gap:12px}
 .hr-master-group{padding:14px 12px 12px}
 .hr-master-form-actions{display:grid}
 .hr-master-form-actions button{width:100%}
}


/* Unified personal details card — uploaded CSV preview + verified HRIS data,
   one Edit button instead of repeated personal-data fieldsets. */
.hr-master-unified-panel{display:grid;gap:15px}
.hr-master-unified-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.hr-master-unified-heading h3{font-size:18px;margin:0 0 6px;font-weight:850;line-height:1.35}
.hr-master-unified-heading small{display:block;font-size:11px;color:var(--muted,#69758d)}
.hr-master-unified-heading .btn{flex-shrink:0}
.hr-master-unified-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 18px}
.hr-master-unified-field{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0}
.hr-master-unified-field>span{font-size:12px;font-weight:800;color:var(--muted,#596681);line-height:1.3}
.hr-master-unified-value{font-size:13px;font-weight:750;color:var(--hs-ink,#182147);overflow-wrap:anywhere;max-width:100%;line-height:1.5;white-space:pre-wrap}
.hr-master-unified-field>small{font-size:10px;color:var(--muted,#7d8799)}
.hr-master-unified-field .hr-master-csv-conflict{color:#a65f15;font-weight:750}
.hr-master-unified-field a,.hr-master-unified-field button{margin-top:4px;font-size:11px;overflow-wrap:anywhere}
.hr-master-unified-edit{display:grid;gap:10px}
.hr-master-unified-edit.hidden,.hr-master-unified-grid.hidden{display:none!important}
.hr-master-unified-edit .hr-master-field-grid{align-items:start}
.hr-master-unified-edit .hr-master-field small{font-size:10px;color:var(--muted,#768197);line-height:1.4;font-weight:500}
.hr-master-unified-edit input[type=date]{color-scheme:light}
.hr-master-unified-panel #hr-master-profile-notice:empty{display:none}
.hr-master-unified-panel #hr-master-profile-notice:not(:empty){margin:0;font-size:12px;color:#207350;font-weight:700}
.hr-master-extra-collapse{border:1px solid var(--border,#dce2ec);border-radius:12px;padding:12px 16px;margin:16px 0;background:var(--hs-card,#fff)}
.hr-master-extra-collapse>summary{cursor:pointer;font-size:13px;font-weight:850;color:var(--hs-ink,#182147)}
.hr-master-extra-collapse[open]>summary{margin-bottom:16px}
.hr-master-extra-collapse .hr-master-assets{margin-top:7px}
html[data-theme="dark"] .hr-master-unified-value{color:var(--hs-ink,#f3f5ff)}
html[data-theme="dark"] .hr-master-unified-edit input[type=date]{color-scheme:dark}
html[data-theme="dark"] .hr-master-unified-field .hr-master-csv-conflict{color:#f0c77c}
@media(max-width:760px){
 .hr-master-unified-heading{gap:12px;align-items:flex-start}
 .hr-master-unified-grid{grid-template-columns:1fr;gap:17px}
 .hr-master-unified-panel{gap:12px}
 .hr-master-unified-heading h3{font-size:17px}
}
