.nhra-new-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:20px}.nhra-new-summary .card{text-align:start;cursor:pointer;color:inherit}.nhra-new-summary strong{display:block;font-size:26px;margin-bottom:8px}.nhra-new-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:end;margin-bottom:20px}.nhra-new-badge{display:inline-block;border-radius:8px;padding:5px 9px;white-space:nowrap;font-size:12px;font-weight:700}.nhra-new-badge.yes{background:#def7e9;color:#006c3c}.nhra-new-badge.no{background:#fff0db;color:#885000}.nhra-new-badge.neutral{background:#e7edf5;color:#344964}.nhra-new-date{display:block;font-size:12px;margin-top:5px}.nhra-new-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:18px}.nhra-new-form .full{grid-column:1/-1}.nhra-new-modal{max-width:850px}.nhra-new-completion{border-top:1px solid var(--border,#cbd5e1);margin-top:22px;padding-top:12px}.nhra-new-history{margin:20px 0}.nhra-new-history>div{border-bottom:1px solid var(--border,#cbd5e1);padding:12px 0}.nhra-new-page .btn-row{flex-wrap:wrap}.theme-dark .nhra-new-badge.yes{background:#153f36;color:#9ff2c6}.theme-dark .nhra-new-badge.no{background:#4a351c;color:#ffd599}.theme-dark .nhra-new-badge.neutral{background:#33475d;color:#edf3ff}@media(max-width:900px){.nhra-new-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:550px){.nhra-new-form,.nhra-new-filters{grid-template-columns:1fr}.nhra-new-summary{gap:8px}.nhra-new-summary .card{padding:12px}}
.nhra-new-page .nhra-new-filters{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 18px;align-items:start;padding:18px;border:1px solid var(--line,#d8e2ef);border-radius:12px;background:var(--surface-muted,var(--card));margin-bottom:20px}
.nhra-new-filters .field,.nhra-new-form .field,.nhra-new-modal>.field{display:flex;flex-direction:column;gap:7px;min-width:0}
.nhra-new-filters .field>label{min-height:18px;margin:0;line-height:18px}
.nhra-new-filters input:not(.system-date-native-picker),.nhra-new-filters select,.nhra-new-modal input:not([type=file]):not(.system-date-native-picker),.nhra-new-modal select,.nhra-new-modal textarea{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:48px;padding:11px 13px;border:1px solid var(--line,#cbd7e8);border-radius:9px;background:var(--control,var(--card,#fff));color:var(--text,#183456);font:inherit;font-size:14px;line-height:24px;transition:border-color .15s,box-shadow .15s}
.nhra-new-filters .system-date-input>.input,.nhra-new-modal .system-date-input>.input{padding-inline-end:50px}
.nhra-new-filters .custom-select,.nhra-new-filters .date-input-wrap{width:100%;min-width:0}
.nhra-new-filters .custom-select-trigger{box-sizing:border-box;min-height:48px;height:48px;font-size:14px}
.nhra-new-filters input::placeholder,.nhra-new-modal input::placeholder{color:var(--muted,#71839c);opacity:1}
.nhra-new-filters input:focus-visible,.nhra-new-filters select:focus-visible,.nhra-new-modal input:focus-visible,.nhra-new-modal select:focus-visible,.nhra-new-modal textarea:focus-visible{outline:2px solid var(--primary,#4279e8);outline-offset:2px;border-color:var(--primary,#4279e8)}
.nhra-new-filters>.btn{grid-column:1/-1;justify-self:end;min-width:160px;min-height:42px;margin-top:0}
.nhra-new-modal textarea{min-height:96px;resize:vertical}
.nhra-new-modal input[type=file]{width:100%;min-width:0;color:var(--text);font:inherit}
.theme-dark .nhra-new-filters input,.theme-dark .nhra-new-filters select,.theme-dark .nhra-new-modal input:not([type=file]),.theme-dark .nhra-new-modal select,.theme-dark .nhra-new-modal textarea{background:var(--control,#1b2d41);color:var(--text,#ecf2ff);border-color:var(--line,#445b76);color-scheme:dark}
@media(max-width:1100px){.nhra-new-page .nhra-new-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:550px){.nhra-new-page .nhra-new-filters{grid-template-columns:1fr;padding:13px;gap:13px}.nhra-new-filters>.btn{width:100%;justify-self:stretch}}

/* Compact workspace: primary search stays visible; optional fields expand. */
.nhra-new-page .page-heading{align-items:center;gap:20px;margin-bottom:20px}
.nhra-new-page .page-heading p{max-width:760px;line-height:1.55}
.nhra-new-page .nhra-new-summary{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 18px}
.nhra-new-stat{display:flex;align-items:center;gap:12px;min-width:172px;padding:13px 18px;border:1px solid var(--line,#d8e2ef);border-radius:12px;background:var(--card,#fff);color:var(--text,#183456);font:inherit;text-align:start;cursor:pointer}
.nhra-new-stat strong{font-size:24px;line-height:1.2;margin:0;color:var(--text,#183456)}
.nhra-new-stat span{font-size:14px;color:var(--muted,#71839c)}
.nhra-new-stat.selected{border-color:var(--primary,#4279e8);box-shadow:inset 0 -3px 0 var(--primary,#4279e8)}
.nhra-new-stat:focus-visible{outline:2px solid var(--primary,#4279e8);outline-offset:3px}
.nhra-new-workspace{padding:20px!important}
.nhra-new-page .nhra-new-filters{grid-template-columns:minmax(240px,1.4fr) repeat(2,minmax(170px,1fr)) auto;align-items:end;gap:14px;padding:0;border:0;border-radius:0;background:none;margin-bottom:16px}
.nhra-new-filter-actions{display:flex;gap:8px;align-items:center;padding-bottom:0}
.nhra-new-filter-actions .btn{min-height:44px;white-space:nowrap;padding:10px 14px}
.nhra-new-page .nhra-new-filters input:not(.system-date-native-picker),.nhra-new-page .nhra-new-filters .custom-select-trigger{height:44px;min-height:44px}
.nhra-new-advanced{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;padding:16px 0;margin-bottom:12px;border-top:1px solid var(--line,#d8e2ef);border-bottom:1px solid var(--line,#d8e2ef)}
.nhra-new-advanced[hidden]{display:none}
.nhra-new-advanced .field{display:flex;flex-direction:column;gap:7px;min-width:0}
.nhra-new-advanced .field>label{margin:0;line-height:18px}
.nhra-new-advanced input:not(.system-date-native-picker),.nhra-new-advanced select,.nhra-new-advanced .custom-select-trigger{box-sizing:border-box;width:100%;height:44px;min-height:44px;border:1px solid var(--line,#cbd7e8);border-radius:9px;padding:9px 12px;background:var(--control,var(--card,#fff));color:var(--text,#183456);font:inherit;font-size:14px}
.nhra-new-advanced .system-date-input>.input{padding-inline-end:48px}
.nhra-new-page .data-table td{vertical-align:middle;padding-top:14px;padding-bottom:14px}
.nhra-new-employee-link{display:block;max-width:100%;margin:0;padding:0;border:0;background:none;color:var(--text,#183456);font:inherit;font-weight:700;text-align:start;cursor:pointer;text-decoration:none}
.nhra-new-employee-link:hover{text-decoration:underline;color:var(--primary,#285fc7)}
.nhra-new-employee-link:focus-visible{outline:2px solid var(--primary,#4279e8);outline-offset:3px;border-radius:3px}
.nhra-new-page .nhra-new-date{color:var(--text,#17233d);font-weight:600;line-height:1.5}
.theme-dark .nhra-new-stat{background:var(--card,#203247);border-color:var(--line,#445b76)}
.nhra-new-results-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:16px 0 12px;color:var(--muted,#71839c);font-size:13px;line-height:1.5}
.nhra-new-results-meta>span:first-child{font-weight:600;color:var(--text,#183456)}
.nhra-new-page-size{font-size:12px;border:1px solid var(--line,#cbd7e8);border-radius:20px;padding:3px 10px}
.theme-dark .nhra-new-advanced select,.theme-dark .nhra-new-advanced input{color-scheme:dark}
@media(max-width:1200px){.nhra-new-page .nhra-new-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.nhra-new-advanced{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.nhra-new-page .page-heading{align-items:start;flex-direction:column}.nhra-new-stat{min-width:0;flex:1;padding:12px;gap:8px}.nhra-new-stat span{font-size:12px}.nhra-new-workspace{padding:14px!important}.nhra-new-advanced{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.nhra-new-page .nhra-new-filters,.nhra-new-advanced{grid-template-columns:1fr}.nhra-new-page .nhra-new-summary{gap:6px}.nhra-new-stat{flex-direction:column;align-items:start;gap:4px}.nhra-new-filter-actions .btn{flex:1}}

/* Manual employee selection */
.modal.nhra-manual-modal{width:min(620px,calc(100vw - 32px));max-width:620px;padding:28px;max-height:calc(100dvh - 32px);overflow-y:auto}
.nhra-manual-heading{padding-inline-end:48px;margin-bottom:22px}
.nhra-manual-heading h2{margin:0 0 8px;line-height:1.25}
.nhra-manual-heading p{margin:0;color:var(--muted,#71839c);font-size:14px;line-height:1.6}
.nhra-manual-fields{display:grid;gap:17px}
.nhra-manual-modal .nhra-manual-fields .field{display:flex;flex-direction:column;gap:7px;min-width:0}
.nhra-manual-fields .field>label{margin:0;font-size:13px;font-weight:650;line-height:1.4}
.nhra-manual-modal .nhra-manual-fields input,.nhra-manual-modal .nhra-manual-fields select{height:48px;min-height:48px;padding:10px 13px}
.nhra-manual-fields select:disabled{opacity:.65;cursor:wait}
.nhra-manual-hint{min-height:18px;margin-top:-9px;color:var(--muted,#71839c);font-size:12px;line-height:1.5}
.nhra-manual-selection{display:grid;gap:4px;margin-top:18px;padding:14px 16px;border:1px solid var(--line,#d8e2ef);border-radius:10px;background:var(--surface-muted,#f3f7fc)}
.nhra-manual-selection span,.nhra-manual-selection small{color:var(--muted,#71839c);font-size:12px;line-height:1.5}
.nhra-manual-selection strong{color:var(--text,#183456);font-size:14px}
.nhra-manual-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:23px;padding-top:18px;border-top:1px solid var(--line,#d8e2ef)}
.nhra-manual-actions .btn{min-height:44px;padding-inline:19px}
.theme-dark .nhra-manual-selection{background:#1b2b3e;border-color:var(--line,#445b76)}
@media(max-width:550px){.modal.nhra-manual-modal{width:calc(100vw - 20px);padding:20px}.nhra-manual-heading{margin-bottom:18px}.nhra-manual-actions{margin-top:18px}.nhra-manual-actions .btn{flex:1}}

/* Licence workflow modal */
.modal.nhra-new-modal:not(.nhra-manual-modal){width:min(920px,calc(100vw - 32px));max-width:920px;max-height:calc(100dvh - 32px);padding:0;overflow-y:auto;background:var(--surface,#f6f9fd)}
.nhra-licence-heading{padding:26px 72px 20px 28px;border-bottom:1px solid var(--line,#d8e2ef);background:var(--card,#fff)}
.nhra-licence-heading h2{margin:4px 0 6px;color:var(--text,#183456);font-size:24px;line-height:1.25}
.nhra-licence-heading p{margin:0;color:var(--muted,#71839c);font-size:13px;line-height:1.55}
.nhra-licence-kicker{color:var(--primary,#285fc7);font-size:12px;font-weight:750;letter-spacing:.04em;text-transform:uppercase}
.nhra-licence-body{display:grid;gap:18px;padding:20px 28px 24px}
.nhra-licence-body>.notice:empty{display:none}
.nhra-licence-section{padding:20px;border:1px solid var(--line,#d8e2ef);border-radius:13px;background:var(--card,#fff);box-shadow:0 5px 18px rgba(36,67,105,.06)}
.nhra-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:17px}
.nhra-section-heading h3{display:inline;margin:0;color:var(--text,#183456);font-size:17px;line-height:1.35}
.nhra-section-heading p{margin:6px 0 0;color:var(--muted,#71839c);font-size:13px;line-height:1.55}
.nhra-section-number{display:inline-grid;place-items:center;width:25px;height:25px;margin-inline-end:8px;border-radius:50%;background:var(--blue-soft,#e8f0ff);color:var(--blue,#285fc7);font-size:12px;font-weight:800;vertical-align:2px}
.nhra-progress-count{flex:none;padding:5px 10px;border-radius:20px;background:var(--blue-soft,#e8f0ff);color:var(--blue,#285fc7);font-size:12px;font-weight:750}
.nhra-progress-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.nhra-progress-step{position:relative;min-width:0;padding:14px 14px 12px 42px;border:1px solid var(--line,#d8e2ef);border-radius:10px;background:var(--surface-muted,#f5f8fc)}
.rtl .nhra-progress-step{padding:14px 42px 12px 14px}
.nhra-progress-step.complete{border-color:#7bc9a4;background:#effbf5}
.nhra-progress-state{position:absolute;top:16px;left:14px;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#e5ebf3;color:#60738a;font-weight:800}
.rtl .nhra-progress-state{right:14px;left:auto}
.nhra-progress-step.complete .nhra-progress-state{background:#16865d;color:#fff}
.nhra-progress-step .field{gap:6px}
.nhra-progress-step .field>label{margin:0;font-size:12px;font-weight:750}
.nhra-progress-step select{min-height:42px!important;height:42px;padding-block:7px!important}
.nhra-notes{margin-top:14px;border-top:1px solid var(--line,#d8e2ef);padding-top:13px}
.nhra-notes summary,.nhra-new-history summary{color:var(--text,#183456);font-size:13px;font-weight:750;cursor:pointer}
.nhra-notes textarea{margin-top:12px;min-height:90px!important}
.nhra-final-card{border-top:3px solid var(--primary,#4279e8)}
.nhra-final-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:16px}
.nhra-document-field{display:grid;gap:9px}
.nhra-document-label{color:var(--text,#183456);font-size:13px;font-weight:700}
.nhra-document-drop{position:relative;display:grid;place-items:center;gap:5px;min-height:132px;padding:18px;border:1.5px dashed #88a7ca;border-radius:11px;background:var(--surface-muted,#f5f8fc);text-align:center;cursor:pointer;transition:border-color .15s,background .15s}
.nhra-document-drop:hover{border-color:var(--primary,#4279e8);background:var(--blue-soft,#edf3ff)}
.nhra-document-drop:focus-within{outline:2px solid var(--primary,#4279e8);outline-offset:2px}
.nhra-document-drop input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.nhra-document-drop strong{color:var(--text,#183456);font-size:14px}
.nhra-document-drop small{color:var(--muted,#71839c);font-size:12px}
.nhra-document-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:var(--blue-soft,#e8f0ff);color:var(--blue,#285fc7);font-size:20px;font-weight:800}
.nhra-selected-file{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #7bc9a4;border-radius:9px;background:#effbf5;color:#125c43;font-size:13px;font-weight:650}
.nhra-selected-file span{min-width:0;overflow-wrap:anywhere}
.nhra-saved-document{justify-self:start;font-size:13px;font-weight:700}
.nhra-save-guidance{margin:14px 0 0;padding:10px 12px;border-radius:8px;background:#fff6df;color:#775300;font-size:12px;font-weight:650}
.nhra-new-history{margin:0;padding:15px 18px;border:1px solid var(--line,#d8e2ef);border-radius:11px;background:var(--card,#fff)}
.nhra-new-history>div{border-bottom:1px solid var(--line,#d8e2ef);padding:12px 0}
.nhra-new-history>div:last-child{border-bottom:0;padding-bottom:0}
.nhra-licence-actions{position:sticky;z-index:3;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 28px;border-top:1px solid var(--line,#d8e2ef);background:color-mix(in srgb,var(--card,#fff) 94%,transparent);box-shadow:0 -8px 22px rgba(28,49,77,.08);backdrop-filter:blur(8px)}
.nhra-licence-actions-secondary,.nhra-licence-actions-primary{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.nhra-licence-actions .btn{min-height:43px}
.theme-dark .modal.nhra-new-modal:not(.nhra-manual-modal){background:#172638}
.theme-dark .nhra-licence-heading,.theme-dark .nhra-licence-section,.theme-dark .nhra-new-history{background:#23374d;border-color:#526b86}
.theme-dark .nhra-progress-step,.theme-dark .nhra-document-drop{background:#1b2d41;border-color:#627d9b}
.theme-dark .nhra-progress-step.complete{background:#173d35;border-color:#438b70}
.theme-dark .nhra-progress-state{background:#3c5068;color:#e6eef8}
.theme-dark .nhra-progress-step.complete .nhra-progress-state{background:#2aa879;color:#fff}
.theme-dark .nhra-document-drop:hover{background:#294761;border-color:#8fc5ff}
.theme-dark .nhra-selected-file{background:#173d35;border-color:#438b70;color:#c8f7e3}
.theme-dark .nhra-save-guidance{background:#4b3b18;color:#ffe5a5}
.theme-dark .nhra-licence-actions{background:rgba(29,45,64,.94);border-color:#526b86;box-shadow:0 -10px 25px rgba(0,0,0,.28)}
@media(max-width:720px){.modal.nhra-new-modal:not(.nhra-manual-modal){width:calc(100vw - 18px);max-height:calc(100dvh - 18px)}.nhra-licence-heading{padding:22px 56px 17px 18px}.nhra-licence-body{padding:16px 16px 20px}.nhra-progress-grid,.nhra-final-grid{grid-template-columns:1fr}.nhra-licence-actions{align-items:stretch;flex-direction:column;padding:12px 16px}.nhra-licence-actions-secondary,.nhra-licence-actions-primary{display:grid;grid-template-columns:1fr 1fr}.nhra-licence-actions .btn{width:100%}}
@media(max-width:460px){.nhra-licence-section{padding:16px}.nhra-section-heading{gap:10px}.nhra-licence-actions-secondary,.nhra-licence-actions-primary{grid-template-columns:1fr}.nhra-progress-step{padding-inline-end:10px}}

.nhra-new-badge.due{background:#fbe3e6;color:#a51830}.theme-dark .nhra-new-badge.due{background:#562432;color:#ffc3cc}
.nhra-new-designation,.nhra-new-passport{display:block;font-size:14px;line-height:1.4}
.nhra-new-designation{margin-top:2px}
.nhra-new-passport{margin-top:3px;font-weight:600}
