/* Rejection workflow: scoped to the HR portal, no changes to the public application wizard. */
.bb-alert-info{background:#edf4fa;border:1px solid #cbdfea;color:#214e6c}
.bb-btn-danger{background:#a73240;color:#fff!important;border:1px solid #a73240;box-shadow:none;line-height:1.4}
.bb-btn-danger:hover{background:#8f2633;border-color:#8f2633}
.bb-rejection-submit button:disabled{opacity:.65;cursor:wait;transform:none}
.bb-rejection-panel{border-top:3px solid #a73240;scroll-margin-top:90px}
.bb-rejection-details>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;list-style:none;color:var(--bb-navy)}
.bb-rejection-details>summary::-webkit-details-marker{display:none}
.bb-rejection-details>summary strong{display:block;font-size:19px;line-height:1.4}
.bb-rejection-details>summary small{display:block;font-size:12px;color:#6a7a86;font-weight:400;line-height:1.6;margin-top:4px}
.bb-rejection-details>summary>span:last-child{font-size:26px;line-height:1;font-weight:400}
.bb-rejection-details[open]>summary>span:last-child{transform:rotate(45deg)}
.bb-rejection-content{margin-top:24px;border-top:1px solid #e4eaf0;padding-top:22px}
.bb-rejection-recipient{background:#f4f7fa;border:1px solid #e1e8ee;border-radius:10px;padding:16px;margin-bottom:4px;overflow-wrap:anywhere}
.bb-rejection-recipient>span{display:block;font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:#677e90;margin-bottom:7px}
.bb-rejection-recipient strong{display:block;color:var(--bb-navy);font-size:15px}
.bb-rejection-recipient small{display:block;margin-top:5px;color:#596f80}
.bb-rejection-form,.bb-rejection-form label{min-width:0}
.bb-rejection-form textarea{resize:vertical;line-height:1.65;min-height:100px;font-size:14px}
.bb-rejection-form input,.bb-rejection-form select,.bb-rejection-form textarea{min-width:0;max-width:100%}
.bb-rejection-form .bb-helper{font-weight:400;line-height:1.6;margin:0}
.bb-rejection-confirm{background:#fff7f8;border:1px solid #ecd4d8;border-radius:10px;padding:14px;color:#693340!important}
.bb-rejection-form .bb-check input,.bb-rejection-submit .bb-check input{width:18px;height:18px;min-height:18px;flex:0 0 18px;margin-top:2px;accent-color:var(--bb-blue)}
.bb-rejection-preview-details,.bb-rejection-saved-mail{border:1px solid #dbe5ec;border-radius:10px;padding:14px;margin:6px 0 18px;min-width:0}
.bb-rejection-preview-details>summary,.bb-rejection-saved-mail>summary{cursor:pointer;font-size:13px;font-weight:700;color:var(--bb-blue);line-height:1.5}
.bb-rejection-preview{display:block;box-sizing:border-box;width:100%;height:780px;border:0;background:#f3f6f8;border-radius:8px;margin-top:14px;max-width:100%}
.bb-rejection-badges{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.bb-rejection-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;margin:0 0 20px}
.bb-rejection-facts div{min-width:0}
.bb-rejection-facts dt{color:#768693;font-size:11px;margin-bottom:5px}
.bb-rejection-facts dd{margin:0;color:#253f53;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.bb-rejection-internal{padding:14px;background:#f7f9fb;border-radius:8px;overflow-wrap:anywhere}
.bb-rejection-record>.bb-helper{line-height:1.6}
.bb-rejection-settings{border-top:1px solid #e4eaf0;margin-top:28px;padding-top:26px}
.bb-rejection-settings label{margin-top:18px}
.bb-rejection-settings textarea{line-height:1.65;resize:vertical;min-height:230px}
.bb-filterbar-rejections{grid-template-columns:minmax(180px,1fr) minmax(160px,240px) auto}
.bb-filterbar input,.bb-filterbar select{min-width:0}
.bb-row-actions{display:grid;gap:12px;font-size:12px;min-width:100px}
.bb-applications-table td{overflow-wrap:anywhere}
.bb-applications-table td small{line-height:1.5}
.bb-applications-table td[data-label="Afwijzing"] strong{font-size:12px;font-weight:600;max-width:210px;line-height:1.5}
.bb-pagination{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:16px;margin-top:24px;font-size:12px;color:#62788a}
.bb-detail-main,.bb-detail-side{min-width:0}
.bb-rejection-details summary:focus-visible,.bb-rejection-preview-details summary:focus-visible,.bb-rejection-saved-mail summary:focus-visible{outline:3px solid #659fc2;outline-offset:5px;border-radius:4px}
@media(max-width:1120px){.bb-filterbar-rejections{grid-template-columns:1fr auto}.bb-filterbar-rejections input[type="search"]{grid-column:1/-1}.bb-rejection-facts{grid-template-columns:1fr}}
@media(max-width:680px){
 .bb-rejection-form textarea{font-size:16px}.bb-rejection-form input,.bb-rejection-form select{font-size:16px}
 .bb-rejection-preview-details,.bb-rejection-saved-mail{padding:10px}.bb-rejection-preview{height:760px}
 .bb-rejection-submit>.bb-btn{width:100%;white-space:normal}.bb-rejection-content{padding-top:18px;margin-top:18px}
 .bb-filterbar-rejections{grid-template-columns:1fr}.bb-filterbar-rejections input[type="search"]{grid-column:auto}
 .bb-applications-table{min-width:0}.bb-applications-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
 .bb-applications-table,.bb-applications-table tbody,.bb-applications-table tr,.bb-applications-table td{display:block;width:100%;box-sizing:border-box}
 .bb-applications-table tr{border:1px solid #e0e8ee;border-radius:12px;padding:12px;margin-bottom:14px;background:#fff}
 .bb-applications-table td{border:0;padding:8px 0;font-size:13px}
 .bb-applications-table td::before{content:attr(data-label);display:block;font-size:10px;color:#788994;text-transform:uppercase;letter-spacing:.04em;margin-bottom:5px}
 .bb-applications-table td[data-label="Kandidaat"] strong{font-size:16px}.bb-applications-table td small{font-size:12px}
 .bb-row-actions{display:flex;justify-content:space-between;align-items:center;gap:14px}.bb-row-actions a{padding:10px 0}
 .bb-applications-table td[data-label="Afwijzing"] strong{max-width:none}
 .bb-rejection-details>summary strong{font-size:17px}
}
.bb-rejection-panel [hidden]{display:none!important}
.bb-rejection-form input:not([type="checkbox"]),.bb-rejection-form textarea,.bb-rejection-settings input,.bb-rejection-settings textarea{font-weight:400}
@media(prefers-reduced-motion:reduce){.bb-rejection-panel *{scroll-behavior:auto;transition:none!important}}

/* One rejection form: "zonder e-mail" is a reason, not a separate accordion. */
.bb-rejection-mode-help{margin-top:-6px!important;margin-bottom:16px!important}
.bb-rejection-no-mail-alert{border:1px solid #e7d9bf;border-radius:12px;background:#fffaf0;color:#624a25;padding:15px 17px;margin:4px 0 18px;line-height:1.6}
.bb-rejection-no-mail-alert strong{display:block;font-size:14px}
.bb-rejection-no-mail-alert p{margin:6px 0 0;font-size:13px}
.bb-rejection-form.is-silent .bb-rejection-confirm{background:#fff9f0;border-color:#e9ddc2;color:#654824!important}
.bb-rejection-form.is-silent .bb-rejection-mode-help{color:#6b5026}
