/* Branch workspaces: depth is decorative; bar lengths retain their exact scale. */
.institution-card:has(.institution-link){padding:0;overflow:hidden;position:relative;box-shadow:0 2px 4px #1b3b4b05,0 10px 25px #1b3b4b06}
.institution-link{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:100%;height:100%;min-height:245px;padding:18px 14px 14px;color:var(--ink);text-decoration:none;border-radius:9px;transition:box-shadow .16s ease,background-color .16s ease}
.institution-link:hover{background:#f6fbfa;box-shadow:inset 0 0 0 2px #b4dbd3;text-decoration:none}
.erp-ui .institution-link:focus-visible{outline:3px solid #087f76;outline-offset:-4px;background:#f5fbf9}
.institution-link .institution-logo{margin-bottom:14px;background:transparent}
.institution-link .institution-logo img{background:#fff;border-radius:5px}
.institution-link p{margin:0;padding-top:3px}
.institution-open{display:inline-flex;align-items:center;gap:6px;margin-top:auto;padding-top:14px;color:#066f66;font-size:11px;font-weight:650;line-height:1.4}
.institution-open .ui-icon{width:14px;height:14px}

.branch-back{display:inline-flex;align-items:center;gap:7px;margin-bottom:15px;color:#557089;font-size:11px;font-weight:600;text-decoration:none}
.branch-back:hover{color:#08796f;text-decoration:underline}
.branch-back .ui-icon{width:15px;height:15px}
.branch-hero{position:relative;display:flex;align-items:center;gap:23px;min-width:0;padding:25px 28px;background:linear-gradient(118deg,#fff 42%,#edf7f4 100%);border:1px solid #d8e7e5;border-radius:15px;box-shadow:0 2px 0 #fff inset,0 4px 14px #15384c06;isolation:isolate;margin-bottom:21px;overflow:hidden}
.branch-hero::after{content:"";position:absolute;right:-105px;top:-120px;width:320px;height:320px;border:1px solid #d8ebe6;border-radius:50%;pointer-events:none;z-index:-1}
.branch-hero-logo{display:flex;align-items:center;justify-content:center;flex:none;width:100px;height:100px;padding:8px;background:#fff;border:1px solid #dce8e6;border-radius:13px;box-shadow:0 5px 14px #28455309;object-fit:contain}
.branch-hero-logo img{display:block;width:100%;height:100%;object-fit:contain}
.branch-hero-copy{min-width:0;flex:1}
.branch-hero-copy h1{max-width:760px;margin:0 0 9px!important;overflow-wrap:break-word;font-size:25px!important;letter-spacing:-.5px;line-height:1.3}
.branch-hero-copy p{margin:5px 0;font-size:12px;color:#597387}
.branch-hero-copy .dashboard-eyebrow{font-size:10px}
.branch-hero-copy .branch-data-note{margin-top:8px}
.branch-picker{display:flex;align-items:flex-end;justify-content:flex-start;gap:10px;flex-wrap:wrap;margin:0 0 17px}
.branch-picker form{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;max-width:100%;margin:0}
.branch-picker label{display:grid;gap:5px;max-width:100%}
.branch-picker select{min-width:260px;max-width:100%;width:100%}
.branch-tabs{display:flex;align-items:center;gap:5px;overflow-x:auto;overscroll-behavior-inline:contain;border-bottom:1px solid var(--line);padding:0 0 1px;margin:0 0 23px;scrollbar-width:thin}
.branch-tabs a{display:flex;align-items:center;justify-content:center;gap:7px;flex:none;padding:11px 14px;border-radius:7px 7px 0 0;min-height:43px;font-size:12px;font-weight:600;color:#597087;text-decoration:none;border-bottom:2px solid transparent;white-space:nowrap}
.branch-tabs a:hover{color:#08796f;background:#eef7f4}
.branch-tabs a[aria-current=page],.branch-tabs a.active{color:#066f66;background:#eaf6f2;border-bottom-color:#087f76}
.branch-tabs .ui-icon{width:16px;height:16px}
.erp-ui .branch-tabs a:focus-visible{outline-offset:-3px}

.branch-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:23px}
.branch-kpi{--branch-accent:#346da6;position:relative;min-width:0;overflow:hidden;display:flex;flex-direction:column;align-items:flex-start;padding:20px;background:linear-gradient(145deg,#fff 42%,#f3f7fc 100%);border:1px solid #dbe5ef;border-bottom:3px solid #d4dfe9;border-radius:12px;box-shadow:0 2px 0 #fff inset,0 6px 16px #20334808}
.branch-kpi::before{content:"";position:absolute;top:0;left:19px;right:19px;height:3px;background:var(--branch-accent);border-radius:0 0 3px 3px;opacity:.7}
.branch-kpi span{display:block;color:#5a7288;font-size:12px;font-weight:600;line-height:1.45}
.branch-kpi strong{display:block;margin:10px 0 8px;color:#233b53;font-size:35px;font-weight:700;letter-spacing:-.9px;line-height:1.15}
.branch-kpi small{display:block;margin-top:auto;color:#6c8196;font-size:10px;line-height:1.55}
.branch-kpi.present{--branch-accent:#13866f;background:linear-gradient(145deg,#fff 42%,#edf8f4 100%);border-bottom-color:#c9e6dc}
.branch-kpi.absent{--branch-accent:#bb5269;background:linear-gradient(145deg,#fff 42%,#fdf0f3 100%);border-bottom-color:#efcfd7}
.branch-kpi.late{--branch-accent:#b87e20;background:linear-gradient(145deg,#fff 42%,#fff7e9 100%);border-bottom-color:#efdfbd}
.branch-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr);align-items:start;gap:22px;margin-bottom:22px}
.branch-grid>.card{min-width:0;margin:0!important}
.branch-period{display:flex;align-items:flex-end;justify-content:flex-start;gap:12px;flex-wrap:wrap;margin-bottom:21px;padding:15px 17px;background:#f5f8fb;border:1px solid #e1e9f0;border-radius:9px}
.branch-period form{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;max-width:100%;margin:0}
.branch-period label{display:grid;gap:5px;min-width:0}
.branch-period input{max-width:100%}
.branch-period .muted{flex:1;min-width:160px;margin:0;font-size:11px}

.branch-trend{display:grid;gap:11px;list-style:none;padding:0;margin:20px 0 8px}
.branch-day{display:grid;grid-template-columns:60px minmax(0,1fr) 44px;gap:11px;align-items:center;min-width:0}
.branch-day-label{display:flex;flex-direction:column;gap:1px;color:#506c84;font-size:11px;font-weight:600;line-height:1.35}
.branch-day-label small{color:#7b8ea1;font-size:9px;font-weight:400}
.branch-bar-track{position:relative;display:block;min-width:0;height:24px;overflow:hidden;background:#eef3f7;border-radius:5px;border:1px solid #e3ebf1;box-shadow:inset 0 2px 3px #20334807}
.branch-bar-fill{display:block;width:var(--branch-height,0%);height:100%;min-width:0;background:linear-gradient(180deg,#38b6a5 0%,#1d9a88 65%,#178675 100%);border-radius:4px;box-shadow:inset 0 2px 0 #ffffff36,inset 0 -2px 0 #0a645825;position:relative}
.branch-bar-fill::after{content:"";position:absolute;inset:2px 2px auto;height:5px;background:#ffffff1e;border-radius:3px;pointer-events:none}
.branch-day.is-today .branch-bar-fill{background:linear-gradient(180deg,#5997cc,#397ab4 65%,#306699)}
.branch-bar-fill.present{background:linear-gradient(180deg,#38b6a5,#1d9a88 65%,#178675)}
.branch-bar-fill.absent{background:linear-gradient(180deg,#d68499,#bd6079 65%,#a75067)}
.branch-day-value{color:#38566f;font-size:11px;font-weight:650;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.branch-legend{display:flex;align-items:center;justify-content:flex-start;gap:14px;flex-wrap:wrap;font-size:10px;color:#687e92;line-height:1.6;margin:14px 0 0}
.branch-legend span{display:inline-flex;align-items:center;gap:6px}
.branch-legend .branch-status-dot{width:7px;height:7px;flex:none}
.branch-status-list{display:grid;gap:0;margin:12px 0 0;padding:0;list-style:none}
.branch-status-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #edf2f6;font-size:12px;color:#567188}
.branch-status-item:last-child{border-bottom:0}
.branch-status-item>span{display:flex;align-items:center;gap:8px}
.branch-status-item strong{font-size:17px;line-height:1.3;color:#304a60;font-weight:650;font-variant-numeric:tabular-nums}
.branch-status-dot{display:inline-block;width:8px;height:8px;flex:none;background:#299882;border-radius:50%}
.branch-status-dot.present{background:#299882}
.branch-status-dot.late{background:#c28b31}
.branch-status-dot.absent{background:#bd6079}
.branch-status-dot.half{background:#866bb0}
.branch-status-dot.leave{background:#538abf}
.branch-status-dot.holiday,.branch-status-dot.weekly{background:#7c91a5}
.branch-status-dot.pending,.branch-status-dot.unprocessed{background:#a2afb9}
.branch-employee-table td:first-child a{font-weight:650;color:#246c9b}
.branch-employee-table td:first-child a:hover{text-decoration:underline}
.branch-employee-table .employee-meta{display:block;color:#7b8ca0;font-size:10px;margin-top:3px;font-weight:400}
.branch-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:34px 22px;text-align:center;border:1px dashed #cbd9e5;border-radius:10px;background:#fafcfe;color:#687f93}
.branch-empty h2,.branch-empty h3{margin:0!important;color:#415d75}
.branch-empty p{max-width:520px;margin:0;font-size:12px;line-height:1.7}
.branch-empty .ui-icon{width:30px;height:30px;color:#7195b3}
.branch-empty .actions{justify-content:center;margin-top:10px}
.branch-data-note{font-size:10px;color:#72879a;line-height:1.7;margin:12px 0 0}
.branch-data-note strong{font-weight:650;color:#576f83}
.branch-grid .chart-data{margin-top:18px}
.branch-grid .chart-data table{font-variant-numeric:tabular-nums}
.branch-kpi strong{max-width:100%;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.erp-ui a.branch-kpi,.erp-ui a.branch-kpi:hover,.erp-ui a.branch-kpi:focus{text-decoration:none}
.erp-ui a.branch-kpi:hover{border-color:#a5c8c1;box-shadow:0 2px 0 #fff inset,0 7px 18px #20334810}
.erp-ui a.branch-kpi:focus-visible{outline:3px solid #087f76;outline-offset:3px}
.branch-period label{max-width:min(100%,320px)}
.branch-period input:not([type=hidden]),.branch-period select{width:100%;min-width:0;max-width:min(100%,320px)}
.branch-period select{overflow:hidden;text-overflow:ellipsis}
.branch-picker label{max-width:min(100%,520px)}
.erp-ui .branch-profile-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 24px;margin:18px 0 0}
.branch-profile-details>div{min-width:0;padding:13px 0;border-bottom:1px solid #edf2f6}
.branch-profile-details dt{margin:0 0 5px;color:#788da0;font-size:10px;font-weight:600;line-height:1.5}
.branch-profile-details dd{margin:0!important;color:#344e65;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.branch-record-details{margin-top:23px;border-top:1px solid #e2eaf1;padding-top:15px}
.branch-record-details>summary{padding:11px 13px;border:1px solid #dce7ef;border-radius:7px;background:#f5f8fb;color:#3c617b;font-size:12px;font-weight:650;cursor:pointer}
.branch-record-details>summary:hover{background:#edf6f3;color:#08796f}
.branch-record-details[open]>summary{margin-bottom:12px}
.branch-pagination{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding:8px 0 3px;margin-top:12px}
.branch-pagination>span{margin-right:auto;font-size:11px;color:#6a8095}
.branch-export{margin:16px 0 18px}

@media(max-width:1180px){.branch-hero{padding:22px;gap:19px}.branch-hero-logo{width:87px;height:87px}.branch-hero-copy h1{font-size:23px!important}.branch-kpis{gap:12px}.branch-kpi{padding:18px 16px}.branch-kpi strong{font-size:31px}.branch-grid{grid-template-columns:minmax(0,1.4fr) minmax(240px,1fr);gap:18px}}
@media(max-width:980px){.branch-grid{grid-template-columns:minmax(0,1fr)}.branch-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:780px){.branch-hero{padding:18px;gap:16px;border-radius:12px}.branch-hero-logo{width:76px;height:76px;padding:6px;border-radius:10px}.branch-hero-copy h1{font-size:21px!important}.branch-hero-copy p{font-size:11px}.branch-tabs{margin-bottom:19px;gap:3px}.branch-tabs a{padding:10px 12px;font-size:11px}.branch-picker{margin-bottom:15px}.branch-picker form{width:100%}.branch-picker label{flex:1;min-width:0}.branch-picker select{min-width:0}.institution-link{min-height:235px;padding:14px 10px}.institution-open{font-size:10px}.branch-kpi{padding:17px 15px}.branch-kpi strong{font-size:31px}.branch-kpi span{font-size:11px}.branch-period{padding:13px;gap:10px}.branch-period form{gap:10px;width:100%}.branch-data-note{font-size:10px}.branch-employee-table{min-width:720px!important}}
@media(max-width:480px){.branch-hero{align-items:flex-start;gap:12px;padding:16px}.branch-hero-logo{width:66px;height:66px}.branch-hero-copy h1{font-size:18px!important;line-height:1.4;letter-spacing:-.25px}.branch-hero-copy p{font-size:10px}.branch-hero-copy .dashboard-eyebrow{font-size:8px;letter-spacing:.8px}.branch-tabs .ui-icon{width:14px;height:14px}.branch-kpis{gap:11px}.branch-kpi{padding:16px 13px}.branch-kpi strong{font-size:29px}.branch-kpi small{font-size:9px}.branch-kpi::before{left:13px;right:13px}.branch-day{grid-template-columns:45px minmax(0,1fr) 35px;gap:8px}.branch-day-label,.branch-day-value{font-size:10px}.branch-bar-track{height:22px}.branch-legend{gap:10px;font-size:9px}.branch-period label{width:100%}.branch-period label input{width:100%;min-width:0}.branch-period .btn{flex:1}.branch-picker form>.btn{padding-left:11px;padding-right:11px}.branch-empty{padding:27px 15px}.branch-empty p{font-size:11px}.institution-link{min-height:224px}.institution-open{gap:4px;font-size:9px}.institution-open .ui-icon{width:12px;height:12px}}
@media(prefers-reduced-motion:reduce){.institution-link{transition:none}}
@media print{.branch-back,.branch-picker,.branch-tabs,.branch-period,.branch-empty .actions{display:none!important}.branch-hero{padding:10px 0;background:#fff;border:0;box-shadow:none;border-radius:0;gap:15px;break-inside:avoid}.branch-hero::after,.branch-kpi::before{display:none}.branch-hero-logo{width:65px;height:65px;border:0;box-shadow:none}.branch-hero-copy h1{font-size:20px!important}.branch-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.branch-kpi,.branch-kpi.present,.branch-kpi.absent,.branch-kpi.late{background:#fff;border:1px solid #ccc;border-radius:0;box-shadow:none;padding:10px;break-inside:avoid}.branch-kpi strong{font-size:24px}.branch-kpi span{font-size:10px}.branch-kpi small{font-size:9px}.branch-grid{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:12px}.branch-grid>.card{break-inside:avoid}.branch-bar-track{box-shadow:none;background:#fff;border:1px solid #ddd;border-radius:0}.branch-bar-fill,.branch-bar-fill.present,.branch-bar-fill.absent,.branch-day.is-today .branch-bar-fill{background:#647c8d;box-shadow:none;border-radius:0;print-color-adjust:exact;-webkit-print-color-adjust:exact}.branch-bar-fill::after{display:none}.branch-data-note,.branch-day-label,.branch-day-value,.branch-status-item{color:#222}.branch-employee-table{min-width:0!important}.branch-employee-table a{color:#000!important;text-decoration:none}.branch-status-dot{print-color-adjust:exact;-webkit-print-color-adjust:exact}}
@media(max-width:980px){.erp-ui .branch-profile-details{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}}
@media(max-width:480px){.branch-period label,.branch-period input:not([type=hidden]),.branch-period select{max-width:100%}.erp-ui .branch-profile-details{grid-template-columns:minmax(0,1fr);gap:0}.branch-profile-details>div{padding:11px 0}.branch-profile-details dd{font-size:12px}.branch-kpi strong{font-size:27px}.branch-record-details>summary{font-size:11px}}
@media print{.branch-export,.branch-pagination{display:none!important}.erp-ui .branch-profile-details{grid-template-columns:repeat(3,minmax(0,1fr));gap:0 15px}.branch-profile-details>div{padding:7px 0;break-inside:avoid}.branch-profile-details dd{font-size:10px}.branch-profile-details dt{font-size:9px}.branch-record-details{border-top:0;padding-top:0}.branch-record-details>summary{background:#fff;border:0;border-radius:0;padding:0;cursor:default}}
