/* Feedback round: retain Schakel's palette, with room for richer forms and tables. */
fieldset{border:1px solid #e4e8ec;border-radius:10px;padding:18px;margin:12px 0;min-width:0}
legend{font-size:15px;font-weight:600;padding:0 7px}
.check{display:flex!important;align-items:flex-start;gap:9px;font-size:14px!important;line-height:1.5;font-weight:400!important;margin:8px 0}
.check input[type=checkbox]{width:18px!important;height:18px;flex-shrink:0;margin:2px 0!important;accent-color:#c39836}
.check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 18px}
.notice{background:#f5f3ed;border-left:3px solid #e4b84f;border-radius:6px;padding:14px 18px;color:#626b78;font-size:14px;line-height:1.6;margin:0 0 20px}
.modal-body .notice{margin-top:16px}
.form-panel{padding:28px}
.form-panel h2{font-size:21px;margin-top:0}
.form-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px;flex-wrap:wrap}
.row-actions{display:flex;gap:8px;flex-wrap:wrap}
.toolbar{align-items:flex-end;flex-wrap:wrap}
.toolbar label{font-size:14px;font-weight:600;min-width:140px}
.toolbar input,.toolbar select{display:block;width:100%;padding:11px 12px;margin-top:6px;background:white;border:1px solid #e0e5eb;border-radius:7px;font-size:15px}
.toolbar .check{padding-bottom:10px}
.filter-bar{padding-left:0;padding-right:0}
.filter-bar>label:first-child{flex:1;min-width:190px}
.panel .filter-bar{padding:18px 22px}
.table-scroll{overflow-x:auto}
td{vertical-align:top}
tbody tr{cursor:default}
.table-scroll table{min-width:540px}
.issue-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:4px 0}
.issue-line>span:first-child{min-width:95px}
.dossier-count{margin:16px 0 0!important;font-size:14px!important;color:#82714c!important}
.person-card{cursor:default;display:flex;flex-direction:column}
.person-bottom{margin-top:auto;padding-top:17px;gap:10px}
.person-card>.tags{margin-bottom:16px}
.recipient-row{display:flex;align-items:center;gap:14px;border-bottom:1px solid #eef0f2;padding:14px 0}
.recipient-row>.check{font-size:0!important;min-width:20px}
.recipient-row>div{min-width:0}
.recipient-row small{overflow-wrap:anywhere}
.message{padding:22px 26px;border-bottom:1px solid #e8ebee}
.message:last-child{border-bottom:0}
.message h3{font-size:17px;margin:0 0 5px}
.message p{line-height:1.65;margin:12px 0;color:#67717e}
.error-text,#form-error,#login-error,#registration-error{color:#a13b4c;font-size:15px;white-space:pre-line}
#form-error:not(:empty),#registration-error:not(:empty){padding:12px 14px;background:#fbeef0;border-radius:8px;margin-bottom:18px}
dialog{width:800px;max-width:calc(100vw - 32px)}
.modal-body>form>label{display:block;font-size:15px;font-weight:600}
.modal-body>form>label textarea{display:block;width:100%;padding:12px;margin-top:8px;border:1px solid #e0e5eb;border-radius:8px;font:inherit}
.modal-body input[readonly]{display:block;width:100%;padding:12px;margin-top:10px;border:1px solid #dfe4e9;border-radius:8px}
.modal-actions{flex-wrap:wrap}
.modal-body .form-grid input,.modal-body .form-grid select{min-width:0}
.file-preview{width:100%;height:420px;object-fit:contain;border:1px solid #e4e8ec;border-radius:8px;margin-top:20px}
.steps{display:flex;list-style:none;gap:12px;padding:0;margin:25px 0;flex-wrap:wrap}
.steps li{padding:8px 15px;background:#f0f2f5;border-radius:7px;color:#6b7582;font-size:14px}
.steps li.active{background:#fff0c4;color:#6d5a2d;font-weight:700}
#registration{max-width:900px;padding:40px 24px;margin:0 auto}
.registration-logo{width:170px;margin-bottom:28px}
#registration .form-grid input{font-size:16px}
#registration fieldset>label:not(.check){display:block;font-weight:600;font-size:15px;margin:12px 0}
#registration fieldset>label>input{display:block;width:100%;padding:10px;border:1px solid #dfe4e9;border-radius:7px;margin-top:6px;background:white}
#registration .selection-info{margin-bottom:24px}
button:disabled{opacity:.55;cursor:wait}
#sidebar{padding-top:24px}
.brand{padding-bottom:20px}
.workspace{margin-bottom:18px}
nav a{padding:10px 14px}
.care{margin:16px 0;padding:18px}
@media(max-height:950px){.care{display:none}}
@media(max-width:1400px){.professionals{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.professionals{grid-template-columns:1fr}.check-grid{grid-template-columns:1fr}.form-panel{padding:22px}}
@media(max-width:640px){#sidebar{position:relative;width:100%;padding:18px}.brand{padding:0}.brand img{width:140px}.brand span,.workspace,.nav-label,.sidebar-bottom{display:none}#nav{display:flex;overflow-x:auto;gap:6px;margin-top:12px}#nav a{white-space:nowrap;margin:0;padding:9px 12px;font-size:14px}#shell{margin-left:0}header{height:auto;min-height:65px;padding:12px 18px;gap:10px}.crumb{font-size:13px}.crumb span{margin:0 6px}.top-actions{gap:6px}.top-actions .btn{font-size:12px;padding:8px}main{padding:22px 16px}.stats{gap:10px}.stat{padding:15px}.stat-top{font-size:14px}.stat-icon{display:none}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.modal-body,.modal-head,.modal-actions{padding:20px}.hero{padding:22px}.hero h2{font-size:23px}footer{gap:15px;flex-wrap:wrap;padding:15px 18px}}

/* Compact responsive layout: adapt to available content width, including dialogs. */
#shell,main,.panel,.columns>*,.professionals>*,.top-actions,.page-heading>*,.hero>*{min-width:0}
#sidebar{width:224px;padding:20px 14px 0}
#shell{margin-left:224px}
.brand{padding:0 10px 18px}.brand img{width:146px}.brand span{font-size:10px}
.workspace{padding:10px;margin-bottom:14px}.workspace small{font-size:12px}
.nav-label{margin-bottom:6px}#nav a{font-size:15px;padding:9px 11px;gap:9px}
.profile{padding:14px 0}.care{display:none}
#menu-toggle{display:none}
header{height:62px;padding:10px 24px;gap:12px}.top-actions{gap:10px;flex-wrap:wrap}
main{max-width:none;padding:22px 24px 12px}
.page-heading{margin-bottom:18px;gap:12px;flex-wrap:wrap}
h1{font-size:clamp(24px,2.2vw,30px);line-height:1.2}
.eyebrow{font-size:12px;margin-bottom:4px}.subtitle{margin-top:6px}
.hero{min-height:0;padding:16px 20px;margin-bottom:16px;gap:16px;flex-wrap:nowrap}
.hero h2{font-size:21px;margin-bottom:4px}.hero p{line-height:1.45}
.hero .btn{margin:0;flex-shrink:0}.hero-art{opacity:.25}
.stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}
.stat{padding:14px 16px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px 12px}
.stat-top{font-size:14px;display:block}.stat-icon,.stat-foot{display:none}
.stat-number{font-size:28px;margin:0}
.columns{grid-template-columns:minmax(0,2fr) minmax(250px,1fr);gap:16px;align-items:start}
.panel{margin-bottom:16px;overflow:visible}.panel-head{padding:16px 18px;gap:10px}
.panel-head p{margin-top:3px}.panel-head h2{line-height:1.35}
.table-scroll{container-type:inline-size;min-width:0;max-width:100%;overflow:visible}
.table-scroll table{min-width:0;table-layout:fixed}
th,td{padding:12px 14px;overflow-wrap:anywhere}
th:first-child:nth-last-child(4),td:first-child:nth-last-child(4){width:40%}
th:last-child,td:last-child{width:140px}
th:first-child:nth-last-child(5),td:first-child:nth-last-child(5){width:30%}
th:last-child:nth-child(5),td:last-child:nth-child(5){width:165px}
td small{margin-top:3px}.badge{white-space:normal;max-width:100%}
.btn{white-space:normal;max-width:100%;line-height:1.3;text-align:center}
.btn.tiny{min-height:36px;padding:7px 10px}
.toolbar,.panel .filter-bar{padding:14px 18px;gap:10px;justify-content:flex-start}
.filter-bar{padding:0 0 14px}.toolbar>label{flex:1 1 150px;min-width:0}
.toolbar>label:first-child{flex:2 1 190px;min-width:0}.toolbar>.check{flex:0 1 auto;padding:0;margin:0;align-self:center}
.toolbar input,.toolbar select{min-width:0;margin-top:4px;padding:9px 10px}
.professionals{grid-template-columns:repeat(auto-fill,minmax(min(100%,270px),1fr));gap:14px}
.person-card{padding:18px}.person-card .avatar{width:38px;height:38px;font-size:15px}
.person-card h3{margin:12px 0 4px;font-size:18px}.person-card p{margin-bottom:10px}
.person-card>.tags{margin-bottom:6px}.tags span{padding:4px 7px}
.dossier-count{margin:8px 0!important}.person-bottom{padding-top:10px;gap:8px}
.notice{padding:12px 14px;margin-bottom:14px;line-height:1.5}
.issue-line{gap:6px}.issue-line>span:first-child{min-width:0}
.activity{padding:0 18px 16px}.activity p{margin:10px 0}.message{padding:16px 18px}.message p{margin:8px 0;line-height:1.5}
.form-panel{padding:20px}.form-grid{gap:12px 16px}.form-grid input,.form-grid select,.form-grid textarea{margin-top:5px;padding:10px;max-width:100%;min-width:0}
fieldset{padding:12px 14px;margin:8px 0}legend{max-width:100%;line-height:1.4}.check-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}
.form-actions{margin-top:16px}.detail-grid{padding:14px 0;gap:12px 18px;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr))}
.detail-grid>*{min-width:0;overflow-wrap:anywhere}.detail-grid small{margin-bottom:3px}
.modal-head{padding:16px 20px;gap:12px}.modal-head h2{font-size:21px;min-width:0;overflow-wrap:anywhere}
dialog{width:860px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:hidden}
dialog[open]{display:flex;flex-direction:column}.modal-head,.modal-actions{flex-shrink:0}
.modal-body{padding:18px 20px;overflow-y:auto;min-height:0;overscroll-behavior:contain}
.modal-body p{margin:10px 0;line-height:1.5;overflow-wrap:anywhere}.modal-body h3{margin:16px 0 8px}
.modal-actions{padding:12px 20px;gap:8px;background:white}.modal-body .notice{margin-top:12px}
.file-preview{height:min(38dvh,340px);margin-top:12px}
.candidate,.recipient-row{flex-wrap:wrap;gap:10px}.candidate>div:nth-child(2){flex:1;min-width:120px;overflow-wrap:anywhere}
.summary-strip{gap:12px;flex-wrap:wrap;padding:14px 18px;margin-bottom:16px}
#toast{left:50%;max-width:calc(100vw - 24px);width:max-content;padding:12px 18px;overflow-wrap:anywhere}
footer{padding:12px 24px;gap:12px;flex-wrap:wrap}
#registration{max-width:960px;padding:24px}.registration-logo{width:140px;margin-bottom:16px}.steps{margin:16px 0;gap:8px}
#login{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.login-story{padding:36px;min-height:100dvh}.login-story h1{font-size:clamp(32px,4vw,56px)}.login-form{padding:28px}.login-inner form{margin-top:18px}.login-inner label{margin-top:14px}.demo-accounts{margin-top:20px;padding:16px}.login-inner .login-note{margin-top:16px}
/* Reflow each table independently instead of forcing horizontal scrolling. */
@container (max-width:620px){
  table,tbody{display:block;width:100%}
  thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;padding:13px 14px;border-bottom:1px solid #e8ebee}
  tbody tr:last-child{border-bottom:0}
  tbody td{display:block!important;width:auto!important;border:0;padding:0;min-width:0;font-size:14px}
  tbody td:first-child{grid-column:1/-1}
  tbody td[data-label]:not(:first-child)::before{content:attr(data-label);display:block;font-size:12px;color:#697380;margin-bottom:3px}
  tbody td:last-child:not([data-label]){grid-column:1/-1;display:flex!important;justify-content:flex-end}
  tbody td[colspan]{grid-column:1/-1}
  tbody td:empty{display:none!important}
  .row-actions{justify-content:flex-end}
}
@media(min-width:1350px){
  main[data-page=instellingen]{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:16px;align-items:start}
  main[data-page=instellingen]>.page-heading{grid-column:1/-1;margin:0}
  main[data-page=instellingen]>.panel{margin:0}
  main[data-page=instellingen]>.panel:first-of-type{grid-row:2/4}
}
@media(max-width:1150px){
  #sidebar{width:196px;padding:18px 10px 0}#shell{margin-left:196px}.workspace,.brand span{display:none}
  main{padding:18px}.columns{grid-template-columns:1fr}.hero{flex-wrap:wrap}.hero h2{font-size:19px}
  .stats{gap:10px}.stat{padding:12px;grid-template-columns:1fr;gap:4px}.stat-number{font-size:25px}
  .columns>.panel:last-child .activity{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
}
@media(max-width:980px){
  #sidebar{position:relative;inset:auto;width:100%;padding:12px 16px;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;overflow:visible}
  .brand{padding:0}.brand img{width:120px}.brand span,.workspace,.nav-label,.sidebar-bottom{display:none}
  #menu-toggle{display:inline-flex;justify-self:end;min-width:0;font-size:14px}
  #nav{display:none;margin:0;overflow:visible;grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
  .menu-open #nav{display:grid}#nav a{margin:0;white-space:normal;font-size:14px;padding:10px}
  #shell{margin-left:0}header{height:auto;min-height:52px;padding:8px 16px;flex-wrap:wrap}.crumb{font-size:13px}.crumb span{margin:0 5px}.demo-dot{display:none}
  .top-actions{gap:6px}.top-actions .btn{font-size:13px;padding:7px 9px}
  main{padding:16px}.page-heading{margin-bottom:14px}.subtitle{font-size:15px}
  .hero{padding:14px;gap:10px}.hero h2{font-size:18px}.hero p{font-size:14px}.hero .btn{padding:8px 12px;min-height:36px}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.stat{grid-template-columns:1fr auto;padding:12px}.stat-top{font-size:13px}
  .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid .full{grid-column:1/-1}
  .panel-head{padding:14px}.form-panel{padding:16px}.toolbar,.panel .filter-bar{padding:12px 14px}.filter-bar{padding:0 0 12px}
  .panel-head .btn{font-size:13px}.notice{font-size:13px}.columns{gap:0}
  .modal-head,.modal-body{padding:14px}.modal-actions{padding:10px 14px}.modal-head h2{font-size:19px}
  .check-grid{gap:0 10px}.check{font-size:13px!important}.file-preview{height:30dvh}
  #registration{padding:18px 16px}.steps li{padding:7px 10px}.registration-logo{margin-bottom:12px}
  #login{grid-template-columns:1fr}.login-story{min-height:0;padding:18px 24px}.login-story h1,.login-story>small,.login-story p,.login-story .eyebrow,.login-shape{display:none}.login-logo{width:140px}.login-form{padding:20px 24px}.login-inner h2{margin-top:8px;font-size:27px}
  footer{padding:10px 16px;font-size:12px}
}
@media(max-width:420px){
  main{padding:14px 12px}.form-grid,.check-grid{grid-template-columns:1fr}.detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .toolbar>label,.toolbar>label:first-child{flex-basis:100%}.toolbar>.check{flex-basis:auto}
  .page-heading>.btn{min-height:38px;padding:8px 12px}.modal-actions>.btn{flex:1 1 auto}
  .hero h2{font-size:17px}.hero-art{display:none}.stat{gap:6px;padding:10px}.stat-number{font-size:24px}
  .steps{gap:5px}.steps li{font-size:12px;padding:6px 8px}
}
@container (max-width:620px){
  .job-table tbody tr{grid-template-columns:minmax(0,1fr) auto;gap:5px 12px}
  .job-table tbody td:first-child{grid-column:1;grid-row:1/3}
  .job-table tbody td:nth-child(2){grid-column:2;grid-row:1;text-align:right}
  .job-table tbody td:nth-child(2)::before{display:none}
  .job-table tbody td:nth-child(3){grid-column:1;grid-row:3;display:flex!important;gap:6px;align-items:center}
  .job-table tbody td:nth-child(3)::before{margin:0}
  .job-table tbody td:last-child{grid-column:2!important;grid-row:2/4;align-items:end}
}
@media(min-width:360px) and (max-width:420px){
  .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .form-grid label:has([name=title]),.form-grid label:has([name=org]),.form-grid label:has([name=jobId]),.form-grid label:has([type=email]){grid-column:1/-1}
  .form-grid label{font-size:14px}
}
@media(max-width:420px){
  header .crumb{display:none}.top-actions{margin-left:auto}
  .hero p{display:none}.hero{gap:10px}
}

/* Mobile login rows follow their content instead of sharing leftover viewport height. */
@media(max-width:980px){
  #login{min-height:100dvh;align-content:start;grid-template-rows:auto auto}
  .login-story{justify-content:flex-start;align-self:start}
  .login-story>div{display:none}
  .login-form{align-items:flex-start}
  #login-error:empty{display:none}
  .login-inner>p{margin:8px 0 16px}
  .login-inner input{min-height:44px;padding:11px;margin-top:6px}
  .login-inner form>.btn{margin-top:14px;padding:12px}
  .login-inner .login-note{margin-bottom:0}
}
@media(max-width:600px){
  .form-grid label:has([name=title]),.form-grid label:has([name=org]),.form-grid label:has([name=jobId]),.form-grid label:has([type=email]){grid-column:1/-1}
  .modal-body input[type=file],#registration input[type=file]{min-width:0;max-width:100%;overflow:hidden}
  .message h3,.message p,.person-card h3,.selection-info{overflow-wrap:anywhere}
}
@media(max-width:980px){
  #login{grid-template-columns:minmax(0,1fr)}
  .login-form,.login-inner{min-width:0;max-width:100%}
  .login-inner{width:420px}
  .login-inner input{min-width:0;max-width:100%}
}
@media(max-width:600px){
  .form-grid label:has([name=name]),.form-grid label:has([name=role]){grid-column:1/-1}
  #profile-form .form-grid label:has([name=hours]){grid-column:1/-1}
  .form-grid>label:not(.check){display:flex;flex-direction:column;justify-content:flex-end}
}
@media(max-width:600px){
  #month-form{flex-wrap:nowrap}
  #month-form>label{flex:1 1 0;min-width:0}
  #month-form>button{flex-shrink:0}
}

/* Central settings workspace. */
main[data-page=instellingen]{display:block}
.settings-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:20px;align-items:start}
.settings-nav{display:flex;flex-direction:column;gap:5px;min-width:0}
.settings-nav>button{display:flex;align-items:center;gap:10px;padding:13px 12px;background:transparent;border:1px solid transparent;border-radius:9px;text-align:left;font-weight:600;font-size:15px}
.settings-nav>button.active{background:#fff2ca;border-color:#eddca7}
.settings-nav>button small{margin:0 0 0 auto;font-size:12px;padding:2px 7px;background:#fff;border-radius:5px}
.settings-help{padding:18px 12px;margin-top:12px;border-top:1px solid #e1e5e9;font-size:14px}.settings-help p{color:#697380;font-size:13px}
.settings-content{min-width:0;overflow:hidden}.settings-content .panel-head{align-items:flex-start}.settings-content .panel-head p{line-height:1.5;max-width:750px}
.settings-hint{padding:12px 18px;background:#faf8f1;color:#756c55;font-size:13px;border-block:1px solid #efede7}
.settings-filter{border-bottom:1px solid #e8ebef}.settings-list{padding:0 18px}
.setting-row{display:flex;align-items:center;gap:14px;padding:16px 0;border-bottom:1px solid #edf0f2}.setting-row:last-child{border:0}
.setting-icon{display:flex;align-items:center;justify-content:center;background:#f4f6f8;border-radius:10px;width:40px;height:40px;flex-shrink:0;color:#788796}
.setting-description{flex:1;min-width:0;overflow-wrap:anywhere}.setting-description h3{margin:0;font-size:16px}.setting-description p{margin:3px 0 0;color:#697380;font-size:14px}.setting-description small{font-size:12px}
.setting-row>.btn{flex-shrink:0}.settings-content .form-panel{padding-top:8px}
#settings-error:not(:empty){color:#a13b4c;background:#fbeef0;padding:12px;border-radius:8px}
@media(max-width:1100px){.settings-layout{grid-template-columns:200px minmax(0,1fr);gap:14px}.settings-nav>button{font-size:14px}.setting-icon{display:none}}
@media(max-width:800px){.settings-layout{grid-template-columns:1fr}.settings-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.settings-nav>button{padding:10px 8px;border-color:#e4e8ec;background:#fff;gap:7px;min-width:0}.settings-nav>button span{min-width:0;overflow-wrap:anywhere}.settings-help{grid-column:1/-1;display:flex;align-items:center;gap:12px;padding:10px 0;margin:0;border:0}.settings-help p{display:none}.settings-help>.btn{margin-left:auto}.setting-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.setting-description{grid-column:1;grid-row:1/3}.setting-row>.badge{justify-self:end}.setting-row>.btn{grid-column:2}.settings-list{padding:0 12px}}
.settings-mobile{display:none}
@media(max-width:800px){
  .settings-layout>.settings-nav{display:none}
  .settings-mobile{display:block;min-width:0}
  .settings-mobile label{display:block;font-size:14px;font-weight:600}
  .settings-mobile select{display:block;width:100%;margin-top:5px;min-height:44px}
}
.settings-hint summary{cursor:pointer;font-weight:600}.settings-hint p{margin:8px 0 0;line-height:1.5}
@media(max-width:800px){
  .settings-filter{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}
  .settings-filter>label:first-child{grid-column:1/-1}
  .settings-filter>label:has([name=category]){grid-column:1/-1}
  .settings-filter>.btn{align-self:end}
}

/* Shared filter controls across every role and settings screen. */
form.toolbar{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;padding:16px;background:#fff;border:1px solid #e6e9ed;border-radius:12px;margin:0 0 16px}
.panel>form.toolbar,.settings-content>form.toolbar{border:0;border-bottom:1px solid #e8ebef;border-radius:0;margin:0}
form.toolbar>label{min-width:0;flex:1 1 150px;font-size:14px;font-weight:600}
form.toolbar>label:first-child{flex:2 1 220px;min-width:0}
form.toolbar input:not([type=checkbox]),form.toolbar select{display:block;width:100%;min-width:0;height:44px;margin-top:6px;padding:10px 12px;border:1px solid #dfe4e9;border-radius:8px;background:white;font-size:15px}
.filter-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}
form.toolbar .check{display:flex;align-items:center;min-height:44px;margin:0;padding:10px 12px;border:1px solid #e4e8ec;border-radius:8px;background:#f8f9fb;cursor:pointer;gap:8px;font-weight:400}
form.toolbar .check:has(input:checked){background:#fff6dc;border-color:#edd695;color:#665326}
form.toolbar .check input[type=checkbox]{margin:0!important;accent-color:#9b741b}
form.toolbar .btn{min-height:44px;white-space:nowrap;flex-shrink:0}
form.toolbar :is(input,select):focus-visible{outline:3px solid #81b8d8;outline-offset:2px}
#month-form{width:fit-content;max-width:100%;flex-wrap:nowrap}
#month-form>label{flex:1 1 220px}
@media(max-width:700px){
  form.toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:12px}
  form.toolbar>label:first-child{grid-column:1/-1}
  form.toolbar:is(#filter-form,#settings-filter){grid-template-columns:repeat(2,minmax(0,1fr))}
  form.toolbar:not(:has([name=personStatus]))>label:has([name=status]){grid-column:1/-1}
  form.toolbar>.filter-actions{grid-column:1/-1;width:100%;display:flex;flex-wrap:wrap;gap:8px}
  .filter-actions>.check{flex:1 1 auto}
  .filter-actions:has([data-action=clear-filters]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .filter-actions:has([data-action=clear-filters])>.check{grid-column:1/-1}
  form.toolbar.settings-filter>label:has([name=category]){grid-column:1/-1}
  #month-form{display:flex}
}
@media(max-width:360px){
  form.toolbar:has([name=personStatus]){grid-template-columns:minmax(0,1fr)}
}
/* Shared non-native, searchable dropdowns; popovers escape panel/modal clipping. */
select[data-enhanced][hidden]{display:none!important}
.choice-trigger{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-width:0;min-height:44px;padding:10px 12px;margin-top:6px;background:#fff;border:1px solid #dfe4e9;border-radius:8px;text-align:left;font-size:15px;font-weight:400;line-height:1.4}
.choice-trigger:hover{border-color:#b5bdc7;background:#fdfdfb}.choice-trigger[aria-expanded=true]{border-color:#c7a54e;box-shadow:0 0 0 3px #f5c14d26}
.choice-caption{display:flex;gap:4px;align-items:center;flex-wrap:wrap;min-width:0;overflow-wrap:anywhere}.choice-chevron{color:#697380;flex-shrink:0;font-size:19px;line-height:1}.choice-trigger[aria-expanded=true] .choice-chevron{transform:rotate(180deg)}
.choice-tag,.choice-count{display:inline-block;background:#fff2ca;color:#685326;border-radius:5px;padding:2px 6px;font-size:12px;max-width:100%;overflow-wrap:anywhere}
.choice-popup{position:fixed;inset:auto;margin:0;padding:10px;border:1px solid #e1e5e9;border-radius:12px;background:white;color:#2b3240;box-shadow:0 12px 40px #23304426;overflow:hidden;font-family:Gilroy,Arial,sans-serif}
.choice-popup:popover-open{display:flex;flex-direction:column;gap:8px}
.choice-search{width:100%;min-width:0;min-height:42px;padding:10px 12px;border:1px solid #e1e5e9;border-radius:7px;background:#f7f8fa;font-size:16px;flex-shrink:0;outline-offset:1px}
.choice-hint{font-size:12px;color:#697380;line-height:1.4;padding:0 3px}
.choice-options{overflow-y:auto;min-height:36px;overscroll-behavior:contain;flex:1}
.choice-option{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px;width:100%;min-height:42px;background:transparent;border-radius:7px;text-align:left;font-size:15px;font-weight:400;line-height:1.4;overflow-wrap:anywhere}
.choice-option.highlighted,.choice-option:hover{background:#f3f5f7}.choice-option[aria-selected=true]{background:#fff3cf;color:#665025}
.choice-mark{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:20px;height:20px;border:1px solid #d7dce3;border-radius:5px}.choice-option[aria-selected=true] .choice-mark{background:#f5c14d;border-color:#f5c14d;color:#44381e}
.choice-empty{font-size:14px;color:#697380;padding:12px;text-align:center}.choice-footer{display:flex;justify-content:space-between;border-top:1px solid #edf0f2;padding-top:8px;gap:10px;flex-shrink:0}.choice-footer button{padding:8px 10px;min-height:36px;border-radius:7px;background:#f4f5f7;font-size:14px}.choice-footer button:last-child{background:#f5c14d;font-weight:600}
form.toolbar .choice-trigger{height:auto;min-height:44px}.settings-mobile .choice-trigger{font-size:15px}

/* Document actions keep readable labels and a consistent place in every row. */
.dossier-table th:first-child,.dossier-table td:first-child{width:auto}
.dossier-table th:nth-child(2),.dossier-table td:nth-child(2){width:140px}
.dossier-table th:nth-child(3),.dossier-table td:nth-child(3){width:110px;white-space:nowrap}
.dossier-table th:last-child,.dossier-table td:last-child{width:256px}
.dossier-table .row-actions{justify-content:flex-end;gap:8px;flex-wrap:nowrap}
.dossier-table .row-actions .btn{flex:0 0 auto;min-height:40px;white-space:nowrap;overflow-wrap:normal;border-radius:8px;padding:9px 12px}
.dossier-table [data-action=upload]{background:#fff7e2;border-color:#f0dfad;color:#695321}
.dossier-table [data-action=upload]:hover{background:#ffefc2;border-color:#d8b85e}
@container(max-width:620px){
 .dossier-table .row-actions{width:100%;flex-wrap:wrap;justify-content:flex-start;padding-top:6px}
 .dossier-table .row-actions .btn{flex:1 1 110px;min-height:44px}
}
/* Full-screen professional filters, grouped using the managed skill categories. */
dialog.filter-screen{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0}
.filter-screen .modal-head{padding:20px 32px}
.filter-screen .modal-body{flex:1;background:#f6f7f9;padding:28px 32px}
.filter-intro,#people-filters-form{max-width:1280px;margin:0 auto}
.filter-intro h3{margin:0 0 6px;font-size:26px}.filter-intro p{max-width:760px;margin:0 0 24px;color:#697380}
.filter-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.filter-category{margin:0;padding:20px;border:1px solid #e3e7ec;border-radius:14px;background:#fff;min-width:0}
.filter-category legend{display:flex;align-items:center;gap:10px;padding:0 8px;font-size:18px;font-weight:700}
.filter-category legend .icon{width:22px;height:22px;color:#9b741b}
.filter-options{display:grid;gap:8px}.filter-options .check{margin:0;padding:12px;border:1px solid #e6e9ed;border-radius:9px;min-height:46px;display:flex;align-items:center;gap:10px;cursor:pointer;font-size:15px}
.filter-options .check:has(:checked){background:#fff5d6;border-color:#e4c775;color:#695321}
.filter-options input{flex-shrink:0;accent-color:#a87e20;width:17px;height:17px}
.filter-category>small{display:block;margin-top:12px;color:#697380}
.filter-screen .modal-actions{padding:18px 32px;align-items:center}.filter-screen .modal-actions>button:first-child{margin-right:auto}
#people-filter-count{font-size:15px;color:#697380}
@media(max-width:1000px){.filter-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
 .filter-screen .modal-head{padding:16px}.filter-screen .modal-head h2{font-size:20px}
 .filter-screen .modal-body{padding:20px 16px}.filter-intro h3{font-size:23px}
 .filter-category-grid{grid-template-columns:minmax(0,1fr);gap:16px}.filter-category{padding:14px}
 .filter-screen .modal-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:12px 16px max(12px,env(safe-area-inset-bottom))}
 #people-filter-count{grid-column:1/-1;grid-row:1;text-align:center}.filter-screen .modal-actions>button{width:100%;margin:0}
 #filter-form:has([data-action=people-filters]){grid-template-columns:minmax(0,1fr) auto}
 #filter-form:has([data-action=people-filters])>label:first-child{grid-column:auto}
}

/* Quiet visual anchors in the assignment form. */
#job-form .form-label-icon{display:inline-flex;align-items:center;gap:7px;max-width:100%}
#job-form .form-label-icon>.icon{width:16px;height:16px;flex-shrink:0;color:#78899b}

.organization-heading{display:flex;align-items:center;gap:10px;margin-bottom:10px;min-width:0}
.organization-heading h3{margin:0;min-width:0;overflow-wrap:anywhere}
.organization-heading .avatar{flex-shrink:0}

/* Align the compact month control with the page heading and overview. */
form#month-form{width:340px;max-width:100%;padding:0;border:0;background:transparent;border-radius:0;margin:0 0 16px;justify-content:flex-start;gap:10px}
form#month-form>label{flex:1 1 0;min-width:0}
form#month-form>button{flex:0 0 auto}

.month-approver{display:flex;align-items:flex-start;gap:12px;padding:16px;margin:16px 0;background:#fff5d8;border:1px solid #eedba5;border-radius:10px}
.month-approver>.icon{width:22px;height:22px;flex-shrink:0;color:#927020;margin-top:1px}
.month-approver strong{display:block;font-size:16px;line-height:1.4;color:#514321}
.month-approver span{display:block;margin-top:5px;font-size:15px;line-height:1.5;color:#695c3b;overflow-wrap:anywhere}
.modal-body .month-review-note{font-size:13px;color:#697380}

.btn.danger{color:#a14760;border-color:#e9cad4;background:#fff8fa}.btn.danger:hover{background:#fbeaf0}
.confirm-dialog{width:480px;max-width:calc(100vw - 24px);height:auto}.confirm-dialog .modal-body{padding:20px}
#form-error:not(:empty),#settings-error:not(:empty),#page-error:not(:empty){padding:12px 14px;margin-bottom:14px;border:1px solid #e8bac7;border-radius:8px;background:#fff0f4;color:#943c56;line-height:1.5}
.page-heading>.row-actions{justify-content:flex-end}

.dossier-table .row-actions{flex-wrap:wrap}

.checklist-context{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 14px;margin-bottom:16px;background:#fff5d8;border:1px solid #eedba5;border-radius:8px;font-size:14px;grid-column:1/-1}.checklist-context a{color:#665025;text-underline-offset:3px}
