/* Suivi section (list of suivis, one suivi), the suivi selector and night band of the player page, and the suivi dialog. */

/* ---------- squads screen in the Suivi modes ---------- */
#team.svl .ctrls,
#team.svl .grid,
#team.svl .rows,
#team.svl .ovgrid,
#team.svl .empty {
  display: none !important;
}
#team:not(.svl) .svgrid {
  display: none;
}
#team .cbtn[hidden] {
  display: none;
}
#team .psel[hidden] {
  display: none;
}
/* one suivi: only the search and the count stay in the controls bar */
#team.svm .cr > .cl,
#team.svm [data-sev],
#team.svm .refc,
#team.svm #sort,
#team.svm #vt,
#team.svm #addp,
#team.svm .mr .basis,
#team.svm .mr .lg {
  display: none;
}
#team.svm .search {
  margin-left: 0;
}
#team .svdesc {
  color: var(--ink);
}

/* cards */
#team .svgrid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-auto-rows: 252px;
  gap: 14px;
  align-content: start;
}
#team .svcard {
  all: unset;
  box-sizing: border-box;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  cursor: pointer;
  transition:
    background 0.14s,
    border-color 0.14s;
}
#team .svcard:hover {
  background: var(--panel-hi);
  border-color: var(--line2);
}
#team .svcard:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
#team .svc-top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
#team .svc-mode {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink3t);
}
#team .svc-name {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.02;
  text-transform: uppercase;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
#team .svcard .tc-go {
  margin-left: auto;
  font-size: 20px;
  color: var(--ink3t);
}
#team .svcard:hover .tc-go {
  color: var(--ink);
}
#team .svc-desc {
  font-size: 12.5px;
  color: var(--ink2);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#team .svc-desc .none {
  color: var(--ink3t);
}
#team .svcard .tc-figs {
  margin-top: auto;
}
#team .svc-foot {
  display: flex;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink3t);
  white-space: nowrap;
}
#team .svc-foot span:first-child {
  color: var(--ink2);
  overflow: hidden;
  text-overflow: ellipsis;
}
#team .svcard.add {
  border-style: dashed;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
#team .svcard.add small {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink2);
}

/* status: ongoing filled, upcoming outlined in the accent colour, over outlined and muted */
.svst {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 2px 7px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  white-space: nowrap;
  flex: none;
  line-height: 1.5;
}
.svst.upcoming {
  background: transparent;
  color: var(--accent);
}
.svst.over {
  background: transparent;
  border-color: var(--line2);
  color: var(--ink3t);
}

/* one suivi: table */
#team .rw.sv .nd2 {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink2);
}
#team .rw.sv .giv {
  display: inline;
  margin-left: 8px;
  font-size: 9px;
}
#team .rw .mut {
  color: var(--ink3t);
  font-size: 10px;
}
#team .rw.sv .ava {
  width: 26px;
  height: 26px;
  font-size: 10px;
}

/* ---------- player page: Global / suivi selector ---------- */
#player .cr.sc {
  height: 40px;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
#player .scope {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: none;
}
#player .stabs {
  display: inline-flex;
  border: 1px solid var(--line2);
  min-width: 0;
}
#player .stab {
  background: transparent;
  border: 0;
  padding: 4px 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink2);
  cursor: pointer;
  white-space: nowrap;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}
#player .stab + .stab {
  border-left: 1px solid var(--line2);
}
#player .stab[aria-selected="true"] {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 500;
}
#player .stab:not([aria-selected="true"]):hover {
  color: var(--ink);
  background: var(--panel-hi);
}
#player .sarr {
  width: 24px;
  height: 24px;
  border: 1px solid var(--line2);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 14px;
  line-height: 1;
  padding: 0;
}
#player .sarr:disabled {
  opacity: 0.3;
  cursor: default;
}
#player .sarr:not(:disabled):hover {
  background: var(--panel-hi);
}
#player .scinfo {
  font-size: 12px;
  color: var(--ink2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1 1 auto;
}
#player .scinfo b {
  color: var(--ink);
  font-weight: 500;
}
#player .scinfo .svst {
  margin-right: 8px;
  vertical-align: 1px;
}
#player .cr.sc .basis {
  margin-left: auto;
}

/* "Les [N] derniers jours" */
#player .lastn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink2);
  white-space: nowrap;
}
#player .lastn input {
  width: 48px;
  background: var(--ground);
  border: 1px solid var(--line2);
  color: var(--ink);
  padding: 4px 6px;
  font-family: var(--mono);
  font-size: 11px;
  border-radius: 0;
  -moz-appearance: textfield;
}
#player .lastn input::-webkit-outer-spin-button,
#player .lastn input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
#player .lastn input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: transparent;
}
#player .lastn.on input {
  border-color: var(--accent);
}
#player .lastn.on {
  color: var(--ink);
}

/* ---------- player page: night band (every night of Global or of the suivi; the selected nights are underlined) ---------- */
#player .nband {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: stretch;
  gap: 3px;
  height: 36px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  cursor: pointer;
  position: relative;
}
#player .nband .c {
  flex: 1 1 0;
  max-width: 30px;
  min-width: 0;
  border: 1px solid var(--line2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  position: relative;
  opacity: 0.42;
}
#player .nband .c .d {
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--ink3t);
  line-height: 1;
}
#player .nband .c .n {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1;
}
#player .nband .c.sel {
  opacity: 1;
}
#player .nband .c.sel::before {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -4px;
  height: 2px;
  background: var(--accent);
}
#player .nband .c.excluded .n,
#player .nband .c.no-recording .n,
#player .nband .c.processing .n,
#player .nband .c.not-assigned .n {
  color: var(--ink3t);
}
#player .nband .c.excluded::after {
  content: "×";
  position: absolute;
  top: 1px;
  right: 3px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink2);
  line-height: 1;
}
#player .nband .c.no-recording {
  border-style: dashed;
  border-color: var(--none);
}
#player .nband .c.not-assigned {
  border-color: transparent;
}
#player .nband .c.processing::after {
  content: "···";
  position: absolute;
  bottom: 1px;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--ink2);
}
#player .nband .c:hover,
#player .nband .c.hl {
  background: var(--panel-hi);
  border-color: var(--hl);
}
/* a gap between separate sessions */
#player .nband .gp {
  flex: 0 0 9px;
  position: relative;
}
#player .nband .gp::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 2px;
  bottom: 2px;
  border-left: 1px dashed var(--ink3t);
}
/* many nights: thin bars, month labels above */
#player .nband.dense {
  gap: 1px;
  height: 34px;
  padding-top: 12px;
}
#player .nband.dense .c {
  border: 0;
  background: var(--line2);
  max-width: 12px;
}
#player .nband.dense .c.v {
  background: var(--ink3t);
}
#player .nband.dense .c.no-recording {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
}
#player .nband.dense .c.not-assigned {
  background: transparent;
}
#player .nband.dense .c.excluded::after,
#player .nband.dense .c.processing::after {
  display: none;
}
#player .nband.dense .c .d,
#player .nband.dense .c .n {
  display: none;
}
#player .nband.dense .c .m {
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 2px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  color: var(--ink3t);
  white-space: nowrap;
  pointer-events: none;
}
#player .nband.dense .c.hl {
  background: var(--ink);
}
#player .nband .none {
  align-self: center;
  font-size: 12px;
  color: var(--ink3t);
  cursor: default;
}
#player .nights .nc {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
#player .nights .nc.pick {
  background: var(--panel-hi);
  border-color: var(--hl);
}

/* ---------- suivi dialog ---------- */
.fld textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--ground);
  border: 1px solid var(--line2);
  color: var(--ink);
  padding: 8px 10px;
  font-family: var(--sans);
  font-size: 14px;
  border-radius: 0;
  resize: vertical;
  min-height: 44px;
}
.fld textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: transparent;
}
.fld input[type="search"] {
  -webkit-appearance: none;
  appearance: none;
}
:is(.sf, .ua) .ac {
  position: relative;
}
:is(.sf, .ua) .acl {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  z-index: 5;
  background: var(--panel);
  border: 1px solid var(--line2);
  max-height: 248px;
  overflow: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
:is(.sf, .ua) .acl[hidden] {
  display: none;
}
:is(.sf, .ua) .opt {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 13px;
}
:is(.sf, .ua) .opt b {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
:is(.sf, .ua) .opt span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink3t);
  white-space: nowrap;
}
.sf .opt.sq {
  border-top: 1px solid var(--line);
}
:is(.sf, .ua) .opt.on,
:is(.sf, .ua) .opt:hover {
  background: var(--panel-hi);
}
.sf .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  max-height: 92px;
  overflow: auto;
  align-items: center;
}
:is(.sf, .ua) .chipx {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line2);
  padding: 2px 2px 2px 9px;
  font-size: 12.5px;
  white-space: nowrap;
}
:is(.sf, .ua) .chipx button {
  all: unset;
  cursor: pointer;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: var(--ink3t);
  font-size: 14px;
}
:is(.sf, .ua) .chipx button:hover {
  color: var(--ink);
  background: var(--panel-hi);
}
:is(.sf, .ua) .chipx button:focus-visible {
  outline: 2px solid var(--accent);
}
.sf .none {
  color: var(--ink3t);
  font-size: 12.5px;
}
.linkbtn2 {
  all: unset;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink2);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.linkbtn2:hover {
  color: var(--ink);
}
.linkbtn2:focus-visible {
  outline: 2px solid var(--accent);
}
.seg2 {
  display: inline-flex;
  border: 1px solid var(--line2);
}
.seg2 button {
  background: transparent;
  border: 0;
  padding: 7px 13px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink2);
  cursor: pointer;
}
.seg2 button + button {
  border-left: 1px solid var(--line2);
}
.seg2 button[aria-checked="true"] {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 500;
}
.seg2 button:not([aria-checked="true"]):hover {
  color: var(--ink);
  background: var(--panel-hi);
}
.sf .sf-cal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}
.sf .sf-cal[hidden],
.sf .sf-ses[hidden] {
  display: none;
}
.sf .sf-ses {
  border: 1px solid var(--line);
  max-height: 228px;
  overflow: auto;
}
.sf .sesh,
.sf .sesr {
  display: grid;
  grid-template-columns: minmax(120px, 190px) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 6px 10px;
}
.sf .sesh {
  position: sticky;
  top: 0;
  background: var(--panel);
  border-bottom: 1px solid var(--line2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink3t);
}
.sf .sesr {
  border-bottom: 1px solid var(--line);
}
.sf .sesr:last-child {
  border-bottom: 0;
}
.sf .sesr .nm {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sf .bdg {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  grid-column: 2 / -1;
}
.sf .sb {
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 9px;
  border: 1px solid var(--line2);
  background: transparent;
  color: var(--ink2);
  cursor: pointer;
  white-space: nowrap;
}
.sf .sb:hover {
  color: var(--ink);
  border-color: var(--hl);
}
.sf .sb[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 500;
}
.sf .sf-ses > .none {
  padding: 12px 10px;
}
.btn.danger {
  margin-right: auto;
}
.btn.danger.armed {
  border-color: var(--ink);
  font-weight: 500;
}
.dlg .dft .btn.danger + .note {
  display: none;
}
#team .svcard > * {
  flex: none;
}
