/* The day of the event: the tab "Accueil" (counter, camera, list) and the tab "Tables" */
.wl,
.tb {
  display: grid;
  gap: 14px;
  padding: 16px;
}
.wl-counter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0;
  font-size: 16px;
}
.wl-counter b {
  font-family: Manrope, sans-serif;
  font-size: 24px;
}
.wl-counter small {
  flex-basis: 100%;
  color: var(--si-muted, #5b6b78);
}
.wl-bar {
  flex: 1;
  min-width: 120px;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e3e9ee;
}
.wl-bar i {
  display: block;
  height: 100%;
  background: var(--si-yes, #1f7a5a);
  transition: width 0.3s;
}
.wl-actions,
.tb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wl-bar2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.wl-bar2 .gl2-search {
  flex: 1;
  min-width: 200px;
}
.wl-filter {
  display: flex;
  gap: 4px;
}
.wl-filter button {
  padding: 8px 12px;
  border: 1px solid #c8d4dc;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.wl-filter button[aria-pressed='true'] {
  border-color: var(--accent, #2f6687);
  background: var(--accent, #2f6687);
  color: #fff;
}
.wl-list,
.tb-table ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wl-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 10px 12px;
  border: 1px solid var(--si-line, #e3e9ee);
  border-radius: 10px;
  background: #fff;
}
.wl-row.is-in {
  border-color: #bfe0d1;
  background: #f1faf6;
}
.wl-who {
  display: grid;
  min-width: 0;
}
.wl-who small,
.tb-guest small {
  color: var(--si-muted, #5b6b78);
  font-size: 12.5px;
}
.wl-status {
  color: #94570a;
}
.wl-state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.wl-in {
  color: #1c6f51;
  font-size: 13.5px;
  font-weight: 650;
}
.wl-btn {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #c8d4dc;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
.wl-btn.wl-primary {
  border-color: var(--accent, #2f6687);
  background: var(--accent, #2f6687);
  color: #fff;
}
.wl-btn.wl-quiet {
  border-color: transparent;
  color: var(--si-muted, #5b6b78);
}
.wl-none,
.tb-empty,
.tb-hint {
  color: var(--si-muted, #5b6b78);
  font-size: 14px;
}
/* The camera */
.wl-scan {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgb(10 20 30 / 78%);
}
.wl-scan-box {
  position: relative;
  display: grid;
  gap: 10px;
  width: min(460px, 100%);
  padding: 12px;
  border-radius: 16px;
  background: #fff;
}
.wl-scan video {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  background: #0b141c;
  object-fit: cover;
}
.wl-scan-frame {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  aspect-ratio: 1;
  border: 3px solid rgb(255 255 255 / 85%);
  border-radius: 12px;
  box-shadow: inset 0 0 0 9999px rgb(0 0 0 / 22%);
  pointer-events: none;
  clip-path: inset(0 round 12px);
}
.wl-scan-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / 60%);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}
.wl-scan-result {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #eef3f7;
  font-size: 16px;
  font-weight: 650;
  text-align: center;
}
.wl-scan-result[data-tone='good'] {
  background: #dff3e8;
  color: #135b3f;
}
.wl-scan-result[data-tone='warn'] {
  background: #fff1d6;
  color: #7a4a06;
}
.wl-scan-result[data-tone='bad'] {
  background: #fde5e2;
  color: #8a1f17;
}
.wl-scan-count .wl-counter {
  justify-content: center;
  font-size: 14px;
}
.wl-scan-count .wl-counter b {
  font-size: 20px;
}
/* The tables */
.tb-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tb-summary {
  margin: 0;
}
.tb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.tb-table {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--si-line, #e3e9ee);
  border-radius: 12px;
  background: #fff;
}
.tb-table.is-over {
  border-color: #e0b25a;
}
.tb-table.tb-wait {
  border-style: dashed;
  background: #fffaf0;
}
.tb-table header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.tb-table h4 {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 15.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tb-seats {
  flex-basis: 100%;
  order: 3;
  color: var(--si-muted, #5b6b78);
  font-size: 12.5px;
}
.tb-table header .tp-ibtn {
  width: 34px;
  height: 34px;
}
.tb-del {
  color: #8f1d17;
}
.tb-guest {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.tb-guest > span {
  display: grid;
  min-width: 0;
}
.tb-guest select {
  flex: none;
  max-width: 48%;
  min-height: 36px;
  border: 1px solid #c8d4dc;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
}
@media (max-width: 560px) {
  .wl,
  .tb {
    padding: 12px;
  }
  .wl-row {
    align-items: flex-start;
  }
}
.ask-form {
  display: grid;
  gap: 12px;
}
.ask-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

/* The plan of the tables */
.sp-card {
  padding: 0;
  overflow: hidden;
  overflow: clip; /* never scrolled by anything: only the plan scrolls */
}
.sp-listbar {
  display: flex;
  justify-content: flex-end;
  padding: 12px 16px 0;
}
.sp {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  height: max(560px, calc(100vh - 250px));
}
.sp.side-hidden {
  grid-template-columns: minmax(0, 1fr);
}
.sp.side-hidden .sp-side {
  display: none;
}
.sp-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: auto;
  border-right: 1px solid var(--si-line, #e3e9ee);
  background: #fff;
}
.sp-side h3 {
  margin: 0;
  font-size: 17px;
}
.sp-side section {
  display: grid;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--si-line, #e3e9ee);
}
.sp-guests-box {
  flex: 1;
  align-content: start;
  min-height: 0;
  border-bottom: 0;
}
.sp-hide,
.sp-show {
  align-self: flex-end;
  padding: 8px 14px;
  border: 0;
  background: #f1f4f7;
  color: var(--si-muted, #5b6b78);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.sp-show {
  margin-right: auto;
  border-radius: 8px;
}
.sp-shapes {
  display: flex;
  gap: 8px;
}
.sp-shape {
  display: grid;
  flex: 1;
  justify-items: center;
  gap: 2px;
  padding: 8px 4px;
  border: 1px solid #c8d4dc;
  border-radius: 10px;
  background: #fff;
  color: #243746;
  font: inherit;
  font-size: 11.5px;
  cursor: pointer;
}
.sp-shape:hover {
  border-color: var(--accent, #2f6687);
  background: #f4f9fc;
}
.sp-shape svg {
  width: 44px;
  height: 44px;
}
.sp-guests-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.sp-filter {
  color: var(--si-muted, #5b6b78);
  font-size: 13px;
}
.sp-filter button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.sp-filter button[aria-pressed='true'] {
  color: #243746;
  font-weight: 700;
}
.sp-add-guest {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--accent, #2f6687);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.sp-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid #c8d4dc;
  border-radius: 8px;
}
.sp-search input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  border: 0;
  outline: none;
  font: inherit;
}
.sp-guests {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}
.sp-guest {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.sp-guest:hover {
  background: #f1f6fa;
}
.sp-guest.is-placed {
  opacity: 0.7;
}
.sp-guest-text {
  display: grid;
  min-width: 0;
}
.sp-guest-text small {
  color: var(--si-muted, #5b6b78);
  font-size: 12.5px;
}
.sp-none {
  display: grid;
  gap: 2px;
  padding: 8px 0;
}
.sp-none span {
  color: var(--si-muted, #5b6b78);
  font-size: 14px;
}
.sp-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e3e9ee;
  color: #243746;
  font-size: 13px;
  font-weight: 700;
}
.sp-avatar[data-status='Confirmé'] {
  background: #d7efe3;
  color: #135b3f;
}
.sp-avatar[data-status='En attente'] {
  background: #fff1d6;
  color: #7a4a06;
}
.sp-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
}
.sp-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 16px;
}
.sp-seg {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid #c8d4dc;
  border-radius: 8px;
}
.sp-seg button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  background: #f4f6f8;
  color: var(--si-muted, #5b6b78);
  font: inherit;
  cursor: pointer;
}
.sp-seg button[aria-pressed='true'] {
  background: #fff;
  color: #243746;
  font-weight: 700;
}
.sp-pdf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #c8d4dc;
  border-radius: 8px;
  background: #f4f6f8;
  color: #243746;
  font: inherit;
  cursor: pointer;
}
.sp-canvas {
  position: relative;
  min-height: 0;
  overflow: auto;
  background-color: #fcfdfe;
  background-image:
    linear-gradient(#eef1f4 1px, transparent 1px), linear-gradient(90deg, #eef1f4 1px, transparent 1px);
  background-size: 30px 30px;
}
.sp-board {
  position: relative;
}
.sp-empty {
  position: absolute;
  top: 80px;
  left: 60px;
  max-width: 420px;
  margin: 0;
  color: var(--si-muted, #5b6b78);
}
.sp-table {
  position: absolute;
}
.sp-table.is-moving {
  z-index: 5;
  opacity: 0.8;
}
.sp-body {
  position: absolute;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid #243746;
  background: #fff;
  cursor: grab;
  touch-action: none;
  user-select: none;
  text-align: center;
}
.sp-body.is-round {
  border-radius: 50%;
}
.sp-body.is-over {
  border-color: #e09a1f;
  background: #fff8e8;
}
.sp-body b {
  max-width: 100%;
  overflow: hidden;
  color: #4b5b68;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sp-body small {
  color: var(--si-muted, #5b6b78);
  font-size: 11px;
}
.sp-seat {
  position: absolute;
  padding: 0;
  border: 1px solid #9aa8b3;
  border-radius: 50%;
  background: #f4f4f4;
  cursor: pointer;
  touch-action: none;
}
.sp-seat:hover {
  border-color: var(--accent, #2f6687);
  background: #e8f1f7;
}
.sp-seat.is-taken {
  border-color: #243746;
  background: #fff;
}
.sp-seat .sp-avatar {
  width: 100%;
  height: 100%;
  font-size: 12px;
}
.sp-name {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 2;
  max-width: 86px;
  margin-top: 2px;
  padding: 0 5px;
  overflow: hidden;
  border: 1px solid #cfd8de;
  border-radius: 4px;
  background: #fff;
  color: #243746;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
}
.is-target {
  outline: 3px solid #1f7a5a;
  outline-offset: 1px;
}
.is-bad {
  outline: 3px solid #c2362b;
  outline-offset: 1px;
}
.sp-ghost {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  padding: 6px 10px;
  border-radius: 8px;
  background: #243746;
  color: #fff;
  font-size: 13px;
  pointer-events: none;
}
body.sp-dragging {
  cursor: grabbing;
  user-select: none;
}
.sp-picklist {
  display: grid;
  gap: 6px;
  max-height: 55vh;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}
.sp-pick {
  display: grid;
  width: 100%;
  gap: 1px;
  padding: 10px 12px;
  border: 1px solid #c8d4dc;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.sp-pick:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.sp-pick small {
  color: var(--si-muted, #5b6b78);
}
.sp-print {
  position: relative;
}
@media (max-width: 899px) {
  .sp {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(460px, 1fr);
    height: auto;
  }
  .sp-side {
    max-height: 320px;
    border-right: 0;
    border-bottom: 1px solid var(--si-line, #e3e9ee);
  }
  .sp-canvas {
    height: 520px;
  }
}
/* Neighbouring seats: the names are on two levels, so that they do not run into each other */
.sp-table .sp-seat:nth-of-type(even) .sp-name {
  margin-top: 16px;
}

/* The names of the seats lie on the top of a long table: its own name sits at the bottom */
.sp-table[data-shape='long'] .sp-body,
.sp-table[data-shape='honor'] .sp-body {
  align-content: end;
  padding-bottom: 6px;
}
