/* Team (26 Oct 2026): People A1 + card T2 · Shift teams and Departments summary cards · people search in the top bar */

.tm-up{color:var(--dk-present-ink,#16733F);font-weight:600}.tm-down{color:var(--dk-absent-ink,#A93226);font-weight:600}

.tm-att-cell{display:block;min-height:44px;max-width:100%;text-align:left;padding:4px 6px;border:1px solid transparent;background:none;border-radius:8px}
.tm-att-cell:hover{background:var(--green-soft)}
.tm-att-line{display:flex;gap:8px;justify-content:space-between;align-items:baseline}
.tm-att-line small{color:var(--accent);font-size:11px;white-space:nowrap}
.tm-att-legend{display:flex;gap:4px 12px;flex-wrap:wrap;color:var(--ink-3);font-size:11px}
.tm-att-legend span{display:inline-flex;gap:4px;align-items:center}
.tm-att-legend i{width:8px;height:8px;border-radius:2px}
.tm-att-cell i.present,.tm-att-legend i.present{background:#1B8A4C}
.tm-att-cell i.half,.tm-att-legend i.half{background:#B7791F}
.tm-att-cell i.absent,.tm-att-legend i.absent{background:#C0392B}
.tm-att-cell i.leave,.tm-att-legend i.leave{background:#0E7C86}
.tm-att-cell i.pending,.tm-att-legend i.pending{background:#454F96}
.tm-att-cell i.weekoff,.tm-att-legend i.weekoff,.tm-att-cell i.holiday,.tm-att-legend i.holiday{background:var(--dk-tone-bg,#E3E6EE)}
.tm-att-cell i.holiday,.tm-att-legend i.holiday,.tm-att-cell i.unmarked,.tm-att-legend i.unmarked{box-shadow:inset 0 0 0 1px var(--ink-3)}
.tm-att-cell i.unmarked,.tm-att-legend i.unmarked,.tm-att-cell i.outside{background:transparent}
.tm-att-cell i.outside{align-self:center;border-top:1px dashed var(--line);height:0;border-radius:0}
.tm-att-detail p,.tm-att-detail h3{margin:0 0 8px}
.tm-att-detail p>strong{font-size:25px}
.tm-att-detail h3{font-size:15px}
.tm-att-detail dl{display:grid;grid-template-columns:minmax(0,1fr) auto;margin:0 0 12px}
.tm-att-detail dt,.tm-att-detail dd{margin:0;padding:7px 0;border-bottom:1px solid var(--line-2)}
.tm-att-detail dt small{display:block;color:var(--ink-3)}
.tm-att-detail dd{text-align:right}

/* the list */
.tm-list{padding:18px 20px}
.tm-filters{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.tm-filters-l,.tm-filters-r{display:flex;gap:10px;align-items:center;flex-wrap:wrap;min-width:0}
.tm-filters .search{width:220px;max-width:100%}
.tm-filters-r{margin-left:auto}
.tm-filters .ctrl,.tm-filters .select-trigger{min-height:40px}
.tm-chips{display:contents}
.tm-chip{display:inline-flex;align-items:center;gap:4px;padding:4px 4px 4px 11px;border-radius:999px;background:var(--green-soft);color:var(--dk-tone-ink,#3F4585);font-size:12px;font-weight:600;white-space:nowrap}
.tm-chip button{border:0;background:none;color:inherit;font:600 15px/1 var(--font-body);width:26px;height:26px;border-radius:50%;cursor:pointer}
.tm-chip button:hover{background:rgba(90,97,168,.16)}
.tm-clear{border:0;background:none;padding:6px 2px;color:var(--dk-tone-ink,#3F4585);font:600 13px var(--font-body);cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.tm-list .pick-bar{margin:12px 0 0}
.tm-table{margin-top:12px}
.tm-role{display:flex;flex-direction:column}.tm-shift>span{white-space:nowrap}.tm-role small,.tm-pay small{font-size:12px;color:var(--ink-3)}
.tm-pay{display:flex;flex-direction:column;align-items:flex-end}
.tm-muted{color:var(--ink-3)}
.tm-acts{display:flex;align-items:center;justify-content:flex-end;gap:6px}
.tm-chev{color:var(--ink-3);font-size:18px;width:12px;text-align:right}
.tm-more-wrap{position:relative}
.tm-more{width:36px;padding:0!important;font-size:18px!important;line-height:1}
.tm-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:30;width:210px;padding:6px;border-radius:12px;background:var(--glass-solid,#fff);backdrop-filter:var(--glass-blur);-webkit-backdrop-filter:var(--glass-blur);border:1px solid var(--line);box-shadow:0 14px 34px rgba(40,46,90,.18);display:flex;flex-direction:column}
.tm-menu[hidden]{display:none}
.tm-menu button{border:0;background:none;color:inherit;text-align:left;font:500 14px var(--font-body);padding:10px 12px;border-radius:8px;cursor:pointer;min-height:40px}
.tm-menu button:hover,.tm-menu button:focus-visible{background:var(--green-soft)}
.tm-menu button.danger{color:var(--dk-absent-ink,#A93226);border-top:1px solid var(--line-2);border-radius:0 0 8px 8px}
/* ticks and ⋯ show on hover or focus (owner: the select bar showed all the time); always on touch screens */
@media (hover:hover){
  .tm-table .person-pick>input[type="checkbox"]{opacity:0;transition:opacity .12s}
  .tm-table tr:hover .person-pick>input,.tm-table .person-pick>input:focus-visible,.tm-table .person-pick>input:checked,.tm-table.tm-picking .person-pick>input{opacity:1}
  .tm-table .tm-more{opacity:0;transition:opacity .12s}
  .tm-table tr:hover .tm-more,.tm-table tr.tm-menu-open .tm-more,.tm-table .tm-more:focus-visible{opacity:1}
}

/* Shift teams and Departments: one summary card under the title */
.tm-sum{display:grid;grid-template-columns:minmax(0,1.3fr) repeat(3,minmax(0,1fr));gap:14px;align-items:stretch;padding:16px 18px}
.tm-sum.three{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) minmax(0,1fr)}
.tm-sum-main{padding:4px 6px;min-width:0}
.tm-sum-lbl{font-size:13px;color:var(--ink-3)}
.tm-sum-big{font:800 34px/1.1 Manrope,var(--font-body);margin-top:4px}.tm-sum-big small{font-size:18px;color:var(--ink-3);font-weight:700}
.tm-sum-note{font-size:12px;color:var(--ink-3);margin-top:6px}
.tm-box{display:flex;flex-direction:column;gap:2px;padding:12px 14px;border-radius:16px;background:var(--glass-2,rgba(255,255,255,.5));border:1px solid var(--line-2);min-width:0;text-align:left;font:inherit;color:inherit}
button.tm-box{cursor:pointer}button.tm-box:hover{border-color:var(--dk-tone-line,#8F96D6)}
.tm-box .k{font-size:13px;color:var(--ink-3)}
.tm-box .v{font-size:18px;font-weight:700;margin-top:2px;overflow-wrap:anywhere}
.tm-box .v.num{font:800 22px Manrope,var(--font-body)}
.tm-box small{font-size:12px;color:var(--ink-3);line-height:1.4}
.tm-box.warn{background:var(--dk-half-soft,#FBF3E3);border-color:color-mix(in srgb,#B7791F 30%,transparent)}
.tm-box.warn .k,.tm-box.warn small{color:var(--dk-half-ink,#7A4E0E)}.tm-box.warn .k{font-weight:600}
.tm-box.bad{background:var(--dk-absent-soft,#FBEDE8);border-color:color-mix(in srgb,#C0392B 28%,transparent)}
.tm-box.bad .k,.tm-box.bad small{color:var(--dk-absent-ink,#8A3624)}.tm-box.bad .k{font-weight:600}
.tm-box .v.sm{font-size:15px;font-weight:600}
.tm-posts{display:flex;gap:4px;margin-top:10px}
.tm-posts i{flex:1;height:10px;border-radius:3px;box-sizing:border-box}
.tm-posts .p-day{background:#E0A03A}.tm-posts .p-night{background:var(--dk-tone-line,#454F96)}
.tm-posts .p-due{border:2px solid var(--line)}.tm-posts .p-gap{border:2px dashed var(--dk-absent-ink,#C0392B)}
.tm-split{display:flex;gap:3px;height:18px;border-radius:6px;overflow:hidden;margin-top:10px}
.tm-split i{min-width:3px}
.tm-legend{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:8px;font-size:12px;color:var(--ink-2)}
.tm-legend span{display:inline-flex;align-items:center;gap:5px}.tm-legend i{width:8px;height:8px;border-radius:2px}

/* Departments: a card per department */
.dp-tools{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.dp-tools>div{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.dp-tools .search{width:240px;max-width:100%}
.dp-cards{--fit-gap:14px}
.dp-card{display:flex;flex-direction:column;gap:12px;padding:16px 18px;border-radius:20px;background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow);text-align:left;font:inherit;color:inherit;cursor:pointer;min-width:0;margin:0}
.dp-card:hover{border-color:var(--dk-tone-line,#8F96D6)}
.dp-card.odd{border-color:color-mix(in srgb,#B7791F 45%,transparent)}
.dp-top{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.dp-top b{display:inline-flex;align-items:center;gap:8px;font-size:17px;font-weight:600;min-width:0;overflow-wrap:anywhere}
.dp-top b i{width:10px;height:10px;border-radius:3px;flex:none}
.dp-top span{font-size:13px;color:var(--ink-3);white-space:nowrap}
.dp-today{display:flex;flex-direction:column;gap:5px}
.dp-bar{display:flex;height:10px;border-radius:4px;overflow:hidden;background:var(--line-2)}
.dp-bar .in{background:var(--dk-present-ink,#1B8A4C)}.dp-bar .notin{background:#E8A49A}.dp-bar .away{background:#7FB8C9}
.dp-today small{font-size:12px;color:var(--ink-2)}
.dp-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px 12px;border-radius:12px;background:var(--glass-2,rgba(255,255,255,.5));border:1px solid var(--line-2)}
.dp-facts span{font-size:11px;color:var(--ink-3);display:block}.dp-facts b{font-size:14px;font-weight:600;overflow-wrap:anywhere}
.dp-tags{display:flex;gap:6px;flex-wrap:wrap;align-items:center;font-size:12px}
.dp-tag{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:7px;background:var(--line-2);color:var(--ink-2)}
.dp-like{color:var(--dk-half-ink,#7A4E0E);font-weight:600}
.dp-people{display:flex;flex-direction:column;gap:2px;max-height:340px;overflow:auto}
.dp-people .member-link{display:flex;justify-content:space-between;gap:10px;width:100%;padding:8px 10px;border-radius:10px;text-align:left}
.dp-people .member-link:hover{background:var(--green-soft)}
.dp-people small{color:var(--ink-3);font-size:12px}
.dp-win-acts{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}

/* people search in the top bar */
.ps-box{position:relative;display:flex;align-items:center}
.ps-field{position:relative;display:flex;align-items:center}
.ps-field .ps-glass{position:absolute;left:11px;color:var(--ink-3);pointer-events:none}
.ps-input{width:clamp(180px,22vw,320px);padding-left:34px!important;padding-right:30px!important}
.ps-input::-webkit-search-cancel-button{display:none}
.ps-field kbd{position:absolute;right:9px}
.ps-box kbd{font:600 11px var(--font-body);padding:1px 6px;border-radius:5px;border:1px solid var(--line);background:var(--card);color:var(--ink-2)}
.ps-box.open .ps-field kbd,.ps-input:focus+kbd{display:none}
.ps-open{display:none;width:35px;min-height:35px;align-items:center;justify-content:center;color:var(--ink-2)}
.ps-pop{position:absolute;right:0;top:calc(100% + 8px);z-index:60;width:min(520px,calc(100vw - 32px));max-height:min(70vh,560px);overflow:auto;padding:8px;border-radius:16px;background:var(--glass-solid,#fff);backdrop-filter:var(--glass-blur);-webkit-backdrop-filter:var(--glass-blur);border:1px solid var(--line);box-shadow:0 24px 60px rgba(30,34,70,.22)}
.ps-pop[hidden]{display:none}
.ps-cap{font-size:11px;font-weight:700;letter-spacing:.08em;color:var(--ink-3);padding:8px 12px 4px}
.ps-cap+.ps-cap,.ps-quick+.ps-cap,.ps-row+.ps-cap{border-top:1px solid var(--line-2);margin-top:4px;padding-top:10px}
.ps-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:12px;align-items:center;padding:8px 12px;border-radius:10px;cursor:pointer}
.ps-row:hover,.ps-row.on{background:var(--green-soft)}
.ps-row .avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:700}
.ps-who{min-width:0}.ps-who b{display:block;font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ps-who small{display:block;font-size:12px;color:var(--ink-3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ps-row.page small{font-size:12px;color:var(--ink-3)}
.ps-pg{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:var(--line-2);color:var(--ink-2);font-weight:700}
.ps-quick{display:flex;gap:6px;align-items:center;flex-wrap:wrap;padding:4px 12px 10px 58px;font-size:12px;color:var(--ink-3)}
.ps-quick .btn.sm{min-height:30px;padding:4px 10px}
.ps-note{margin:0;padding:10px 12px;font-size:13px;color:var(--ink-3)}
.ps-keys{display:flex;gap:14px;flex-wrap:wrap;padding:10px 12px 6px;border-top:1px solid var(--line-2);margin-top:4px;font-size:12px;color:var(--ink-3)}
.ps-keys .ps-any{margin-left:auto}
@media (hover:none){.ps-keys{display:none}.ps-field kbd{display:none}}

@container view (max-width:900px){
  .tm-sum,.tm-sum.three{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tm-sum-main{grid-column:1/-1}
}
@container view (max-width:520px){
  .tm-sum,.tm-sum.three{grid-template-columns:minmax(0,1fr)}
  .tm-filters .search{width:100%}
  .tm-filters-l{width:100%}
}
@media (max-width:780px){
  .ps-open{display:inline-flex}
  .ps-field{display:none}
  .ps-box.expanded .ps-field{display:flex;position:fixed;left:16px;right:16px;top:12px;z-index:61}
  .ps-box.expanded .ps-input{width:100%;min-height:44px;box-shadow:0 10px 30px rgba(30,34,70,.25)}
  .ps-box.expanded .ps-pop{position:fixed;left:16px;right:16px;top:64px;width:auto}
}
/* phone cards (the shared table turns rows into cards): ⋯ and › sit in the card's top corner, not on a line of their own */
@media (max-width:640px){
  .tm-table .request-table .t tr{position:relative}
  .tm-table .request-table .t td.cell-actions{position:absolute;top:14px;right:0;width:auto;padding:0!important}
  .tm-table .request-table .t td.cell-actions>.tm-acts{width:auto;gap:4px}
  .tm-table .request-table .t td.cell-actions .tm-more{opacity:1;flex:none;min-height:36px}
  .tm-table .request-table .t td:first-child{padding-right:70px!important}
}
@media (max-width:780px){
  .ps-box.expanded::before{content:'';position:fixed;inset:0;z-index:60;background:rgba(20,24,40,.35)}
  .ps-box.expanded .ps-pop{z-index:62}
}

/* Attendance pages — Went out, Selfie checks, Live map, Gate (26 Oct): Team's order. Title + one line (a "How it works"
   link opens the longer note), one summary card that says each number once, one filter row, then the list. */
.at-sum{display:grid;grid-template-columns:repeat(var(--n,3),minmax(0,1fr));gap:14px;padding:16px 18px}
.at-sum>div{min-width:0;padding:2px 6px}
.at-sum .k{font-size:13px;color:var(--ink-3)}
.at-sum .v{font:800 24px/1.25 Manrope,var(--font-body);margin-top:2px;white-space:nowrap}
.at-sum .v.warn{color:var(--dk-half-ink,#8A5A12)}.at-sum .v.bad{color:var(--dk-absent-ink,#A93226)}.at-sum .v.ok{color:var(--dk-present-ink,#16733F)}
.at-sum small{display:block;font-size:12px;color:var(--ink-2);margin-top:2px;line-height:1.45;overflow-wrap:anywhere}
.at-how{border:0;background:none;padding:0;color:var(--dk-tone-ink,#3F4585);font:500 13px var(--font-body);cursor:pointer;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.at-how:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:3px}
.page-intro p.at-how-note{margin-top:6px;color:var(--ink-3)}
.at-list{padding:18px 20px}
.at-list .table-filters{margin-bottom:12px;padding-bottom:0}
.at-list .table-filters .search{width:220px}
.at-hint{margin:0 0 10px;font-size:12px;color:var(--ink-3)}
@container view (max-width:640px){
  .at-sum{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px;padding:14px}
  .at-sum[style*="--n:3"]{grid-template-columns:repeat(3,minmax(0,1fr))}
  .at-sum>div{padding:0 2px}
  .at-sum .v{font-size:20px;white-space:normal}
  .at-list{padding:14px}
}

/* Every table's filter row fills the width at one height, and pills stay separate (owner, 5 Nov 2026: "all tables look similar").
   Search takes what is left, boxes share the rest, pills keep their own size, and the count or download ends the row. */
.table-filters,.tm-filters{gap:8px}
.tm-filters-l,.tm-filters-r{display:contents}
.table-filters .search,.tm-filters .search{flex:2 1 200px;width:auto;max-width:none;min-width:160px;height:40px;min-height:40px;box-sizing:border-box}
.table-filters>select.ctrl,.tm-filters select.ctrl,.table-filters>.themed-select,.tm-filters .themed-select{flex:1 1 130px;max-width:none;min-width:0}
.table-filters>select.ctrl,.tm-filters select.ctrl,.table-filters .select-trigger,.tm-filters .select-trigger{height:40px;min-height:40px;width:100%;box-sizing:border-box}
.table-filters .filter-pills,.tm-filters .filter-pills{flex:0 1 auto}
.table-filters .filter-pill,.tm-filters .filter-pill{min-height:40px;padding:0 14px;white-space:nowrap}
.table-filters>.btn,.tm-filters .btn{min-height:40px}
.filter-count{white-space:nowrap}
@container view (max-width:1040px){.table-filters .filter-pills,.tm-filters .filter-pills{order:9;flex:1 1 100%}}
@media(max-width:780px){.table-filters .search,.tm-filters .search{flex-basis:100%}}

/* No big page title (owner, 5 Nov 2026, version B). The tabs and the menu say where you are; buttons sit beside the tabs. */
.page-intro:not(.keep),.page-intro:not(.keep)>div:first-child{display:contents}
.page-intro:not(.keep) h2{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.page-intro:not(.keep) .eyebrow,.page-intro:not(.keep) p:not(.at-how-note){display:none}
.page-intro .at-how-note{grid-column:1/-1;margin:0;max-width:none}
.page-intro:not(.keep) .intro-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px}
.page-intro:not(.keep) .intro-actions:empty{display:none}
/* the way back sits tight above what it belongs to (owner, 5 Nov 2026: "a lot of empty space between tabs and the small heading") */
.page-back{justify-self:start;margin-bottom:-8px;font-size:14px;color:var(--ink-2);text-decoration:none}.page-back:hover{color:var(--accent)}
.page-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;min-width:0}
.page-bar .intro-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto}
.page-intro.keep{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 16px;padding:0}
.page-intro.keep .eyebrow{display:none}
body:not(.auth-screen) .page-intro.keep h2{font-size:17px;font-weight:600;letter-spacing:0;line-height:1.3;margin:0}
.page-intro.keep p{font-size:13px;margin:2px 0 0}
.pr-state{margin:0 0 10px;font-size:13px;color:var(--ink-2)}
/* phones: the tabs keep a full row of their own, and Customise drops to its own line in the top bar */
@container view (max-width:700px){.page-bar .ui-sections{flex:1 1 100%;width:100%}.page-bar .intro-actions{flex:1 1 100%}}
@media(max-width:780px){#filters:has(#ov-customise){flex-wrap:wrap;justify-content:flex-end;height:auto}}
/* Phone tabs (owner, 5 Nov 2026, Tabs 2): slightly tighter, one row when they fit, and each row fills the width */
@media(max-width:640px){.ui-sections{gap:3px}.ui-sections>.ui-section{flex:1 1 auto;padding:10px 7px;font-size:13px;gap:5px}}
.ui-sections.fit-measure{flex-wrap:nowrap;width:max-content}.ui-sections.fit-measure>.ui-section{flex:none}
/* wrapped tabs: a shorter last row fills the width too */
.ui-sections.fit-switch{display:flex;flex-wrap:wrap}.ui-sections.fit-switch>.ui-section{flex:1 1 calc(100% / var(--cols,2) - 8px)}
/* Team › Roles (14 Nov 2026): the description reads as two quiet lines in the table; who gets it as small name tags */
.rl-text{margin:0;max-width:62ch;color:var(--ink-2);font-size:14px;line-height:1.45;white-space:pre-line;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.rl-add{color:var(--dk-tone-ink,#3F4585);font-weight:600;font-size:13px}
.rl-people{display:flex;flex-wrap:wrap;gap:6px;max-height:132px;overflow:auto;margin-top:4px}
/* AI draft in a role's window (owner pick A, 17 Nov 2026) */
.fld.rl-ai-row{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:-6px;text-align:left}.fld.rl-ai-row .detail-hint{margin:0}
.rl-ai-btn{display:inline-flex;align-items:center;gap:6px;color:var(--dk-tone-ink,#3F4585);background:var(--green-soft);border-color:transparent;font-weight:600}
.rl-ai{border-radius:16px;padding:14px 16px;background:var(--glass-solid,#fff);border:1.5px solid rgba(102,110,184,.45);box-shadow:0 0 0 4px rgba(102,110,184,.08);display:flex;flex-direction:column;gap:10px}
.rl-ai[hidden]{display:none}
.rl-ai-head,.rl-ai-wait{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px;color:var(--ink-3)}
.rl-ai-tag{font-size:11px;font-weight:700;letter-spacing:.06em;color:#fff;background:#5A61A8;border-radius:6px;padding:3px 7px}
.rl-ai-text{margin:0;font-size:15px;line-height:1.6;white-space:pre-wrap;color:var(--ink)}
.rl-ai-acts{display:flex;gap:8px;flex-wrap:wrap;border-top:1px solid var(--line-2);padding-top:10px}
[data-theme="dark"] .rl-ai{border-color:var(--accent);box-shadow:none}[data-theme="dark"] .rl-ai-tag{background:var(--accent);color:#151824}
.rl-person{display:inline-flex;align-items:center;gap:5px;padding:5px 10px;border-radius:999px;background:var(--green-soft);color:var(--dk-tone-ink,#3F4585);font-size:12px;font-weight:600;white-space:nowrap}
.rl-person i{font-style:normal;opacity:.7}
/* the role's words inside a person's form and card */
.rl-from{margin:0 0 8px;padding:10px 12px;border-radius:10px;background:var(--green-soft);font-size:13px;line-height:1.45;color:var(--ink-2)}
.rl-from b{display:block;color:var(--dk-tone-ink,#3F4585);font-size:12px;font-weight:600;margin-bottom:2px}
.rl-from span{white-space:pre-line}
@media (max-width:640px){.tm-table .request-table .t td:has(>.rl-text),.tm-table .request-table .t td:has(>.rl-add){grid-column:1/-1}.rl-text{-webkit-line-clamp:3}}
/* Roles and responsibilities (19 Nov 2026) */
.rr-sum{display:flex;flex-direction:column;gap:2px}.rr-sum small{color:var(--ink-3);font-size:12px}
.rr-read{display:flex;flex-direction:column;gap:5px;min-width:150px}.rr-read small{color:var(--ink-3);font-size:12px}
.rr-bar{display:flex;height:6px;border-radius:999px;background:var(--line-2);overflow:hidden}.rr-bar i{display:block;height:100%}.rr-bar i.c{background:var(--s-present)}.rr-bar i.r{background:var(--s-leave)}
.rr-sections{display:flex;flex-direction:column;gap:18px;text-align:left}
.rr-sec h4{margin:0 0 2px;font-size:14px;font-weight:650;color:var(--ink)}.rr-sec .detail-hint{margin:0 0 8px}
.rr-rows{display:flex;flex-direction:column;gap:8px;margin-bottom:8px}.rr-rows:empty{display:none}
.rr-row{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}.rr-row.two{grid-template-columns:1fr minmax(110px,170px) auto}
.rr-del{min-width:36px;padding:0}
.rr-reads{text-align:left}
.rr-scroll{max-height:260px;overflow:auto;border:1px solid var(--line-2);border-radius:12px}
.rr-table{width:100%;border-collapse:separate;border-spacing:0;font-size:13px}
.rr-table th{position:sticky;top:0;z-index:1;background:var(--table-solid);text-align:left;font-size:12px;font-weight:600;color:var(--ink-3);padding:8px 12px;border-bottom:1px solid var(--line-2);white-space:nowrap}
.rr-table td{padding:9px 12px;border-bottom:1px solid var(--line-2);vertical-align:middle}.rr-table tr:last-child td{border-bottom:0}
.rr-table td small{display:block;color:var(--ink-3);font-size:12px}.rr-table td.r{text-align:right}.rr-when,.rr-head{color:var(--ink-2)}
@media (max-width:640px){.rr-scroll{max-height:none;overflow:visible}.rr-row.two{grid-template-columns:1fr auto}.rr-row.two .rr-target{grid-column:1;grid-row:2}.rr-row.two .rr-del{grid-row:1;grid-column:2}.rr-table thead{display:none}.rr-table,.rr-table tbody{display:block}.rr-table tr{display:grid;grid-template-columns:1fr auto;gap:2px 10px;padding:10px 12px;border-bottom:1px solid var(--line-2)}.rr-table tr:last-child{border-bottom:0}.rr-table td{padding:0;border:0}.rr-table tr{position:relative;padding-left:32px}.rr-table td.t-serial{position:absolute;left:9px;top:11px}.rr-table td:nth-child(2){grid-column:1}.rr-table td:nth-child(3){grid-column:2;grid-row:1;text-align:right}.rr-table td:nth-child(4){grid-column:1/-1}.rr-table td.rr-head{grid-column:1/-1;font-size:12px}.rr-table td.rr-head::before{content:'Head: ';color:var(--ink-3)}.rr-table td.r{grid-column:1/-1;text-align:left;margin-top:6px}.rr-table td.r:empty{display:none}.rr-when:empty{display:none}}

/* ─── Table headers stay put while you scroll, everywhere (owner, 20 + 21 Nov 2026: "asked many times").
   The page scrolls, so a table's box must not be a scroll container: a header then sticks under the top bar
   (--sticky-top, measured in admin-ux.js). Only a table wider than its card gets its own scroll box, and there
   the header sticks to the top of that box. In a window (modal) the header sticks to the window's top. ─── */
.tbl-scroll{overflow:visible;max-height:none}
table.t thead th{position:sticky;top:var(--sticky-top,var(--topbar-h));z-index:3;background:var(--table-solid);box-shadow:0 1px 0 var(--line-2);backdrop-filter:none}
.tbl-scroll.can-scroll{overflow:auto;max-height:76vh;overscroll-behavior:contain}
.tbl-scroll.can-scroll table.t thead th,.modal-panel table.t thead th{top:0}
.request-table .tbl-scroll:not(.can-scroll){overflow:visible;max-height:none}
.modal-panel .tbl-scroll.can-scroll,.modal-panel .record-scroll{max-height:min(60dvh,480px)}
.record-scroll{overflow:auto;max-height:72dvh}
.record-scroll thead th{position:sticky;top:0;z-index:3;background:#f9f9fd}
:root[data-theme="dark"] .record-scroll thead th{background:#1e2333}
.record-scroll .t-serial,.rr-table .t-serial{text-align:right;white-space:nowrap;font-size:11px;color:var(--ink-3);font-variant-numeric:tabular-nums}
@media(max-width:640px){.request-table .tbl-scroll.can-scroll{overflow:visible;max-height:none}}
/* the sticky header row is solid, so rows never show through it (glass cards are see-through) */
table.t thead th{background:var(--table-solid)!important}


/* People table: department bands, each figure under its own column heading (21 Nov 2026) */
table.t tr.t-group-cells>td{vertical-align:top;padding-top:12px;padding-bottom:12px}
.tpt-dept.tm-band{padding:0}
.tm-bslot{display:flex;flex-direction:column;gap:1px;min-width:0}.tm-bslot.r{align-items:flex-end;text-align:right}
.tm-blabel{font-size:10px;letter-spacing:.07em;text-transform:uppercase;color:var(--ink-3);font-weight:600}
.tm-bslot b{font-size:14px;font-weight:650;color:var(--ink);font-variant-numeric:tabular-nums}
.tm-bslot .tpt-bar{margin:4px 0 2px;width:100%;max-width:170px}
.tm-bsub{font-size:12px;color:var(--ink-3)}
@media (max-width:640px){.request-table .t tr.t-group-cells{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 14px;padding:14px 0}.request-table .t tr.t-group-cells>td:empty{display:none}.request-table .t tr.t-group-cells>td::before{display:none}.tm-bslot.r{align-items:flex-start;text-align:left}}

/* Keep header controls reachable on narrow dashboard layouts. */
@media(max-width:640px){
  .topbar .filters{min-width:0;max-width:100%;flex-wrap:wrap}
  .tm-att-cell .tpt-strip{min-width:0}
}


/* card T2 — how the team is made up */
.tm-made{display:grid;grid-template-columns:180px minmax(0,1fr);gap:18px;align-items:center;padding:16px 18px}
.tm-made-n{display:flex;flex-direction:column;gap:2px;padding:0 6px}
.tm-made-n strong{font:800 40px/1.1 Manrope,var(--font-body)}
.tm-made-n span{font-size:14px;color:var(--ink-2)}
.tm-made-n small{font-size:12px;color:var(--ink-3);margin-top:6px;line-height:1.45}
.tm-made-money{font-size:14px;font-weight:600;color:var(--ink);margin-top:4px}.tm-made-money[hidden]{display:none}
.tm-mixes{columns:260px;column-gap:28px;min-width:0}
.tm-dept{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:3px 12px;align-items:baseline;width:100%;break-inside:avoid;padding:6px 8px;border:1px solid transparent;border-radius:8px;background:none;color:inherit;font:400 13px/1.3 var(--font-body);text-align:left;cursor:pointer}
.tm-dept:hover{background:var(--tab-hover,rgba(102,110,184,.08))}
.tm-dept:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.tm-dept.on{background:var(--green-soft);border-color:var(--accent)}
.tm-dept-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink)}
.tm-dept-n{color:var(--ink-3);font-size:12px}
.tm-dept-money{font-weight:600;color:var(--ink);white-space:nowrap}
.tm-dept-bar{grid-column:1/-1;display:block;height:4px;border-radius:2px;background:var(--line-2);overflow:hidden}
.tm-dept-bar u{display:block;height:100%;border-radius:2px;background:#7E86C4;text-decoration:none}
.tm-up{color:var(--dk-present-ink,#16733F);font-weight:600}.tm-down{color:var(--dk-absent-ink,#A93226);font-weight:600}
.detail-hint.tm-made-hint{margin:-8px 4px 0;font-size:12px}


.tm-made .tm-mixes{columns:auto;display:grid;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;align-items:start;gap:28px}
.tm-dept-stack{min-width:0}
.tm-dept-chevron{display:inline-block;margin-left:6px;font-style:normal;color:var(--ink-3)}
.tm-dept-children{margin:1px 0 5px 12px;padding-left:5px;border-left:2px solid var(--line)}
.tm-dept-child .tm-dept-name{white-space:normal}
.tm-marked-avatar{position:relative;display:inline-flex;flex:none}
.tm-marked-avatar::after,.tm-dot-key::before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--dk-present-ink,#16733F)}
.tm-marked-avatar::after{position:absolute;right:1px;bottom:1px;box-shadow:0 0 0 1.5px var(--glass-solid)}
@media(max-width:720px){.tm-made{grid-template-columns:minmax(0,1fr)}.tm-mixes{columns:auto}.tm-dept{min-height:44px}}
/* Department totals use the table headings on desktop. Mobile cards carry their own labels. */
.tm-table .t tr.t-group-cells{
  --band-fill:color-mix(in srgb,var(--accent) 19%,var(--glass-solid));
  --band-edge:color-mix(in srgb,var(--accent) 30%,var(--line-2));
}
.tm-table .t tr.t-group-cells:has(.tm-band.sub){
  --band-fill:color-mix(in srgb,var(--accent) 10%,var(--glass-solid));
  --band-edge:var(--line);
}
.tm-table .t tr.t-group-cells,.tm-table .t tr.t-group-cells>td{
  background:var(--band-fill)!important;border-color:var(--band-edge)
}
@media(min-width:641px){
 .tm-table table.t tr.t-group-cells>td{padding-top:5px;padding-bottom:5px;vertical-align:middle}
 .tm-table .tm-band .tpt-dept-name small{line-height:16px;margin-top:1px}
 .tm-table .tm-band .tpt-dept-name b{line-height:19px}
 .tm-table .t-group-cells .tm-bslot{position:relative;flex-direction:row;align-items:baseline;gap:5px;flex-wrap:wrap}
 .tm-table .t-group-cells .tm-bslot.r{justify-content:flex-end}
 .tm-table .t-group-cells .tm-blabel{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}
 .tm-table .tm-bslot[data-today] .tm-blabel{position:static;clip-path:none;width:auto;height:auto;order:1;font-size:12px;text-transform:none;letter-spacing:0;font-weight:400}
 .tm-table .tm-bslot .tm-bsub{order:2}
}
@media(max-width:640px){
 .tm-table .request-table table.t tr.t-group-cells{padding:8px 10px;row-gap:5px}
 .tm-table table.t tr.t-group-cells>td{padding-top:3px;padding-bottom:3px}
}
/* A tablet with the sidebar open can have less than 600px for the roster.
   Let the person column scroll so it cannot cover the attendance button. */
.tm-table{container:team-roster / inline-size}
@media(min-width:641px){
  @container team-roster (max-width:600px){
    .tm-table .pin-first .t .t-serial:first-child+td,
    .tm-table .pin-first .t .t-serial:first-child+th{left:auto;box-shadow:none}
  }
}
