:root {
  --blue: #1D5BD8; --blue-2: #3F82F5; --blue-deep: #1445AE;
  --ground: #F4F6FA; --card: #fff; --ink: #141A26; --muted: #69748A;
  --line: #E4E8F0; --late: #D9322B; --ok: #1E8E5A; --warn: #B7700F;
  --shadow: 0 1px 2px rgba(15,30,70,.06), 0 6px 20px rgba(15,30,70,.07);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink);
       font: 14px/1.5 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -.01em; margin: 0; }
.num, td.n, .tile b { font-variant-numeric: tabular-nums; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }
a { color: var(--blue-deep); }

header.top { position: relative; overflow: hidden; color: #fff; padding: 16px 28px;
  background: linear-gradient(120deg, var(--blue-deep), var(--blue) 45%, var(--blue-2));
  display: flex; align-items: center; gap: 16px; }
header.top::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
header.top > * { position: relative; z-index: 1; }
.mark { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.mark i { width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,.18); display: grid; place-items: center; font-style: normal; }
header.top .org { padding-left: 14px; border-left: 1px solid rgba(255,255,255,.35); opacity: .9; font-weight: 600; }
header.top .sp { flex: 1; }
header.top .me { font-weight: 600; opacity: .92; text-align: right; line-height: 1.2; }
header.top .me small { display: block; opacity: .8; font-weight: 600; text-transform: capitalize; }
@media (max-width: 720px) { header.top .org, header.top .me { display: none; } header.top { padding: 14px 16px; } }

.btn { display: inline-block; white-space: nowrap; text-decoration: none; border: 0; border-radius: 10px; padding: 9px 16px; font-weight: 700; cursor: pointer;
       background: var(--blue); color: #fff; }
.btn:hover { background: var(--blue-deep); }
.btn.ghost { background: rgba(255,255,255,.18); color: #fff; }
.btn.ghost:hover { background: rgba(255,255,255,.28); }
.btn.light { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.light:hover { background: #F2F5FB; }
.btn.danger { background: var(--late); }
.btn.small { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: default; }
input, select, textarea { border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(29,91,216,.3); border-color: var(--blue); }
textarea { width: 100%; min-height: 90px; resize: vertical; }

.shell { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 62px); }
nav.side { padding: 20px 12px; border-right: 1px solid var(--line); }
nav.side a { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 10px; color: var(--ink); text-decoration: none;
             font-weight: 600; margin-bottom: 2px; cursor: pointer; }
nav.side a:hover { background: rgba(255,255,255,.6); }
nav.side a.on { background: #fff; box-shadow: var(--shadow); color: var(--blue-deep); }
nav.side a b { font-size: 11px; background: var(--late); color: #fff; border-radius: 99px; padding: 1px 7px; }
nav.side .group { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 14px 14px 6px; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; align-content: start; }
  nav.side { display: flex; overflow-x: auto; gap: 4px; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  nav.side a { white-space: nowrap; margin: 0; }
  nav.side .group { display: none; }
}
main { padding: 24px 28px 60px; min-width: 0; }
@media (max-width: 720px) { main { padding: 18px 16px 50px; } }
.pagehead { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 18px; }
.pagehead h2 { font-size: 22px; flex: 1 1 auto; }
.pagehead p { margin: 2px 0 0; color: var(--muted); }

.card { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 18px; }
.card h3 { font-size: 15px; margin-bottom: 12px; }
.card h3 small { font-weight: 600; color: var(--muted); font-size: 13px; margin-left: 6px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 980px) { .grid2 { grid-template-columns: 1fr; } }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(124px, 1fr)); gap: 12px; margin-bottom: 18px; }
.tile { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 16px 18px; }
.tile span { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.tile b { display: block; font-size: 30px; font-weight: 800; margin-top: 4px; }
.tile em { display: block; font-style: normal; color: var(--muted); font-size: 12px; }
.tile.alert b { color: var(--late); }
.tile.good b { color: var(--ok); }

.bands { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
@media (max-width: 760px) { .bands { grid-template-columns: repeat(2, 1fr); } }
.band { border-radius: 16px; padding: 18px; color: #fff; box-shadow: var(--shadow); cursor: pointer; position: relative; overflow: hidden; }
.band b { display: block; font-size: 36px; font-weight: 800; line-height: 1.1; }
.band span { font-weight: 700; opacity: .95; }
.band small { display: block; opacity: .85; margin-top: 4px; }
.band.green { background: linear-gradient(135deg, #12804F, #1FA466); }
.band.watch { background: linear-gradient(135deg, #B26B08, #E2A23A); }
.band.intervention { background: linear-gradient(135deg, #C2491A, #E8763F); }
.band.critical { background: linear-gradient(135deg, #A11F1A, #D9322B); }

.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
td.n, th.n { text-align: right; }
tr.click { cursor: pointer; }
tr.click:hover td { background: #F1F5FD; }
tr:last-child td { border-bottom: 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.pill { display: inline-block; white-space: nowrap; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; background: #EEF1F6; color: #48536A; }
.pill.late { background: #FDE8E7; color: var(--late); }
.pill.ok { background: #E4F5EC; color: var(--ok); }
.pill.blue { background: #E6EEFC; color: var(--blue-deep); }
.pill.warn { background: #FDF0DC; color: #A3620B; }
.pill.green { background: #E4F5EC; color: var(--ok); }
.pill.watch { background: #FDF0DC; color: #A3620B; }
.pill.intervention { background: #FDE7DC; color: #B4471B; }
.pill.critical { background: #FDE8E7; color: var(--late); }
.pill.early { background: #EEF1F6; color: var(--muted); }
.trend { font-weight: 700; font-size: 12px; }
.trend.Improving { color: var(--ok); } .trend.Declining { color: var(--late); } .trend.Stable, .trend.New { color: var(--muted); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chips button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 5px 12px; font-size: 13px; font-weight: 700; cursor: pointer; color: inherit; }
.chips button.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.chips button b { font-weight: 800; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: rgba(0,0,0,.07); }
.chips button.on b { background: rgba(255,255,255,.25); }
.workpick { margin-bottom: 14px; }
.workpick:empty { display: none; }
.workpick select { width: auto; max-width: 100%; }
.days { display: inline-flex; background: #E9EDF5; border-radius: 12px; padding: 4px; gap: 2px; flex-wrap: wrap; align-items: center; }
.days button { border: 0; background: none; padding: 7px 13px; border-radius: 9px; font-weight: 700; font-size: 13px; color: var(--muted); cursor: pointer; }
.days button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.days input { border: 0; background: transparent; padding: 5px 6px; font-size: 13px; width: 132px; }

.lines { display: grid; gap: 8px; }
.line { display: flex; gap: 10px; align-items: baseline; }
.line::before { content: "•"; color: var(--warn); font-weight: 800; }
.line.good::before { content: "✓"; color: var(--ok); }
.empty { color: var(--muted); padding: 18px 4px; }
.err { color: var(--late); font-weight: 600; margin-top: 8px; }
.note { background: #F1F5FD; border-radius: 12px; padding: 12px 14px; color: #33405A; }
.note b { color: var(--ink); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row .grow { flex: 1; min-width: 180px; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 14px; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; }
.meter { height: 8px; border-radius: 99px; background: #E9EDF5; overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--ok); }
.meter.mid i { background: #D98A1F; } .meter.low i { background: var(--late); }
.steps { display: grid; gap: 8px; counter-reset: s; }
.step { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 10px; background: #F6F8FC; }
.step::before { counter-increment: s; content: counter(s); width: 22px; height: 22px; border-radius: 99px; background: #E6EEFC; color: var(--blue-deep); font-weight: 800; font-size: 12px; display: grid; place-items: center; flex: none; }
.step.now { background: #E6EEFC; box-shadow: inset 0 0 0 1px #C8D8F8; font-weight: 700; }
.step.now::before { background: var(--blue); color: #fff; }

.timeline { display: grid; gap: 0; }
.ev { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ev:last-child { border-bottom: 0; }
.ev .when { color: var(--muted); font-size: 12px; font-weight: 600; }
.ev .what b { text-transform: capitalize; }
.ev .mail { font-size: 12px; color: var(--muted); }

.center { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login { width: 100%; max-width: 400px; }
.login .brand { border-radius: 16px 16px 0 0; margin: -18px -20px 18px; position: relative; overflow: hidden; padding: 26px 22px 20px; color: #fff;
  background: linear-gradient(120deg, var(--blue-deep), var(--blue) 50%, var(--blue-2)); }
.login .brand h1 { font-size: 22px; } .login .brand p { margin: 4px 0 0; opacity: .9; }
.login label { display: block; font-weight: 700; font-size: 12px; margin: 12px 0 6px; color: var(--muted); }
.login input { width: 100%; }
.login .btn { width: 100%; margin-top: 16px; }

.overlay { position: fixed; inset: 0; background: rgba(15,22,40,.42); display: flex; justify-content: flex-end; z-index: 10; }
.drawer { background: var(--ground); width: min(760px, 100%); height: 100%; overflow-y: auto; padding: 22px 24px 60px; }
.drawer .head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.drawer .head h2 { flex: 1; font-size: 20px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 20; box-shadow: var(--shadow); }
.period { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.period label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.period input[type=date] { padding: 6px 8px; font-size: 13px; }
.tile b.word { font-size: 22px; line-height: 1.25; margin-top: 8px; }
.ev .readmail { cursor: pointer; }
.ev .mailbody { margin-top: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--ground); font-size: 13px; max-height: 320px; overflow: auto; }
/* Phones: long tables become one card per row, every value with its label. */
@media (max-width: 640px) {
  table.cards thead { display: none; }
  table.cards, table.cards tbody, table.cards tr { display: block; width: 100%; }
  table.cards tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  table.cards tr:last-child { border-bottom: 0; }
  table.cards td { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 3px 0; border: 0; text-align: right; }
  table.cards td:first-child { display: block; text-align: left; padding-bottom: 8px; }
  table.cards td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 12px; text-align: left; flex: none; }
  .card.scroll:has(table.cards) { overflow: visible; }
}
.grid2 th { white-space: normal; }

.btn.google { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.google:hover { background: #F2F5FB; }
.login .btn.google { margin-top: 4px; }
.or { display: flex; align-items: center; gap: 10px; margin: 16px 0 2px; color: var(--muted); font-size: 12px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.ok-msg { color: var(--ok); font-size: 14px; margin-top: 10px; }
.btn.google span { overflow: hidden; text-overflow: ellipsis; }

/* ── Client layout round, 10 Oct: same rules as their Zeto dashboard ── */
/* Maloo Group mark, top right on every page. */
header.top .maloo { height: 22px; width: auto; display: block; opacity: .95; margin-left: 4px; }
.login .brand .maloo { position: absolute; top: 16px; right: 18px; height: 18px; width: auto; opacity: .95; z-index: 1; }
.login .brand .mark { padding-right: 80px; }
@media (max-width: 720px) { header.top .maloo { height: 18px; } }
.bad { color: var(--late); }
h3.section { font-size: 15px; margin: 6px 2px 12px; }
h3.section small { font-weight: 600; color: var(--muted); font-size: 13px; margin-left: 6px; }
.general td b { font-size: 18px; }
.attention { margin-bottom: 0; }
.attention .card { margin-bottom: 18px; }
tr.item td:first-child b { font-weight: 700; }

/* Departments at a glance. */
.depts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-bottom: 18px; }
.dept { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 16px 18px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.dept:hover { box-shadow: 0 0 0 2px #C8D8F8, var(--shadow); }
.dept .top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.dept .top b { font-size: 15px; }
.dept .big { font-size: 26px; font-weight: 800; line-height: 1.1; margin-top: 2px; }
.dept .big .muted { font-size: 13px; font-weight: 600; }
.dept .meter { margin-top: 2px; }
.strip { display: flex; height: 8px; border-radius: 99px; overflow: hidden; gap: 2px; margin-top: 6px; background: #E9EDF5; }
.strip i, .dot { display: block; }
.strip .green, .dot.green { background: #1FA466; } .strip .watch, .dot.watch { background: #E2A23A; }
.strip .intervention, .dot.intervention { background: #E8763F; } .strip .critical, .dot.critical { background: #D9322B; }
.strip .early, .dot.early { background: #C5CCD9; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 99px; flex: none; }
.dept .foot { margin-top: auto; padding-top: 6px; border-top: 1px solid var(--line); }

/* People: one row each, collapsed by default. */
.plist { display: grid; gap: 10px; margin-bottom: 18px; }
.prow { background: #fff; border-radius: 14px; box-shadow: var(--shadow); border-left: 4px solid #C5CCD9; overflow: hidden; }
.prow.green { border-left-color: #1FA466; } .prow.watch { border-left-color: #E2A23A; }
.prow.intervention { border-left-color: #E8763F; } .prow.critical { border-left-color: #D9322B; }
.prow summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(150px, 1.2fr) minmax(0, 2fr) auto; gap: 16px; align-items: center; padding: 12px 16px; }
.prow summary::-webkit-details-marker { display: none; }
.prow summary:hover { background: #F7F9FD; }
.prow .who { display: flex; flex-direction: column; min-width: 0; }
.prow .who b, .prow .who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow .bars { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; min-width: 0; }
.prow .b1 { display: grid; grid-template-columns: auto auto; gap: 0 8px; align-items: baseline; min-width: 150px; flex: 1 1 150px; }
.prow .b1 .meter { grid-column: 1 / -1; margin-top: 4px; }
.mini { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #EEF1F6; color: #48536A; white-space: nowrap; }
.mini.bad { background: #FDE8E7; color: var(--late); }
.prow .st { display: flex; align-items: center; gap: 10px; justify-self: end; }
.chev { width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; margin-top: -4px; }
.prow[open] .chev { transform: rotate(-135deg); margin-top: 4px; }
.pbody { padding: 4px 16px 16px; border-top: 1px solid var(--line); }
.pbody > p { margin-top: 12px !important; }
.mtiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 12px; }
.mtiles div { background: var(--ground); border-radius: 10px; padding: 10px 12px; }
.mtiles span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.mtiles b { display: block; font-size: 20px; font-weight: 800; }
.mtiles b.word { font-size: 14px; margin-top: 4px; }
@media (max-width: 640px) {
  .prow summary { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; }
  .prow .bars { grid-column: 1 / -1; grid-row: 2; }
  .prow .st { grid-column: 2; grid-row: 1; }
  .general td b { font-size: 15px; }
}
.attention { align-items: start; }
@media (max-width: 640px) {
  .general table.cards td:first-child { display: flex; justify-content: space-between; text-align: right; padding: 3px 0; }
}
.prow .b1 { grid-template-columns: auto 1fr; justify-items: start; }

/* Continue with Microsoft sits under Continue with Google. */
.btn.google.ms { margin-top: 8px; }
.connect { display: flex; flex-wrap: wrap; gap: 10px; }
.connect .btn { flex: 1 1 220px; max-width: 320px; }

/* Search and sort on lists */
.tbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 10px; position: sticky; left: 0; }
.tbar input { flex: 1 1 180px; max-width: 320px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 9px; font: inherit; font-size: 13px; background: #fff; }
.tbar select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 9px; font: inherit; font-size: 13px; background: #fff; max-width: 100%; }
.tbar.fortable select { display: none; }
th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
th.sortable:hover { color: var(--blue); }
th.sortable::after { content: '↕'; margin-left: 4px; opacity: .3; font-size: 11px; }
th.sortable[data-sorted='a']::after { content: '↑'; opacity: 1; }
th.sortable[data-sorted='d']::after { content: '↓'; opacity: 1; }
.src { max-width: 420px; }
@media (max-width: 640px) { .tbar.fortable select { display: block; flex: 1 1 100%; } .tbar input { max-width: none; } .src { max-width: none; } }

/* Numbers that open their list */
a.nlink { color: inherit; text-decoration: underline; text-decoration-style: dotted; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; }
a.nlink:hover { color: var(--blue); }
/* On phones the details rise from the bottom instead of the side. */
@media (max-width: 640px) {
  .overlay { align-items: flex-end; justify-content: stretch; }
  .overlay .drawer { width: 100%; max-width: 100%; height: auto; max-height: 88vh; border-radius: 18px 18px 0 0; animation: sheetUp .22s ease-out; }
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }

/* Team page */
.gpeople { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 14px; max-height: 300px; overflow: auto; font-size: 13px; }
.gpeople label { display: flex; gap: 6px; align-items: center; }

}

/* Team page: a table on very wide screens; below that each person is a card with labelled boxes, so nothing is ever cut */
table.team td { vertical-align: middle; }
table.team td input:not([type=checkbox]), table.team td select { width: 100%; min-width: 96px; padding: 7px 9px; font-size: 13px; border-radius: 9px; }
table.team td .pill { white-space: nowrap; }
.who-line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
details.card > summary { cursor: pointer; }
@media (min-width: 1600px) { table.team:not(.team-dept) td:nth-child(6) { width: 300px; } }
@media (max-width: 1599px) {
  table.team:not(.team-dept) thead { display: none; }
  table.team:not(.team-dept), table.team:not(.team-dept) tbody { display: block; width: 100%; }
  table.team:not(.team-dept) tr { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  table.team:not(.team-dept) tr:last-child { border-bottom: 0; }
  table.team:not(.team-dept) td { display: flex; flex-direction: column; gap: 3px; padding: 0; border: 0; text-align: left; min-width: 0; }
  table.team:not(.team-dept) td:first-child { grid-column: 1 / -1; }
  table.team:not(.team-dept) td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 600; }
  table.team:not(.team-dept) td[data-label="Job title"] { grid-column: span 2; }
  table.team:not(.team-dept) td[data-label="Status"] { align-items: flex-start; }
  .card.scroll:has(table.team:not(.team-dept)) { overflow: visible; }
  .tbar:has(+ table.team:not(.team-dept)) select { display: block; flex: 0 1 240px; }
}
@media (max-width: 1040px) { table.team:not(.team-dept) tr { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  table.team:not(.team-dept) tr { grid-template-columns: 1fr; }
  table.team:not(.team-dept) td[data-label="Job title"] { grid-column: auto; }
  table.team-dept td input:not([type=checkbox]), table.team-dept td select { width: 62%; }
}
@media (min-width: 1600px) { table.team:not(.team-dept) td[data-label="Job title"] input { min-width: 330px; } }
@media (max-width: 400px) { table.team:not(.team-dept) td[data-label="Job title"] input { font-size: 12px; padding-left: 7px; padding-right: 7px; } }
@media (max-width: 640px) {
  .card > .row > input, .card > .row > select { flex: 1 1 100%; min-width: 0; }
  .card > .row > .btn { flex: 1 1 100%; text-align: center; }
  table.team-dept td:first-child { display: flex; justify-content: space-between; align-items: center; gap: 14px; text-align: right; padding-bottom: 3px; }
  table.team-dept td { align-items: center; }
  table.team-dept td input:not([type=checkbox]), table.team-dept td select { width: 66%; flex: 0 0 66%; }
}
.ticks { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 13px; }
.ticks label { display: flex; gap: 5px; align-items: center; white-space: nowrap; }
input[type=file] { max-width: 100%; }
.step { min-width: 0; overflow-wrap: anywhere; }

table.team td { overflow-wrap: anywhere; }
.who-line { min-width: 0; flex-wrap: wrap; }
.who-line b { overflow-wrap: anywhere; min-width: 0; }
