/* Top bar menus, Tasks drawer and staff screens. Popover sizes follow topbar-observed.json at a 1528px CSS viewport. */
.top-tool{position:relative;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px}
.top-tool[aria-expanded=true]{background:#ffffff1f!important;border-radius:4px}
.top-tool[data-top=timezone]{color:#ffff99!important}
.top-badge{position:absolute;top:0;right:-2px;min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:var(--danger-fill);color:#fff;font-size:10px;font-weight:700;line-height:16px;text-align:center}
.top-popover{right:auto;padding:4px 0;max-height:calc(100vh - 60px);width:250px;z-index:200}
.top-popover-notifications{width:min(1039px,calc(100vw - 16px));padding:12px}
.top-popover-attendance{width:315px}.top-popover-account{width:200px}.top-popover-timezone{width:min(641px,calc(100vw - 16px));padding:12px}
.top-popover svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.top-menu{list-style:none;margin:0;padding:0}
.top-popover-quick{max-height:522px}
.top-menu>li>button,.top-menu>li>a{display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-height:40px;padding:0 16px;border:0;border-radius:0;background:none;color:var(--text);text-align:left;text-decoration:none;font-size:14px}
.top-menu>li>button:not(:disabled):hover,.top-menu>li>a:hover,.top-menu>li>button:focus-visible,.top-menu>li>a:focus-visible{background:#ffffff14;outline:none}
:root[data-theme=light] .top-menu>li>button:not(:disabled):hover,:root[data-theme=light] .top-menu>li>a:hover{background:var(--hover)}
.top-menu>li>button:disabled{opacity:.45;cursor:not-allowed}
.top-menu .top-danger{color:var(--danger)}
.top-divider{height:1px;margin:4px 0;background:var(--line)}
.top-timer{display:flex;justify-content:center;align-items:center;min-height:40px;font-size:16px;font-weight:700;font-variant-numeric:tabular-nums}
.top-attendance-actions{display:flex;justify-content:center;gap:8px;padding:4px 16px 8px}
.top-btn-group,.staff-btn-group{display:inline-flex}
.top-btn-group button,.staff-btn-group button{border-radius:0;min-height:32px}
.top-btn-group button:first-child,.staff-btn-group button:first-child{border-radius:4px 0 0 4px}
.top-btn-group button:last-child,.staff-btn-group button:last-child{border-radius:0 4px 4px 0;border-left:1px solid #ffffff40;padding:0 8px}
.top-btn-group button:disabled,.staff-btn-group button:disabled{opacity:.5;cursor:not-allowed}
.top-btn-group svg,.staff-btn-group svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8}
.top-attendance>li:last-child>a{justify-content:center}
.top-range{display:flex;align-items:center;gap:8px}
.top-range input{flex:1;min-width:0;height:32px;background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:4px;padding:0 10px}
.top-range>button{width:46px;height:32px;justify-content:center}
.top-tabs{margin:12px 0 0}.top-tabs .top-sync{margin-left:auto;border:0;background:none;color:var(--link)}
.top-table{max-height:240px;overflow:auto;margin-top:8px}
.top-table th{position:sticky;top:0;background:var(--panel);z-index:1}
.top-table td,.top-table th{padding:6px 8px}
.top-table th select{margin-left:4px;height:24px;background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:3px}
.top-sort{border:0;background:none;color:var(--text);font-weight:700;padding:0}
.top-link{border:0;background:none;padding:0;color:var(--link);text-align:left}
.top-note{max-width:360px}
.top-star svg{width:16px;height:16px;fill:none;stroke:var(--muted);stroke-width:1.6}.top-star.on svg{fill:#ffc532;stroke:#ffc532}
.top-footer{display:flex;padding-top:10px}.top-footer .primary{margin-left:0;width:46px;justify-content:center}
.top-alert{display:flex;gap:12px;padding:12px 16px;border:1px solid var(--warn-line);border-radius:6px;background:var(--warn-soft);color:var(--text)}
.top-alert svg{width:20px;height:20px;color:var(--warn);margin-top:2px}.top-alert p{margin:6px 0 0;color:var(--muted)}
.top-picker{width:min(420px,calc(100vw - 32px))}.top-picker h2{margin:0 0 16px;font-size:18px}.top-picker select{width:100%;height:32px}
.top-picker-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.top-picker-actions .primary{margin-left:0}
.tasks-drawer{width:min(600px,100vw)}
.tasks-drawer[open]{display:flex;flex-direction:column}
.tasks-body{padding:16px 24px}
.link-button{border:0;background:none;color:var(--link);padding:0 4px}
.tasks-toggle{display:block;margin:0 auto 12px}
.staff-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:0 0 12px;text-align:center}
.staff-stats span{display:block;color:var(--muted);font-size:13px}.staff-stats b{display:block;font-size:20px;margin-top:6px}.staff-stats .ok span,.staff-stats .ok b{color:var(--ok)}
.task-list{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.task-row{display:flex;gap:12px;align-items:flex-start;padding:12px 4px;border-bottom:1px solid var(--line)}
.task-row>input{width:16px;height:16px;margin-top:3px;accent-color:var(--accent-line)}
.task-name{border:0;background:none;padding:0;color:var(--text);font-weight:700;text-align:left}
.task-meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:6px;color:var(--muted);font-size:13px}
.task-meta button{min-height:22px;padding:0 8px;font-size:12px}
.top-empty{padding:40px;text-align:center;color:var(--muted)}
.tasks-footer{display:flex;align-items:center;gap:8px;padding:12px 8px}.tasks-footer .primary{margin-left:0;width:46px;justify-content:center}
.tasks-all{color:var(--link);text-decoration:none;padding:0 8px}
.staff-tag{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:3px;color:#fff;font-size:12px;font-weight:700}
.task-awaiting{background:var(--warn-fill)}
.staff-overdue{color:var(--danger)}
.staff-running{color:var(--ok);font-weight:700}
.staff-assignees{border:0;padding:0;margin:0}.staff-assignees legend{padding-bottom:8px}
.staff-assignees label{display:inline-flex;align-items:center;gap:6px;margin:0 16px 8px 0}
.staff-check{display:flex;align-items:center;gap:8px}
.staff-fieldset{border:0;padding:0;margin:0}.staff-fieldset legend{padding-bottom:8px}
.staff-fieldset[disabled]{opacity:.6}
.staff-checks{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px}
.staff-checks label{display:flex;align-items:center;gap:8px}
.staff-switch input{width:32px;height:18px;accent-color:var(--blue)}
.staff-account{max-width:1000px}.staff-account .primary{margin-top:16px}
.work-heading sup{font-size:12px;background:var(--blue);color:#fff;border-radius:20px;padding:2px 6px;vertical-align:super}
.staff-group th{background:var(--hover);text-align:left}
@media (max-width:800px){.staff-stats{grid-template-columns:repeat(3,1fr)}.top-range input{width:120px}}
