/* EasyHR organization canvas: hierarchy is the primary content, with quiet surrounding chrome. */
:is(.ehr-org-layout,.ehr-org-gallery){--org-bg:#f2f6fb;--org-surface:#fff;--org-text:#17324d;--org-muted:#667e95;--org-border:#dce7f0;--org-raised:#f6f9fc;color:var(--org-text)}
.ehr-org-layout{max-width:none!important;padding:0!important;height:100dvh;min-height:0;overflow:hidden;background:var(--org-bg);color:var(--org-text)}
html.dark :is(.ehr-org-layout,.ehr-org-gallery){--org-bg:#081322;--org-surface:#0f1d2f;--org-text:#e7eff7;--org-muted:#a8bfd3;--org-border:#2b435c;--org-raised:#122337}
.ehr-org-page{height:100%;min-height:0;display:flex;flex-direction:column;gap:0!important}
.ehr-org-toolbar{position:relative;z-index:20;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 24px;border-bottom:1px solid var(--org-border);background:var(--org-surface);box-shadow:0 3px 20px #073b6306}
.ehr-org-toolbar__identity,.ehr-org-toolbar__actions{display:flex;align-items:center;gap:12px;min-width:0}.ehr-org-toolbar__identity{flex:1;min-width:180px}.ehr-org-toolbar__actions{justify-content:flex-end;flex-wrap:wrap}
.ehr-org-toolbar__identity h1{font-size:17px;font-weight:750;line-height:1.5;overflow-wrap:anywhere}.ehr-org-toolbar__identity p{font-size:11px;color:var(--org-muted)}
.ehr-org-toolbar__identity>div{min-width:0}.ehr-org-unit-logo{width:42px;height:42px;border-radius:11px;object-fit:cover;flex-shrink:0}
.ehr-org-icon-button,.ehr-org-zoom button{width:44px;height:44px;display:grid;place-items:center;flex-shrink:0;border-radius:11px;color:var(--org-muted);background:var(--org-raised);border:1px solid var(--org-border)}
.ehr-org-icon-button svg,.ehr-org-zoom button svg{width:19px;height:19px}.ehr-org-theme{padding-left:10px;border-left:1px solid var(--org-border)}
.ehr-org-selector{overflow:auto;min-height:0;padding:24px 32px 40px}
.ehr-org-selector__heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;margin:28px 0 18px}.ehr-org-selector__heading h2{font-size:17px;font-weight:750}.ehr-org-selector__heading h2 span{margin-left:8px;color:var(--org-muted);font-size:13px;font-weight:500}
.ehr-org-search{display:flex;align-items:center;gap:9px;max-width:100%;width:300px;padding:0 12px;border:1px solid var(--org-border);border-radius:11px;background:var(--org-surface)}.ehr-org-search svg{width:18px;height:18px;color:var(--org-muted)}.ehr-org-search input{width:100%;min-width:0;min-height:44px;border:0;background:transparent;color:var(--org-text);font-size:13px;outline:none;box-shadow:none}
.ehr-org-unit-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr));gap:18px}
.ehr-org-unit-card{position:relative;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--org-border);border-radius:18px;background:var(--org-surface);box-shadow:0 6px 20px #0b436f06;transition:border-color .2s,box-shadow .2s}
.ehr-org-unit-card:hover,.ehr-org-unit-card:focus-within{border-color:#83b3d5;box-shadow:0 8px 24px #0b436f10}
.ehr-org-unit-card__identity{display:grid;grid-template-columns:64px minmax(0,1fr);align-items:center;gap:18px;padding:20px;background:linear-gradient(120deg,var(--org-raised),var(--org-surface));border-bottom:1px solid var(--org-border)}
.ehr-org-unit-card__identity>img{width:64px;height:64px;border-radius:14px;object-fit:cover}
.ehr-org-unit-card__copy{min-width:0}.ehr-org-unit-card h3{font-size:15px;font-weight:750;line-height:1.5;overflow-wrap:anywhere}.ehr-org-unit-card p{font-size:11px;line-height:1.65;color:var(--org-muted);margin-top:4px;overflow-wrap:anywhere}
.ehr-org-unit-card__counts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:14px 20px;gap:8px;color:var(--org-muted);font-size:10px;text-align:center}
.ehr-org-unit-card__counts>span{display:flex;flex-direction:column;gap:3px}.ehr-org-unit-card__counts>span+span{border-left:1px solid var(--org-border)}.ehr-org-unit-card__counts strong{font-size:16px;line-height:1.4;font-weight:700;color:var(--org-text)}
.ehr-org-unit-card__footer{padding:0 20px 18px;margin-top:auto}.ehr-org-unit-card__open{position:static;width:100%;min-height:40px}.ehr-org-unit-card__open::after{content:'';position:absolute;inset:0}.ehr-org-unit-card__open:focus-visible{outline-offset:-4px}
.ehr-org-empty{grid-column:1/-1;padding:44px;text-align:center;color:var(--org-muted)}.ehr-org-empty>svg{width:44px;height:44px;margin:0 auto 12px}.ehr-org-empty h3{font-weight:700;color:var(--org-text)}.ehr-org-empty p{font-size:13px;margin:8px 0 16px}.ehr-org-empty a{color:#2684bd;font-weight:650}
.ehr-org-canvas{position:relative;flex:1;min-height:0;overflow:hidden;touch-action:none;background:var(--org-bg);cursor:grab}.ehr-org-canvas:active{cursor:grabbing}.ehr-org-world{position:absolute;left:0;top:0;transform-origin:0 0;will-change:transform}.ehr-org-links{position:absolute;left:0;top:0;pointer-events:none;overflow:visible}.ehr-org-link{fill:none;stroke:#91b7d1;stroke-width:1.5;stroke-linejoin:round;opacity:1}.dark .ehr-org-link{stroke:#426a8c}
.ehr-org-node{position:absolute;box-sizing:border-box;border:1px solid var(--org-border);border-radius:16px;background:var(--org-surface);box-shadow:0 8px 24px #0a426e0c;cursor:default;transition:left .32s,top .32s,border-color .15s,box-shadow .15s;overflow:hidden}.ehr-org-node.is-drop-target{border-color:#258bd0;box-shadow:0 0 0 4px #2796df30,0 10px 30px #0c5da31c}.ehr-org-node.is-dragging{opacity:.45}.ehr-org-node--unit{border-color:#4f9fd2;background:linear-gradient(130deg,#0b568f,#207fbb);color:#fff}.ehr-org-node--unit .ehr-org-node__identity p,.ehr-org-node--unit .ehr-org-node__kind{color:#d0eaff}
.ehr-org-node__bar{display:flex;align-items:center;justify-content:space-between;min-height:35px;padding:3px 10px 3px 16px;background:var(--org-raised);border-bottom:1px solid var(--org-border)}.ehr-org-node--unit .ehr-org-node__bar{background:transparent;border-color:#ffffff25}.ehr-org-node__kind{font-size:10px;font-weight:650;color:var(--org-muted)}.ehr-org-node__tools{display:flex;gap:2px}.ehr-org-node__tools :is(button,a){display:grid;place-items:center;width:32px;height:32px;color:var(--org-muted);border-radius:7px;touch-action:none}.ehr-org-node__tools :is(button,a):hover{background:#2684bd14;color:#2684bd}.ehr-org-node__tools svg{width:16px;height:16px}.ehr-org-node__handle{cursor:grab}
.ehr-org-node__identity{display:flex;align-items:center;gap:11px;padding:14px 16px 10px;min-height:76px}.ehr-org-node__identity>img,.ehr-org-node__symbol{width:42px;height:42px;border-radius:10px;object-fit:cover;flex-shrink:0}.ehr-org-node__symbol{display:grid;place-items:center;background:linear-gradient(145deg,#167bc1,#0c5da3);color:#fff}.ehr-org-node__symbol svg{width:22px;height:22px}.ehr-org-node__identity>div{min-width:0}.ehr-org-node__identity h3{font-size:13px;font-weight:750;line-height:1.5;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.ehr-org-node__identity p{font-size:10px;color:var(--org-muted);margin-top:3px;overflow-wrap:anywhere}
.ehr-org-node__head{min-height:35px;display:flex;align-items:center;gap:7px;padding:0 16px 10px;font-size:10px;color:var(--org-muted)}.ehr-org-node__head img{width:22px;height:22px;border-radius:6px;object-fit:cover}.ehr-org-node__head span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.ehr-org-node__footer{display:flex;gap:8px;border-top:1px solid var(--org-border);padding:6px 12px}.ehr-org-node__footer button{display:flex;align-items:center;gap:4px;min-height:28px;font-size:10px;color:#3287bd}.ehr-org-node__footer button svg{width:14px;height:14px}.ehr-org-node__person-detail{padding:0 16px 12px}.ehr-org-node__person-detail>p{font-size:10px;line-height:1.6;color:var(--org-muted);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ehr-org-node__reports{margin-top:5px}.ehr-org-node__mockups{display:flex;gap:14px;padding-top:10px;margin-top:10px;border-top:1px solid var(--org-border)}.ehr-org-node__mockups button{display:flex;align-items:center;gap:5px;color:var(--org-muted);font-size:10px;opacity:.65;cursor:not-allowed}.ehr-org-node__mockups svg{width:15px;height:15px}
.ehr-org-zoom{position:absolute;bottom:max(20px,env(safe-area-inset-bottom));left:20px;z-index:5;display:flex;align-items:center;gap:4px;padding:5px;border:1px solid var(--org-border);border-radius:14px;background:var(--org-surface);box-shadow:0 7px 24px #073b6314;cursor:default}.ehr-org-zoom button{width:40px;height:40px;border:0;background:transparent}.ehr-org-zoom span{min-width:48px;text-align:center;font-size:12px;color:var(--org-muted)}.ehr-org-canvas__hint{position:absolute;bottom:88px;left:20px;right:20px;pointer-events:none;text-align:center;font-size:12px;color:var(--org-muted)}.ehr-org-drag-ghost{position:fixed;z-index:200;pointer-events:none;max-width:260px;display:flex;gap:9px;align-items:center;padding:12px 16px;background:#0c5da3;color:#fff;border:1px solid #69b5e7;border-radius:12px;box-shadow:0 12px 32px #073b6330;font-size:13px}.ehr-org-drag-ghost svg{width:18px;height:18px}
.ehr-org-page button:focus-visible,.ehr-org-page a:focus-visible{outline:3px solid #429bd5;outline-offset:3px}.ehr-org-layout .fi-modal-window{max-height:calc(100dvh - 40px);overflow:auto}
@media(max-width:900px){.ehr-org-toolbar{flex-wrap:wrap;padding:10px 16px}.ehr-org-toolbar__actions{flex-wrap:wrap;gap:8px}.ehr-org-theme .ehr-live-badge{display:none}.ehr-org-selector{padding:18px 16px 32px}.ehr-org-theme{margin-left:auto}}
@media(max-width:639px){.ehr-org-toolbar__identity{flex:1}.ehr-org-toolbar__identity h1{font-size:15px}.ehr-org-toolbar__actions{width:100%}.ehr-org-toolbar__actions .fi-btn{min-height:44px;font-size:12px;padding-inline:10px}.ehr-org-unit-logo{width:36px;height:36px}.ehr-org-zoom{bottom:12px;left:12px}.ehr-org-node__tools :is(button,a){width:44px;height:44px}.ehr-org-node__bar{min-height:47px}.ehr-org-node__footer button{min-height:36px}.ehr-org-node__identity{padding-top:11px}.ehr-org-save-status{font-size:10px}.ehr-org-theme{padding-left:6px}.ehr-org-theme .ehr-topbar-status{gap:2px}}
@media(prefers-reduced-motion:reduce){.ehr-org-node,.ehr-org-unit-card{transition:none}}

.ehr-org-node{display:flex;flex-direction:column}.ehr-org-node__footer{margin-top:auto}.ehr-org-node__identity p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.ehr-org-node--advisor{border-style:dashed;border-color:#7d9bb5}.ehr-org-node--advisor .ehr-org-node__bar{background:var(--org-raised)}.ehr-org-link--advisor{stroke-dasharray:6 5;stroke:#8b9caf}.ehr-org-node__person-detail{margin-top:auto}

/* Employee/advisor cards can be grabbed anywhere except their explicit controls. */
.ehr-org-node--person,.ehr-org-node--advisor{cursor:grab;user-select:none;-webkit-user-select:none;touch-action:none}.ehr-org-node--person:active,.ehr-org-node--advisor:active{cursor:grabbing}

/* Compact horizontal people, with one vertical member lane per department/team. */
.ehr-org-node--person,.ehr-org-node--advisor{border-radius:12px}
:is(.ehr-org-node--person,.ehr-org-node--advisor) .ehr-org-node__bar{position:absolute;top:8px;right:6px;min-height:0;padding:0;border:0;background:transparent}
:is(.ehr-org-node--person,.ehr-org-node--advisor) .ehr-org-node__kind{display:none}
:is(.ehr-org-node--person,.ehr-org-node--advisor) .ehr-org-node__tools{flex-direction:column;gap:0}
:is(.ehr-org-node--person,.ehr-org-node--advisor) .ehr-org-node__identity{min-height:0;align-items:flex-start;gap:10px;padding:12px 54px 0 12px}
:is(.ehr-org-node--person,.ehr-org-node--advisor) .ehr-org-node__identity>img{width:42px;height:50px;border-radius:8px}
:is(.ehr-org-node--person,.ehr-org-node--advisor) .ehr-org-node__identity h3{font-size:12px;line-height:17px}
:is(.ehr-org-node--person,.ehr-org-node--advisor) .ehr-org-node__identity p{-webkit-line-clamp:1;line-height:14px;margin-top:2px}
:is(.ehr-org-node--person,.ehr-org-node--advisor) .ehr-org-node__person-detail{margin-top:0;padding:3px 54px 10px 64px}
:is(.ehr-org-node--person,.ehr-org-node--advisor) .ehr-org-node__reports{margin-top:1px;font-size:9px}
:is(.ehr-org-node--person,.ehr-org-node--advisor) .ehr-org-node__mockups{border:0;margin-top:4px;padding-top:0;gap:12px}
:is(.ehr-org-node--person,.ehr-org-node--advisor) .ehr-org-node__mockups button{font-size:9px;gap:4px}
:is(.ehr-org-node--person,.ehr-org-node--advisor) .ehr-org-node__mockups svg{width:13px;height:13px}
.ehr-org-node--department .ehr-org-node__identity{min-height:65px}

/* Shared EasyHR box-header treatment; formal hierarchy keeps the same blue/navy language. */
.ehr-org-node__bar{background:linear-gradient(110deg,var(--org-raised),var(--org-surface))}
.ehr-org-node--ceo{border-color:#6fa9d0;box-shadow:0 6px 20px #0c5da312}
.ehr-org-person-photo{display:block;flex-shrink:0;width:42px;height:50px;border-radius:8px;overflow:hidden;cursor:zoom-in}
.ehr-org-person-photo img{width:100%;height:100%;object-fit:cover;border-radius:8px}
.ehr-org-node__mockups .ehr-org-advisor-link{opacity:1;cursor:pointer;color:#3287bd}
.ehr-org-node--unit .ehr-org-node__bar{display:none}
.ehr-org-node--unit .ehr-org-node__identity{display:grid;grid-template-columns:104px minmax(0,1fr);align-items:center;gap:16px;flex:1;min-height:0;padding:18px}
.ehr-org-node--unit .ehr-org-node__identity>img{width:104px;height:104px;object-fit:contain;object-position:center;padding:6px;border-radius:14px;background:#fff;box-shadow:0 4px 12px #003b651f}
/* Default SVG already owns its colored tile; never add a white frame. */
.ehr-org-node--unit .ehr-org-node__identity>img[src*="/images/business-unit-default/"]{padding:0;background:transparent;border-radius:28px}

/* People show only their photo, name, position and small action/status icons. */
:is(.ehr-org-node--person,.ehr-org-node--advisor) .ehr-org-node__identity{min-height:66px}
:is(.ehr-org-node--person,.ehr-org-node--advisor) .ehr-org-node__mockups{margin-top:0;gap:14px}
:is(.ehr-org-node--person,.ehr-org-node--advisor) .ehr-org-node__person-detail{padding-top:2px;padding-bottom:10px}

/* Structural nodes are quiet name-only boxes; leadership belongs to person cards. */
.ehr-org-node--department,.ehr-org-node--team{border-radius:12px;background:linear-gradient(110deg,var(--org-raised),var(--org-surface));cursor:grab}
.ehr-org-structure-name{width:100%;height:100%;min-height:44px;padding:10px 16px;font-size:13px;font-weight:700;line-height:1.4;text-align:center;color:var(--org-text);overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;touch-action:none;cursor:grab}
.ehr-org-person-photo{width:44px}

.ehr-org-link--advisor{stroke-width:1.2;opacity:.7}

/* Contextual native Filament menus replace the global action toolbar. */
.ehr-org-card-menu{position:absolute;top:6px;right:6px;z-index:3}
.ehr-org-card-menu-trigger,.ehr-org-card-drag{display:grid;place-items:center;width:32px;height:32px;color:var(--org-muted);border-radius:8px;background:transparent;touch-action:none}
.ehr-org-card-menu-trigger:hover,.ehr-org-card-drag:hover{background:#2684bd14;color:#2684bd}
.ehr-org-card-menu-trigger svg,.ehr-org-card-drag svg{width:17px;height:17px}
.ehr-org-card-drag{position:absolute;right:6px;bottom:6px;z-index:2;cursor:grab}
.ehr-org-node--unit .ehr-org-card-menu-trigger{color:#e4f3ff}
.ehr-org-node--unit .ehr-org-node__identity h3{padding-right:32px;font-size:15px;line-height:21px;font-weight:750}
.ehr-org-node--unit .ehr-org-node__identity p{margin-top:6px;font-size:11px;line-height:17px;color:#d0eaff}
.ehr-org-structure-name{padding-inline:36px}
.ehr-org-card-menu-panel{z-index:70!important;background:#fff;border:1px solid #dce7f0;box-shadow:0 12px 32px #0a426e1c}
.ehr-org-card-menu-panel .fi-dropdown-list-item{min-height:40px}
.ehr-org-card-menu-panel .fi-dropdown-list-item-label{color:#17324d;font-size:12px}
.dark .ehr-org-card-menu-panel{background:#0f1d2f;border-color:#2b435c}
.dark .ehr-org-card-menu-panel .fi-dropdown-list-item-label{color:#e7eff7}
@media(max-width:639px){.ehr-org-card-menu-trigger,.ehr-org-card-drag{width:44px;height:44px}.ehr-org-card-menu-panel .fi-dropdown-list-item{min-height:44px}.ehr-org-structure-name{padding-inline:48px}}
/* Full-height portrait strip; the containing card supplies the rounded corners. */
:is(.ehr-org-node--person,.ehr-org-node--advisor) .ehr-org-person-photo{position:absolute;inset:0 auto 0 0;width:72px;height:100%;border-radius:0}
.ehr-org-person-photo img{border-radius:0;object-position:center top}
:is(.ehr-org-node--person,.ehr-org-node--advisor) .ehr-org-node__identity{padding:14px 54px 0 84px;min-height:66px}
:is(.ehr-org-node--person,.ehr-org-node--advisor) .ehr-org-node__person-detail{padding:2px 54px 10px 84px}

.ehr-org-node--vacancy{border-style:dashed;background:var(--org-raised);box-shadow:none}
.ehr-org-vacancy{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;padding:10px;color:var(--org-muted)}
.ehr-org-vacancy strong{font-size:12px;font-weight:650}.ehr-org-vacancy span{font-size:10px}

.ehr-org-node--department,.ehr-org-node--team{cursor:default}.ehr-org-structure-name{cursor:pointer;touch-action:manipulation}

/* The BU gallery uses the normal Admin shell; only the selected chart is full-screen. */
.ehr-org-gallery{height:auto;display:block;padding-block:32px}
.ehr-org-gallery .ehr-org-selector{overflow:visible;padding:0}
@media(max-width:639px){.ehr-org-gallery{padding-block:20px}.ehr-org-gallery .ehr-org-search{width:100%}.ehr-org-gallery .ehr-org-search input{font-size:16px}}

.ehr-org-unit-card__counts .ehr-org-unit-card__vacancy,.ehr-org-unit-card__counts .ehr-org-unit-card__vacancy strong{color:#dc2626}
html.dark .ehr-org-unit-card__counts .ehr-org-unit-card__vacancy,html.dark .ehr-org-unit-card__counts .ehr-org-unit-card__vacancy strong{color:#f87171}
@media(max-width:359px){.ehr-org-unit-card__counts{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:12px}.ehr-org-unit-card__counts>span:nth-child(3){border-left:0}}

/* Selected charts retain the shared card palette, floating counts and no banner. */
.ehr-org-layout{font-family:Inter,"Noto Sans Lao",ui-sans-serif,system-ui,sans-serif}
.ehr-org-chart-shell{display:flex;flex:1;flex-direction:column;gap:18px;min-height:0;padding:20px 24px 24px}

.ehr-org-chart-panel{position:relative;display:flex;flex:1;flex-direction:column;gap:14px;min-height:0;overflow:hidden;border:0;background:transparent;box-shadow:none}
.ehr-org-toolbar__counts{display:flex;justify-content:flex-end;flex-shrink:0;padding:0 4px}

.ehr-org-chart-counts{display:flex;flex-shrink:0;align-items:center}
.ehr-org-chart-counts>div{display:flex;flex-direction:column-reverse;align-items:center;gap:2px;min-width:78px;padding-inline:14px;border:0}
.ehr-org-chart-counts dt{font-size:10px;line-height:1.5;color:var(--org-muted)}
.ehr-org-chart-counts dd{font-size:16px;font-weight:750;line-height:1.4;color:var(--org-text);font-variant-numeric:tabular-nums}
.ehr-org-chart-counts .ehr-org-chart-counts__vacant :is(dt,dd){color:#dc2626}
.ehr-org-chart-panel .ehr-org-canvas{background:var(--org-bg)}

.ehr-org-chart-panel .ehr-org-node.is-drop-target{border-color:#258bd0;box-shadow:0 0 0 4px #2796df30,0 10px 30px #0c5da31c}
.ehr-org-save-status{position:absolute;right:16px;bottom:20px;z-index:5;display:flex;align-items:center;gap:7px;max-width:calc(100% - 236px);padding:7px 10px;border:1px solid var(--org-border);border-radius:9px;background:var(--org-surface);font-size:11px;line-height:1.5;color:var(--org-muted);pointer-events:none}
.ehr-org-save-status>span:first-child{width:6px;height:6px;flex-shrink:0;border-radius:50%;background:#16a47b}
.ehr-org-save-status.is-saving>span:first-child{background:#d39b20}
.ehr-org-zoom{border-radius:11px;box-shadow:0 4px 16px #073b630a}
.ehr-org-zoom button{width:44px;height:44px;border-radius:8px}
.ehr-org-zoom button:hover,.ehr-org-icon-button:hover{background:#0c5da30d;color:#0c5da3}
html.dark .ehr-org-chart-panel .ehr-org-canvas{background:var(--org-bg)}
html.dark :is(.ehr-org-chart-counts__vacant dt,.ehr-org-chart-counts__vacant dd){color:#f87171}
html.dark .ehr-org-zoom button:hover,html.dark .ehr-org-icon-button:hover{background:#64b5ed15;color:#8dccf5}
@media(max-width:900px){
 .ehr-org-chart-shell{padding:16px;gap:14px}
 .ehr-org-chart-counts>div{min-width:62px;padding-inline:10px}

}
@media(max-width:639px){
 .ehr-org-toolbar__identity{min-width:0}
 .ehr-org-toolbar__actions{width:auto;margin-left:auto}
 .ehr-org-toolbar{flex-wrap:nowrap;gap:6px;padding:10px 12px}
 .ehr-org-toolbar__identity{gap:8px}
 .ehr-org-toolbar__identity h1{font-size:13px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .ehr-org-toolbar__identity p{font-size:10px}
 .ehr-org-toolbar .ehr-org-unit-logo{display:none}
 .ehr-org-chart-shell{padding:12px;gap:12px}

 .ehr-org-chart-counts{width:100%;margin:0;padding:0;border:0}
 .ehr-org-chart-counts>div{flex:1;min-width:0;padding-inline:6px}
 .ehr-org-chart-counts>div:first-child{border-left:0}
 .ehr-org-chart-counts dd{font-size:14px}
 .ehr-org-chart-counts dt{font-size:9px}
 .ehr-org-zoom{bottom:12px;left:12px;gap:0;padding:3px}
 .ehr-org-zoom span{min-width:36px;font-size:11px}
 .ehr-org-save-status{right:12px;bottom:72px;max-width:calc(100% - 24px);font-size:10px;padding:5px 8px}
}
@media(max-height:520px){
 
 .ehr-org-chart-shell{padding:10px 12px;gap:0}

 .ehr-org-chart-counts{margin:0;padding:0;border:0}
 .ehr-org-chart-counts>div{min-width:54px;padding-inline:8px}
 .ehr-org-chart-counts>div:first-child{border:0}
}


.ehr-org-gallery .ehr-org-selector__heading{margin-top:22px}
@media(max-width:639px){.ehr-org-gallery .ehr-org-selector__heading{margin-top:18px}}

@media(max-width:639px){.ehr-org-toolbar__counts{justify-content:center;padding:0}.ehr-org-chart-panel{gap:12px}}

/* The BU gallery keeps its original blue EasyHR banner; selected charts have none. */
.ehr-org-gallery .ehr-resource-hero h2{font-size:clamp(20px,2.2vw,28px);font-weight:750;line-height:1.3}
.ehr-org-gallery .ehr-resource-hero p{margin-top:8px;font-size:13px;line-height:1.7;color:#d8ebff}
@media(max-width:639px){.ehr-org-gallery .ehr-resource-hero p{font-size:11px}}

/* Floating totals share the lower-left zoom control surface. */
.ehr-org-toolbar__counts .ehr-org-chart-counts{padding:4px 6px;border:1px solid var(--org-border);border-radius:11px;background:var(--org-surface);box-shadow:0 4px 16px #073b630a}

/* Counts sit beside LIVE in the toolbar, leaving the graph viewport clear. */
.ehr-org-toolbar__counts{padding:0;flex-shrink:0}
@media(min-width:640px){.ehr-org-toolbar__identity{min-width:0}.ehr-org-toolbar{flex-wrap:nowrap}}
@media(max-width:639px){
 .ehr-org-toolbar{flex-wrap:wrap;column-gap:8px;row-gap:6px}
 .ehr-org-toolbar__identity{order:0;flex:1}
 .ehr-org-toolbar__actions{order:1}
 .ehr-org-toolbar__counts{order:2;width:100%;padding:0}
 .ehr-org-toolbar__counts .ehr-org-chart-counts{padding:3px 6px}
}

/* Panning the graph must not start browser text selection on vacant cards. */
.ehr-org-canvas,.ehr-org-canvas .ehr-org-node *{user-select:none;-webkit-user-select:none}

/* Organization dialogs retain native Filament forms, focus traps and action lifecycle. */
.ehr-org-dialog{--dialog-surface:#fff;--dialog-raised:#f2f7fc;--dialog-text:#17324d;--dialog-muted:#627f99;--dialog-border:#d5e4f1;--dialog-accent:#0c5da3;border:1px solid var(--dialog-border);border-radius:22px!important;background:var(--dialog-surface)!important;color:var(--dialog-text);max-height:calc(100dvh - 32px);overflow-y:auto;box-shadow:0 24px 80px #06284430!important;scroll-padding-block:170px 90px}
.ehr-org-dialog .fi-modal-header{align-items:center;padding:24px 48px 20px;background:linear-gradient(135deg,var(--dialog-surface),var(--dialog-raised));border-bottom:1px solid var(--dialog-border);border-radius:21px 21px 0 0}
.ehr-org-dialog .fi-modal-header>div:has(.fi-modal-icon){margin-bottom:12px}
.ehr-org-dialog .fi-modal-icon{width:22px;height:22px}
.ehr-org-dialog .fi-modal-header>div:has(>.fi-modal-icon){padding:13px}
.ehr-org-dialog .fi-modal-heading{font-size:17px;line-height:1.5;font-weight:750;color:var(--dialog-text)}
.ehr-org-dialog .fi-modal-description{font-size:12px;line-height:1.65;color:var(--dialog-muted);margin-top:5px;max-width:390px;text-wrap:pretty}
.ehr-org-dialog .fi-modal-close-btn{width:44px;height:44px;margin:0;border-radius:10px;color:var(--dialog-muted)}
.ehr-org-dialog .fi-modal-content{padding:20px 24px;gap:20px;text-align:left}
.ehr-org-dialog .fi-fo-component-ctn{gap:18px}
.ehr-org-dialog :is(.fi-fo-field-wrp-label,.fi-input){color:var(--dialog-text)}
.ehr-org-dialog .fi-fo-field-wrp-label{font-size:13px}
.ehr-org-dialog :is(.fi-input-wrp,.choices__inner){border-radius:11px;background:var(--dialog-surface)}
.ehr-org-dialog :is(.fi-input,.fi-select-input){min-height:44px;font-size:14px}
.ehr-org-dialog :is(.fi-fo-field-wrp-helper-text,.fi-fo-placeholder){font-size:12px;line-height:1.7;color:var(--dialog-muted)}
.ehr-org-dialog .fi-modal-footer{padding:16px 24px 20px;background:var(--dialog-surface);border-top:1px solid var(--dialog-border);border-radius:0 0 21px 21px}
.ehr-org-dialog .fi-modal-footer-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);gap:10px}
.ehr-org-dialog .fi-modal-footer-actions .fi-btn{min-height:44px;border-radius:11px;font-size:13px;white-space:normal}
.ehr-org-dialog__cancel{grid-column:1;grid-row:1;background:var(--dialog-surface);color:var(--dialog-text)}
.ehr-org-dialog__submit{grid-column:2;grid-row:1;background:linear-gradient(110deg,#0b68b1,#0c5da3);box-shadow:0 5px 12px #0c5da31c}
.ehr-org-dialog__secondary{grid-column:1/-1;grid-row:2;background:transparent;box-shadow:none!important;justify-self:start;min-height:40px!important;padding-inline:10px}
.ehr-org-dialog .fi-modal-footer-actions>.fi-btn:only-child{grid-column:1/-1}
.ehr-org-dialog-context{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;border:1px solid var(--dialog-border);border-radius:15px;background:linear-gradient(110deg,var(--dialog-raised),var(--dialog-surface));color:var(--dialog-accent)}
.ehr-org-dialog-context__copy{display:flex;flex-direction:column;gap:4px;min-width:0;overflow-wrap:anywhere}
.ehr-org-dialog-context__eyebrow{font-size:9px;line-height:1.5;letter-spacing:.12em;text-transform:uppercase;font-weight:750;color:var(--dialog-accent)}
.ehr-org-dialog-context__copy strong{font-size:13px;line-height:1.5;color:var(--dialog-text)}
.ehr-org-dialog-context__copy>span:last-child{font-size:10px;line-height:1.5;color:var(--dialog-muted)}
.ehr-org-dialog-art{width:138px;height:76px;flex-shrink:0;overflow:visible}
.ehr-org-dialog-art__surface{fill:var(--dialog-surface);stroke:currentColor;stroke-opacity:.3}
.ehr-org-dialog-art__wire{stroke:currentColor;stroke-opacity:.3;stroke-width:1.5;stroke-dasharray:4 5;animation:ehr-org-dialog-wire 8s linear infinite}
.ehr-org-dialog-art__detail{stroke:currentColor;stroke-opacity:.55;stroke-width:1.4;stroke-linecap:round}
.ehr-org-dialog-art__badge-bg{fill:var(--dialog-accent);stroke:var(--dialog-surface);stroke-width:4}
.ehr-org-dialog-art__card{animation:ehr-org-dialog-float 6s ease-in-out infinite}
.ehr-org-dialog-art__targets{animation:ehr-org-dialog-float 7s ease-in-out -2s infinite}
.ehr-org-dialog--danger{--dialog-accent:#cc354c;--dialog-raised:#fff2f4;--dialog-border:#f3d5da}
.ehr-org-dialog--danger .fi-modal-heading{color:#692d39}
.ehr-org-dialog--danger .ehr-org-dialog__submit{background:linear-gradient(110deg,#bd3046,#e35466);box-shadow:0 5px 12px #cc354c20}
.ehr-org-dialog--photo .fi-modal-content{padding-top:16px}
html.dark .ehr-org-dialog{--dialog-surface:#0f1d2f;--dialog-raised:#162b41;--dialog-text:#e7eff7;--dialog-muted:#a8bfd3;--dialog-border:#2b435c;--dialog-accent:#80c5f3}
html.dark .ehr-org-dialog--danger{--dialog-accent:#fb8c9b;--dialog-raised:#30212f;--dialog-border:#65404e}
html.dark .ehr-org-dialog--danger .fi-modal-heading{color:#ffd7df}
@keyframes ehr-org-dialog-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@keyframes ehr-org-dialog-wire{to{stroke-dashoffset:-36}}
@media(max-width:639px){.ehr-org-dialog{max-height:calc(100dvh - 24px)}.ehr-org-dialog .fi-modal-header{padding:22px 44px 16px}.ehr-org-dialog .fi-modal-content{padding:16px}.ehr-org-dialog .fi-modal-footer{padding:14px 16px 16px}.ehr-org-dialog-art{width:105px;height:62px}.ehr-org-dialog-context{padding:12px;gap:8px}.ehr-org-dialog-context__eyebrow{font-size:8px}.ehr-org-dialog .fi-modal-footer-actions{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr)}.ehr-org-dialog .fi-modal-footer-actions .fi-btn{font-size:12px}.ehr-org-dialog .fi-modal-description{font-size:11px}}
@media(max-height:520px){.ehr-org-dialog .fi-modal-header{padding-block:12px}.ehr-org-dialog .fi-modal-header>div:has(.fi-modal-icon){display:none}.ehr-org-dialog .fi-modal-content{padding-block:14px}.ehr-org-dialog-art{height:54px}.ehr-org-dialog .fi-modal-footer{padding-block:12px}}
@media(prefers-reduced-motion:reduce){.ehr-org-dialog-art *{animation:none!important}.fi-modal:has(.ehr-org-dialog) [x-transition]{transition-duration:0ms!important}}

/* Employee QR follows the source rental QR composition, with authenticated HR content. */
.ehr-org-node__mockups .ehr-org-employee-qr{color:#3287bd;opacity:1;cursor:pointer;padding:0}
.ehr-org-node__mockups .ehr-org-employee-qr:hover{color:#0c5da3}
.ehr-org-dialog--qr .fi-modal-header{border-bottom:0;background:var(--dialog-surface);padding-bottom:0}
.ehr-org-dialog--qr .fi-modal-content{padding-top:24px}
.ehr-employee-qr{display:flex;flex-direction:column;align-items:center;gap:18px;text-align:center}
.ehr-employee-qr__code{width:216px;max-width:100%;padding:18px;background:#fff;border:1px solid #cfe1f1;border-radius:16px;box-shadow:0 10px 28px #073b630c}
.ehr-employee-qr__code svg{display:block;width:100%;height:auto;aspect-ratio:1}
.ehr-employee-qr__copy{display:flex;align-items:center;flex-direction:column;gap:5px;color:var(--dialog-text);width:100%;overflow-wrap:anywhere}
.ehr-employee-qr__tag{padding:4px 10px;border:1px solid var(--dialog-border);background:var(--dialog-raised);border-radius:20px;font-size:8px;letter-spacing:.16em;font-weight:750;color:var(--dialog-accent)}
.ehr-employee-qr__copy strong{font-size:14px;line-height:1.5;margin-top:3px}
.ehr-employee-qr__copy p,.ehr-employee-qr__copy small{font-size:11px;line-height:1.6;color:var(--dialog-muted)}
.ehr-employee-qr__open{min-height:44px;border-radius:11px;background:linear-gradient(110deg,#0b68b1,#0c5da3);box-shadow:0 5px 14px #0c5da320;font-size:12px}
.ehr-employee-workspace .ehr-resource-hero h1{font-size:clamp(20px,2.2vw,28px);font-weight:750;line-height:1.3}
.ehr-employee-workspace .ehr-resource-hero p{font-size:13px;line-height:1.7;margin-top:8px;color:#d8ebff}
.ehr-employee-profile,.ehr-employee-document{border:1px solid var(--employee-border,#dce7f0);border-radius:18px;overflow:hidden;background:var(--employee-surface,#fff);color:var(--employee-text,#17324d)}
.ehr-employee-profile>.ehr-box-heading,.ehr-employee-document>.ehr-box-heading{padding:14px 20px;background:linear-gradient(110deg,var(--employee-raised,#eef4f9),var(--employee-surface,#fff));border-bottom:1px solid var(--employee-border,#dce7f0)}
.ehr-employee-profile__body{display:grid;grid-template-columns:104px minmax(0,1fr) auto;align-items:center;gap:20px;padding:24px}
.ehr-employee-profile__photo{width:104px;height:128px;object-fit:cover;object-position:top;border-radius:12px}
.ehr-employee-profile__identity{min-width:0;overflow-wrap:anywhere}
.ehr-employee-profile__identity h2{font-size:20px;font-weight:750;line-height:1.5}
.ehr-employee-profile__identity p{font-size:14px;margin-top:4px}
.ehr-employee-profile__identity span{display:block;font-size:12px;margin-top:7px;color:var(--employee-muted,#627f99)}
.ehr-employee-profile__details{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;padding-top:20px;border-top:1px solid var(--employee-border,#dce7f0)}
.ehr-employee-profile__details dt{font-size:11px;color:var(--employee-muted,#627f99)}
.ehr-employee-profile__details dd{font-size:13px;line-height:1.7;margin-top:4px;overflow-wrap:anywhere}
.ehr-employee-documents{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.ehr-employee-document__body{padding:24px;display:flex;flex-direction:column;align-items:flex-start;gap:16px}
.ehr-employee-document__body p{font-size:12px;color:var(--employee-muted,#627f99);line-height:1.7}
.ehr-employee-document__status{border:1px solid var(--employee-border,#dce7f0);border-radius:20px;padding:5px 10px;font-size:11px;background:var(--employee-raised,#f2f7fc)}
.ehr-employee-document__status.is-complete{color:#15805a;background:#dff8ec;border-color:#a9dfc5}
html.dark .ehr-employee-workspace{--employee-surface:#0f1d2f;--employee-text:#e7eff7;--employee-raised:#162b41;--employee-border:#2b435c;--employee-muted:#a8bfd3}
html.dark .ehr-employee-document__status.is-complete{color:#8ce2ba;background:#173c35;border-color:#285e50}
@media(max-width:767px){.ehr-employee-profile__body{grid-template-columns:88px minmax(0,1fr);padding:18px;gap:16px}.ehr-employee-profile__photo{width:88px;height:108px}.ehr-employee-profile__body>.fi-btn{grid-column:1/-1;justify-self:start}.ehr-employee-profile__identity h2{font-size:17px}.ehr-employee-profile__details{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.ehr-employee-documents{grid-template-columns:1fr}.ehr-employee-document__body{padding:18px}}
@media(max-width:359px){.ehr-employee-profile__details{grid-template-columns:1fr}.ehr-employee-profile__body{grid-template-columns:72px minmax(0,1fr);padding:16px;gap:12px}.ehr-employee-profile__photo{width:72px;height:96px}}

/* QR matches its sibling glyphs; an invisible target preserves touch access. */
:is(.ehr-org-node--person,.ehr-org-node--advisor) .ehr-org-node__person-detail{position:absolute;left:84px;right:54px;bottom:0;padding:0;height:44px}
:is(.ehr-org-node--person,.ehr-org-node--advisor) .ehr-org-node__mockups{height:44px;align-items:center;gap:10px}
.ehr-org-node__mockups .ehr-org-employee-qr{position:relative;width:14px;height:14px;justify-content:center;flex-shrink:0;border:0;border-radius:3px;padding:0;background:transparent;box-shadow:none}
.ehr-org-node__mockups .ehr-org-employee-qr::after{content:"";position:absolute;inset:-15px;min-width:44px;min-height:44px}
.ehr-org-node__mockups .ehr-org-employee-qr:hover{background:transparent;color:#0c5da3}
.ehr-org-page .ehr-org-employee-qr:focus-visible{outline:2px solid #429bd5;outline-offset:4px}

/* QR destinations use a standalone document sheet, without Admin navigation chrome. */
.ehr-employee-shell{width:100%;min-width:0;min-height:100dvh;padding:28px max(24px,env(safe-area-inset-right)) max(42px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));background:radial-gradient(circle at 8% -8%,#49b4f022,transparent 31rem),linear-gradient(180deg,#f7fbfe,#eef5f9)}
.ehr-employee-shell .ehr-employee-workspace{max-width:1180px;min-width:0;margin-inline:auto;border:1px solid #d4e5ef;border-radius:25px;background:#fff;box-shadow:0 24px 65px #0c3f6319;overflow:hidden}
.ehr-employee-shell .ehr-resource-hero{margin:0;border:0;border-radius:0;box-shadow:none}
.ehr-employee-workspace__body{display:flex;flex-direction:column;gap:24px;padding:28px}
.ehr-employee-shell .fi-btn{min-height:44px;touch-action:manipulation}
html.dark .ehr-employee-shell{background:radial-gradient(circle at 8% -8%,#1d5b7c33,transparent 31rem),linear-gradient(180deg,#0a192b,#081322)}
html.dark .ehr-employee-shell .ehr-employee-workspace{background:#0f1d2f;border-color:#2b435c;box-shadow:0 24px 65px #0003}
@media(max-width:767px){.ehr-employee-shell{padding:16px max(12px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}.ehr-employee-shell .ehr-employee-workspace{border-radius:20px}.ehr-employee-workspace__body{padding:16px;gap:16px}}
@media(max-width:359px){.ehr-employee-workspace__body{padding:12px}}

/* HR document workflow adapts the rental document surface and native dialogs. */
.ehr-doc-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;border:1px solid var(--employee-border,#d5e4f1);border-radius:11px;background:var(--employee-surface,#fff);color:var(--employee-text,#17324d);font-size:13px;font-weight:650;line-height:1.5;text-decoration:none;cursor:pointer;touch-action:manipulation;max-width:100%;text-align:center}
.ehr-doc-btn--primary{color:#fff;background:linear-gradient(110deg,#0b68b1,#0c5da3);border-color:#0c5da3;box-shadow:0 5px 14px #0c5da320}.ehr-doc-btn--danger{background:#c63b50;color:#fff;border-color:#c63b50}.ehr-doc-btn:hover{filter:brightness(.97)}.ehr-doc-btn:focus-visible{outline:3px solid #429bd5;outline-offset:3px}
.ehr-doc-record{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:12px 0;border-bottom:1px solid var(--employee-border,#d5e4f1);font-size:12px;overflow-wrap:anywhere}.ehr-doc-record>span:first-child{min-width:0}.ehr-doc-record strong,.ehr-doc-record small{display:block}.ehr-doc-record small{margin-top:4px;color:var(--employee-muted,#627f99);font-size:10px}
.ehr-doc-status{display:inline-block;padding:5px 10px;border-radius:20px;background:#edf5fd;color:#0c5da3;font-size:11px;white-space:nowrap}.ehr-doc-status--completed{background:#ddf9eb;color:#087950}.ehr-doc-status--cancelled{background:#fff0f2;color:#bd3046}.ehr-doc-state{display:flex;align-items:center;gap:12px;font-size:12px}
.ehr-doc-notice,.ehr-doc-errors{padding:12px 16px;border:1px solid #c9e1f2;border-radius:12px;background:#f1f8fe;color:#245675;font-size:12px;line-height:1.7}.ehr-doc-errors{border-color:#efc9d0;background:#fff3f4;color:#9b293b}
.ehr-doc-field{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:600;min-width:0}.ehr-doc-field :is(input,textarea,select){width:100%;min-width:0;min-height:44px;border:1px solid var(--employee-border,#cbdfea);border-radius:11px;background:var(--employee-surface,#fff);color:var(--employee-text,#17324d);font-family:inherit;font-size:14px;font-weight:400;line-height:1.7;padding:10px 12px}.ehr-doc-field textarea{resize:vertical}.ehr-doc-field :is(input,textarea,select):focus{outline:2px solid #0c5da3;outline-offset:1px}.ehr-doc-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.ehr-doc-hint{font-size:12px;line-height:1.7;color:var(--employee-muted,#627f99)}
.ehr-doc-editor{display:flex;flex-direction:column;gap:18px}.ehr-doc-editor>.ehr-doc-btn{align-self:flex-start}.ehr-doc-content{border:1px solid var(--employee-border,#d5e4f1);border-radius:16px;padding:24px}.ehr-doc-content h2,.ehr-doc-sign h2{font-size:18px;font-weight:750}.ehr-doc-content__text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.9;margin-top:20px}
.ehr-doc-signers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--employee-border,#d5e4f1);border-radius:16px;overflow:hidden}.ehr-doc-signer{padding:18px;text-align:center;min-width:0}.ehr-doc-signer+.ehr-doc-signer{border-left:1px solid var(--employee-border,#d5e4f1)}.ehr-doc-signer h3{font-size:12px;font-weight:750}.ehr-doc-signer img{width:100%;height:74px;object-fit:contain;margin:12px 0;background:#fff;border-radius:8px}.ehr-doc-signer :is(p,small){font-size:11px;color:var(--employee-muted,#627f99);margin-top:12px;display:block}.ehr-doc-signer strong{font-size:12px;overflow-wrap:anywhere}
.ehr-doc-sign{padding:20px;border:1px solid var(--employee-border,#cbdfea);border-radius:16px;background:var(--employee-raised,#f2f7fc)}.ehr-doc-sign canvas{display:block;width:100%;height:auto;aspect-ratio:900/220;background:#fff;border:1px dashed #9fc1da;border-radius:12px;touch-action:none;margin-top:16px;cursor:crosshair}.ehr-doc-sign__actions{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin-top:16px}.ehr-doc-sign__actions .ehr-doc-field{max-width:180px}.ehr-doc-pdf-actions{display:flex;flex-wrap:wrap;gap:12px}.ehr-doc-pdf-preview{width:100%;height:650px;border:1px solid var(--employee-border,#cbdfea);border-radius:14px;background:#fff}
.ehr-doc-modal{--employee-border:#d5e4f1;--employee-surface:#fff;--employee-text:#17324d;--employee-muted:#627f99;width:min(640px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--employee-border);border-radius:22px;background:var(--employee-surface);color:var(--employee-text);box-shadow:0 24px 80px #06284440}.ehr-doc-modal::backdrop{background:#071e3866;backdrop-filter:blur(3px)}.ehr-doc-modal>form{display:flex;flex-direction:column;max-height:calc(100dvh - 34px)}.ehr-doc-modal__header{position:relative;flex-shrink:0;padding:24px 40px 20px;text-align:center;background:linear-gradient(130deg,var(--employee-surface),#edf6fd);border-bottom:1px solid var(--employee-border)}.ehr-doc-modal__icon{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;margin:0 auto 12px;background:#e3eff9;color:#0c5da3}.ehr-doc-modal__icon svg{width:23px;height:23px}.ehr-doc-modal__header h2{font-size:17px;font-weight:750}.ehr-doc-modal__header p{font-size:12px;line-height:1.7;color:var(--employee-muted);margin-top:6px}.ehr-doc-close{position:absolute;top:12px;right:12px;width:44px;height:44px;font-size:26px;color:var(--employee-muted)}.ehr-doc-modal__body{padding:22px;display:flex;flex-direction:column;gap:18px;overflow:auto;min-height:0}.ehr-doc-modal__footer{display:grid;grid-template-columns:1fr 1.5fr;gap:10px;padding:16px 22px;border-top:1px solid var(--employee-border);flex-shrink:0}.ehr-doc-modal--danger .ehr-doc-modal__header{background:linear-gradient(130deg,#fff,#fff0f2)}.ehr-doc-modal--danger .ehr-doc-modal__icon{background:#ffe1e6;color:#c63b50}
html.dark :is(.ehr-doc-modal,.ehr-employee-workspace){--employee-border:#2b435c;--employee-surface:#0f1d2f;--employee-text:#e7eff7;--employee-muted:#a8bfd3}html.dark .ehr-doc-modal__header{background:linear-gradient(130deg,#0f1d2f,#162b41)}html.dark .ehr-doc-modal--danger .ehr-doc-modal__header{background:linear-gradient(130deg,#0f1d2f,#30212f)}html.dark .ehr-doc-notice{background:#132c42;border-color:#2b506d;color:#c7e5fa}html.dark .ehr-doc-errors{background:#30212f;border-color:#65404e;color:#ffd7df}html.dark .ehr-doc-status{background:#19364f;color:#9bd2f7}html.dark .ehr-doc-status--completed{background:#173c35;color:#8ce2ba}html.dark .ehr-doc-status--cancelled{background:#462936;color:#ffa9b7}
@media(max-width:639px){.ehr-doc-fields,.ehr-doc-signers{grid-template-columns:1fr}.ehr-doc-signer+.ehr-doc-signer{border-left:0;border-top:1px solid var(--employee-border,#d5e4f1)}.ehr-doc-sign__actions{align-items:stretch;flex-direction:column}.ehr-doc-sign__actions .ehr-doc-field{max-width:none}.ehr-doc-modal__body{padding:16px}.ehr-doc-modal__header{padding:18px 38px 16px}.ehr-doc-modal__footer{padding:14px 16px}.ehr-doc-field :is(input,textarea,select){font-size:16px}.ehr-doc-content{padding:18px}.ehr-doc-record{align-items:flex-start;flex-direction:column}.ehr-doc-pdf-preview{height:440px}}
@media(max-height:520px){.ehr-doc-modal__header{padding-block:12px}.ehr-doc-modal__icon{display:none}.ehr-doc-modal__footer{padding-block:10px}}

/* Public-rental QR baseline: 1480px sheet, 250px hero, information/summary and workflow rows. */
.ehr-employee-shell{padding:28px max(24px,env(safe-area-inset-right)) max(42px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));font-size:14px}
.ehr-employee-shell .ehr-employee-workspace{max-width:1480px}
.ehr-qr-brand{max-width:1480px;margin:0 auto 16px;display:flex;align-items:center;justify-content:space-between;gap:18px;color:#18364e}.ehr-qr-brand__identity{display:flex;align-items:center;gap:11px;min-width:0}.ehr-qr-brand__identity img{width:42px;height:42px;flex-shrink:0;object-fit:contain;border-radius:14px}.ehr-qr-brand__identity strong,.ehr-qr-brand__identity span{display:block}.ehr-qr-brand__identity strong{font-size:16.5px;font-weight:750}.ehr-qr-brand__identity span{margin-top:2px;color:#7890a1;font-size:12px;font-weight:700;letter-spacing:.06em}.ehr-qr-brand__verified{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid #bfe6d6;border-radius:999px;color:#087950;background:#f1fff9;font-size:12px;font-weight:650;white-space:nowrap}.ehr-qr-brand__verified svg{width:15px;height:15px}
.ehr-employee-shell .ehr-resource-hero{grid-template-columns:minmax(0,1.12fr) minmax(360px,.88fr);gap:34px;min-height:250px;padding:38px 42px 30px}.ehr-employee-shell .ehr-resource-hero h1{font-size:clamp(32px,3vw,56px);font-weight:800;line-height:1.15;letter-spacing:-.025em;margin-top:13px}.ehr-employee-shell .ehr-resource-hero h1 span{color:#ffe08a}.ehr-employee-shell .ehr-resource-hero p{font-size:14px;line-height:1.65;max-width:680px;margin-top:11px;color:#e3f1ff}.ehr-employee-shell .ehr-resource-hero__art{width:100%;height:195px;max-width:none}.ehr-employee-shell .ehr-resource-hero__art img{width:100%;height:195px;max-width:none}
.ehr-qr-eyebrow{display:flex;align-items:center;gap:9px;color:#ffedbd;font-size:12px;font-weight:800;letter-spacing:.17em}.ehr-qr-eyebrow::before{content:'';width:27px;height:2px;background:#f2bd3d;flex-shrink:0}.ehr-qr-hero-meta{display:flex;flex-wrap:wrap;gap:9px;margin-top:22px}.ehr-qr-hero-meta>span{padding:8px 11px;border:1px solid #ffffff33;border-radius:10px;background:#ffffff12;min-width:0;overflow-wrap:anywhere}.ehr-qr-hero-meta small,.ehr-qr-hero-meta strong{display:block}.ehr-qr-hero-meta small{font-size:9px;letter-spacing:.11em;color:#cce9fc;font-weight:750}.ehr-qr-hero-meta strong{font-size:13px;color:#fff;margin-top:3px}
.ehr-employee-workspace__body{padding:26px 30px 32px;gap:16px}.ehr-qr-overview{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.45fr);gap:16px}.ehr-qr-overview>.ehr-employee-profile{min-width:0}.ehr-qr-overview .ehr-employee-profile__body{padding:18px;gap:16px}.ehr-qr-overview .ehr-employee-profile__body>.fi-btn{grid-column:2;justify-self:start}.ehr-qr-overview .ehr-employee-profile__body{grid-template-columns:88px minmax(0,1fr)}.ehr-qr-overview .ehr-employee-profile__photo{grid-row:1;width:88px;height:108px}.ehr-qr-overview .ehr-employee-profile__identity h2{font-size:18px}.ehr-qr-overview .ehr-employee-profile__details{gap:0;padding:0;border:0;background:var(--employee-border,#dce9f1);gap:1px;margin:0 -18px -18px}.ehr-qr-overview .ehr-employee-profile__details>div{padding:14px 16px;background:var(--employee-surface,#fff)}.ehr-qr-overview .ehr-employee-profile__details dt{font-size:10px;text-transform:uppercase;letter-spacing:.08em}.ehr-qr-overview .ehr-employee-profile__details dd{font-size:13px;font-weight:650}
.ehr-qr-summary{display:flex;flex-direction:column;min-width:0}.ehr-qr-panel-head{padding:15px 17px;border-bottom:1px solid var(--employee-border,#dce9f1);background:linear-gradient(100deg,var(--employee-raised,#eef8ff),var(--employee-surface,#fafdff))}.ehr-qr-panel-head small,.ehr-qr-panel-head strong{display:block}.ehr-qr-panel-head small{color:#5294bf;font-size:10px;font-weight:700;letter-spacing:.14em}.ehr-qr-panel-head strong{margin-top:3px;font-size:16px;font-weight:700}.ehr-qr-totals{display:grid;flex:1;min-height:184px;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(92px,1fr))}.ehr-qr-totals>div{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;padding:12px 8px;text-align:center}.ehr-qr-totals>div:nth-child(odd){border-right:1px solid var(--employee-border,#dce9f1)}.ehr-qr-totals>div:nth-child(-n+2){border-bottom:1px solid var(--employee-border,#dce9f1)}.ehr-qr-totals small{color:var(--employee-muted,#7890a1);font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}.ehr-qr-totals strong{color:#086fab;font-size:18px;font-weight:750}
.ehr-qr-timeline{display:grid;grid-template-columns:minmax(220px,.55fr) minmax(0,1.45fr);border:1px solid var(--employee-border,#d8e7f0);border-radius:17px;overflow:hidden}.ehr-qr-timeline__heading{display:flex;align-items:center;gap:11px;padding:15px 17px;border-right:1px solid var(--employee-border,#d8e7f0);background:var(--employee-raised,#edf8ff)}.ehr-qr-timeline__heading>svg{width:38px;height:38px;padding:9px;border-radius:11px;background:linear-gradient(140deg,#168cc7,#0c5da3);color:white;flex-shrink:0}.ehr-qr-timeline small,.ehr-qr-timeline strong{display:block}.ehr-qr-timeline small{font-size:10px;color:var(--employee-muted,#627f99)}.ehr-qr-timeline strong{font-size:13px;margin-top:5px}.ehr-qr-timeline__heading small{letter-spacing:.12em;color:#2b87bb}.ehr-qr-timeline__steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:12px 14px}.ehr-qr-timeline__steps>div{display:flex;justify-content:center;flex-direction:column;padding:12px;border:1px solid var(--employee-border,#d5e4f1);border-radius:13px;background:var(--employee-raised,#f5faff)}
.ehr-qr-workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px;border:1px solid var(--employee-border,#cde4f2);border-radius:17px;background:linear-gradient(115deg,var(--employee-raised,#eef8ff),var(--employee-surface,#fff))}.ehr-qr-workspace-heading small,.ehr-qr-workspace-heading strong{display:block}.ehr-qr-workspace-heading small{font-size:10px;letter-spacing:.14em;color:#2b87bb;font-weight:700}.ehr-qr-workspace-heading strong{margin-top:4px;font-size:16px;font-weight:700}.ehr-qr-workspace-heading p{font-size:11px;color:var(--employee-muted,#7890a1);margin-top:4px}.ehr-qr-staff{padding:10px 12px;border:1px solid #bfe6d6;border-radius:12px;min-width:0;background:var(--employee-surface,#f1fff9)}.ehr-qr-staff small{font-size:9px;color:#138259}.ehr-qr-staff strong{font-size:12px;overflow-wrap:anywhere}.ehr-qr-footer{display:flex;justify-content:space-between;gap:12px;padding:16px 30px;border-top:1px solid var(--employee-border,#dce9f1);font-size:11px;color:var(--employee-muted,#7890a1)}
html.dark .ehr-qr-brand{color:#e7eff7}html.dark .ehr-qr-brand__verified{color:#8ce2ba;background:#173c35;border-color:#285e50}html.dark .ehr-qr-totals strong{color:#9bd2f7}
@media(max-width:1100px){.ehr-employee-shell .ehr-resource-hero{grid-template-columns:1.08fr .92fr;gap:16px;padding:30px 26px 24px}.ehr-qr-overview{grid-template-columns:minmax(0,1fr) 280px}.ehr-qr-overview .ehr-employee-profile__details{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.ehr-qr-overview{grid-template-columns:1fr}.ehr-qr-totals{min-height:160px;grid-template-rows:repeat(2,minmax(80px,1fr))}.ehr-qr-timeline{grid-template-columns:1fr}.ehr-qr-timeline__heading{border-right:0;border-bottom:1px solid var(--employee-border,#d8e7f0)}}
@media(max-width:639px){.ehr-employee-shell{padding:16px max(12px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}.ehr-qr-brand{gap:8px}.ehr-qr-brand__identity{gap:8px}.ehr-qr-brand__identity img{width:36px;height:36px}.ehr-qr-brand__identity strong{font-size:12px}.ehr-qr-brand__identity span{font-size:9px}.ehr-qr-brand__verified{font-size:9px;gap:4px;padding:7px}.ehr-employee-shell .ehr-resource-hero{grid-template-columns:1fr;gap:9px;min-height:0;padding:25px 18px 19px}.ehr-employee-shell .ehr-resource-hero h1{font-size:clamp(28px,7.2vw,34px)}.ehr-employee-shell .ehr-resource-hero p{font-size:12px}.ehr-employee-shell .ehr-resource-hero__art{height:125px}.ehr-employee-shell .ehr-resource-hero__art img{height:125px}.ehr-qr-eyebrow{font-size:9px}.ehr-qr-hero-meta{margin-top:16px}.ehr-qr-hero-meta>span{flex:1 1 calc(50% - 9px)}.ehr-employee-workspace__body{padding:16px;gap:12px}.ehr-qr-workspace-heading{padding:14px;align-items:flex-start}.ehr-qr-staff{max-width:115px;padding:8px}.ehr-qr-workspace-heading strong{font-size:14px}.ehr-qr-workspace-heading small{font-size:9px}.ehr-qr-timeline__steps{gap:6px;padding:10px}.ehr-qr-timeline__steps>div{padding:9px}.ehr-qr-timeline__steps small{font-size:9px}.ehr-qr-footer{padding:14px 16px;flex-direction:column;gap:4px}}
@media(max-width:359px){.ehr-qr-overview .ehr-employee-profile__details{grid-template-columns:1fr}.ehr-qr-brand__verified svg{display:none}.ehr-employee-workspace__body{padding:12px}.ehr-qr-staff{max-width:90px}.ehr-qr-workspace-heading p{font-size:10px}}

.ehr-employee-shell .ehr-box-heading{display:flex;align-items:center;gap:11px}.ehr-employee-shell .ehr-box-heading__icon{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:9px;background:linear-gradient(140deg,#0d67b5,#064682);color:#fff;box-shadow:inset 0 1px #ffffff33,0 5px 12px #0c5da326}.ehr-employee-shell .ehr-box-heading__icon svg{width:17px;height:17px}.ehr-employee-shell .ehr-box-heading__title{font-size:15px;font-weight:750;line-height:1.5;color:var(--employee-text,#17324d)}.ehr-employee-shell .ehr-box-heading__description{font-size:11px;line-height:1.65;color:var(--employee-muted,#627f99);margin-top:3px}.ehr-employee-shell .ehr-box-heading__copy{min-width:0}

/* Names and titles stay within fixed chart cards; only complete people have a badge. */
:is(.ehr-org-node--person,.ehr-org-node--advisor) .ehr-org-node__copy{width:100%;min-width:0}
:is(.ehr-org-node--person,.ehr-org-node--advisor) .ehr-org-node__name{display:flex;align-items:flex-start;gap:5px;min-width:0}
:is(.ehr-org-node--person,.ehr-org-node--advisor) .ehr-org-node__name h3{flex:0 1 auto;min-width:0;max-height:34px;line-height:17px;-webkit-line-clamp:2}
:is(.ehr-org-node--person,.ehr-org-node--advisor) .ehr-org-node__copy>p{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:14px;max-width:100%}
:is(.ehr-org-node__name,.ehr-employee-profile__name) .ehr-org-completion{display:inline-flex;align-items:center;justify-content:center;flex:0 0 14px;width:14px;height:14px;margin-top:2px;color:#fff;background:#07864d;border-radius:50%}
:is(.ehr-org-node__name,.ehr-employee-profile__name) .ehr-org-completion svg{box-sizing:border-box;width:14px;height:14px;padding:2px}
html.dark :is(.ehr-org-node__name,.ehr-employee-profile__name) .ehr-org-completion{background:#0c9b62}
.ehr-org-structure-name{display:flex;align-items:center;justify-content:center;padding:8px 52px}
.ehr-org-structure-name>span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;max-width:100%;max-height:37px}
.ehr-org-vacancy strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;max-width:100%}

/* Private latest-PDF actions retain compact glyphs and native link behavior. */
.ehr-org-node__mockups .ehr-org-document-link{position:relative;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:14px;height:14px;padding:0;border:0;border-radius:3px;background:transparent;box-shadow:none;color:var(--org-muted);opacity:.65;cursor:not-allowed}
.ehr-org-node__mockups a.ehr-org-document-link{color:#3287bd;opacity:1;cursor:pointer}
.ehr-org-node__mockups a.ehr-org-document-link::after{content:"";position:absolute;inset:-15px;min-width:44px;min-height:44px}
.ehr-org-node__mockups a.ehr-org-document-link:hover{color:#0c5da3}
.ehr-org-page .ehr-org-document-link:focus-visible{outline:2px solid #429bd5;outline-offset:4px}

/* Edit dialogs keep Delete beside Close, within the sticky header. */
.ehr-org-dialog__header-action{position:absolute;top:16px;right:68px;display:inline-flex}
.ehr-org-dialog .ehr-org-dialog__delete{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:10px;background:transparent;color:#b83149;box-shadow:none}
.ehr-org-dialog .ehr-org-dialog__delete svg{width:18px;height:18px}
.ehr-org-dialog .ehr-org-dialog__delete:hover{background:#fff0f3}
html.dark .ehr-org-dialog .ehr-org-dialog__delete{background:transparent;color:#fb8c9b}
html.dark .ehr-org-dialog .ehr-org-dialog__delete:hover{background:#3c2635}

/* The workspace reuses the same completion badge after the employee name. */
.ehr-employee-profile__identity .ehr-employee-profile__name .ehr-org-completion{margin:0 0 0 6px;vertical-align:middle}

/* Salary, current term and service replace document counts within the same compact group. */
.ehr-employment-summary .ehr-qr-timeline__steps>div{min-width:0}
.ehr-employment-summary .ehr-qr-timeline__steps strong{font-size:14px;line-height:1.6;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.ehr-employment-summary__since{font-size:10px;line-height:1.5;color:var(--employee-muted,#627f99);margin-top:3px}
@media(max-width:639px){.ehr-employment-summary .ehr-qr-timeline__steps{grid-template-columns:1fr}.ehr-employment-summary .ehr-qr-timeline__steps>div{padding:10px 12px}}

.ehr-employment-summary__salary{position:relative}
.ehr-employment-summary__salary>small{padding-right:36px}
.ehr-employment-salary-toggle{position:absolute;top:0;right:3px;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:0;border-radius:10px;background:transparent;color:var(--employee-muted,#627f99)}
.ehr-employment-salary-toggle svg{width:18px;height:18px}
.ehr-employment-salary-toggle:hover{color:var(--employee-text,#17324d);background:#3287bd0a}
.ehr-employment-salary-toggle:focus-visible{outline:2px solid #429bd5;outline-offset:-3px}

.ehr-employment-summary__status{display:flex;align-items:center;min-height:23px}.ehr-employment-summary__status .fi-badge{width:fit-content;max-width:100%;white-space:normal;text-align:left}

.ehr-org-person-option{display:flex;align-items:center;gap:10px;min-width:0;max-width:100%}.ehr-org-person-option>img{width:28px;height:28px;flex:0 0 28px;border:0;border-radius:7px;object-fit:cover}.ehr-org-person-option__name{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ehr-org-dialog--person .fi-modal-header{padding-top:76px}.ehr-org-dialog .ehr-org-dialog__manage-users{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 6px;font-size:11px;text-decoration:none}.ehr-org-dialog__manage-users svg{width:16px;height:16px}

.choices__list--dropdown.ehr-org-person-menu.is-active{display:flex;flex-direction:column;box-sizing:border-box;overflow:hidden;border-radius:11px;box-shadow:0 12px 32px #071e3826}.choices__list--dropdown.ehr-org-person-menu>.choices__input{position:static;flex:0 0 auto;margin:0}.choices__list--dropdown.ehr-org-person-menu>.choices__list{flex:0 1 auto;min-height:0;max-height:calc(var(--ehr-person-menu-height) - 48px);overflow-y:auto;overscroll-behavior:contain}
