/* EiD Office top-right tools, ported from original HTML prototype. */
.eid-headbar{position:relative;isolation:isolate;z-index:100;}
.eid-head-actions{gap:12px;flex-shrink:0;}
.eid-head-username{color:#4b403b;font-size:12px;max-width:155px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.eid-head-tools{display:flex;align-items:center;gap:7px;}
.eid-head-icon,.eid-head-profile{display:inline-flex;align-items:center;justify-content:center;position:relative;width:36px;height:36px;min-width:36px;background:white;border:1px solid #e2d8d2;color:#97736f;border-radius:9px;cursor:pointer;padding:0;}
.eid-head-icon svg{height:18px;width:18px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
.eid-head-icon:hover,.eid-head-icon[aria-expanded="true"],.eid-head-profile:hover,.eid-head-profile[aria-expanded="true"]{background:#f8f0ed;border-color:#b8887e;}
.eid-head-profile{border:0;border-radius:50%;background:var(--mint);color:#456c60;font-size:11px;font-weight:800;overflow:visible;}
.eid-head-profile span{display:block;max-width:31px;overflow:hidden;}
.eid-head-count{position:absolute;right:-7px;top:-7px;background:#559f7c;color:#fff;border-radius:20px;border:2px solid #fff;min-width:20px;height:20px;display:grid;place-items:center;font-size:10px;font-weight:800;padding:0 3px;}
.eid-head-count[hidden],.eid-head-popover[hidden],.eid-head-password[hidden]{display:none!important;}
.eid-head-popover{position:absolute;right:20px;top:calc(100% + 3px);z-index:1000;width:min(390px,calc(100vw - 25px));background:white;border:1px solid #e8dcd5;box-shadow:0 19px 45px #44332b25;border-radius:13px;padding:16px;max-height:min(620px,calc(100dvh - 85px));overflow-y:auto;}
.eid-head-popover-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;font-size:14px;}
.eid-head-popover-title button{border:none;background:transparent;color:#9f8076;font-size:23px;line-height:1;padding:1px 5px;}
.eid-head-popover label{display:grid;gap:5px;color:#806d64;font-size:12px;margin-bottom:9px;font-weight:650;}
.eid-head-popover input{height:39px;min-height:39px;width:100%;}
.eid-head-results{display:grid;gap:5px;margin-top:8px;max-height:350px;overflow:auto;}
.eid-head-results>p,.eid-head-hint{font-size:11px;color:#8b7a72;padding:7px 4px;line-height:1.5;}
.eid-head-row,.eid-head-menu{font-size:12px;border:1px solid transparent;background:transparent;width:100%;text-align:left;border-radius:8px;padding:10px 12px;color:#55443f;cursor:pointer;display:flex;gap:9px;align-items:center;}
.eid-head-row{display:block;}
.eid-head-row span{font-weight:750;display:block;}
.eid-head-row small{display:block;color:#97827a;font-size:10px;font-weight:400;margin-top:3px;}
.eid-head-menu span{flex:1;}
.eid-head-menu small{font-size:10px;color:#977f75;}
.eid-head-menu:hover,.eid-head-row:hover{background:#f8f3f0;border-color:#ede2dd;}
.eid-head-menu:focus-visible,.eid-head-row:focus-visible,.eid-head-icon:focus-visible,.eid-head-profile:focus-visible{outline:2px solid #78a998;outline-offset:2px;}
.eid-head-usercard{display:grid;gap:2px;background:#f2f7f4;border:1px solid #e0ece4;border-radius:9px;padding:11px;margin-bottom:8px;}
.eid-head-usercard strong{color:#3f554c;font-size:13px;}.eid-head-usercard span{color:#6c897a;font-size:11px;}
.eid-head-signout{color:#94655c;border-top:1px solid #f2e9e4;border-radius:0;margin-top:5px;}
.eid-head-password{padding:12px;border:1px solid #ebdfd8;background:#fbf8f6;border-radius:10px;display:grid;gap:5px;}
@media(max-width:920px){.eid-headbar{gap:8px;}.eid-head-username{max-width:98px;}.eid-head-actions{gap:8px;}.eid-head-tools{gap:4px;}.eid-head-icon{width:32px;height:32px;min-width:32px;}}
@media(max-width:640px){.eid-headbar{padding:9px 12px;}.eid-headbar .eid-crumb{font-size:11px;}.eid-head-username{max-width:85px;font-size:11px;}.eid-head-actions>.version-pill{font-size:8px;padding:5px;}.eid-head-profile{width:32px;min-width:32px;height:32px;}.eid-head-popover{right:9px;}}

#eidHeadbar [hidden]{display:none!important;}

/* Personal account dialog / protected photo, aligned with EiD brand. */
.eid-profile-overlay[hidden]{display:none!important}
.eid-profile-overlay{position:fixed;inset:0;z-index:1200;background:#31292577;display:flex;align-items:center;justify-content:center;padding:20px;overflow:auto}
.eid-profile-dialog{background:#fff;border:1px solid #dbcfcf;border-radius:17px;box-shadow:0 20px 60px #32251a36;padding:23px;width:min(780px,100%);max-height:calc(100dvh - 36px);overflow:auto}
.eid-profile-dialog-head{display:flex;justify-content:space-between;align-items:start;border-bottom:1px solid #ede7e1;padding-bottom:12px;margin-bottom:16px}
.eid-profile-dialog-head small{font-size:10px;letter-spacing:.12em;color:#aa8178;font-weight:800}
.eid-profile-dialog-head h2{font-size:21px;margin:4px 0;color:#382f2c}
.eid-profile-dialog-head p{font-size:12px;color:#846e66;margin:0}
.eid-profile-avatar-row{display:flex;gap:18px;align-items:center;background:#f0ece8;border-radius:12px;padding:15px;margin-bottom:18px}
.eid-profile-avatar-preview{width:100px;height:100px;min-width:100px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#c8e5de;color:#476c63;font-weight:750;font-size:24px}
.eid-profile-avatar-preview img{width:100%;height:100%;object-fit:cover}
.eid-profile-avatar-row p{font-size:12px;color:#806f67;margin:5px 0 12px}
.eid-profile-photo-actions{display:flex;gap:7px;flex-wrap:wrap}
.eid-profile-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.eid-profile-fields label{font-size:12px;color:#78655d;display:grid;gap:5px;font-weight:650}
.eid-profile-fields input,.eid-profile-fields textarea{width:100%;font:inherit;border:1px solid #d8cfc9;border-radius:8px;padding:10px;color:#2e2a27;background:#fff}
.eid-profile-fields input[readonly]{background:#f8f6f4;color:#7e7670}
.eid-profile-fields .wide{grid-column:1/-1}
.eid-profile-note{margin:0;font-size:11px;color:#87766f}
.eid-profile-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px}
#eidProfileStatus,#eidPhotoStatus{font-size:11px;color:#507365}
.eid-head-profile img{width:100%;height:100%;border-radius:50%;object-fit:cover}
.team-name-photo{display:flex;align-items:center;gap:10px}
.team-list-photo,.team-list-placeholder{width:34px;height:34px;flex:0 0 34px;border-radius:50%;object-fit:cover;display:grid;place-items:center;background:#c8e5de;color:#466a60;font-size:12px;font-weight:800}
.staff-photo-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.staff-photo-controls .btn{cursor:pointer}
@media(max-width:580px){.eid-profile-fields{grid-template-columns:1fr}.eid-profile-dialog{padding:15px}.eid-profile-avatar-row{align-items:flex-start}}
