/**
 * Kapela — Style : Plan de salle et écran cuisine et bar
 * Auteur : Jacks Ngalangala
 */

/* ───────── Salle (plan) ───────── */
.floor {
  position: relative;
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  min-height: 560px;
  overflow: auto;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 20px 20px;
}
.ftable {
  position: absolute;
  width: 110px;
  height: 96px;
  border: 1.5px solid var(--ink);
  background: var(--surf2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  user-select: none;
  touch-action: none;
  text-align: center;
  padding: 4px;
}
.ftable.round {
  border-radius: 50%;
  width: 100px;
  height: 100px;
}
.ftable.square {
  border-radius: var(--r);
}
.ftable.long {
  border-radius: var(--r);
  width: 160px;
}
.ftable .n {
  font-family: var(--f-disp);
  font-weight: var(--disp-w);
  font-size: 20px;
  line-height: 1;
}
.ftable .s {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.25;
}
.ftable .amt {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}
.ftable.busy {
  background: var(--dark);
  color: var(--dark-t);
  border-color: var(--dark);
}
.ftable.busy .s {
  color: #e9e2d6;
}
.ftable .nk {
  font-size: 11px;
  font-weight: 600;
  max-width: 92%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #e8a87c;
}
.wgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
  align-items: start;
}
.wcard {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}
.dlv {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surf);
  text-decoration: none;
  color: var(--ink);
}
.dlv:hover {
  border-color: var(--ink);
}
.wcard .chipb {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-height: 52px;
}
.ftable.call {
  background: var(--acc);
  border-color: var(--acc);
  color: #fff;
}
.ftable.call .s {
  color: #fff;
}
.ftable.soon {
  border-style: dashed;
  border-color: var(--acc);
}
.ftable.sel {
  box-shadow: 0 0 0 4px var(--hi);
}
.ftable.edit {
  cursor: grab;
}
.zone-label {
  position: absolute;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}
.fzone {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fzh {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.ftable.dup {
  box-shadow: 0 0 0 3px var(--bad);
}
.legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  align-items: center;
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ───────── Cuisine et bar ───────── */
.kds {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
  align-items: start;
}
.kt {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.kt .kh {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--dark);
  color: var(--dark-t);
}
.kt .kh .n {
  font-family: var(--f-disp);
  font-weight: var(--disp-w);
  font-size: 26px;
  line-height: 1;
}
.kt .kh .tm {
  margin-left: auto;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.kt.late .kh {
  background: var(--bad);
}
.kt.warn .kh {
  background: var(--acc);
}
.ki {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line2);
  cursor: pointer;
  background: none;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  text-align: left;
  width: 100%;
}
.ki .q {
  font-family: var(--f-disp);
  font-size: 24px;
  font-weight: var(--disp-w);
  min-width: 34px;
}
.ki .t {
  flex: 1;
  min-width: 0;
}
.ki .t b {
  display: block;
  font-size: 15px;
}
.ki .t small {
  color: var(--acc);
  font-weight: 600;
}
.ki.ready {
  opacity: 0.5;
}
.ki.ready .t b {
  text-decoration: line-through;
}
