table td[data-task-code]{font-weight:700;color:#132c36}
table td[data-task-code="P"]{background:#d1d1d1}
table td[data-task-code="A"]{background:#ee0000;color:white}
table td[data-task-code="B"]{background:#00afd9;color:#071f29}
table td:is([data-task-code="C1"],[data-task-code="C2"],[data-task-code="C3"],[data-task-code="C4"],[data-task-code="C5"],[data-task-code="C6"]){background:#ffbf00}
table td:is([data-task-code="N"],[data-task-code="N1"],[data-task-code="N2"]){background:#e5a0dc}
table td:is([data-task-code="T1"],[data-task-code="T2"]){background:#95d050}
table td[data-task-code="X"]{background:#99dcf3}
.sheet td.scheduled{background:#a9e3c0}
.sheet .today{box-shadow:inset 2px 0 #176a9c,inset -2px 0 #176a9c}
.sheet thead .today{background:#176a9c;color:#fff}
.sheet thead .today small{color:inherit}
.sheet td.unsaved-entry button{border:2px dashed #945c00}
.matrix .extra-row td:not([data-task-code]):not(.weekend){background:#f2e9fa}
.matrix .extra-row .first{border-left:4px solid #9163b3}
.managementDialog{width:min(580px,calc(100% - 32px));max-height:calc(100vh - 32px);overflow:auto}
.managementDialog h2{margin-top:0}
.managementDialog input,.managementDialog select,.managementDialog textarea{width:100%;box-sizing:border-box}
.managementDialog textarea{display:block;font:inherit;border:1px solid #aabfc6;border-radius:5px;padding:5px;resize:vertical}
.managementDialog fieldset{border:1px solid #b7cacc;border-radius:6px;margin:12px 0}
.managementDialog .bar{justify-content:flex-end;margin-bottom:0}
#saveReport:disabled{background:#e2e8e7;color:#586a6c;border-color:#c8d3d1;cursor:default}
.managementDialog .calendar-date-input{display:flex;gap:6px}
.managementDialog .calendar-date-input input[type=text]{min-width:0}
.calendar-icon{display:block;flex:none}
.calendar-native{position:relative;display:inline-flex;align-items:stretch;max-width:100%}
.calendar-native.calendar-has-button:not(.calendar-native-compact) input{padding-inline-end:34px}
.calendar-has-button input::-webkit-calendar-picker-indicator{display:none}
.calendar-native .calendar-button{display:grid;place-items:center;padding:0 7px;color:#31545c}
.calendar-native:not(.calendar-native-compact) .calendar-button{position:absolute;inset-block:3px;inset-inline-end:3px;border:0;background:transparent}
.calendar-date-input .calendar-native-compact{flex:0 0 34px;align-self:stretch;margin-top:3px}
.calendar-date-input .calendar-native-compact .calendar-button{width:100%}
.calendar-native-compact.calendar-has-button input{position:absolute;inset:0;width:100%;height:100%;margin:0!important;opacity:0;pointer-events:none}
.calendar-native-compact:not(.calendar-has-button) input{width:34px;color:transparent;padding:4px}
.calendar-native-compact:not(.calendar-has-button) input::-webkit-datetime-edit{display:none}
.calendar-year-field{display:inline-flex;position:relative;align-items:center}
.calendar-year-field .calendar-icon{position:absolute;left:6px;color:#31545c;pointer-events:none}
.calendar-year-field select{padding-left:26px}
.month-picker button[data-month]{display:inline-flex;align-items:center;gap:6px}
.holiday-dialog[open]{display:flex;flex-direction:column;gap:10px;width:min(620px,calc(100% - 24px));padding:16px}
.holiday-dialog .holiday-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0;background:transparent;color:inherit}
.holiday-dialog h2,.holiday-dialog .holiday-status{margin:0}
.holiday-dialog .holiday-status:empty{display:none}
.holiday-list{overflow:auto;min-height:0;max-height:48vh;border:1px solid #d5e1df;border-radius:6px;padding:0 10px}
.holiday-list:empty{display:none}
.holiday-list:not(:has(.bar)){padding:8px 10px}
.holiday-dialog .holiday-list .bar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;margin:0;padding:7px 0}
.holiday-list .bar+.bar{border-top:1px solid #edf2f1}
.holiday-list strong{display:block;overflow-wrap:anywhere;font-size:.9rem}
.holiday-list small{font-variant-numeric:tabular-nums}
.holiday-row-actions,.holiday-form-actions{display:flex;gap:5px;justify-content:flex-end}
.holiday-dialog button{font-size:.82rem;padding:4px 8px;white-space:nowrap}
.holiday-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.holiday-dialog #holidayForm{display:grid;gap:8px;padding-top:8px;border-top:1px solid #d5e1df}
.holiday-dialog #holidayForm label{margin:0}
.holiday-dialog #holidayForm input{margin:3px 0 0}
.holiday-dialog .calendar-date-input .calendar-native-compact{flex-basis:32px}
@media(max-width:440px){.holiday-dates{grid-template-columns:1fr}}
.audit-detail{max-width:min(800px,80vw);max-height:50vh;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}
.month-picker{display:inline-flex;align-items:center;gap:4px;flex-wrap:wrap}
.month-picker button{color:#183742;border:1px solid #abc2c6;border-radius:5px;background:#fff;padding:5px 8px;font:inherit;cursor:pointer}
.month-picker button:disabled{opacity:.5;cursor:default}
.month-picker [data-current]{padding:3px 6px;background:#dcefe3;color:#135940;border-radius:4px;font-size:12px}
.month-picker .month-popup{position:fixed;inset:auto;margin:0;width:min(312px,calc(100vw - 16px));padding:12px;border:1px solid #abc2c6;border-radius:8px;box-shadow:0 8px 28px #122c3a28;background:white;color:#183742}
.month-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:8px 0}
.month-grid button{display:block;position:relative;text-align:left;font-size:13px;padding:5px 4px 5px 25px}.month-grid button .month-access-icon{position:absolute;left:7px;top:50%;transform:translateY(-50%)}
.month-grid .month-access-icon{width:13px;height:13px}
.month-grid [aria-pressed=true]{background:#176652;color:white}
.month-grid .current-calendar-month{box-shadow:inset 0 0 0 2px #62b493}
.productivity-total{background:#d9ebe5;font-weight:700}
.productivity-group{background:#edf5f2;font-weight:650}
.productivity-fold{border:0;background:transparent;padding:0 4px;margin-right:4px;min-width:22px}
.productivity-fold:disabled{cursor:default;opacity:.7}
.productivity-help{max-width:780px;margin:0 0 14px}
#productivityContribution{background:#e4efeb;border:1px solid #c8d8d5;border-radius:6px;padding:4px 10px;margin-bottom:8px;max-height:28dvh;overflow:auto}
#productivityContribution summary{cursor:pointer}
#productivityContribution .productivity-help{margin:6px 0}
#page:has(#productivityTable){padding-top:14px;padding-bottom:12px}
#page:has(#productivityTable)>h1{margin:0 0 8px}
.productivity-toolbar{margin:0 0 8px;gap:6px 10px}
.productivity-toolbar>button{padding:4px 10px}
#productivityStatus{margin:0 0 8px}
#productivityStatus:empty{margin:0}
.report-sort{display:block;text-align:inherit;width:100%;padding:0;border:0;background:none;font-weight:inherit}
.bar.has-fullscreen{position:relative;padding-inline-end:48px;min-height:34px}
.bar.has-fullscreen>.fullscreen-toggle{position:absolute;inset-block-start:0;inset-inline-end:0;display:grid;place-items:center;width:36px;height:34px;padding:0;color:#183440}
.fullscreen-toggle[aria-pressed="true"]{background:#dceee8}
body:has(>main>#page){display:flex;flex-direction:column;height:100dvh}
body:has(>main>#page)>header{flex:none}
body:has(>main>#page)>main{display:flex;flex:1;min-height:0}
#page{display:flex;flex-direction:column;min-height:0;overflow:auto;padding-block-end:12px}
#page>:not(.wrap,iframe){flex:none}
#page>.wrap{flex:1;min-height:min(150px,25dvh);max-height:none}
#page:has(>iframe){padding:0}
#page>iframe{display:block;flex:1;min-height:0;height:auto}
#page>p:has(>#auditMore[hidden]){display:none}
#page:is(:fullscreen,.report-fullscreen){background:#f2f5f5;width:100%;height:100dvh;padding:12px}
#page.report-fullscreen{position:fixed;inset:0;z-index:100}
.productivity-help summary,.productivity-table summary{cursor:pointer}
.month-access-icon{flex:none}
.month-access-closed{color:#b22620}
.month-access-open{color:#197349}
.month-grid [aria-pressed=true] .month-access-closed{color:#ffb7b6}
.month-grid [aria-pressed=true] .month-access-open{color:#acf5d3}
.productivity-crown{display:inline-block;margin-inline-end:5px;font-size:13px;line-height:1}
.staff-view-tabs{display:flex;gap:6px;border-bottom:1px solid #c7d8d9;padding-bottom:6px;margin-top:8px}
.staff-view-tabs [aria-current]{background:#deeee8;color:#125543;font-weight:700}
.staff-timeline-toolbar label{display:flex;align-items:center;gap:6px}
#staffTimelineStatus{margin:0 0 8px}
#staffTimelineStatus:empty{display:none}
.staff-timeline-legend{display:flex;flex-wrap:wrap;gap:6px 16px;margin-bottom:8px;color:#435d67;font-size:13px}
.staff-timeline-dashed::before{content:"";display:inline-block;width:14px;margin-inline-end:5px;border-top:2px dashed #698f89;vertical-align:middle}
.staff-timeline{width:100%;min-width:920px;table-layout:fixed;border-collapse:separate;border-spacing:0}
.staff-timeline tr>:first-child{width:clamp(190px,23vw,310px);text-align:left}
.staff-timeline tbody th{position:sticky;left:0;z-index:1;background:#fff;padding:6px 9px;font-weight:650}
.staff-timeline thead th{position:sticky;top:0;z-index:2;background:#e4efeb;padding:6px 9px;text-align:left}
.staff-timeline thead th:first-child{left:0;z-index:3}
.staff-timeline small{display:block;color:#48626c;font-weight:400;line-height:1.25}
.staff-timeline .staff-timeline-group>*{background:#eaf2ef}
.staff-timeline .staff-timeline-group small{font-weight:600}
.staff-timeline-scale,.staff-timeline-track{position:relative;margin-inline:12px}
.staff-timeline-scale{height:24px;font-size:12px}
.staff-timeline-scale span{position:absolute;top:2px;white-space:nowrap}
.staff-timeline tbody td{padding:0 9px;background:#fafcfb}
.staff-timeline-track{height:calc(13px + 22px * var(--lanes));min-height:32px}
.staff-timeline-gridline{position:absolute;inset-block:0;border-inline-start:1px solid #e1eae7}
.staff-timeline-tenure,.staff-timeline-interval{position:absolute;top:16px;height:3px;border-radius:3px;background:#83ada0}
.staff-timeline-inferred{background:none;border-top:2px dashed #698f89}
.staff-timeline-interval{top:14px;height:7px;background:#edc877}
button.staff-timeline-marker{position:absolute;top:calc(5px + 22px * var(--lane));transform:translateX(-50%);display:grid;place-items:center;width:21px;height:21px;padding:0;border:1px solid currentColor;border-radius:50%;background:#fff;color:#23615a;font:700 13px/1 sans-serif}
.staff-timeline-marker:is(:hover,:focus-visible){box-shadow:0 0 0 2px currentColor}
button.staff-event-hire{color:#157250;background:#e9f7ef}
button.staff-event-dismissal{color:#ad332e;background:#faecea}
button.staff-event-absence{color:#8a550e;background:#fff3d9}
button.staff-event-change{color:#5748a0;background:#eeebfb}
#staffTimelineDetails dt{font-weight:700}
#staffTimelineDetails dd{margin:0 0 7px}
.employee-productivity-link{border:0;background:none;color:#145844;padding:0;text-align:left;font:inherit}
.employee-productivity-link:is(:hover,:focus-visible){text-decoration:underline}
.employee-productivity{width:min(920px,calc(100% - 28px));max-height:calc(100dvh - 28px);overflow:auto;margin:auto;padding:20px;border:1px solid #abc1c4;border-radius:12px;color:#183743;background:#f4f8f7}
.employee-productivity::backdrop{background:#18344280}
.employee-productivity>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:14px 16px;border-radius:8px;color:white}
.employee-productivity h2,.employee-productivity h3,.employee-productivity header p{margin:0}
.employee-productivity header p{color:#daebe9;font-size:13px}
.employee-productivity header button{font-size:20px;padding:0 10px}
.employee-productivity h3{font-size:15px}
.employee-productivity .bar{margin:12px 0}
.employee-productivity .bar>label{display:flex;align-items:center;gap:6px}
.employee-kpis,.employee-charts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,255px),1fr));gap:10px;margin-bottom:10px}
.employee-kpis>div,.employee-chart{border:1px solid #c7ddd7;background:#fff;border-radius:8px;padding:12px}
.employee-kpis>div{display:grid;gap:3px;background:#e3f2eb}
.employee-kpis strong{font-size:26px;line-height:1.15;color:#135848}
.employee-kpis small,.employee-average-note{color:#415c65;font-size:13px}
.employee-chart-legend{display:flex;flex-wrap:wrap;gap:12px;margin:10px 0;font-size:13px}
.employee-chart-legend span::before{content:"";display:inline-block;width:10px;height:10px;margin-inline-end:5px;background:#18745f;border-radius:2px}
.employee-chart-legend span+span::before{background:#497da8}
.employee-chart-row{display:grid;gap:4px;margin-top:8px;font-size:13px}
.employee-bar{display:grid;grid-template-columns:1fr 70px;align-items:center;gap:8px}
.employee-bar i{height:9px;width:var(--value);background:#18745f;border-radius:4px}
.employee-bar+.employee-bar i{background:#497da8}
.employee-bar span{text-align:right;font-variant-numeric:tabular-nums}
.employee-timeline{display:flex;gap:12px;overflow-x:auto;padding:7px 2px 0}
.employee-month-bars{flex:1 0 39px;text-align:center;font-size:12px;white-space:nowrap}
.employee-month-bars>div{height:94px;display:flex;align-items:flex-end;justify-content:center;gap:3px;border-bottom:1px solid #c7ddd7}
.employee-month-bars i{height:var(--value);width:12px;background:#18745f;border-radius:3px 3px 0 0}
.employee-month-bars i+i{background:#497da8}
.employee-detail-table{overflow:auto}
.employee-productivity details{margin:8px 0}
.employee-productivity summary{cursor:pointer;color:#145844}
#productivityTable .productivity-table{border-collapse:separate;border-spacing:0;table-layout:fixed;min-width:900px}
#productivityTable .productivity-table>thead>tr>th,#productivityTable .productivity-table>tbody>tr>td{padding-top:5px;padding-bottom:5px}
#productivityTable .productivity-table>tbody>.productivity-total{background:#214c58;color:#fff;font-weight:750}
#productivityTable .productivity-tree-open::after{top:19px}
#productivityTable .productivity-guide-branch::after{top:18px}
#productivityTable .productivity-guide-end{height:19px}
#productivityTable .productivity-name-width{width:clamp(210px,22vw,400px)}
#productivityTable .productivity-table>thead th{position:sticky;top:0;z-index:2;background:#e4efeb}
#productivityTable .productivity-table>thead th:not(:first-child){line-height:1.3}
#productivityTable .productivity-table>tbody>tr>td:not(:first-child){white-space:nowrap}
#productivityTable .productivity-table :is(th,td):first-child{overflow-wrap:anywhere}
:is(#productivityTable,#statisticsTable) .productivity-role-gip{--tree-color:#7343a8;--team-background:#dfcaf5}
:is(#productivityTable,#statisticsTable) .productivity-role-lead{--tree-color:#236aa4;--team-background:#c9e3fb}
:is(#productivityTable,#statisticsTable) .productivity-role-specialist{--tree-color:#278059;--team-background:#ccebd9}
:is(#productivityTable,#statisticsTable) .productivity-group{background:var(--team-background,#edf5f2)}
:is(#productivityTable,#statisticsTable) .productivity-tree{padding-left:calc(10px + 14px * var(--tree-depth));vertical-align:top;overflow-wrap:anywhere}
#productivityTable .productivity-tree{position:relative}
:is(#productivityTable,#statisticsTable) .productivity-tree-open::after,.productivity-guide{
 position:absolute;top:0;bottom:-1px;width:0;border-left:1px solid var(--tree-color,#879b9f);pointer-events:none
}
:is(#productivityTable,#statisticsTable) .productivity-tree-open::after{
 content:"";top:25px;left:calc(15px + 14px * var(--tree-depth))
}
.productivity-guide{left:calc(15px + 14px * var(--tree-level))}
.productivity-guide-branch::after{
 content:"";position:absolute;top:23px;left:0;width:9px;border-top:1px solid var(--tree-color,#879b9f)
}
.productivity-guide-end{bottom:auto;height:24px}
.productivity-team-heading{display:flex;align-items:baseline;gap:4px}
.productivity-team-heading .productivity-fold{flex:none;width:14px;min-width:14px;margin:0;padding:0}
.productivity-team-name{min-width:0}
.productivity-team-suffix{white-space:nowrap}
.productivity-team-unit{display:block;margin-left:18px;color:#405d66;font-weight:400}
.productivity-breakdown{margin-top:7px;font-size:12px;border:1px solid #c8d8d5}
.productivity-breakdown th,.productivity-breakdown td{padding:4px}
#productivityTable .productivity-breakdown{table-layout:fixed;overflow-wrap:anywhere}
#statisticsTable{max-width:100%;overflow:auto;scrollbar-gutter:stable}
.project-statistics-table{--statistics-person:clamp(152px,18vw,248px);--statistics-total:80px;border-collapse:separate;border-spacing:0;table-layout:fixed;width:max(100%,calc(var(--statistics-person) + var(--statistics-total) + var(--statistics-project-width)))}
.project-statistics-table .statistics-person-width{width:var(--statistics-person)}
.project-statistics-table .statistics-total-width{width:var(--statistics-total)}
.project-statistics-table thead th{position:sticky;top:0;z-index:2;overflow-wrap:anywhere}
.project-statistics-table tfoot :is(th,td){position:sticky;bottom:0;z-index:2;background:#d7e9e3}
.project-statistics-table :is(th,td):first-child{position:sticky;left:0;z-index:1;background:#edf5f2}
.project-statistics-table :is(th,td):nth-child(2){position:sticky;left:var(--statistics-person);z-index:1;background:#f5faf8;box-shadow:1px 0 #cbd8d9}
.project-statistics-table .productivity-group :is(th,td):nth-child(-n+2){background:var(--team-background,#edf5f2)}
.project-statistics-table tbody tr:not(.productivity-group) th{font-weight:400}
.project-statistics-table :is(thead,tfoot) :is(th,td):nth-child(-n+2){z-index:3;background:#dcebe6}
.project-statistics-table :is(td,thead th:not(:first-child)){text-align:center;font-variant-numeric:tabular-nums}
#extraTable{border-collapse:separate;border-spacing:0}
#extraTable thead th{position:sticky;top:0;z-index:2;background:#e4efeb}
#extraTable [data-column="personShortName"]{min-width:180px;white-space:nowrap}
#extraTable [data-column="authorShortName"]{min-width:160px;white-space:nowrap}
#extraTable .extra-reference{color:#145844;white-space:nowrap;text-underline-offset:2px}
.own-work-marker{color:#365c59;font-weight:700;cursor:help}
#extraTable .extraSort{border:0;border-radius:4px;padding:3px 4px;background:transparent;font-weight:inherit;text-align:left;white-space:nowrap}
#extraTable .extraSort:hover,#extraTable .extraSort:focus-visible{background:#c8ded7}
#extraTable .extraSort span{color:#365c59}
#extraTable :is(th,td){padding:4px 7px;line-height:1.3}
#extraTable :is([data-column="code"],td[data-task-code]){width:58px;min-width:58px;max-width:58px;text-align:center}
#extraTable .extra-work-name{border:0;background:transparent;padding:0;font:inherit;text-align:left;color:#145844}
#extraTable .extra-work-name:hover,#extraTable .extra-work-name:focus-visible{text-decoration:underline}
#extraDialog.extra-readonly :is(input,select,textarea):disabled{background:#eef2f2;color:#455c65;opacity:1}
#extraDialog #deleteExtra{margin-inline-start:auto;color:#a12a25;border-color:#d1a29d}
.sheet .report-ellipsis{display:block;max-width:clamp(150px,24vw,222px);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.extra-code-help{margin:4px 0 10px;color:#435e68;font-size:14px}
.extra-code-help summary{cursor:pointer;color:#145844}
.extra-code-help p{margin:4px 0}
.extra-code-picker{position:relative;margin:6px 0 4px}
.extra-code-picker>summary{list-style:none;cursor:pointer;border:1px solid #aabfc6;border-radius:5px;padding:5px 30px 5px 8px}
.extra-code-picker>summary::after{content:"▾";position:absolute;right:10px}
.extra-code-picker>summary[aria-disabled=true]{cursor:default;background:#eef2f2}
.extra-code-options{position:absolute;z-index:2;inset:100% 0 auto;max-height:220px;overflow:auto;background:#fff;border:1px solid #aabfc6;border-radius:5px;box-shadow:0 4px 12px #132c3626}
.extra-code-options button{display:block;width:100%;text-align:left;border:0;border-radius:0;background:white}
.extra-code-options button:is(:hover,:focus-visible,[aria-pressed=true]){background:#eef4f4}
.extra-code-letter{--extra-code-ink:#000;display:inline-block;padding:0 5px;border-radius:4px;font-weight:750;background:var(--extra-code-accent);color:var(--extra-code-ink)}
#extraDialog[data-task-code]{border:5px solid var(--extra-code-accent,#aabfc6)}
:is(#extraDialog,.extra-code-letter)[data-task-code="A"]{--extra-code-accent:#ee0000;--extra-code-ink:#fff}
:is(#extraDialog,.extra-code-letter)[data-task-code="B"]{--extra-code-accent:#00afd9}
:is(#extraDialog,.extra-code-letter)[data-task-code^="C"]{--extra-code-accent:#ffbf00}
:is(#extraDialog,.extra-code-letter)[data-task-code="N"]{--extra-code-accent:#e5a0dc}
:is(#extraDialog,.extra-code-letter)[data-task-code^="T"]{--extra-code-accent:#95d050}
:is(#extraDialog,.extra-code-letter)[data-task-code="X"]{--extra-code-accent:#99dcf3}
#denyExtra{color:#982626;border-color:#c99090}
.planner main{height:100dvh;padding-block:12px;display:flex;flex-direction:column}
.planner .panel{flex:1;min-height:min(150px,25dvh);display:flex;flex-direction:column}
.planner .panel>:not(.scroll){flex:none}
.planner .scroll{flex:1;min-height:0;max-height:none}
.planner .heading{justify-content:flex-start;margin:0 0 8px;gap:8px 14px}
.planner h1{font-size:clamp(21px,2vw,28px);letter-spacing:-.4px}
.planner .heading .actions{margin:0 0 0 auto}
.planner .metrics{gap:6px 16px;margin-bottom:8px;padding:5px 10px;font-size:13px}
.planner .metrics strong{font-size:14px}
.planner .viewTools{justify-content:flex-start;padding:6px 10px;gap:6px 14px;font-size:13px}
.planner .viewTools select,.planner .btn{padding:4px 8px;font-size:13px}
.graph-search{display:inline-flex;align-items:center;gap:6px;color:#46616d}
.graph-search input{width:min(166px,55vw);padding:4px 7px;border:1px solid #77939a;border-radius:6px;background:white;color:#183440}
.graph-search input::-webkit-search-cancel-button{display:none}
#resetGraphSearch{min-width:24px;min-height:26px}
#graphSearchStatus:empty{display:none}
.planner .viewTools select,.report-toolbar select,.report-entry input{border-color:#77939a}
.planner .scroll{scroll-padding-block-start:52px;scroll-padding-inline-start:clamp(185px,21vw,335px)}
.report-scroll button[data-day]:focus-visible{outline:2px solid #175978;outline-offset:-2px}
@media(max-width:560px){
 .planner .viewTools>div,.planner .viewTools select{max-width:100%}
 .planner .viewTools{gap:8px 10px}
 .report-toolbar,.graph-search{flex-wrap:wrap}
 #graphSearchStatus{font-size:12px}
}
.planner .graph-actions{margin-inline-start:auto;display:flex;align-items:center;gap:10px}
.planner .graph-actions .btn{min-height:32px;white-space:nowrap}
.planner .graph-fullscreen{display:grid;place-items:center;color:#183440}
.planner .graph-fullscreen[aria-pressed="true"]{background:#dceee8}
html:fullscreen .planner main{max-width:none;padding-inline:12px}
.planner .plannedOnly{display:inline-flex;align-items:center;gap:5px;line-height:1.15;cursor:pointer}
.planner .plannedOnly input{margin:0;accent-color:#146753}
.extra-scope input{margin:0;accent-color:#146753}
.planner .calendarbar{padding:4px 10px;font-size:12px}
.planner .nodeLabel{padding:4px 0}
.planner .project .nodeLabel{font-size:18px}
.planner .milestone .nodeLabel{font-size:15px}
.planner .first .node,.planner .first .nodeLabel{flex:1;min-width:0;overflow-wrap:anywhere}
.planner .rowActions{position:absolute;z-index:1;right:4px;top:50%;transform:translateY(-50%);display:flex;gap:3px;padding:2px;background:inherit;border-radius:4px;opacity:0;pointer-events:none}
.planner .first:hover>.rowActions,.planner .first:focus-within>.rowActions{opacity:1;pointer-events:auto}
.planner .rowActions .rowAction{opacity:1;min-height:24px}
@media(hover:none){.planner .rowActions{opacity:1;pointer-events:auto}}
.planner .metrics h1{font-size:clamp(18px,2vw,24px)}
.planner .absenceLegend{display:flex;flex-wrap:wrap;gap:4px 10px;margin-right:auto}
.absenceMark{display:inline-flex;align-items:center;justify-content:center;min-width:20px;min-height:18px;padding:1px 3px;border-radius:3px;color:#163140;font-weight:700;font-size:12px;text-align:center}
.absenceMark.holiday-swatch{vertical-align:middle}
.planner .matrix td.day:has(.absenceMark){vertical-align:middle}
.planner .matrix td.day .absenceMark{display:flex;margin:auto}
.planner .hourValue{display:inline-flex;align-items:center;justify-content:center}
.absence-grid,.absence-key{margin-top:10px}
.absence-key{display:flex;gap:5px 14px;flex-wrap:wrap;margin-bottom:10px;font-size:13px}
.absence-grid{margin:0;width:max-content;min-width:100%;table-layout:fixed;border-spacing:0;border-collapse:separate}
.absence-grid td,.absence-grid th{padding:0;min-width:30px;width:30px;height:32px;text-align:center;vertical-align:middle;border-right:1px solid #dce6e4}
.absence-grid thead th{position:sticky;top:0;z-index:2;padding:4px}
.absence-grid th.absence-person{position:sticky;left:0;min-width:200px;width:200px;max-width:240px;padding:4px 10px;text-align:left;background:#f5faf8;z-index:1}
.absence-grid thead th.absence-person{z-index:3}
.absence-year-picker{display:flex;align-items:center;gap:4px}
.absence-year thead tr:first-child th{height:34px}
.absence-year thead tr:nth-child(2) th{top:34px}
.absence-year thead tr:first-child th:not(.absence-person){border-left:2px solid #8ca7a2;background:#dcebe6}
.absence-year .absence-month-start{border-left:2px solid #8ca7a2}
.absence-year td[data-date]{cursor:pointer}
.absence-year td[data-date]:hover,.absence-year td[data-date]:focus-visible{outline:2px solid #277a8c;outline-offset:-2px}
.absence-grid .absence-fold{display:inline-block;width:22px;margin-right:3px;padding:0;border:0;background:transparent;text-align:center}
.absence-grid button.absence-fold:disabled{cursor:default;opacity:.65}
.absence-grid .absence-weekend{background:#faebe0}
.absence-grid .absence-week-start{border-left:2px solid #a0b5b4}
.matrix .weekStart{border-left:2px solid #a0b5b4}
.absence-grid td button{width:100%;min-height:32px;padding:0;border:0;border-radius:0;background:transparent;color:inherit;font-weight:inherit}
.absence-grid td button:hover,.absence-grid td button:focus-visible{outline:2px solid #277a8c;outline-offset:-2px}
.absence-grid td[class*="absence-dayOff"],.absence-grid td[title*=" · "]{font-weight:700}
.absenceMark.absence-vacation,.absence-grid td.absence-vacation,.planner .matrix tr td.day.absence-vacation{background:#c3e8fa}
.absenceMark.absence-sick,.absence-grid td.absence-sick,.planner .matrix tr td.day.absence-sick{background:#f9cfd7}
.absenceMark.absence-business,.absence-grid td.absence-business,.planner .matrix tr td.day.absence-business{background:#cbe9d4}
.absenceMark.absence-dayOff,.absence-grid td.absence-dayOff,.planner .matrix tr td.day.absence-dayOff{background:#f4e1ae}
.absenceMark.absence-unpaid,.absence-grid td.absence-unpaid,.planner .matrix tr td.day.absence-unpaid{background:#e2d5f2}
.absenceMark.calendar-holiday,.absence-grid thead th.calendar-holiday,.absence-grid td.calendar-holiday,.planner .matrix thead th.calendar-holiday,.planner .matrix tbody tr td.day.calendar-holiday,.report-scroll .compact-sheet .report-day.calendar-holiday{background:#ead9f4}
.absenceMark.calendar-working,.absence-grid thead th.calendar-working,.planner .matrix thead th.calendar-working,.report-scroll .compact-sheet thead .report-day.calendar-working{background:#c9e6f0}
.absence-grid td.calendar-holiday[class*="absence-"][title*=" — "],.planner .matrix td.calendar-holiday:has(.absenceMark){box-shadow:inset 0 -3px #a67cb8}
.report-heading,.report-toolbar,.report-pages{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap}
.report-entry{width:min(392px,calc(100vw - 24px));max-height:calc(100vh - 24px)}
.report-entry-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.report-entry-heading>div{min-width:0;overflow-wrap:anywhere}
.report-entry-project{margin:0;font-size:14px;font-weight:650;color:#46616d}
.report-entry h2{margin:0;line-height:1.25}
.report-entry-project+h2{margin-top:3px}
.report-entry-date{margin:16px 0}
.report-entry input{width:76px}
.report-entry label:last-of-type input{width:70px}
.report-entry-actions{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}
.report-entry-delete{flex:none;display:grid;place-items:center;width:48px;height:40px;padding:0;color:#a52d23;border-color:#deb9b4}
.report-entry-delete:hover{background:#fff1ef}
.planner .matrix .loadhead .first{background:#193f4a}
.load-toggle{padding:0;border:0;background:transparent;color:inherit;text-align:left}
.report-heading{margin-bottom:8px}
.report-heading h1{margin:0;font-size:25px}
.report-dismissal{margin:0 0 10px;color:#b42318;font-weight:600}
.report-toolbar{margin:0 0 10px}
.report-toolbar>button,.report-pages button{padding:5px 10px}
.report-view,.report-summary{font-size:14px}
.report-pages{margin-bottom:8px;font-size:13px}
.report-scroll .compact-sheet{
 --report-task:clamp(132px,12vw,190px);--report-code:34px;--report-weight:42px;--report-progress:36px;--report-fact:50px;
 --report-left:calc(var(--report-task) + var(--report-code) + var(--report-weight) + var(--report-progress) + var(--report-fact));
 width:100%;table-layout:fixed;font-variant-numeric:tabular-nums
}
@media(max-width:699px){
 .report-scroll .compact-sheet{--report-task:96px;--report-code:25px;--report-weight:32px;--report-progress:31px;--report-fact:37px}
}
.compact-sheet col.report-task-col{width:var(--report-task)}
.compact-sheet col.report-code-col{width:var(--report-code)}
.compact-sheet col.report-weight-col{width:var(--report-weight)}
.compact-sheet col.report-progress-col{width:var(--report-progress)}
.compact-sheet col.report-fact-col{width:var(--report-fact)}
.report-scroll .compact-sheet td,.report-scroll .compact-sheet th{min-width:0;padding:4px 2px;font-size:12px}
.report-scroll .compact-sheet .sticky{min-width:0;max-width:none;padding-left:6px}
.report-scroll .compact-sheet .report-ellipsis{max-width:100%}
.report-scroll .compact-sheet .report-extra-section :is(th,td){background:#e4d6f0;color:#48335e}
.report-scroll .compact-sheet .report-extra-task .sticky{background:#f4edf9;box-shadow:inset 3px 0 #9163b3}
.report-scroll .compact-sheet .report-fixed{position:sticky;z-index:1}
.report-scroll .compact-sheet tbody .report-fixed:not([data-task-code]){background:#fff}
.report-scroll .compact-sheet .report-code{left:var(--report-task)}
.report-scroll .compact-sheet .report-weight{left:calc(var(--report-task) + var(--report-code))}
.report-scroll .compact-sheet .report-progress{left:calc(var(--report-task) + var(--report-code) + var(--report-weight))}
.report-scroll .compact-sheet .report-fact{left:calc(var(--report-left) - var(--report-fact));box-shadow:1px 0 #bdcfcb}
.report-scroll .compact-sheet .report-day{padding:2px 1px}
.report-scroll .compact-sheet .report-day small{font-size:11px}
.report-scroll .compact-sheet .report-planned-progress{color:#285642}
.report-scroll .compact-sheet td.report-day,.report-scroll .compact-sheet .report-day button{font-size:clamp(12px,1.1vw,15px);line-height:1.2}
.report-scroll .compact-sheet td.report-day{white-space:normal;overflow-wrap:anywhere}
.report-scroll .compact-sheet .report-totals > :not(.weekend,.calendar-holiday,.today){background:#e9f2ef}
.report-scroll .compact-sheet .report-totals td{font-weight:700}
.report-scroll .compact-sheet .report-day button{min-width:0;width:100%;padding:3px 0;border-color:transparent;background:transparent;white-space:normal}
.report-scroll .compact-sheet .report-day button:hover,.report-scroll .compact-sheet .report-day button:focus-visible{border-color:#65838d}
.report-scroll .compact-sheet .report-hours{display:block;overflow:hidden;text-overflow:ellipsis}
.report-scroll .compact-sheet .report-actual-hours{font-weight:700}
.report-scroll .compact-sheet thead .today{background:#176a9c;color:white}
.report-scroll .compact-sheet .report-day.absence-vacation{background:#c3e8fa}
.report-scroll .compact-sheet .report-day.absence-sick{background:#f9cfd7}
.report-scroll .compact-sheet .report-day.absence-business{background:#cbe9d4}
.report-scroll .compact-sheet .report-day.absence-dayOff{background:#f4e1ae}
.report-scroll .compact-sheet .report-day.absence-unpaid{background:#e2d5f2}
.report-scroll .compact-sheet .report-absence-mark{display:block;font-size:11px;font-weight:700}
.report-scroll .compact-sheet .report-day button{min-height:24px}
.report-scroll .compact-sheet td.report-has-fact{outline:1px solid #5279a5;outline-offset:-2px}
.report-scroll .compact-sheet td.unsaved-entry button{border:1px dashed #945c00}
.report-scroll .compact-sheet .report-done{display:inline-block;padding:2px 1px;border-radius:3px;background:#14643b;color:white;font-weight:800;line-height:1.2}
.report-scroll .compact-sheet .report-day .report-done{padding-inline:1px;font-size:11px}
#menuToggle{display:inline-grid;place-items:center;width:38px;height:38px;padding:0;border-color:#8aa7af;flex:none}
#menuToggle:hover,#menuToggle:focus-visible{background:#2a5262}
.menuGlyph{display:flex;flex-direction:column;gap:3px;align-items:center}
.menuGlyph i{display:block;width:16px;height:2px;border-radius:2px;background:currentColor}
#menuDrawer{position:fixed;inset:0 auto 0 0;margin:0;width:min(286px,88vw);height:100dvh;max-height:none;padding:16px;border:0;border-right:1px solid #bfd1d1;border-radius:0;overflow:auto;box-shadow:10px 0 32px #122c3a33}
#menuDrawer[open]{animation:menu-slide-in .18s ease-out}
@keyframes menu-slide-in{from{transform:translateX(-100%)}to{transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){#menuDrawer[open]{animation:none}}
.menuHead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.menuHead h2{font-size:19px;margin:0}
#menuClose{font-size:22px;line-height:1;padding:4px 8px}
#menuDrawer nav{display:grid;gap:4px}
#menuDrawer nav button{text-align:left;border-color:transparent}
#menuDrawer nav button:hover{background:#edf5f2}
#menuDrawer nav button.active{background:#dceee8}

.employee-kpis small{display:block}
.staff-edit-link{background:transparent;border:0;color:inherit;padding:0;font:inherit;text-align:left;text-decoration:underline dotted;text-underline-offset:3px}
#page>#divisionDashboard{min-height:0;overflow:auto}.staff-event-probation{color:#754e15;background:#fff2d6;border-color:#b8812d}
.division-summary,.division-rankings section{background:#fff;border:1px solid #cbdad8;border-radius:8px;padding:14px}
.division-summary h2,.division-rankings h2{margin:0 0 8px;font-size:18px}
.division-summary strong{font-size:24px}.division-summary span{display:inline-block;margin-right:18px}
.division-hours-bar{background:#28705f;border-radius:4px;height:10px;display:flex;justify-content:flex-end;overflow:hidden;margin:8px 0}
.division-hours-bar i{background:#6699bf}
.division-rankings{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(370px,100%),1fr));gap:12px;align-items:start}
.division-rankings table{width:100%;border-collapse:collapse}
.division-rankings td,.division-rankings th{padding:6px;text-align:left}
.division-rankings tbody th{font-weight:500}
.division-rankings small{display:block;font-weight:400;color:#496876}
.division-rankings i{display:block;height:4px;background:#408a78;border-radius:2px}

.statistics-toolbar{display:flex;align-items:center;gap:7px;flex-wrap:nowrap;overflow-x:auto;font-size:13px;padding-bottom:3px}
.statistics-toolbar>*{flex:none}
.statistics-toolbar label{white-space:nowrap}
.statistics-toolbar button:not(.month-popup button),.statistics-toolbar select:not(.month-popup select){font-size:inherit;min-height:30px;padding:4px 6px}
.statistics-toolbar #statisticsGrouping{width:130px}
.statistics-toolbar #statisticsMetric{width:138px}
.statistics-toolbar #statisticsProject,.statistics-toolbar #statisticsTeam{width:132px;text-overflow:ellipsis}
.statistics-toolbar #statisticsFullscreen{margin-left:auto}
.statistics-by-code thead tr:first-child th{height:40px;padding:4px;line-height:1.15}
.statistics-by-code thead th[scope="colgroup"]{position:static;text-align:center;background:#e2eeea}
.statistics-by-code thead tr:nth-child(2) th{position:static;text-align:center;background:#e2eeea;box-shadow:none}
.statistics-by-code thead tr:nth-child(2) th button{padding:2px}
.statistics-by-code tbody td,.statistics-by-code tfoot td{padding:4px 2px;white-space:nowrap;font-size:12px}
.statistics-by-code thead{position:sticky;top:0;z-index:4}.statistics-by-code thead th[rowspan]{background:#dcebe6}
.project-statistics-table .statistics-project-start{border-inline-start:2px solid #436f79}.statistics-by-code .statistics-code-divider{border-inline-start:1px solid #b8cdce}.statistics-by-code thead .extra-code-letter{background:var(--extra-code-accent,#d1d1d1);color:var(--extra-code-ink,#132c36);padding:2px 7px}

/* График: ячейки в стиле тепловой карты дашборда — штриховка выходных, праздников и отсутствий.
   Штриховка привязана к окну (background-attachment: fixed), поэтому полосы совпадают у соседних ячеек и строк. */
.planner .matrix tbody td.day.weekend,.planner .matrix .loadrow td.weekend{background-color:#f4f7f7;background-image:linear-gradient(135deg,#e3e9e9 25%,transparent 25%,transparent 50%,#e3e9e9 50%,#e3e9e9 75%,transparent 75%,transparent);background-size:26px 26px;background-attachment:fixed;color:#44575d;box-shadow:inset -1px -1px 0 #fff}
.planner .matrix thead th.weekend{background:#f1dcc8;color:#703811}
.planner .matrix tbody tr td.day.absence-vacation,.planner .matrix tbody tr td.day.absence-sick,.planner .matrix tbody tr td.day.absence-business,.planner .matrix tbody tr td.day.absence-dayOff,.planner .matrix tbody tr td.day.absence-unpaid,.planner .matrix tbody tr td.day.calendar-holiday{box-shadow:inset -1px -1px 0 #fff}
.planner .matrix tbody tr td.day.absence-vacation{background-color:#e0f1fa;background-image:linear-gradient(135deg,#b9def2 25%,transparent 25%,transparent 50%,#b9def2 50%,#b9def2 75%,transparent 75%,transparent);background-size:26px 26px;background-attachment:fixed}
.planner .matrix tbody tr td.day.absence-sick{background-color:#fbe3e8;background-image:linear-gradient(135deg,#f5c1cb 25%,transparent 25%,transparent 50%,#f5c1cb 50%,#f5c1cb 75%,transparent 75%,transparent);background-size:26px 26px;background-attachment:fixed}
.planner .matrix tbody tr td.day.absence-business{background-color:#e0f2e6;background-image:linear-gradient(135deg,#bde0c8 25%,transparent 25%,transparent 50%,#bde0c8 50%,#bde0c8 75%,transparent 75%,transparent);background-size:26px 26px;background-attachment:fixed}
.planner .matrix tbody tr td.day.absence-dayOff{background-color:#f9eccb;background-image:linear-gradient(135deg,#f1d99b 25%,transparent 25%,transparent 50%,#f1d99b 50%,#f1d99b 75%,transparent 75%,transparent);background-size:26px 26px;background-attachment:fixed}
.planner .matrix tbody tr td.day.absence-unpaid{background-color:#ece4f6;background-image:linear-gradient(135deg,#d3c3ea 25%,transparent 25%,transparent 50%,#d3c3ea 50%,#d3c3ea 75%,transparent 75%,transparent);background-size:26px 26px;background-attachment:fixed}
.planner .matrix tbody tr td.day.calendar-holiday{background-color:#f3eaf9;background-image:linear-gradient(135deg,#e0c9ef 25%,transparent 25%,transparent 50%,#e0c9ef 50%,#e0c9ef 75%,transparent 75%,transparent);background-size:26px 26px;background-attachment:fixed}
.planner .matrix td.day .absenceMark{background:transparent;font-size:10px;min-width:0;padding:0}

/* Кадровые изменения: компактная карточка и окно событий */
#newUser.staffCardCompact .hrOnly{display:none!important}
.staffCardHr{display:flex;gap:12px;align-items:center;justify-content:space-between;margin:12px 0;padding:10px 12px;border:1px solid #b7cacc;border-radius:6px;background:#f3f8f8}
.staffCardHr p{margin:0;font-size:14px;color:#355;flex:1}
.staffEventsDialog{width:min(720px,calc(100% - 32px))}
.staffEventsBar{margin-bottom:10px}
.staffEventList{list-style:none;margin:0;padding:0;border-left:2px solid #b7cacc}
.staffEventItem{position:relative;margin:0 0 12px 14px;padding:8px 12px;border:1px solid #d3e0e2;border-radius:6px;background:#fff}
.staffEventItem.is-focus{border-color:#146753;box-shadow:0 0 0 2px #14675340}
.staffEventHead{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.staffEventHead time{color:#456;font-variant-numeric:tabular-nums}
.staffEventIcon{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#146753;color:#fff;font-size:13px}
.staff-event-dismissal .staffEventIcon{background:#b3261e}.staff-event-absence .staffEventIcon,.staff-event-return .staffEventIcon{background:#8a6d00}.staff-event-change .staffEventIcon{background:#2f6f9f}
.staffEventActions{margin-left:auto;display:flex;gap:6px}
.staffEventActions button{padding:3px 10px}
.staffEventBody{display:grid;gap:2px;margin:6px 0 0;font-size:14px}
.staffEventBody div{display:flex;gap:8px}.staffEventBody dt{min-width:170px;color:#567}.staffEventBody dd{margin:0}
.staffEventBody .changed dd b{color:#146753}
.staffEventNote{margin:6px 0 0;font-size:12.5px;color:#8a5a00}
.staffEventsClose{margin-top:12px}
.staffEventHint{margin:6px 0;font-size:13px;color:#567}
html[data-theme=dark] .staffCardHr{background:#1c2c31;border-color:#35505a}
html[data-theme=dark] .staffEventItem{background:#18262b;border-color:#35505a}
html[data-theme=dark] .staffEventBody dt,html[data-theme=dark] .staffEventHead time,html[data-theme=dark] .staffCardHr p{color:#a8bcc3}
.staffEventActions button:disabled{opacity:.45;cursor:not-allowed}

/* Собственный календарь (окно выбора даты и месяца) */
.cal-popup{position:fixed;z-index:2000;width:252px;padding:10px;background:#fff;color:#183743;border:1px solid #9db7bb;border-radius:8px;box-shadow:0 8px 24px #0003}
.cal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.cal-head strong{font-size:15px}
.cal-head button,.cal-grid button{border:1px solid transparent;background:transparent;color:inherit;border-radius:5px;cursor:pointer;font:inherit}
.cal-head button{width:30px;height:28px;font-size:18px;line-height:1}
.cal-head button:hover,.cal-grid button:hover:not(:disabled){background:#e4efee;border-color:#9db7bb}
.cal-grid{display:grid;gap:2px}
.cal-days{grid-template-columns:repeat(7,1fr);text-align:center}
.cal-months{grid-template-columns:repeat(3,1fr)}
.cal-wd{font-size:12px;color:#678;padding:2px 0}
.cal-days button{height:30px;padding:0}.cal-months button{height:38px}
.cal-grid .is-we{color:#b3261e}
.cal-grid .is-on{background:#146753;color:#fff;border-color:#146753}
.cal-grid button:disabled{opacity:.35;cursor:default}
.cal-popup button:focus-visible{outline:2px solid #146753;outline-offset:1px}
html[data-theme=dark] .cal-popup{background:#18262b;color:#e3eef0;border-color:#35505a}
html[data-theme=dark] .cal-head button:hover,html[data-theme=dark] .cal-grid button:hover:not(:disabled){background:#243a41;border-color:#4a6a74}
html[data-theme=dark] .cal-grid .is-we{color:#ff8a80}
.staffEventsDialog input[type=checkbox]{width:auto}
.staffEventsDialog .staffCheck{display:flex;gap:8px;align-items:center;margin:8px 0}
