:root{--bg:#f7f6f9;--panel:#fff;--text:#17191d;--muted:#707784;--line:#e6e8ed;--accent:#7557d9;--accent-soft:#f1edff;--green:#2d9461;--green-soft:#eaf8f1;--red:#c85055;--red-soft:#fff0f1;--yellow:#a16d11;--yellow-soft:#fff7df;--blue:#4278b8;--blue-soft:#edf5ff;--sick:#94633f;--sick-soft:#f5e8dc;--sticky:#fff;--group:#f0f1f4;--shadow:0 10px 30px rgba(34,28,64,.07)}
html[data-theme="dark"]{--bg:#100d13;--panel:#1c1f24;--text:#f0f1f4;--muted:#9da4b0;--line:#30343b;--accent:#a18af3;--accent-soft:#29233d;--green:#65c793;--green-soft:#1c3027;--red:#ef858a;--red-soft:#3a2225;--yellow:#e8bd67;--yellow-soft:#352d1e;--blue:#7ab1ee;--blue-soft:#1f2c3b;--sick:#d0a273;--sick-soft:#3a2a20;--sticky:#1c1f24;--group:#25282e;--shadow:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.4 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}.attendance-app{padding:18px;display:grid;gap:14px;min-width:0}.panel{background:var(--panel);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}.hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 22px}.hero h1{margin:2px 0 4px;font-size:27px}.hero p{margin:0;color:var(--muted)}.eyebrow{text-transform:uppercase;letter-spacing:.08em;font-size:10px;font-weight:800;color:var(--accent)}.hero-actions{display:flex;gap:10px;align-items:center}.theme-toggle,.secondary,.primary,.approve,.icon-btn,.ghost{border:1px solid var(--line);border-radius:11px;background:var(--panel);color:var(--text);min-height:38px;padding:0 13px;font:inherit;font-weight:700;cursor:pointer}.primary{background:var(--accent);border-color:var(--accent);color:#fff}.approve{background:var(--green);border-color:var(--green);color:#fff}.secondary:hover,.icon-btn:hover{background:var(--accent-soft)}button:disabled{opacity:.45;cursor:not-allowed}.status-chip{border-radius:999px;padding:7px 11px;font-weight:800;font-size:12px}.status-chip.draft{background:var(--yellow-soft);color:var(--yellow)}.status-chip.approved{background:var(--green-soft);color:var(--green)}.toolbar{padding:15px 16px;display:grid;gap:12px}.toolbar-row{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.field{display:grid;gap:6px}.field>span,.month-note>span{font-size:11px;font-weight:800;color:var(--muted)}.field.compact input,.field.compact select,.search input,.month-note input,textarea{border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--text);height:39px;padding:0 11px;font:inherit}.field.compact select{min-width:185px}.search{position:relative;flex:1;min-width:210px}.search input{width:100%;padding-left:34px}.search-icon{position:absolute;left:12px;top:10px;color:var(--muted)}.inline-switch{display:flex;align-items:center;gap:6px;height:39px;padding:0 10px;border:1px solid var(--line);border-radius:10px;color:var(--muted);font-size:11px;font-weight:700}.inline-switch input{accent-color:var(--accent)}.toolbar-actions{display:flex;gap:8px;margin-left:auto;flex-wrap:wrap}.icon-btn{width:39px;padding:0;font-size:19px}.toolbar-meta{display:flex;gap:16px;align-items:center;color:var(--muted);font-size:12px;flex-wrap:wrap}.month-note{margin-left:auto;display:flex;align-items:center;gap:8px}.month-note input{min-width:280px}.missing{color:var(--red);font-weight:800}.summary-grid{display:grid;grid-template-columns:repeat(6,minmax(140px,1fr));gap:10px}.metric{background:var(--panel);border:1px solid var(--line);border-radius:15px;padding:14px 15px;box-shadow:var(--shadow);display:grid;gap:3px}.metric span{font-size:11px;color:var(--muted);font-weight:800}.metric strong{font-size:25px;line-height:1.1}.metric small{color:var(--muted);font-size:10px}.metric.sick{border-left:4px solid var(--sick)}.metric.absence{border-left:4px solid #c85055}.metric.vacation{border-left:4px solid #5c8ed0}.metric.remote{border-left:4px solid #6baf88}.legend{padding:12px 15px;display:flex;align-items:center;gap:18px;flex-wrap:wrap}.legend-copy{display:grid}.legend-copy small{color:var(--muted)}.legend-items{display:flex;gap:7px;flex-wrap:wrap}.legend-item{display:flex;align-items:center;gap:6px;padding:5px 8px;border:1px solid var(--line);border-radius:9px}.code-chip{min-width:26px;height:24px;display:inline-grid;place-items:center;border-radius:7px;font-weight:900;font-size:11px}.tone-present{background:var(--green-soft);color:var(--green)}.tone-sick{background:var(--sick-soft);color:var(--sick)}.tone-vacation{background:var(--blue-soft);color:var(--blue)}.tone-absence{background:var(--red-soft);color:var(--red)}.tone-weekend{background:var(--group);color:var(--muted)}.tone-holiday{background:var(--yellow-soft);color:var(--yellow)}.tone-remote{background:#e9f8f5;color:#337f72}.tone-terminated{background:#eceff1;color:#4f5960}.tone-demo{background:var(--accent-soft);color:var(--accent)}.timesheet-card{min-width:0;overflow:hidden}.table-headline{display:flex;justify-content:space-between;align-items:center;padding:15px 17px;border-bottom:1px solid var(--line)}.table-headline h2{margin:0;font-size:17px}.table-headline p{margin:3px 0 0;color:var(--muted);font-size:12px}.table-hint{font-size:11px;color:var(--muted)}.timesheet-scroll{overflow:auto;max-height:calc(100vh - 350px);min-height:330px}.timesheet-table{border-collapse:separate;border-spacing:0;min-width:max-content;width:100%;font-size:12px}.timesheet-table th,.timesheet-table td{border-right:1px solid var(--line);border-bottom:1px solid var(--line);height:38px;padding:4px 7px;text-align:center;background:var(--panel)}.timesheet-table thead th{position:sticky;top:0;z-index:9;background:var(--group);font-size:10px;color:var(--muted);font-weight:900}.timesheet-table .person-col{width:260px;min-width:260px;text-align:left;position:sticky;left:0;z-index:5;background:var(--sticky)}.timesheet-table .position-col{width:180px;min-width:180px;text-align:left;position:sticky;left:260px;z-index:5;background:var(--sticky)}.timesheet-table .norm-col{width:62px;min-width:62px;position:sticky;left:440px;z-index:5;background:var(--sticky)}.timesheet-table .fact-col{width:62px;min-width:62px;position:sticky;left:502px;z-index:5;background:var(--sticky);box-shadow:5px 0 8px rgba(22,22,35,.05)}.timesheet-table thead .person-col,.timesheet-table thead .position-col,.timesheet-table thead .norm-col,.timesheet-table thead .fact-col{z-index:12;background:var(--group)}.day-col{width:39px;min-width:39px;padding:2px!important}.day-head{display:grid;place-items:center;line-height:1.05}.day-head b{font-size:11px;color:var(--text)}.day-head small{font-size:8px}.day-head.weekend{color:var(--muted)}.day-button{border:0;border-radius:7px;width:31px;height:28px;padding:0;font:inherit;font-size:10px;font-weight:900;background:transparent;color:var(--muted);cursor:pointer;position:relative}.day-button:hover{outline:2px solid color-mix(in srgb,var(--accent) 35%,transparent)}.day-button.has-note::after{content:"";position:absolute;right:2px;top:2px;width:5px;height:5px;border-radius:50%;background:var(--accent)}.day-button[data-tone="present"]{background:var(--green-soft);color:var(--green)}.day-button[data-tone="sick"]{background:var(--sick-soft);color:var(--sick)}.day-button[data-tone="vacation"]{background:var(--blue-soft);color:var(--blue)}.day-button[data-tone="absence"]{background:var(--red-soft);color:var(--red)}.day-button[data-tone="weekend"]{background:var(--group);color:var(--muted)}.day-button[data-tone="holiday"]{background:var(--yellow-soft);color:var(--yellow)}.day-button[data-tone="remote"]{background:#e9f8f5;color:#337f72}.day-button[data-tone="terminated"]{background:#eceff1;color:#4f5960}.day-button[data-tone="demo"]{background:var(--accent-soft);color:var(--accent)}.department-row td{background:var(--group)!important;font-weight:900;height:34px;text-align:left}.department-toggle{border:0;background:transparent;color:var(--text);font:inherit;font-weight:900;cursor:pointer;display:flex;align-items:center;gap:8px;width:100%}.department-toggle small{color:var(--muted);font-weight:600}.employee-cell{display:flex;align-items:center;gap:8px}.avatar{width:27px;height:27px;border-radius:50%;object-fit:cover;background:var(--accent-soft);display:grid;place-items:center;color:var(--accent);font-size:10px;font-weight:900;flex:none}.employee-name{display:grid;min-width:0}.employee-name b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.employee-name small{color:var(--muted);font-size:9px}.summary-col{min-width:56px;font-weight:800}.comment-col{min-width:230px;text-align:left!important}.comment-input{width:100%;height:30px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--text);padding:0 8px;font:inherit}.comment-input:hover,.comment-input:focus{border-color:var(--line);background:var(--panel);outline:none}.dirty-cell{box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--accent) 45%,transparent)}.empty{padding:30px;color:var(--muted);text-align:center}.day-dialog{border:0;padding:0;background:transparent}.day-dialog::backdrop{background:rgba(15,17,24,.42);backdrop-filter:blur(2px)}.dialog-card{width:min(560px,calc(100vw - 28px));background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:18px;box-shadow:0 28px 80px rgba(0,0,0,.25);overflow:hidden}.dialog-head{display:flex;justify-content:space-between;padding:18px;border-bottom:1px solid var(--line)}.dialog-head h2{margin:2px 0;font-size:20px}.dialog-head p{margin:0;color:var(--muted)}.dialog-close{border:0;background:transparent;color:var(--muted);font-size:27px;cursor:pointer}.dialog-body{padding:17px;display:grid;gap:15px}.status-picker{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.status-option{border:1px solid var(--line);background:var(--panel);color:var(--text);border-radius:11px;padding:10px 8px;cursor:pointer;display:grid;gap:4px;text-align:left}.status-option.active{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);background:var(--accent-soft)}.status-option b{font-size:13px}.status-option small{color:var(--muted);font-size:9px}.dialog-body textarea{height:auto;padding:10px;resize:vertical}.dialog-actions{border-top:1px solid var(--line);padding:12px 16px;display:grid;grid-template-columns:auto 1fr auto auto;gap:8px}.ghost{background:transparent}.danger-text{color:var(--red)}.toast{position:fixed;right:18px;bottom:18px;z-index:100;background:#181a1f;color:#fff;border-radius:11px;padding:11px 14px;box-shadow:0 10px 30px rgba(0,0,0,.25)}
@media(max-width:1100px){.summary-grid{grid-template-columns:repeat(3,1fr)}.toolbar-actions{width:100%;margin-left:0}.month-note{margin-left:0}.timesheet-scroll{max-height:calc(100vh - 430px)}}
@media(max-width:680px){.attendance-app{padding:10px}.hero{align-items:flex-start}.hero-actions{flex-direction:column;align-items:flex-end}.summary-grid{grid-template-columns:repeat(2,1fr)}.field.compact,.field.compact select,.field.compact input,.search{width:100%}.month-note{width:100%;display:grid}.month-note input{min-width:0;width:100%}.status-picker{grid-template-columns:repeat(2,1fr)}}

.audit-card{width:min(760px,calc(100vw - 28px));max-height:min(720px,calc(100vh - 30px));display:flex;flex-direction:column}.audit-list{padding:10px 14px 16px;overflow:auto;display:grid;gap:7px}.audit-row{display:grid;grid-template-columns:135px minmax(160px,1fr) 110px minmax(180px,1.3fr);gap:10px;align-items:center;border:1px solid var(--line);border-radius:11px;padding:9px 10px}.audit-row time{font-size:10px;color:var(--muted)}.audit-person{display:grid}.audit-person small{color:var(--muted);font-size:9px}.audit-change{font-weight:900}.audit-change .old{color:var(--muted)}.audit-change .new{color:var(--accent)}.audit-who{font-size:10px;color:var(--muted)}@media(max-width:700px){.audit-row{grid-template-columns:1fr 1fr}.audit-who{grid-column:1/-1}}

/* v3.5.24 — compact day picker, mass status mode, shared sync and display settings */
.sync-state{border:1px solid var(--line);border-radius:999px;padding:7px 10px;font-size:11px;font-weight:800;white-space:nowrap}.sync-state.saved{background:var(--green-soft);color:var(--green)}.sync-state.saving,.sync-state.pending{background:var(--yellow-soft);color:var(--yellow)}.sync-state.error{background:var(--red-soft);color:var(--red)}
.legend-item{background:var(--panel);color:var(--text);font:inherit;cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .15s}.legend-item:hover:not(:disabled){border-color:color-mix(in srgb,var(--accent) 45%,var(--line));transform:translateY(-1px)}.legend-item.active{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent),0 0 0 3px color-mix(in srgb,var(--accent) 12%,transparent);background:var(--accent-soft)}.legend-item:disabled{cursor:not-allowed;opacity:.62}
.day-button.mass-target{cursor:cell}.day-button.mass-target:hover{outline:2px solid var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 12%,transparent)}
.day-popover{position:fixed;z-index:120;width:310px;max-height:calc(100vh - 20px);overflow:auto;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:14px;box-shadow:0 20px 55px rgba(15,17,24,.25);padding:8px}.day-popover[hidden]{display:none}.day-popover-head{display:grid;gap:2px;padding:7px 8px 9px;border-bottom:1px solid var(--line);margin-bottom:5px}.day-popover-head b{font-size:12px}.day-popover-head small{font-size:10px;color:var(--muted)}.day-choice-list{display:grid;gap:3px}.day-choice{display:grid;grid-template-columns:34px 1fr;align-items:center;gap:7px;width:100%;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--text);padding:6px 7px;text-align:left;font:inherit;cursor:pointer}.day-choice:hover,.day-choice.active{background:var(--accent-soft);border-color:color-mix(in srgb,var(--accent) 35%,transparent)}.day-choice>span:last-child{display:grid}.day-choice b{font-size:11px}.day-choice small{font-size:9px;color:var(--muted)}.day-clear{width:100%;border:0;border-top:1px solid var(--line);margin-top:5px;padding:9px 8px 5px;background:transparent;color:var(--red);font:inherit;font-size:11px;font-weight:800;text-align:left;cursor:pointer}.day-comment{border-top:1px solid var(--line);margin-top:5px;padding:6px 5px 2px}.day-comment summary{cursor:pointer;color:var(--muted);font-size:10px;font-weight:800;padding:3px}.day-comment textarea{width:100%;height:auto;min-height:62px;margin:7px 0 6px;padding:8px;resize:vertical}.day-comment .secondary{width:100%;min-height:32px;font-size:10px}.day-comment>small{display:block;color:var(--muted);font-size:9px;margin-top:4px}
.attendance-settings{position:relative}.settings-panel{position:absolute;right:0;top:45px;z-index:110;width:min(430px,calc(100vw - 28px));max-height:min(720px,calc(100vh - 90px));overflow:auto;background:var(--panel);border:1px solid var(--line);border-radius:16px;box-shadow:0 20px 60px rgba(15,17,24,.22);padding:12px}.settings-panel[hidden]{display:none}.settings-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:2px 2px 10px;border-bottom:1px solid var(--line)}.settings-head>div{display:grid}.settings-head small{font-size:9px;color:var(--muted);font-weight:500;margin-top:2px}.panel-close{border:0;background:transparent;color:var(--muted);font-size:22px;line-height:1;cursor:pointer}.switch-row{display:flex;align-items:center;gap:8px;padding:9px 4px;border-bottom:1px solid var(--line);font-size:11px;font-weight:700}.switch-row input{accent-color:var(--accent)}.settings-block{padding:11px 2px 4px;display:grid;gap:7px}.settings-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.settings-title strong{font-size:11px}.settings-title span{display:flex;gap:4px}.settings-title button{border:0;background:transparent;color:var(--accent);font:inherit;font-size:9px;font-weight:800;cursor:pointer}.settings-help{font-size:9px;color:var(--muted)}.settings-choice-list{display:grid;gap:4px;max-height:210px;overflow:auto;padding-right:2px}.settings-choice{display:flex;align-items:center;gap:7px;padding:7px 8px;border:1px solid var(--line);border-radius:9px;background:var(--panel);font-size:10px;cursor:pointer}.settings-choice input{accent-color:var(--accent);flex:none}.settings-choice>span:last-child{display:grid;min-width:0}.settings-choice b{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.settings-choice small{font-size:8px;color:var(--muted)}.draggable-department{grid-template-columns:auto auto 1fr;cursor:grab}.draggable-department:active{cursor:grabbing}.drag-handle{font-size:16px;color:var(--muted);line-height:1}.draggable-department.dragging{opacity:.45}.draggable-department.drag-over{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}.full-width{width:100%;margin-top:8px}
@media(max-width:1100px){.hero-actions{flex-wrap:wrap;justify-content:flex-end}.settings-panel{right:auto;left:0}}
@media(max-width:680px){.sync-state{font-size:9px}.settings-panel{position:fixed;left:10px;right:10px;top:70px;width:auto;max-height:calc(100vh - 90px)}.day-popover{max-width:calc(100vw - 20px)}}

/* v3.5.24 — compact analytics header, inline attendance codes and collapsible position column */
.top-menu{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:18px;padding:14px 16px}.top-menu-heading{min-width:180px;padding:3px 4px}.top-menu-heading h1{margin:1px 0 0;font-size:23px;line-height:1.15}.top-menu-controls{min-width:0;display:grid;gap:8px}.top-menu .toolbar-row{align-items:end;gap:8px}.top-menu .toolbar-actions{margin-left:auto}.top-menu .toolbar-meta{padding-top:7px;border-top:1px solid var(--line);gap:12px;font-size:10px}.top-menu .month-note{margin-left:auto}.top-menu .month-note>span{font-size:9px}.top-menu .month-note input{height:34px;min-width:250px}.top-menu .field>span{font-size:9px}.top-menu .field.compact input,.top-menu .field.compact select,.top-menu .search input{height:36px}.top-menu .search-icon{top:8px}.top-menu .theme-toggle,.top-menu .secondary,.top-menu .primary,.top-menu .approve,.top-menu .icon-btn{min-height:36px}.top-menu .theme-toggle{white-space:nowrap}
.table-headline{align-items:flex-start;gap:16px;padding:12px 15px}.table-title{flex:none;padding-top:3px}.table-head-controls{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex:1;min-width:0;flex-wrap:wrap}.legend-inline{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap;min-width:0}.legend-title{font-size:10px;font-weight:900;color:var(--muted);white-space:nowrap}.legend-inline .legend-items{gap:4px}.legend-inline .legend-item{padding:3px 5px;border-radius:8px;gap:4px;font-size:9px}.legend-inline .code-chip{min-width:23px;height:21px;border-radius:6px;font-size:10px}.legend-hint{width:100%;text-align:right;color:var(--muted);font-size:8px;line-height:1.2}.column-hide{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;border:0;background:transparent;color:inherit;font:inherit;font-weight:900;padding:0;cursor:pointer;text-align:left}.column-hide:hover{color:var(--accent)}.column-hide span{font-size:14px;line-height:1}.column-restore{border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--muted);min-height:30px;padding:0 9px;font:inherit;font-size:9px;font-weight:800;cursor:pointer}.column-restore:hover{border-color:var(--accent);color:var(--accent);background:var(--accent-soft)}
.timesheet-table.position-hidden .norm-col{left:260px}.timesheet-table.position-hidden .fact-col{left:322px}
.timesheet-scroll{max-height:calc(100vh - 300px)}
@media(max-width:1280px){.top-menu{grid-template-columns:1fr}.top-menu-heading{display:flex;align-items:baseline;gap:10px;min-width:0;padding-bottom:2px}.top-menu-heading h1{font-size:21px}.top-menu .toolbar-actions{width:auto}.table-headline{flex-direction:column}.table-head-controls{width:100%;justify-content:flex-start}.legend-inline{justify-content:flex-start}.legend-hint{text-align:left}}
@media(max-width:760px){.top-menu .toolbar-actions{width:100%;margin-left:0}.top-menu .month-note{margin-left:0;width:100%;display:grid}.top-menu .month-note input{width:100%;min-width:0}.table-head-controls{align-items:flex-start}.legend-inline{width:100%}.sync-state,.status-chip{font-size:9px}.timesheet-scroll{max-height:calc(100vh - 360px)}}

/* v3.5.24 — shell route toolbar, collapsible month summary, position column stays in DOM */
.standalone-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px}.standalone-header h1{margin:1px 0 0;font-size:23px}.attendance-route-toolbar{padding:10px 12px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.attendance-toolbar-main{display:flex;align-items:center;gap:7px;flex:1 1 auto;flex-wrap:wrap;margin:0}.attendance-route-toolbar .select-control{display:flex;align-items:center;gap:6px;min-height:36px;padding:0 8px;border:1px solid var(--line);border-radius:11px;background:var(--panel);color:var(--muted);font-size:9px;white-space:nowrap}.attendance-route-toolbar .select-control input,.attendance-route-toolbar .select-control select{border:0;outline:0;background:transparent;color:var(--text);font:inherit;font-weight:750;height:34px}.attendance-route-toolbar .attendance-period input{width:118px}.attendance-route-toolbar .attendance-department select{min-width:150px;max-width:210px}.attendance-search{position:relative;display:flex;align-items:center;min-width:190px;flex:1 1 220px}.attendance-search input{width:100%;height:36px;border:1px solid var(--line);border-radius:11px;background:var(--panel);color:var(--text);padding:0 10px 0 31px;font:inherit}.attendance-search .search-icon{top:auto;left:11px}.attendance-route-toolbar .btn{border:1px solid var(--line);min-height:36px;padding:0 10px;border-radius:11px;background:var(--panel);color:var(--text);font:inherit;font-size:9px;font-weight:800;cursor:pointer;white-space:nowrap}.attendance-route-toolbar .btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}.attendance-route-toolbar .btn.approve{background:var(--green);border-color:var(--green);color:#fff}.attendance-toolbar-meta{flex:1 0 100%;display:flex;align-items:center;gap:10px;padding-top:7px;border-top:1px solid var(--line);color:var(--muted);font-size:9px}.attendance-toolbar-meta .month-note{margin-left:auto}.attendance-toolbar-meta .month-note>span{font-size:9px}.attendance-toolbar-meta .month-note input{height:32px;min-width:240px}
.summary-panel{overflow:hidden}.summary-collapse-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;border:0;background:transparent;color:var(--text);padding:10px 14px;font:inherit;cursor:pointer;text-align:left}.summary-collapse-toggle>span{display:flex;align-items:baseline;gap:9px;min-width:0}.summary-collapse-toggle strong{font-size:12px}.summary-collapse-toggle small{color:var(--muted);font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.summary-chevron{font-size:18px;color:var(--muted);line-height:1}.summary-grid{padding:0 10px 10px}.summary-grid[hidden]{display:none!important}.summary-panel.collapsed .summary-collapse-toggle{padding-top:9px;padding-bottom:9px}.summary-panel:not(.collapsed) .summary-collapse-toggle{border-bottom:1px solid var(--line);margin-bottom:10px}.summary-panel:not(.collapsed) .summary-grid{margin-top:-1px}
.timesheet-table.position-hidden .position-col{display:none!important}.timesheet-table.position-hidden .norm-col{left:260px}.timesheet-table.position-hidden .fact-col{left:322px}
.attendance-shell-embedded .standalone-header{display:none!important}
@media(max-width:1100px){.attendance-toolbar-meta{align-items:flex-start;flex-wrap:wrap}.attendance-toolbar-meta .month-note{margin-left:0}.summary-collapse-toggle small{display:none}}

/* v3.5.28 — compact working-month actions */
.table-action-btn{border:1px solid var(--line);min-height:30px;padding:0 9px;border-radius:10px;background:var(--panel);color:var(--text);font:inherit;font-size:9px;font-weight:850;cursor:pointer;white-space:nowrap}
.table-action-btn:hover{border-color:var(--accent);color:var(--accent);background:var(--accent-soft)}
.table-action-btn:disabled{opacity:.45;cursor:not-allowed}
.table-icon-btn{width:30px;height:30px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--text);display:grid;place-items:center;padding:0;font:inherit;font-size:15px;font-weight:800;cursor:pointer}
.table-icon-btn:hover{border-color:var(--accent);color:var(--accent);background:var(--accent-soft)}
.legend-inline{flex-wrap:nowrap}.legend-inline .legend-items{flex-wrap:wrap}.legend-hint{display:none!important}


/* v3.5.28 — inline month comment, Employee-cell position toggle, unclipped settings */
.attendance-route-toolbar{flex-wrap:nowrap}
.attendance-toolbar-main{flex-wrap:nowrap;min-width:0}
.attendance-month-note{margin-left:0;display:flex;align-items:center;gap:6px;min-width:250px;flex:1 1 320px}
.attendance-month-note>span{font-size:9px;font-weight:800;color:var(--muted);white-space:nowrap}
.attendance-month-note input{height:36px;min-width:160px;width:100%;border:1px solid var(--line);border-radius:11px;background:var(--panel);color:var(--text);padding:0 10px;font:inherit}
.attendance-toolbar-meta{display:none!important}
.column-restore{display:none!important}
.person-head{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%}
.person-column-toggle{width:24px;height:24px;display:grid;place-items:center;flex:none;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--muted);padding:0;font:inherit;font-size:16px;font-weight:900;line-height:1;cursor:pointer}
.person-column-toggle:hover{border-color:var(--accent);color:var(--accent);background:var(--accent-soft)}
.timesheet-card{overflow:visible}
.table-headline{position:relative;z-index:30;border-radius:18px 18px 0 0;background:var(--panel)}
.timesheet-scroll{position:relative;z-index:1;border-radius:0 0 18px 18px}
.settings-panel{position:fixed;right:auto;top:auto;z-index:1000}
@media(max-width:1250px){.attendance-route-toolbar{flex-wrap:wrap}.attendance-toolbar-main{flex-wrap:wrap}.attendance-month-note{flex:1 1 260px}}
@media(max-width:760px){.attendance-month-note{width:100%;min-width:0}.attendance-month-note>span{display:none}}

/* v3.5.28 — full-height timesheet: page scrolls vertically, table only scrolls horizontally */
.timesheet-scroll{
  max-height:none!important;
  min-height:0!important;
  height:auto!important;
  overflow:visible!important;
}
.timesheet-table thead{position:relative;z-index:20;will-change:transform}
.timesheet-table thead.is-shell-stuck th{box-shadow:0 8px 16px rgba(28,20,35,.10)}
@media(max-width:1100px){.timesheet-scroll{max-height:none!important;min-height:0!important;height:auto!important}}
@media(max-width:760px){.timesheet-scroll{max-height:none!important;min-height:0!important;height:auto!important}}


/* v3.5.185 — fixed Hub horizontal scrollbar + shell-driven sticky date row */
.attendance-app{width:100%;max-width:100%;min-width:0;overflow:visible}
.summary-panel,.timesheet-card{width:100%;max-width:100%;min-width:0}
.timesheet-card{overflow:hidden!important}
.timesheet-scroll{width:100%;max-width:100%;overflow-x:hidden!important;overflow-y:visible!important;max-height:none!important;min-height:0!important;height:auto!important}
.timesheet-table thead{transform:none!important;position:relative;z-index:40}
.timesheet-table thead tr{position:relative;z-index:40}.timesheet-table thead th{will-change:transform;transform:translateZ(0);backface-visibility:hidden}
.timesheet-table thead.is-shell-stuck th{box-shadow:0 8px 16px rgba(28,20,35,.12)}

/* Department display choices travel with the toolbar into the HUB shell. */
.attendance-department-picker{position:relative;flex:none}
.attendance-department-picker>summary{list-style:none;cursor:pointer;gap:7px;font:inherit;font-size:10px}
.attendance-department-picker>summary::-webkit-details-marker{display:none}
.attendance-department-picker>summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.attendance-department-picker[open]>summary{border-color:var(--accent)}
.attendance-department-picker:not([open])>.department-picker-panel{display:none}
.department-picker-panel{position:fixed;z-index:11000;box-sizing:border-box;overflow:auto;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--panel);color:var(--text);box-shadow:0 16px 44px rgba(15,17,24,.2);font:inherit;font-size:12px;line-height:1.4}
.department-picker-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.department-picker-head .panel-close{border:0;background:transparent;color:var(--muted);font:inherit;font-size:22px;line-height:1;cursor:pointer}
.department-picker-actions{display:flex;gap:12px;padding:8px 0;border-bottom:1px solid var(--line);margin-bottom:8px}
.department-picker-actions button{border:0;background:transparent;color:var(--accent);font:inherit;font-size:11px;font-weight:750;padding:3px 0;cursor:pointer}
.department-picker-choices{display:grid;gap:5px;max-height:300px;overflow:auto}
.department-picker-choice{display:flex;align-items:center;gap:8px;padding:8px;border:1px solid var(--line);border-radius:9px;background:var(--panel-soft);cursor:pointer}
.department-picker-choice input{accent-color:var(--accent);width:14px;height:14px;flex:none;margin:0}
.department-picker-choice span{overflow-wrap:anywhere}
.department-picker-help{display:block;margin-top:10px;color:var(--muted);font-size:10px}

/* A half-day has its own tone, distinct from a full attendance day. */
.tone-partial,.day-button[data-tone="partial"]{background:#e2f2fc;color:#15628a}
:root[data-theme="dark"] .tone-partial,:root[data-theme="dark"] .day-button[data-tone="partial"]{background:#153344;color:#90c9ee}

@media(max-width:1350px){.attendance-route-toolbar .attendance-toolbar-main,.route-toolbar-host .attendance-route-toolbar .attendance-toolbar-main{flex-wrap:wrap}}

/* Keep every timesheet action visible when the toolbar is narrow. */
.attendance-route-toolbar .attendance-toolbar-main,.route-toolbar-host .attendance-route-toolbar .attendance-toolbar-main{flex-wrap:wrap}

/* v3.5.230 — preserve readable dark timesheet surfaces. The shell clears only
   the route root: never make the timesheet panel or scrolling grid transparent. */
html[data-theme="dark"] {color-scheme:dark}
html[data-theme="dark"] .timesheet-card.panel,
html[data-theme="dark"] .summary-panel.panel,
html[data-theme="dark"] .audit-card.panel,
html[data-theme="dark"] .settings-panel,
html[data-theme="dark"] .dialog-card,
html[data-theme="dark"] .department-picker-panel {background:#1c1f24;color:var(--text);border-color:var(--line)}
html[data-theme="dark"][data-hub-global-background="true"] .timesheet-card.panel,
html[data-theme="dark"][data-hub-global-background="true"] .summary-panel.panel {background:rgba(28,31,36,.94)}
html[data-theme="dark"] .timesheet-scroll {background:transparent}
