/* Extensions Équipe. NOVA keeps its original typography, navigation and cards. */
.tm-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.tm-settings-section{padding:20px;border-radius:var(--nova-radius,20px);background:var(--nova-card,var(--surface));box-shadow:var(--nova-shadow,none);min-width:0}
.tm-settings-section h3{font-size:15px;font-weight:600;margin:0;color:var(--ink)}
#admin-panel-settings .tm-settings-section>.tm-muted{margin:5px 0 14px}
#admin-panel-settings .tm-settings-section .settings-list{grid-template-columns:minmax(0,1fr);gap:8px;margin-top:14px}
#admin-panel-settings #tm-hours-settings{display:grid;grid-template-columns:minmax(0,1fr);gap:inherit;min-width:0}
#admin-panel-settings .tm-settings-section .settings-action{font-family:inherit;font-size:13px;min-height:54px;padding:11px 12px;border-radius:12px}
.tm-settings-section .settings-action>span:nth-child(2){flex:1;min-width:0}
.tm-settings-section .settings-action strong{display:block;font-size:13px;font-weight:600}
.tm-settings-section .settings-action small{display:block;font-size:11px;line-height:1.5;font-weight:400;color:var(--ink-dim);margin-top:3px}
.tm-settings-section .settings-action svg{width:19px;height:19px;flex:none;color:var(--blue)}
.tm-settings-section .settings-action:disabled{opacity:.6;cursor:wait}
.tm-settings-section .language-setting{padding:12px;margin:8px 0 0;border-radius:12px}
.tm-settings-section .language-setting-row{font-size:13px;font-weight:600}
.tm-settings-section .language-setting p{font-size:11px}
.tm-settings-expand{margin-top:10px;border-top:1px solid var(--border)}
.tm-settings-expand summary{padding:14px 2px 4px;font-size:12px;font-weight:600;line-height:1.5;cursor:pointer;color:var(--ink)}
#tm-settings-visibility #employee-view-settings{padding:14px 0 0;margin:0;border:0;border-radius:0;background:none;box-shadow:none}
#tm-settings-visibility .employee-view-heading-icon,#tm-settings-visibility .employee-view-heading h3{display:none}
#tm-settings-visibility #employee-view-settings .employee-view-heading{margin-bottom:12px}
.tm-approval-options{border:0;padding:0;margin:20px 0 12px;min-width:0}
.tm-approval-options legend{font-size:12px;font-weight:600;margin-bottom:10px;padding:0}
.tm-approval-option{display:flex;align-items:flex-start;gap:12px;padding:14px;border:1px solid var(--border);border-radius:14px;margin-bottom:9px;cursor:pointer;background:var(--surface)}
.tm-approval-option:has(input:checked){border-color:var(--blue);background:var(--blue-dim)}
.tm-approval-option input{width:17px;height:17px;flex:none;accent-color:var(--blue);margin:2px 0 0}
.tm-approval-option strong{display:block;font-size:14px;font-weight:600}
.tm-approval-option small{display:block;color:var(--ink-dim);font-size:12px;line-height:1.6;margin-top:5px}
.tm-hours-mode{display:flex;justify-content:flex-end;border-top:1px solid var(--border);padding-top:5px;margin-top:4px}
.tm-hours-mode .tm-btn{min-height:32px;padding:6px;font-size:11px}
@media(max-width:699px){.tm-settings-grid{grid-template-columns:minmax(0,1fr);gap:12px}.tm-settings-section{padding:16px}.tm-approval-option{padding:12px;gap:10px}}
.tm-root{color:var(--ink);min-width:0}
.tm-root [hidden],.tm-dialog [hidden],#tm-access[hidden]{display:none!important}
.tm-heading,.tm-toolbar,.tm-period,.tm-inline,.tm-dialog-head,.tm-dialog-foot{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.tm-heading{justify-content:space-between;margin:0 0 20px;gap:12px}
.tm-heading h2{font-family:var(--nova-title,inherit);font-size:26px;font-weight:600;letter-spacing:-.04em;margin:0}
.tm-heading p,.tm-muted{color:var(--ink-dim);font-size:12px;line-height:1.5;margin:5px 0 0}
.tm-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:9px 13px;border:0;border-radius:12px;font:inherit;font-size:12px;font-weight:600;color:var(--ink);background:var(--surface-2);cursor:pointer;text-decoration:none}
.tm-btn svg{width:18px;height:18px;flex:none}.tm-btn.primary{background:var(--blue);color:#fff}.tm-btn:disabled{opacity:.5;cursor:wait}
.tm-btn:focus-visible,.tm-tab:focus-visible,.tm-person-row:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.tm-btn.ghost{background:transparent;color:var(--blue)}
.tm-btn.secondary{background:var(--surface);color:var(--blue-text-on-dim,var(--blue));border:1px solid color-mix(in srgb,var(--blue) 22%,var(--border));box-shadow:0 1px 3px #00000005}
.tm-space-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 18px}
.tm-space-actions{max-width:520px}
.tm-space-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:16px;align-items:start}
.tm-space-grid>.tm-card{margin-bottom:0}
.tm-space-actions .tm-btn{min-height:46px;font-size:13px}
.tm-space-period{padding:12px 14px;margin-bottom:12px;border-radius:14px;background:var(--surface-2)}
.tm-space-period .tm-period{display:grid;grid-template-columns:auto minmax(0,1fr) auto;width:100%;gap:12px}
.tm-space-period .tm-date-nav{display:grid;grid-template-columns:36px minmax(0,1fr) 36px;align-items:center;gap:4px}
.tm-space-period .tm-date-nav strong{min-width:0;line-height:1.5}
.tm-space-period .tm-prev,.tm-space-period .tm-next{font-size:22px;min-height:40px}
.tm-space-hours .tm-space-totals{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.tm-space-totals>div{min-width:0}
.tm-space-totals>div>span,.tm-space-vacation>span{display:block;font-size:12px;color:var(--ink-dim)}
.tm-space-totals strong{display:block;font-size:26px;font-weight:600;margin:8px 0;letter-spacing:-.035em}
.tm-space-totals small{display:block;color:var(--ink-dim);font-size:11px;line-height:1.6}
.tm-space-totals .tm-tag{margin-top:10px}
.tm-space-hours .tm-space-cutoff{border-top:1px solid var(--border);padding-top:12px;margin-top:16px;font-size:11px}
.tm-space-leaves .tm-subhead{margin-bottom:14px}
.tm-space-vacation{display:flex;align-items:center;justify-content:space-between;gap:12px}
.tm-space-vacation strong{font-size:18px;font-weight:600}
.tm-space-requests{margin-top:12px;border-top:1px solid var(--border)}
.tm-space-requests .tm-empty{padding:14px 0 0;text-align:left;font-size:12px}
.tm-space-help{margin:8px 0 0;text-align:center}.tm-space-help .tm-btn{font-size:11px;font-weight:500}
.tm-hours-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}
.tm-hours-choices .tm-btn{display:flex;align-items:flex-start;justify-content:flex-start;text-align:left;padding:16px;min-height:100px;gap:10px}
.tm-hours-choices strong{display:block;font-size:14px;margin-bottom:7px}.tm-hours-choices small{display:block;color:var(--ink-dim);font-size:12px;font-weight:400;line-height:1.6}
@media(max-width:699px){
 #employee-panel-space .tm-heading{margin-bottom:14px}#employee-panel-space .tm-heading p{font-size:11px}
 .tm-space-grid{grid-template-columns:minmax(0,1fr);gap:12px}.tm-space-actions{max-width:none}
 .tm-space-actions{gap:8px;margin-bottom:12px}.tm-space-actions .tm-btn{font-size:12px;padding:10px 8px;min-height:46px}
 .tm-space-period{padding:8px 10px}.tm-space-period .tm-period{grid-template-columns:1fr auto;gap:8px}
 .tm-space-period .tm-period-group{grid-column:1;grid-row:1;width:fit-content}
 .tm-space-period .tm-reset{grid-column:2!important;grid-row:1;justify-self:end!important;font-size:11px;min-height:36px}
 .tm-space-period .tm-date-nav{grid-column:1/-1;grid-row:2;grid-template-columns:34px minmax(0,1fr) 34px}
 .tm-space-period .tm-date-nav strong{font-size:13px}
 .tm-space-hours .tm-space-totals{gap:14px}.tm-space-totals strong{font-size:22px}
 .tm-space-leaves .tm-subhead{gap:8px;flex-wrap:nowrap}.tm-space-leaves .tm-subhead h3{font-size:13px}
 .tm-space-leaves .tm-subhead .tm-btn{font-size:11px;padding:9px;min-height:40px}
 .tm-space-vacation strong{font-size:16px}.tm-hours-choices{grid-template-columns:1fr}.tm-hours-choices .tm-btn{min-height:82px}
}
.tm-tabs{display:flex;gap:4px;max-width:100%;padding:4px;background:var(--surface-2);border-radius:14px;width:fit-content;margin-bottom:16px}
.tm-tab{border:0;border-radius:10px;background:transparent;color:var(--ink-dim);padding:10px 14px;min-height:40px;font:inherit;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap}
.tm-tab.active{background:var(--surface);color:var(--ink);box-shadow:0 2px 8px #00000008}
.tm-count{display:inline-grid;place-items:center;min-width:19px;height:19px;border-radius:7px;background:var(--yellow-dim);color:var(--yellow-text-on-dim);font-size:10px;margin-left:5px;padding:0 4px}
.tm-toolbar{justify-content:space-between;margin-bottom:14px;gap:10px}
.tm-period{gap:5px}.tm-period strong{font-size:13px;min-width:135px;text-align:center;font-weight:600}.tm-period .tm-btn{padding:8px;min-width:34px}
.tm-period-group{display:flex;background:var(--surface-2);border-radius:11px;padding:3px}.tm-period-group .tm-btn{min-height:32px;background:transparent;padding:6px 11px}.tm-period-group .active{background:var(--surface)}
.tm-date-nav{display:contents}.tm-mobile-copy{display:none}.tm-cutoff{margin-bottom:16px}
.tm-card{background:var(--nova-card,var(--surface));border-radius:var(--nova-radius,20px);box-shadow:var(--nova-shadow,none),var(--nova-highlight,0 0 transparent);padding:20px;margin-bottom:16px;min-width:0}
.tm-table{width:100%;border-collapse:collapse;font-size:13px;table-layout:fixed}
.tm-table th{text-align:left;color:var(--ink-dim);font-size:11px;font-weight:500;padding:0 10px 12px;border-bottom:1px solid var(--border)}
.tm-table td{padding:15px 10px;border-bottom:1px solid color-mix(in srgb,var(--border) 60%,transparent);vertical-align:middle;overflow-wrap:anywhere}
.tm-table tr:last-child td{border-bottom:0}.tm-table th:first-child{width:25%}.tm-table th:last-child{width:82px}
.tm-table small,.tm-person small,.tm-row small{display:block;color:var(--ink-dim);font-size:11px;line-height:1.5;margin-top:4px;font-weight:400}
.tm-person{display:flex;align-items:center;gap:10px;min-width:0}.tm-avatar{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:12px;background:var(--blue-dim);color:var(--blue-text-on-dim);font-size:12px;font-weight:600}
.tm-number{font-variant-numeric:tabular-nums;font-weight:600;white-space:nowrap}.tm-positive{color:var(--green)}.tm-negative{color:var(--danger)}
.tm-tag{display:inline-flex;align-items:center;gap:5px;background:var(--surface-2);color:var(--ink-dim);font-size:11px;border-radius:7px;padding:4px 7px;line-height:1.3;font-weight:500}
.tm-tag.orange{background:var(--yellow-dim);color:var(--yellow-text-on-dim)}.tm-tag.blue{background:var(--blue-dim);color:var(--blue-text-on-dim)}
.tm-subhead{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0 0 12px}.tm-subhead h3{margin:0;font-size:14px;font-weight:600}
.tm-row{display:flex;align-items:center;gap:12px;padding:13px 0;min-width:0;border-bottom:1px solid color-mix(in srgb,var(--border) 60%,transparent)}
.tm-row:last-child{border-bottom:0}.tm-row-main{min-width:0;flex:1}.tm-row b{font-size:13px;font-weight:600}.tm-row-main b,.tm-row-main small{overflow-wrap:anywhere}
.tm-empty{padding:20px 8px;font-size:13px;color:var(--ink-dim);line-height:1.6;text-align:center}
.tm-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}
.tm-stat{padding:17px 18px;background:var(--nova-card,var(--surface));border-radius:var(--nova-radius,20px);min-width:0}.tm-stat span{font-size:11px;color:var(--ink-dim);display:block}.tm-stat strong{display:block;font-size:23px;font-weight:600;letter-spacing:-.035em;margin:7px 0;overflow-wrap:anywhere}.tm-stat small{font-size:11px;color:var(--ink-dim);line-height:1.5;display:block}
.tm-callout{padding:12px 14px;border-radius:12px;background:var(--surface-2);font-size:12px;line-height:1.65;margin:12px 0;color:var(--ink-dim)}.tm-callout strong{color:var(--ink)}
#tm-dialog.tm-dialog{--tm-dialog-surface:#f7fbff;box-sizing:border-box;width:min(620px,calc(100vw - 28px));max-height:calc(100dvh - 36px);border:0;border-radius:24px;background:var(--tm-dialog-surface);color:var(--ink);padding:24px;box-shadow:0 24px 80px #0004;overflow:auto;font:inherit;overscroll-behavior:contain}
html[data-theme="dark"] #tm-dialog.tm-dialog{--tm-dialog-surface:#223042}
.tm-dialog::backdrop{background:#07152370;backdrop-filter:blur(3px)}
.tm-dialog-head{justify-content:space-between;flex-wrap:nowrap;margin-bottom:18px}.tm-dialog-head h2{font-family:var(--nova-title,inherit);font-size:21px;font-weight:600;letter-spacing:-.035em;margin:0}.tm-dialog-head .tm-btn{width:38px;flex:none}
.tm-dialog-foot{justify-content:flex-end;margin-top:20px;position:sticky;bottom:-24px;background:var(--tm-dialog-surface,#f7fbff);padding:12px 0 8px}
.tm-field{display:flex;flex-direction:column;gap:7px;margin-bottom:14px;font-size:12px;color:var(--ink-dim);min-width:0}
.tm-field input,.tm-field select,.tm-field textarea{width:100%;border:0;border-radius:12px;padding:11px 12px;background:var(--surface-2);color:var(--ink);font:inherit;font-size:14px;min-height:43px;box-sizing:border-box}
.tm-field textarea{resize:vertical;min-height:75px}.tm-field input:focus-visible,.tm-field select:focus-visible,.tm-field textarea:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.tm-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tm-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.tm-days input{text-align:center;padding:10px 3px;font-size:12px}
.tm-error{color:var(--danger);font-size:12px;line-height:1.5;margin:10px 0;white-space:pre-line}
.tm-person-row{display:flex;align-items:center;justify-content:space-between;width:100%;border:0;border-bottom:1px solid var(--border);background:transparent;color:var(--ink);padding:12px 4px;text-align:left;cursor:pointer;font:inherit;font-size:13px;gap:8px}
.tm-picker-list{max-height:340px;overflow:auto}.tm-access{margin-top:18px}
.tm-planning-filter{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0 0 16px}.tm-planning-filter .tm-btn{padding:8px 13px}.tm-planning-filter .active{background:var(--blue);color:#fff}
.tm-absence{display:flex;align-items:center;gap:10px;width:100%;border:0;border-radius:16px;background:var(--yellow-dim);color:var(--ink);padding:13px 15px;min-height:62px;text-align:left;cursor:pointer;font:inherit;margin:0}
.tm-absence .tm-row-main small{color:var(--yellow-text-on-dim);font-size:11px;display:block;margin-top:4px}.tm-absence b{font-size:13px;font-weight:600}.tm-absence svg{width:19px;height:19px;color:var(--yellow-text-on-dim);flex:none}
.tm-markers{position:absolute;bottom:6px;left:4px;right:4px;display:flex;gap:4px;justify-content:center;align-items:center;pointer-events:none}
.planning-day.tm-marked,.planning-month-day.tm-marked{position:relative;padding-bottom:22px!important;overflow:hidden}
.tm-marked .tm-markers i,.tm-marked .tm-markers em{position:static!important;display:inline-grid!important;place-items:center;min-width:7px!important;width:7px!important;height:7px!important;line-height:1!important;border-radius:50%!important;margin:0!important;padding:0!important;transform:none!important;background:var(--blue)!important;font-size:0!important}
.tm-marked .tm-markers em{background:#E69632!important}.tm-marked .tm-markers em.pending{background:transparent!important;border:1.5px solid #E69632!important}
.tm-marked .tm-markers i:not(:empty){min-width:16px!important;width:auto!important;height:16px!important;font-size:9px!important;color:#fff!important;padding:0 4px!important;border-radius:6px!important}
.tm-task-link{display:flex;align-items:center;justify-content:space-between;width:100%;padding:16px 18px;border:0;border-radius:var(--nova-radius,20px);background:var(--nova-card,var(--surface));color:var(--ink);font:inherit;text-align:left;margin-bottom:16px;cursor:pointer;gap:12px}.tm-task-link b{font-size:14px}.tm-task-link small{display:block;font-size:11px;color:var(--ink-dim);margin-top:4px}
@media(max-width:699px){
 .tm-heading h2{font-size:24px}.tm-heading{margin-bottom:16px}.tm-card{padding:15px}.tm-toolbar{align-items:stretch}.tm-toolbar>.tm-btn{width:100%;justify-content:space-between}.tm-period{justify-content:space-between;width:100%}.tm-period strong{min-width:110px}.tm-period .tm-btn{min-width:30px;padding:7px}.tm-period-group .tm-btn{padding:6px 9px}
 .tm-table,.tm-table tbody{display:block}.tm-table thead{display:none}.tm-table tr{display:grid;grid-template-columns:1fr 1fr;gap:10px 8px;border-bottom:1px solid var(--border);padding:14px 0;position:relative}.tm-table tr:last-child{border-bottom:0}.tm-table td{display:block;border:0;padding:0;font-size:13px}.tm-table td:first-child{grid-column:1/-1;padding-right:70px}.tm-table td:last-child{position:absolute;right:0;top:13px}.tm-table td[data-label]::before{content:attr(data-label);display:block;font-size:10px;color:var(--ink-dim);margin-bottom:5px}
 .tm-stats{grid-template-columns:1fr 1fr;gap:10px}.tm-stat{padding:15px}.tm-stat:first-child{grid-column:1/-1}.tm-stat strong{font-size:23px}.tm-tabs{width:100%}.tm-tab{flex:1;padding-inline:8px}.tm-days{grid-template-columns:repeat(4,minmax(0,1fr))}.tm-dialog{padding:20px}.tm-dialog-foot{bottom:-20px}.tm-row>.tm-btn{padding:8px 10px;font-size:11px}
}
@media(max-width:699px){html:has(#employee-panel-space) .employee-tab{font-size:9px;padding-inline:3px}}
@media(max-width:420px){
 .tm-period{display:grid;grid-template-columns:auto 28px minmax(0,1fr) 28px;gap:4px}
 .tm-period strong{min-width:0;font-size:11px}.tm-period .tm-btn{min-width:0;padding-inline:5px}
 .tm-period-group .tm-btn{padding-inline:7px}.tm-period>.tm-btn:last-child{grid-column:1/-1;justify-self:end}
 .tm-stat strong{font-size:18px;overflow-wrap:normal;word-break:normal;letter-spacing:-.025em}
 .tm-stat{padding:14px 12px}
}
@media(prefers-reduced-motion:reduce){.tm-root *,.tm-dialog *{scroll-behavior:auto}}

/* Compact admin team on phones; desktop table and employee space keep their layout. */
@media(max-width:699px){
 :is(#tm-team,#tm-hours) .tm-desktop-copy{display:none}
 :is(#tm-team,#tm-hours) .tm-mobile-copy{display:inline}
 :is(#tm-team,#tm-hours) .tm-heading{flex-wrap:nowrap;gap:8px;margin-bottom:10px}
 :is(#tm-team,#tm-hours) .tm-heading h2{font-size:24px;white-space:nowrap}
 :is(#tm-team,#tm-hours) .tm-heading p{display:none}
 :is(#tm-team,#tm-hours) .tm-heading>.tm-btn{font-size:11px;min-height:40px;padding:8px 10px}
 :is(#tm-team,#tm-hours) .tm-tabs{margin-bottom:10px;padding:3px;box-sizing:border-box}
 :is(#tm-team,#tm-hours) .tm-tab{min-height:40px;padding:8px 10px;font-size:12px}
 :is(#tm-team,#tm-hours) .tm-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 8px;margin-bottom:10px;align-items:center}
 :is(#tm-team,#tm-hours) .tm-toolbar>.tm-btn{grid-column:1;grid-row:1;width:auto;min-width:0;justify-content:space-between;padding:8px 10px;font-size:12px;gap:6px}
 :is(#tm-team,#tm-hours) .tm-toolbar>[data-team-action="picker"]>.ui-icon{display:none}
 :is(#tm-team,#tm-hours) .tm-picker-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
 :is(#tm-team,#tm-hours) .tm-period{display:contents}
 :is(#tm-team,#tm-hours) .tm-period-group{grid-column:2;grid-row:1}
 :is(#tm-team,#tm-hours) .tm-period-group .tm-btn{min-height:34px;padding:6px 9px;font-size:11px}
 :is(#tm-team,#tm-hours) .tm-date-nav{display:grid;grid-column:1/-1;grid-row:2;grid-template-columns:36px minmax(0,1fr) 36px;gap:3px;padding-right:81px;align-items:center}
 :is(#tm-team,#tm-hours) .tm-date-nav strong{min-width:0;font-size:12px;line-height:1.4}
 :is(#tm-team,#tm-hours) .tm-date-nav .tm-btn{min-height:40px;min-width:36px;font-size:20px;background:var(--nova-gradient,var(--blue));color:#fff;padding:4px}
 :is(#tm-team,#tm-hours) .tm-period>.tm-btn:last-child{grid-column:1/-1;grid-row:2;justify-self:end;min-height:40px;padding:8px 4px;font-size:11px}
 :is(#tm-team,#tm-hours) .tm-card{padding:12px 14px;margin-bottom:10px;border-radius:18px}
 :is(#tm-team,#tm-hours) .tm-subhead{margin-bottom:6px;gap:6px;flex-wrap:nowrap;min-height:34px}
 :is(#tm-team,#tm-hours) .tm-subhead h3{font-size:13px}
 :is(#tm-team,#tm-hours) .tm-subhead>.tm-btn{min-height:36px;padding:7px 9px;font-size:11px}
 :is(#tm-team,#tm-hours) .tm-cutoff{font-size:11px;line-height:1.45;margin:0 0 7px}
 :is(#tm-team,#tm-hours) .tm-table tr{gap:6px 10px;padding:11px 0}
 :is(#tm-team,#tm-hours) .tm-table td:first-child{padding-right:48px}
 :is(#tm-team,#tm-hours) .tm-table td:last-child{top:7px}
 :is(#tm-team,#tm-hours) .tm-table td:last-child>.tm-btn{min-height:40px;padding:8px;font-size:12px}
 :is(#tm-team,#tm-hours) .tm-person{gap:8px}
 :is(#tm-team,#tm-hours) .tm-avatar{width:28px;height:28px;border-radius:10px;font-size:11px}
 :is(#tm-team,#tm-hours) .tm-table td[data-label]::before{font-size:11px;margin-bottom:3px}
 :is(#tm-team,#tm-hours) .tm-table small{margin-top:2px;line-height:1.4}
 :is(#tm-team,#tm-hours) .tm-table small:empty{display:none}
 :is(#tm-team,#tm-hours) .tm-table td[data-label="Validation"]{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:5px;font-size:11px}
 :is(#tm-team,#tm-hours) .tm-table td[data-label="Validation"]::before{margin:0 2px 0 0}
 :is(#tm-team,#tm-hours) .tm-table td[data-label="Validation"] small{margin:0}
 :is(#tm-team,#tm-hours) .tm-tag{font-size:11px;padding:3px 6px}
 :is(#tm-team,#tm-hours) .tm-empty{padding:5px 0 7px;text-align:left;font-size:12px;line-height:1.5}
 :is(#tm-team,#tm-hours) .tm-vacations .tm-row{padding:5px 0;gap:8px;min-height:44px}
 :is(#tm-team,#tm-hours) .tm-vacations .tm-avatar,:is(#tm-team,#tm-hours) .tm-vacation-explanation{display:none}
 :is(#tm-team,#tm-hours) .tm-vacations .tm-number{font-size:12px}
 :is(#tm-team,#tm-hours) .tm-vacations .tm-row>.tm-btn{min-height:40px;padding:8px 4px;font-size:11px}
 :is(#tm-team,#tm-hours) .tm-vacation-note{display:block;color:var(--ink-dim);font-size:11px;margin:0 0 5px;line-height:1.5}
 :is(#tm-team,#tm-hours) .tm-row-main b{font-size:12px}
 :is(#tm-team,#tm-hours) .tm-leave-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;padding:10px 0}
 :is(#tm-team,#tm-hours) .tm-leave-row>.tm-avatar{display:none}
 :is(#tm-team,#tm-hours) .tm-leave-row>.tm-row-main{grid-column:1;grid-row:1/3}
 :is(#tm-team,#tm-hours) .tm-leave-row>.tm-tag{grid-column:2;grid-row:1;justify-self:end}
 :is(#tm-team,#tm-hours) .tm-leave-row>.tm-btn{grid-column:2;grid-row:2;min-height:36px;padding:7px 9px;justify-self:end}
 :is(#tm-team,#tm-hours) .tm-task-card>h3{font-size:13px!important;margin:0 0 8px!important}
 :is(#tm-team,#tm-hours) .tm-task-card .tm-row{padding:9px 0}
 :is(#tm-team,#tm-hours) .tm-task-scope{font-size:11px;line-height:1.5;margin:9px 2px 0}
}

/* Separate personnel management from the daily time ledger. */
.tm-directory-search{display:flex;flex-direction:column;gap:7px;font-size:12px;color:var(--ink-dim);margin-bottom:8px;max-width:420px}
.tm-directory-search input{font:inherit;font-size:14px;color:var(--ink);background:var(--surface-2);border:1px solid var(--border);border-radius:12px;padding:11px 12px;width:100%;box-sizing:border-box}
.tm-directory-search input:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.tm-directory-schedule{font-size:12px;color:var(--ink-dim)}
.tm-profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}
.tm-profile-grid h3{font-size:14px;margin:0}.tm-profile-grid .tm-btn{margin-top:12px}.tm-profile-grid .tm-card{padding:15px;margin-bottom:0}
#tm-hours .tm-table th:first-child{width:20%}#tm-hours .tm-table th:last-child{width:82px}
#tm-hours .tm-table td:last-child .tm-btn{white-space:nowrap;overflow-wrap:normal}
@media(min-width:700px) and (max-width:1099px){html:has(.screen.active:not(#screen-nova-home):not(#screen-roleselect)) .admin-tabs{grid-template-columns:repeat(7,minmax(0,1fr))}}
@media(max-width:699px){
 .tm-directory-row{flex-wrap:wrap;gap:7px}.tm-directory-schedule{display:none}.tm-directory-row .tm-avatar{width:30px;height:30px}
 .tm-profile-grid{grid-template-columns:1fr}
 #tm-hours .tm-heading{flex-wrap:wrap}#tm-hours .tm-heading>.tm-inline{gap:6px}#tm-hours .tm-heading>.tm-inline .tm-btn{font-size:11px;padding:9px}
 html body .admin-tabs{display:flex;overflow-x:auto;overscroll-behavior-x:contain;gap:3px;scrollbar-width:thin}
 html body .admin-tab{flex:1 0 44px;min-width:44px;font-size:9px;padding-inline:2px}
}

.tm-cumulative-line{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;margin:12px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.tm-cumulative-line>div>span{display:block;font-size:12px;color:var(--ink-dim);margin-bottom:6px}.tm-cumulative-line small{display:block;font-size:11px;line-height:1.5;color:var(--ink-dim);margin-top:5px}.tm-cumulative-line .tm-number{font-size:20px}
#employee-panel-space .tm-cumulative-line{padding:15px;border:0;margin-top:14px}
.tm-cumulative-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:18px}.tm-cumulative-summary>div{padding:13px;background:var(--surface-2);border-radius:12px;min-width:0}.tm-cumulative-summary span,.tm-cumulative-summary small{display:block;font-size:11px;line-height:1.5;color:var(--ink-dim)}.tm-cumulative-summary strong{display:block;margin:8px 0;font-size:20px}.tm-cumulative-summary .tm-tag{margin:8px 0}.tm-cumulative-title{font-size:14px;margin:18px 0 5px}.tm-cumulative-months{max-height:290px;overflow:auto}
@media(max-width:699px){.tm-cumulative-summary{grid-template-columns:1fr 1fr}.tm-cumulative-summary>div:last-child{grid-column:1/-1}.tm-cumulative-line{gap:8px}.tm-cumulative-line>.tm-btn{font-size:11px;flex-shrink:0}.tm-cumulative-line .tm-number{font-size:18px}}

.tm-opening-line{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0;padding:12px 0;border-bottom:1px solid var(--line,#dbe6ed)}.tm-opening-line b{font-size:13px}.tm-opening-line small{display:block;font-size:12px;line-height:1.5;margin-top:4px;color:var(--muted)}.tm-opening-line .tm-btn{flex-shrink:0}

/* Quiet navigation on the admin hours page; generous invisible hit areas. */
#tm-hours .tm-date-nav{display:flex;align-items:center;gap:5px;padding:0}
html body #tm-hours .tm-date-nav .tm-btn{background:transparent;color:var(--blue);border:0;box-shadow:none;min-width:44px;min-height:44px;padding:4px;font-size:28px;line-height:1;filter:none}
html body #tm-hours .tm-date-nav .tm-btn:hover{background:transparent;color:var(--blue);opacity:.75}
html body #tm-hours .tm-date-nav .tm-btn:focus-visible{outline:2px solid var(--blue);outline-offset:-4px}
#tm-hours .tm-hours-mode{display:block;text-align:left;color:var(--ink-dim);font-size:12px;line-height:1.5;padding-top:12px;margin:4px 0 0}
@media(max-width:699px){#tm-hours .tm-date-nav{grid-column:1/-1;grid-row:2;justify-content:center}#tm-hours .tm-date-nav strong{min-width:135px}#tm-hours .tm-hours-mode{font-size:11px}}

/* Keep employee actions inside their own sections at every width. */
#tm-dialog .tm-profile{min-width:0}
#tm-dialog .tm-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#tm-dialog .tm-profile-card{display:flex;flex-direction:column;justify-content:space-between;gap:14px;min-width:0;box-sizing:border-box}
#tm-dialog .tm-profile-card .tm-muted{margin:6px 0 0;line-height:1.5;overflow-wrap:anywhere}
#tm-dialog .tm-profile-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#tm-dialog .tm-profile-actions .tm-btn{box-sizing:border-box;width:100%;min-width:0;min-height:52px;margin:0;padding:9px 8px;font-size:12px;line-height:1.4;white-space:normal;overflow-wrap:anywhere;text-align:center}
#tm-dialog .tm-profile-access{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;padding:14px 2px 0;border-top:1px solid var(--border);min-width:0}
#tm-dialog .tm-profile-access h3{font-size:13px;margin:0}
#tm-dialog .tm-profile-access .tm-muted{margin:4px 0 0;font-size:11px}
#tm-dialog .tm-profile-access .tm-btn{min-height:44px;flex-shrink:0;font-size:12px}
#tm-dialog .tm-profile>.tm-person>div{min-width:0;overflow-wrap:anywhere}
@media(max-width:699px){#tm-dialog .tm-profile-grid{grid-template-columns:minmax(0,1fr);gap:10px;margin-top:14px}#tm-dialog .tm-profile-card{padding:14px;gap:12px}}
@media(max-width:359px){#tm-dialog .tm-profile-access{align-items:stretch;flex-direction:column;gap:8px}#tm-dialog .tm-profile-access .tm-btn{width:100%;box-sizing:border-box}}

/* Compact, readable balance actions and explanations on phone and desktop. */
.tm-balance-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;max-width:55%}
.tm-balance-actions .tm-btn{white-space:normal;min-height:44px}
.tm-hours-explanation{margin:16px 0;font-size:12px;line-height:1.6;color:var(--ink-dim)}
.tm-hours-explanation summary{cursor:pointer;color:var(--blue);font-weight:600;min-height:44px;display:list-item;align-content:center;padding:8px 0;box-sizing:border-box}
.tm-hours-explanation ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 20px;padding-left:18px}
@media(max-width:699px){.tm-cumulative-line:has(.tm-balance-actions){flex-wrap:wrap}.tm-balance-actions{max-width:none;width:100%;justify-content:flex-start}.tm-balance-actions .tm-btn{flex:1;padding:9px;font-size:12px}}

/* Secondary explanations stay below the employee's working information. */
#employee-panel-space .tm-space-help{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 16px;margin-top:24px;padding:12px 0 4px;border-top:1px solid var(--border)}
#employee-panel-space .tm-space-help .tm-btn{background:transparent;color:var(--ink-dim);border:0;box-shadow:none;font-size:12px;font-weight:500;min-height:44px;padding:8px 4px}
#employee-panel-space .tm-space-help .tm-btn:hover{color:var(--blue);text-decoration:underline;text-underline-offset:4px}
#employee-panel-space .tm-space-help .tm-btn:focus-visible{outline:2px solid var(--blue);outline-offset:2px;border-radius:8px}

/* Employee color choices are isolated from action buttons and employee screens. */
.tm-color-picker{border:0;padding:0;margin:16px 0;display:grid;grid-template-columns:1fr 1fr;gap:8px}.tm-color-picker legend{font-weight:700;margin-bottom:12px}.tm-color-option{display:flex;align-items:center;gap:8px;padding:10px;border:1px solid var(--border);border-radius:12px;cursor:pointer;min-width:0}.tm-color-option:has(input:checked){border-color:#3B8FC4;box-shadow:0 0 0 1px #3B8FC4}.tm-color-option.is-used{opacity:.55;cursor:not-allowed}.tm-color-dot{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;color:white;font-size:12px;font-weight:700;flex:none}.tm-color-option b,.tm-color-option small{display:block;overflow-wrap:anywhere}.tm-color-option b{font-size:12px}.tm-color-option small{font-size:10px;color:var(--ink-dim);margin-top:3px}.tm-color-option input,.tm-color-consent input{width:auto;min-height:0;accent-color:#3B8FC4}.tm-color-consent{display:flex;align-items:center;gap:8px;font-size:13px}@media(max-width:400px){.tm-color-picker{grid-template-columns:1fr}}

/* Full-page employee profile shares the Hours workspace surfaces. */
#tm-team .tm-dossier{display:grid;gap:16px;min-width:0}
#tm-team .tm-dossier .tm-profile-grid{margin:0}
#tm-team .tm-dossier .tm-profile-access{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;background:var(--nova-card,var(--surface));border:1px solid var(--line);border-radius:16px}
#tm-team .tm-dossier .tm-profile-actions{display:flex;gap:8px;flex-wrap:wrap}
#tm-team .tm-dossier .hw-metrics{grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr))}
#tm-team .tm-dossier .hw-metric strong{overflow-wrap:anywhere;font-size:clamp(18px,2vw,26px)}
#tm-team .tm-dossier .hw-panel-head .tm-btn{margin-top:12px}
@media(max-width:699px){#tm-team .tm-dossier .tm-profile-access{align-items:flex-start;flex-wrap:wrap}#tm-team .hw-head .hw-controls{flex-wrap:wrap}}

#tm-team .td-layout{display:grid;grid-template-columns:minmax(220px,.78fr) minmax(0,2fr);align-items:start;gap:16px}
#tm-team .td-layout .tm-card{margin:0;min-width:0}
#tm-team .td-pick{background:transparent;border:0;width:100%;text-align:left;font:inherit;color:inherit;cursor:pointer;padding:10px 8px}
#tm-team .td-pick[aria-current=true]{background:var(--blue-dim);border-radius:12px}
#tm-team .td-layout .tm-avatar{display:grid;border-radius:50%}
#tm-team .td-pair{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:14px}
#tm-team .td-readout{margin:0 0 10px}
#tm-team .td-readout div{display:flex;justify-content:space-between;gap:10px;align-items:baseline;border-bottom:1px solid var(--border);padding:8px 0}
#tm-team .td-readout dt{font-size:12px;color:var(--ink-dim)}
#tm-team .td-readout dd{margin:0;text-align:right;font-size:14px;font-weight:600}
#tm-team .td-mobile{display:none}
@media(max-width:699px){#tm-team .td-layout{display:block}#tm-team .td-list{display:none}#tm-team .td-pair{grid-template-columns:1fr}#tm-team .td-mobile{display:block;margin:8px 0 16px}#tm-team .td-mobile select{width:100%;padding:10px;border:1px solid var(--border);background:var(--surface);color:var(--ink);border-radius:12px}}
