/**
 * Kapela — Style : Caisse : prise de commande
 * Auteur : Jacks Ngalangala
 */

/* ───────── Caisse ───────── */
.pos {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  min-height: 100vh;
}
.app.nav-top .pos {
  min-height: calc(100vh - 65px);
}
.pos .menu {
  padding: 28px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.tickets {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.tkt {
  flex-shrink: 0;
  min-width: 104px;
  height: 62px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surf);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  text-align: left;
}
.tkt .s {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
}
.tkt .n {
  font-family: var(--f-disp);
  font-size: 20px;
  font-weight: var(--disp-w);
  letter-spacing: var(--disp-ls);
  line-height: 1.1;
}
.tkt.on {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--dark-t);
}
.tkt.on .s {
  color: var(--hi);
}
.tkt.alert .s {
  color: var(--acc);
}
.tkt.new {
  border-style: dashed;
  align-items: center;
}
.t-terre .tkt {
  border-radius: 31px;
  height: 66px;
  min-width: 132px;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 0 18px 0 10px;
}
.t-terre .tkt .s {
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 500;
}
.t-terre .tkt .ring {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.t-terre .tkt.alert {
  background: #fbefcf;
  border-color: var(--hi);
}
.t-terre .tkt.alert .s {
  color: var(--warn);
}
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 12px;
}
.tile {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surf);
  min-height: 150px;
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  position: relative;
}
.tile.has {
  border-color: var(--ink);
}
.tile .c {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold);
}
.tile .n {
  font-family: var(--f-disp);
  font-weight: var(--disp-w);
  letter-spacing: var(--disp-ls);
  font-size: 21px;
  line-height: 1.15;
  overflow-wrap: anywhere;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.tile .p {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
}
.tile .p small {
  margin-left: auto;
  font-weight: 500;
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}
.tile .p small.promo {
  color: var(--acc);
  font-weight: 700;
}
.t-terre .tile .p small.promo {
  color: var(--hi);
}
.tile .q {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.tile .q .v {
  flex: 1;
  text-align: center;
  font-family: var(--f-disp);
  font-size: 24px;
  font-weight: var(--disp-w);
}
.qb {
  width: 44px;
  height: 44px;
  border-radius: var(--r-ui);
  border: 1px solid var(--ink);
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--ink);
}
.qb.add {
  background: var(--acc);
  border-color: var(--acc);
  color: #fff;
}
.qb.solo {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--dark-t);
  margin-left: auto;
}
.tile.off {
  opacity: 0.45;
}
.tile .pr {
  position: absolute;
  top: 12px;
  right: 12px;
}
.t-terre .tiles {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}
.t-terre .tile {
  background: var(--dark);
  color: var(--dark-t);
  border-color: var(--dark);
  padding: 20px;
  min-height: 180px;
}
.t-terre .tile .c {
  color: var(--hi);
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 500;
}
.t-terre .tile .n {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.6px;
}
.t-terre .tile .p small {
  color: var(--dark-m);
}
.t-terre .tile .q {
  border-top: 0;
}
.t-terre .qb {
  border-radius: 50%;
  width: 52px;
  height: 52px;
  border-color: var(--dark-line);
  color: var(--dark-t);
}
.t-terre .qb.add {
  background: var(--hi);
  border-color: var(--hi);
  color: var(--hi-t);
}
.t-terre .qb.solo {
  background: var(--hi);
  border-color: var(--hi);
  color: var(--hi-t);
}
.t-terre .tile.sig {
  background: var(--sig);
  color: var(--ink);
  border-color: var(--sig);
  grid-column: span 2;
}
.t-terre .tile.sig .c {
  color: var(--muted);
}
.t-terre .tile.sig .n {
  font-size: 34px;
  letter-spacing: -1.4px;
}
.t-terre .tile.sig .qb {
  border-color: var(--ink);
  color: var(--ink);
}
.t-terre .tile.sig .qb.solo,
.t-terre .tile.sig .qb.add {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--dark-t);
}
.t-terre .tile.has {
  box-shadow: inset 0 0 0 2px var(--hi);
}
@media (max-width: 860px) {
  .t-terre .tile.sig {
    grid-column: 1/-1;
  }
}
