#hrDocumentsPage .bc-hr-page-head{margin-bottom:16px}
#hrDocumentsRegister{color:#263b50;font-size:13px}
#hrDocumentsRegister [hidden],#hrdPanel [hidden]{display:none!important}
.hrd-summary{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}
.hrd-summary button{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #dce5ed;border-radius:9px;padding:10px 14px;color:#475d73;font-size:12px;cursor:pointer}
.hrd-summary strong{font-size:19px;color:#244768}.hrd-summary button[aria-pressed=true]{border-color:#70a9cf;background:#f0f7fc}
.hrd-toolbar{display:flex;gap:10px;margin-bottom:12px;flex-wrap:wrap}.hrd-search{flex:1;min-width:220px}
.hrd-toolbar input,.hrd-toolbar select{width:100%;min-height:36px;border:1px solid #ccd9e4;border-radius:7px;background:#fff;color:#2e465e;font:inherit;padding:7px 10px}.hrd-toolbar select{width:auto;max-width:100%}
.hrd-table-wrap{overflow-x:auto;border:1px solid #dce5ed;border-radius:10px;background:#fff}
.hrd-table{width:100%;border-collapse:collapse;min-width:760px}.hrd-table th{text-align:left;font-size:12px;font-weight:600;color:#567087;background:#f4f8fb;padding:12px}.hrd-table td{padding:11px 12px;border-top:1px solid #e9eff4;vertical-align:middle}.hrd-table small{display:block;font-size:12px;color:#758697;line-height:1.5}.hrd-table td:last-child{text-align:right;white-space:nowrap}
#hrDocumentsRegister button:not([data-hrd-filter]),#hrdPanel button{border:1px solid #d4e0ea;border-radius:6px;padding:6px 10px;color:#315674;background:#fff;font-size:12px;min-height:32px;cursor:pointer}
#hrDocumentsRegister .hrd-person-name{border:0;padding:0;text-align:left;font-size:13px;font-weight:600;color:#265a7f;background:transparent}
.hrd-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;color:#6c8093;font-size:12px}.hrd-pagination button+button{margin-left:6px}
.hrd-status{font-size:11px;font-weight:600;border-radius:5px;padding:4px 7px;display:inline-block;white-space:nowrap;background:#f0f4f7;color:#5d7080}.hrd-status.expired{background:#fff0ed;color:#a64735}.hrd-status.soon,.hrd-status.missing{background:#fff7e7;color:#8a682f}.hrd-status.current{background:#edf6f3;color:#437564}
.hrd-empty{text-align:center;padding:28px 16px;color:#7a8c9b;line-height:1.7}.hrd-muted{color:#8191a0}
#hrdPanel.hrd-panel{position:fixed;inset:0 0 0 auto;margin:0;width:min(650px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;padding:0;border:0;border-left:1px solid #dbe5ed;background:#f8fafc;color:#2a4156;box-shadow:-10px 0 40px #0c203326;overflow:hidden}
#hrdPanel::backdrop{background:#10253766}
.hrd-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:22px 24px 18px;background:#fff;border-bottom:1px solid #dfe8ef}.hrd-panel-head small{font-size:10px;letter-spacing:1.2px;color:#548eb5;font-weight:700}.hrd-panel-head h2{font-size:21px;line-height:1.3;margin:7px 0;color:#243f58;overflow-wrap:anywhere}.hrd-panel-head p{font-size:12px;color:#708396;margin:0;line-height:1.5;overflow-wrap:anywhere}
#hrdPanel[open]{display:flex;flex-direction:column}.hrd-panel-body{overflow-y:auto;overscroll-behavior:contain;flex:1;padding:18px 24px;min-height:0}.hrd-panel-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;margin-bottom:10px}
#hrdPanel .hrd-primary{background:#244c6c;border-color:#244c6c;color:#fff}.hrd-note{font-size:12px;line-height:1.6;color:#788b9c;margin:10px 0 16px}
.hrd-doc{border:1px solid #dce6ef;border-radius:9px;background:#fff;margin:12px 0;padding:15px}.hrd-doc-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.hrd-doc-head h3{font-size:14px;margin:0 0 4px;font-weight:600;overflow-wrap:anywhere}.hrd-doc-head span:not(.hrd-status){font-size:12px;color:#7b8b99;overflow-wrap:anywhere}.hrd-doc dl{display:grid;grid-template-columns:1fr 1fr 1.4fr;gap:12px;margin:15px 0 8px}.hrd-doc dt{font-size:11px;color:#8393a1;margin-bottom:4px}.hrd-doc dd{margin:0;font-size:12px;color:#3e566c}.hrd-expiry-note{font-size:12px;color:#7a8792;margin:8px 0}.hrd-notes{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.5;color:#657b8f}.hrd-doc footer{display:flex;flex-wrap:wrap;gap:6px;border-top:1px solid #edf1f5;padding-top:12px;margin-top:12px}
#hrdPanel .hrd-missing-file{color:#916326;border-color:#e8d5b5;background:#fffaf1}.hrd-panel-body details>summary{font-size:13px;font-weight:600;padding:15px 0;cursor:pointer}.hrd-panel-body details .hrd-doc{background:#fbfcfd}
#hrdPanel fieldset{border:0;margin:0;padding:0;min-width:0}#hrdPanel label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#4b647b}#hrdPanel input:not([type=checkbox]),#hrdPanel select,#hrdPanel textarea{width:100%;box-sizing:border-box;min-width:0;min-height:36px;border:1px solid #cad8e3;border-radius:6px;background:#fff;padding:8px 10px;font:inherit;font-size:13px;color:#263f55}#hrdPanel textarea{resize:vertical}.hrd-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px 14px;margin-top:18px}.hrd-wide{grid-column:1/-1}#hrdPanel .hrd-checkbox{display:flex;flex-direction:row;align-items:center;gap:8px;line-height:1.5}#hrdPanel .hrd-checkbox input{width:16px;height:16px;flex:none}.hrd-form-actions{display:flex;justify-content:flex-end;gap:8px;margin:20px 0}#hrdSaveError,#hrdPanelMessage{font-size:12px;color:#a34236;line-height:1.5}
#hrdPanel .bcp-hr-picker-arrow{min-height:30px;background:transparent;border:0;padding:4px}#hrdPanel .bcp-hr-picker-option{border:0;text-align:left;border-radius:0;width:100%}
#hrdPanel button:disabled,#hrDocumentsRegister button:disabled{opacity:.5;cursor:default}#hrdPanel :focus-visible,#hrDocumentsRegister :focus-visible{outline:2px solid #5499c8;outline-offset:2px}
@media(max-width:700px){.hrd-panel-head{padding:18px 16px}.hrd-panel-body{padding:16px}.hrd-summary{gap:6px}.hrd-summary button{flex:1;min-width:130px;padding:8px 10px}.hrd-form-grid{grid-template-columns:1fr}.hrd-doc dl{grid-template-columns:1fr 1fr}.hrd-doc dl>div:last-child{grid-column:1/-1}.hrd-toolbar select{flex:1}.hrd-pagination{flex-wrap:wrap}}
@media(pointer:coarse),(max-width:600px){#hrdPanel button,#hrDocumentsRegister button:not(.hrd-person-name),.hrd-toolbar input,.hrd-toolbar select{min-height:44px}#hrdPanel input:not([type=checkbox]),#hrdPanel select,#hrdPanel textarea,.hrd-toolbar input,.hrd-toolbar select{font-size:16px;min-height:44px}}

.bcd-dialog.bcd-hr{width:min(760px,94vw);font-size:13px}.bcd-hr .bcd-head,.bcd-hr .bcd-body{padding:16px 20px}.bcd-hr .bcd-head h2{font-size:18px}.bcd-hr form{padding:14px}.bcd-hr .bcd-dropzone{padding:16px}.bcd-hr .bcd-dropzone>strong{font-size:14px}.bcd-hr .bcd-file strong{font-size:13px}.bcd-hr .bcd-row{padding:12px 0}.bcd-hr .bcd-actions{gap:5px}@media(pointer:coarse),(max-width:600px){.bcd-hr button,.bcd-hr input,.bcd-hr select{min-height:44px}.bcd-hr input,.bcd-hr select{font-size:16px}}
/* Keep the shared legacy table decorator inside this compact HR register. */
body.app-ready #hrDocumentsPage .hrd-table{min-width:760px!important}
#hrdAdd[hidden]{display:none!important}
body.app-ready #hrdPanel.hrd-panel{max-width:100vw!important;max-height:100dvh;overflow-y:hidden}
/* Scope the compact register explicitly above the legacy page/table decorators. */
body.app-ready main #hrDocumentsPage .bc-hr-page-head{padding:0!important;margin:0 0 16px!important;border:0!important;box-shadow:none!important;align-items:center!important;gap:16px!important;background:transparent!important}
body.app-ready #hrDocumentsPage #hrDocumentsRegister .hrd-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 16px}
body.app-ready #hrDocumentsPage #hrDocumentsRegister .hrd-summary button{min-width:0;min-height:52px;height:auto;margin:0!important;padding:10px 14px!important;border:1px solid #dce5ed!important;border-radius:8px;box-shadow:none!important;font-size:12px!important;line-height:1.4;text-align:left;justify-content:flex-start}
body.app-ready #hrDocumentsPage #hrDocumentsRegister .hrd-summary strong{font-size:18px!important;font-weight:600;line-height:1.2}
body.app-ready #hrDocumentsPage #hrDocumentsRegister .hrd-summary button[aria-pressed=true]{border-color:#86aecb!important}
body.app-ready #hrDocumentsPage #hrDocumentsRegister .hrd-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) minmax(185px,220px) minmax(150px,180px);gap:12px;align-items:end;margin:0 0 12px}
body.app-ready #hrDocumentsPage #hrDocumentsRegister .hrd-toolbar label{display:flex;flex-direction:column;gap:6px;min-width:0;margin:0;font-size:12px;font-weight:500;line-height:1.3;color:#60768a}
body.app-ready #hrDocumentsPage #hrDocumentsRegister .hrd-toolbar :is(input,select){box-sizing:border-box;display:block;width:100%!important;min-width:0!important;max-width:100%;height:36px!important;min-height:36px!important;margin:0!important;padding:7px 10px!important;border:1px solid #ccd9e4!important;border-radius:6px;font-size:13px!important;line-height:20px;box-shadow:none!important;background:#fff}
body.app-ready #hrDocumentsPage #hrDocumentsRegister .hrd-table{margin:0!important;table-layout:auto!important}
body.app-ready #hrDocumentsPage #hrDocumentsRegister .hrd-table :is(th,td){padding:10px 12px!important;font-size:12px!important;line-height:1.45!important;vertical-align:middle!important;text-align:left!important}
body.app-ready #hrDocumentsPage #hrDocumentsRegister .hrd-table th{font-size:11px!important;font-weight:600!important;text-transform:none!important;letter-spacing:0!important}
body.app-ready #hrDocumentsPage #hrDocumentsRegister .hrd-table :is(th,td):last-child{width:152px!important;min-width:152px!important;text-align:right!important}
body.app-ready #hrDocumentsPage #hrDocumentsRegister .hrd-table button{margin:0!important;min-height:32px!important;height:auto!important;padding:5px 9px!important;font-size:12px!important;box-shadow:none!important;white-space:nowrap}
body.app-ready #hrDocumentsPage #hrDocumentsRegister .hrd-table .hrd-person-name{display:block;border:0!important;border-width:0!important;border-radius:0!important;padding:0!important;min-height:24px!important;background:transparent!important;box-shadow:none!important;font-size:13px!important;line-height:1.4!important;font-weight:600;text-align:left!important;white-space:normal;overflow-wrap:anywhere}
body.app-ready #hrDocumentsPage #hrDocumentsRegister .hrd-table small{margin-top:2px;font-size:11px!important;line-height:1.4}
body.app-ready #hrDocumentsPage #hrDocumentsRegister .hrd-table .hrd-status{font-size:11px!important;padding:3px 6px!important;border-radius:4px}
#hrdPanel .hrd-upload{margin-top:20px;min-width:0}
#hrdPanel .hrd-upload-heading{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#4b647b;margin-bottom:8px}
#hrdPanel .hrd-upload-heading strong{font-weight:600}#hrdPanel .hrd-upload-heading span{font-size:11px;color:#8191a0}
#hrdPanel .hrd-dropzone{display:flex;flex-direction:column;align-items:center;gap:7px;text-align:center;padding:20px 14px;border:1px dashed #a9c0d2;border-radius:8px;background:#f2f7fb;transition:background .15s,border-color .15s}
#hrdPanel .hrd-dropzone>strong{font-size:13px;font-weight:600;color:#315674}#hrdPanel .hrd-dropzone>span{font-size:12px;color:#758697}
#hrdPanel .hrd-dropzone small{font-size:11px;color:#758697}
#hrdPanel .hrd-dropzone.is-dragging{border-color:#326e97;background:#e4f1fb}#hrdPanel .hrd-dropzone.is-disabled{opacity:.65}
#hrdPanel .hrd-upload-help{font-size:11px;color:#788b9c;line-height:1.6;margin:8px 0 12px}
#hrdPanel .hrd-file-row{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #dce5ed;border-radius:8px;background:#fff;margin:8px 0}
#hrdPanel .hrd-file-main{flex:1;min-width:0}#hrdPanel .hrd-file-main label{gap:5px;font-size:11px}
#hrdPanel .hrd-file-name{display:flex;align-items:center;gap:8px;min-width:0}#hrdPanel .hrd-file-name input{flex:1;min-width:0}#hrdPanel .hrd-file-name span{font-size:12px;color:#73889a;flex:none}
#hrdPanel .hrd-file-main small{display:block;font-size:11px;color:#8191a0;overflow-wrap:anywhere;margin-top:5px;line-height:1.4}
#hrdPanel .hrd-file-state{display:block;font-size:11px;color:#4b7868;line-height:1.5;margin-top:4px;overflow-wrap:anywhere}#hrdPanel .hrd-file-state.is-error{color:#a34236}
#hrdPanel [data-hrd-upload-message]{font-size:12px;color:#a34236;line-height:1.5;overflow-wrap:anywhere}#hrdPanel [data-hrd-upload-message]:empty{display:none}
#hrdPanelMessage{color:#4b7868}
#hrdPanel .hrd-doc.bcp-notification-target{outline:2px solid #3b82f6;outline-offset:-2px;scroll-margin:16px}
@media(max-width:900px){body.app-ready #hrDocumentsPage #hrDocumentsRegister .hrd-toolbar{grid-template-columns:1fr 1fr}body.app-ready #hrDocumentsPage #hrDocumentsRegister .hrd-search{grid-column:1/-1}}
@media(max-width:600px){body.app-ready #hrDocumentsPage #hrDocumentsRegister .hrd-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}body.app-ready main #hrDocumentsPage .bc-hr-page-head{flex-wrap:wrap}}
@media(pointer:coarse),(max-width:600px){body.app-ready #hrDocumentsPage #hrDocumentsRegister .hrd-toolbar :is(input,select){height:44px!important;min-height:44px!important;font-size:16px!important}body.app-ready #hrDocumentsPage #hrDocumentsRegister .hrd-table button,body.app-ready #hrDocumentsPage #hrDocumentsRegister .hrd-table .hrd-person-name{min-height:44px!important}}
