:root{
  --purple:#69266f;--purple-dark:#4b1c52;--purple-soft:#f1e9f3;--blue:#247da5;--blue-light:#63b7d3;
  --ink:#28242b;--muted:#6d6770;--line:#e3dee5;--surface:#fff;--bg:#f6f5f7;
  --shadow:0 12px 34px rgba(57,31,62,.10)
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100vh;font-family:Inter,Arial,sans-serif;background:var(--bg);color:var(--ink)}
a{color:inherit}button,input,textarea{font:inherit}
.profile-topbar{height:88px;display:flex;align-items:stretch;background:var(--purple);border-bottom:2px solid var(--blue-light);position:sticky;top:0;z-index:50}
.profile-brand{width:290px;display:flex;align-items:center;justify-content:center;background:#fff;text-decoration:none}.profile-brand img{width:205px;max-width:78%;max-height:68px;object-fit:contain}
.profile-nav{flex:1;display:flex;align-items:stretch;justify-content:flex-end;padding-right:22px}.profile-nav a,.profile-nav button{display:flex;align-items:center;padding:0 16px;border:0;background:transparent;color:#fff;text-decoration:none;font-weight:700;cursor:pointer}.profile-nav a:hover,.profile-nav a:focus-visible,.profile-nav button:hover,.profile-nav button:focus-visible{background:rgba(255,255,255,.09);outline:none}.profile-nav .active{box-shadow:inset 0 -3px 0 var(--blue-light)}
.profile-shell{width:min(1180px,calc(100% - 40px));margin:34px auto 54px}.profile-page-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;margin-bottom:24px}.profile-page-head h1{margin:0;color:var(--purple-dark);font-size:clamp(1.75rem,3vw,2.45rem)}.profile-page-head p{margin:7px 0 0;color:var(--muted);line-height:1.55}.eyebrow{margin:0 0 7px!important;color:var(--blue)!important;text-transform:uppercase;letter-spacing:.1em;font-size:.72rem;font-weight:800}
.profile-card{background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow)}
.profile-hero{display:grid;grid-template-columns:220px 1fr;gap:30px;padding:30px;margin-bottom:22px}.profile-photo{width:180px;height:180px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:linear-gradient(145deg,var(--purple-soft),#e6f3f7);border:5px solid #fff;box-shadow:0 10px 30px rgba(75,28,82,.15);color:var(--purple);font-size:2.3rem;font-weight:800}.profile-photo img{width:100%;height:100%;object-fit:cover}.profile-hero h2{margin:9px 0 4px;color:var(--purple-dark);font-size:1.65rem}.profile-subtitle{margin:0;color:var(--muted)}.profile-meta-pills{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.profile-pill{padding:7px 10px;border-radius:999px;background:#f7f3f8;color:var(--purple-dark);font-size:.78rem;font-weight:700}.profile-pill.blue{background:#eef7fa;color:#155f88}
.sync-panel{margin-top:18px;padding:13px 15px;border:1px solid #d8e9ef;border-radius:12px;background:#f4fafc;color:#29566a;font-size:.82rem;line-height:1.45}.sync-panel.error{border-color:#ead5d8;background:#fff7f8;color:#8a3040}.sync-panel button{margin-top:9px;border:0;border-radius:9px;padding:9px 12px;background:var(--purple);color:#fff;font-weight:700;cursor:pointer}
.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.section-card{padding:24px}.section-card h3{margin:0 0 5px;color:var(--purple-dark);font-size:1.12rem}.section-card>.section-intro{margin:0 0 18px;color:var(--muted);font-size:.84rem;line-height:1.5}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field,.field-full{display:grid;gap:6px}.field-full{grid-column:1/-1}.field label,.field-full label,.workdays legend{color:var(--purple-dark);font-size:.78rem;font-weight:800}.field input,.field-full input,.field-full textarea{width:100%;padding:11px 12px;border:1px solid #d8d2da;border-radius:10px;background:#fff;color:var(--ink);outline:none}.field input[readonly]{background:#f8f7f9;color:#5f5961}.field-full textarea{min-height:105px;resize:vertical;line-height:1.5}.field input:focus,.field-full textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(36,125,165,.1)}
.workdays{grid-column:1/-1;margin:0;padding:0;border:0}.workday-options{display:flex;gap:9px;flex-wrap:wrap;margin-top:8px}.workday-options label{display:flex;align-items:center;gap:7px;padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;cursor:pointer;font-size:.8rem}.workday-options input{accent-color:var(--purple);width:17px;height:17px}.profile-actions{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:20px}.primary-button,.secondary-button{border:0;border-radius:10px;padding:11px 16px;font-weight:800;cursor:pointer}.primary-button{background:linear-gradient(105deg,var(--purple),var(--blue));color:#fff}.secondary-button{background:var(--purple-soft);color:var(--purple)}.save-status{margin-right:auto;color:var(--muted);font-size:.82rem}.save-status.success{color:#236447}.save-status.error{color:#a22335}
.directory-toolbar{display:flex;align-items:center;gap:14px;margin-bottom:20px}.directory-search{position:relative;flex:1;max-width:620px}.directory-search input{width:100%;padding:14px 16px 14px 44px;border:1px solid #d8d2da;border-radius:14px;background:#fff;box-shadow:0 7px 22px rgba(57,31,62,.06);outline:none}.directory-search input:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(36,125,165,.1)}.directory-search span{position:absolute;left:16px;top:50%;transform:translateY(-50%);color:var(--muted);font-size:1.1rem}.directory-count{color:var(--muted);font-size:.84rem;white-space:nowrap}
.colleague-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.colleague-card{display:block;background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px;text-decoration:none;box-shadow:0 8px 24px rgba(57,31,62,.07);transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.colleague-card:hover,.colleague-card:focus-visible{transform:translateY(-2px);box-shadow:0 13px 30px rgba(57,31,62,.13);border-color:#cdbbd1;outline:none}.colleague-photo{width:92px;height:92px;margin:0 auto 15px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:linear-gradient(145deg,#f0e7f2,#e6f3f7);color:var(--purple);font-size:1.4rem;font-weight:800}.colleague-photo img{width:100%;height:100%;object-fit:cover}.colleague-card h2{margin:0;text-align:center;color:var(--purple-dark);font-size:1rem;line-height:1.3}.colleague-card p{margin:6px 0 0;text-align:center;color:var(--muted);font-size:.76rem;line-height:1.35}.colleague-tags{display:flex;gap:5px;justify-content:center;flex-wrap:wrap;margin-top:11px}.colleague-tag{padding:5px 7px;border-radius:999px;background:#f7f3f8;color:#6d4370;font-size:.65rem;font-weight:700}.empty-state{grid-column:1/-1;padding:42px;text-align:center;color:var(--muted);background:#fff;border:1px dashed #cec6d0;border-radius:18px}
.detail-back{display:inline-flex;align-items:center;gap:7px;margin-bottom:18px;color:var(--purple);font-weight:800;text-decoration:none}.detail-layout{display:grid;grid-template-columns:310px 1fr;gap:22px}.detail-aside{padding:26px;text-align:center}.detail-aside .profile-photo{width:170px;height:170px;margin:0 auto}.detail-aside h1{margin:18px 0 5px;color:var(--purple-dark);font-size:1.45rem}.detail-aside p{margin:4px 0;color:var(--muted);font-size:.84rem}.detail-main{display:grid;gap:22px}.detail-info{padding:24px}.detail-info h2{margin:0 0 16px;color:var(--purple-dark);font-size:1.12rem}.detail-list{display:grid;grid-template-columns:1fr 1fr;gap:12px 20px}.detail-item{padding:12px 0;border-bottom:1px solid #eee9ef}.detail-item span{display:block;color:var(--muted);font-size:.69rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em}.detail-item strong{display:block;margin-top:4px;color:var(--ink);font-size:.9rem}.detail-text{white-space:pre-wrap;line-height:1.65;color:#49434b}.loading{padding:35px;text-align:center;color:var(--muted)}
@media(max-width:980px){.profile-brand{width:230px}.colleague-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.detail-layout{grid-template-columns:260px 1fr}.profile-grid{grid-template-columns:1fr}}
@media(max-width:720px){.profile-topbar{height:auto;min-height:74px;flex-wrap:wrap}.profile-brand{width:100%;height:70px}.profile-nav{width:100%;justify-content:flex-start;padding:0;overflow-x:auto}.profile-nav a,.profile-nav button{min-height:48px;padding-inline:12px;font-size:.82rem}.profile-shell{width:min(100% - 24px,1180px);margin-top:22px}.profile-page-head{align-items:flex-start;flex-direction:column}.profile-hero{grid-template-columns:1fr;text-align:center;padding:22px}.profile-photo{margin:0 auto;width:150px;height:150px}.profile-meta-pills{justify-content:center}.field-grid{grid-template-columns:1fr}.field-full,.workdays{grid-column:auto}.colleague-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.directory-toolbar{align-items:stretch;flex-direction:column}.directory-count{white-space:normal}.detail-layout{grid-template-columns:1fr}.detail-list{grid-template-columns:1fr}}
@media(max-width:460px){.colleague-grid{grid-template-columns:1fr}.section-card{padding:18px}.profile-shell{width:min(100% - 18px,1180px)}}

/* v9.165 profiel-finetuning */
.birthday-selects{display:grid;grid-template-columns:minmax(90px,.7fr) minmax(150px,1.3fr);gap:10px}
.field select,.field-full select,.admin-profile-grid select{width:100%;padding:11px 12px;border:1px solid #d8d2da;border-radius:10px;background:#fff;color:var(--ink);outline:none}
.field select:focus,.field-full select:focus,.admin-profile-grid select:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(36,125,165,.1)}
.field-help{display:block;margin-top:6px;color:var(--muted);font-size:.73rem;line-height:1.45}
.profile-actions button:disabled,.admin-profile-actions button:disabled{opacity:.62;cursor:wait}
.profile-toast{position:fixed;right:24px;bottom:24px;z-index:200;min-width:150px;padding:13px 18px;border-radius:12px;background:#272129;color:#fff;box-shadow:0 16px 40px rgba(38,24,40,.24);font-weight:800;font-size:.86rem;opacity:0;transform:translateY(10px);transition:opacity .18s ease,transform .18s ease}
.profile-toast.show{opacity:1;transform:translateY(0)}
.detail-aside{align-self:start;text-align:left}.detail-aside>.profile-photo{margin-left:auto;margin-right:auto}.detail-aside>h1,.detail-aside>.detail-role{text-align:center}.detail-aside-divider{height:1px;background:var(--line);margin:22px 0 18px}.detail-aside-section h2{margin:0 0 10px;color:var(--purple-dark);font-size:1rem}.detail-aside-list{display:grid;gap:0}.aside-detail-item{padding:10px 0;border-bottom:1px solid #eee9ef}.aside-detail-item:last-child{border-bottom:0}.aside-detail-item span{display:block;color:var(--muted);font-size:.65rem;font-weight:800;text-transform:uppercase;letter-spacing:.055em}.aside-detail-item strong{display:block;margin-top:4px;color:var(--ink);font-size:.82rem;line-height:1.4;overflow-wrap:anywhere}.aside-detail-item a{color:var(--purple);text-decoration:none}.aside-detail-item a:hover{text-decoration:underline}.empty-inline{color:#9a929b;font-weight:500}.admin-profile-card{border-color:#d9c9dc;background:linear-gradient(180deg,#fff 0%,#fcf9fd 100%)}.admin-profile-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.admin-profile-heading h2{margin-top:0}.admin-badge{padding:6px 9px;border-radius:999px;background:var(--purple-soft);color:var(--purple-dark);font-size:.68rem;font-weight:800}.admin-profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.admin-profile-grid .field-full{grid-column:1/-1}.admin-profile-grid input[type="file"]{width:100%;padding:10px;border:1px dashed #cfc3d1;border-radius:10px;background:#fff}.admin-profile-grid input[type="file"]:disabled{opacity:.55;background:#f5f3f6}.admin-profile-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:18px}.text-button{border:0;background:transparent;padding:8px 0;color:var(--purple);font-weight:800;cursor:pointer}.text-button.danger{color:#a22335}.section-intro{color:var(--muted);font-size:.84rem;line-height:1.5}
@media(max-width:720px){.birthday-selects{grid-template-columns:1fr 1.4fr}.profile-toast{right:12px;left:12px;bottom:12px;text-align:center}.admin-profile-grid{grid-template-columns:1fr}}

/* v9.166 - profielpagina's visueel en functioneel onderdeel van het portaal */
body.portal-subpage{background:var(--bg)}
body.portal-subpage .site-header.portal-titlebar{position:relative;z-index:80}
body.portal-subpage .site-header.portal-titlebar>.brand-block a{width:100%;height:100%;display:flex;align-items:center;justify-content:center;text-decoration:none}
body.portal-subpage .portal-nav-personal>.portal-nav-trigger::after{opacity:1!important}
body.portal-subpage .profile-shell{position:relative;z-index:1}
body.portal-subpage .portal-nav-actions .employee-preview-button,
body.portal-subpage .portal-nav-actions .admin-button{width:100%}
.directory-admin-add{white-space:nowrap;align-self:center}
.colleague-card-shell{position:relative;min-width:0}
.colleague-card-shell .colleague-card{height:100%;padding-top:24px}
.colleague-remove-button{position:absolute;top:10px;right:10px;z-index:4;width:32px;height:32px;display:grid;place-items:center;border:1px solid #ead4d8;border-radius:50%;background:#fff;color:#a22335;box-shadow:0 4px 12px rgba(72,35,45,.10);cursor:pointer;font-size:1rem;font-weight:800;line-height:1}
.colleague-remove-button:hover,.colleague-remove-button:focus-visible{background:#fff4f5;border-color:#dcaeb5;outline:none;box-shadow:0 0 0 3px rgba(162,35,53,.08)}
.directory-modal-backdrop[hidden]{display:none!important}.directory-modal-backdrop{position:fixed;inset:0;z-index:1600;display:flex;align-items:center;justify-content:center;padding:22px;background:rgba(28,20,31,.52);backdrop-filter:blur(3px)}
.directory-modal{width:min(520px,calc(100vw - 32px));background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 24px 70px rgba(40,25,43,.28);padding:22px}
.directory-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-bottom:15px;border-bottom:1px solid #eee9ef}.directory-modal-head h2{margin:0;color:var(--purple-dark);font-size:1.3rem}.directory-modal-close{width:36px;height:36px;border:0;border-radius:50%;background:#f4eff5;color:var(--purple-dark);font-size:1.45rem;cursor:pointer;line-height:1}.directory-modal-help{margin:16px 0;color:var(--muted);font-size:.82rem;line-height:1.55}.directory-form-field{display:grid;gap:7px;margin-top:13px}.directory-form-field>span{color:var(--purple-dark);font-size:.78rem;font-weight:800}.directory-form-field small{color:var(--muted);font-weight:500}.directory-form-field input{width:100%;padding:11px 12px;border:1px solid #d8d2da;border-radius:10px;background:#fff;outline:none}.directory-form-field input:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(36,125,165,.1)}.directory-modal-actions{display:flex;align-items:center;gap:10px;margin-top:20px}.directory-modal-actions .save-status{margin-right:auto}.directory-modal-actions button{white-space:nowrap}
@media(max-width:760px){body.portal-subpage .profile-shell{margin-top:24px}.directory-admin-add{align-self:stretch}.directory-modal-actions{flex-wrap:wrap}.directory-modal-actions .save-status{width:100%;order:-1}.directory-modal-actions button{flex:1}}

/* v9.183 - medewerker kan eigen profielfoto beheren */
.profile-photo-column{display:flex;flex-direction:column;align-items:center;gap:12px;min-width:0}
.profile-photo-controls{width:100%;display:flex;flex-direction:column;align-items:center;gap:7px;text-align:center}
.profile-photo-controls .secondary-button{width:min(180px,100%);padding:9px 12px}
.profile-photo-controls .profile-photo-reset{font-size:.76rem;padding:4px 6px}
.profile-photo-controls .field-help{max-width:205px;margin:0;line-height:1.4}
.profile-photo-controls button:disabled{opacity:.58;cursor:wait}
@media(max-width:720px){.profile-photo-column{width:100%}.profile-photo-controls .field-help{max-width:320px}}
