/* Unassigned recordings ("Non assignés"): the squads screen in that mode, the table of recordings, the assign dialog. */

/* ---------- squads screen in the unassigned mode: only the band and the table ---------- */
#team.una .ctrls,
#team.una .grid,
#team.una .rows,
#team.una .ovgrid,
#team.una .svgrid,
#team.una .empty,
#team.una .pager {
  display: none !important;
}
#team:not(.una) .unas {
  display: none;
}
#team .unas {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* after an assignment */
#team .ua-notice {
  flex: none;
  border-left: 2px solid var(--good);
  padding: 8px 12px;
  background: color-mix(in srgb, var(--good) 10%, var(--panel));
  font-size: 13px;
}

/* selection bar */
#team .ua-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 38px;
}
#team .ua-cnt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink2);
  white-space: nowrap;
}
#team .ua-cnt b {
  color: var(--ink);
  font-weight: 500;
  font-size: 13px;
}
#team .ua-bar .linkbtn2[hidden] {
  display: none;
}
#team .ua-help {
  font-size: 12.5px;
  color: var(--ink3t);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#team .ua-bar .btn {
  margin-left: auto;
  padding: 10px 22px;
}

/* table */
#team .ua-tbl {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line);
}
#team .ua-tbl table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}
#team .ua-tbl th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--panel);
  font-family: var(--mono);
  font-weight: 400;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink3t);
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line2);
  white-space: nowrap;
}
#team .ua-tbl td {
  padding: 0 12px;
  height: 38px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
#team .ua-tbl .ck {
  width: 20px;
  padding-right: 4px;
}
#team .ua-tbl input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  display: block;
  accent-color: var(--accent);
  cursor: pointer;
}
#team .ua-tbl tr.r,
#team .ua-tbl tr.grp {
  cursor: pointer;
  user-select: none;
}
#team .ua-tbl tr.r:hover td {
  background: var(--panel-hi);
}
#team .ua-tbl tr.r.on td {
  background: color-mix(in srgb, var(--accent) 12%, var(--panel));
}
#team .ua-tbl tr.r.on td:first-child {
  box-shadow: inset 3px 0 0 var(--accent);
}
/* one heading row per device: checks all its nights */
#team .ua-tbl tr.grp td {
  height: 34px;
  background: var(--ground);
  border-top: 1px solid var(--line2);
}
#team .ua-tbl tr.grp b {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.06em;
  margin-right: 12px;
}
#team .ua-tbl tr.grp span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink3t);
}
#team .ua-tbl .dev {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink2);
}
#team .ua-tbl .nt {
  color: var(--ink);
  font-weight: 500;
}
#team .ua-tbl .tm {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink2);
}
#team .ua-tbl .stt {
  font-size: 12.5px;
  color: var(--ink2);
}
#team .ua-tbl .stt.off {
  color: var(--ink3t);
}

/* nothing to assign */
#team .ua-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  color: var(--ink2);
}
#team .ua-empty h3 {
  margin: 0;
  font-family: var(--cond);
  font-weight: 600;
  font-size: 26px;
  text-transform: uppercase;
  color: var(--ink);
}
#team .ua-empty p {
  margin: 0;
}

/* ---------- assign dialog ---------- */
.ua .ua-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 110px;
  overflow: auto;
  padding: 10px 12px;
  background: var(--ground);
  border: 1px solid var(--line);
  font-size: 13px;
}
.ua .ua-list b {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  margin-right: 10px;
}
.ua .ua-list span {
  color: var(--ink2);
}
.ua .opt b em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink3t);
  margin-left: 4px;
}
.ua .opt.none {
  cursor: default;
  color: var(--ink3t);
}
.ua .ac[hidden],
.ua .ua-chosen[hidden],
.ua .ua-new[hidden],
.ua .fld[hidden],
.ua .ua-newf[hidden],
.ua .ua-keep[hidden] {
  display: none;
}
.ua .ua-chosen .chipx {
  gap: 10px;
  padding: 4px 4px 4px 12px;
  font-size: 14px;
}
.ua .ua-chosen .chipx b {
  font-weight: 500;
}
.ua .ua-chosen .chipx span {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink3t);
}
.ua .ua-new {
  margin-top: 10px;
}
.ua .ua-newf {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}
.ua .ua-newf .full {
  grid-column: 1/-1;
}
.ua .ua-newh {
  grid-column: 1/-1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.ua .fld select {
  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;
}
.ua .ua-keep {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  cursor: pointer;
}
.ua .ua-keep input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  flex: none;
}
.ua .ua-keep > span {
  display: flex;
  flex-direction: column;
}
.ua .ua-keep .hint {
  font-size: 11.5px;
  color: var(--ink3t);
  margin-top: 3px;
}
.ua .ua-keep.off {
  cursor: default;
  color: var(--ink3t);
}

@media (max-width: 719px) {
  #team .ua-help {
    display: none;
  }
}
