/**
 * Kapela — Style : Caisse : panneau sombre de l'addition et encaissement
 * Auteur : Jacks Ngalangala
 */

/* Addition (panneau sombre) */
.bill {
  background: var(--dark);
  color: var(--dark-t);
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.app.nav-top .bill {
  top: 65px;
  height: calc(100vh - 65px);
}
.t-terre .bill {
  margin: 16px 16px 16px 0;
  border-radius: 28px;
  height: calc(100vh - 32px);
  top: 16px;
}
.app.nav-top.t-terre .bill {
  top: 81px;
  height: calc(100vh - 97px);
}
.bill .cap {
  color: var(--hi);
}
.t-terre .bill .cap {
  color: var(--dark-m);
}
.bill .big {
  font-family: var(--f-disp);
  font-weight: var(--disp-w);
  font-size: 42px;
  line-height: 1;
  letter-spacing: var(--disp-ls);
}
.t-terre .bill .big {
  font-size: 34px;
}
.bill .meta {
  font-size: 12px;
  color: var(--dark-m);
  text-align: right;
  line-height: 1.5;
  max-width: 60%;
}
.bill .big.sm {
  font-size: 28px;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bill .nick.addr {
  font-size: 12px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bill .lines {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--dark-line);
  flex: 1;
  min-height: 80px;
  overflow-y: auto;
  overflow-x: hidden;
}
.bl {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--dark-line);
}
.bl .t {
  flex: 1;
  min-width: 0;
}
.bl .t b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.bl .t small {
  font-size: 11px;
  color: var(--dark-m);
}
.bl .t small.p {
  color: #e8a87c;
}
.bl .t small.r {
  color: #8fd0a6;
}
.bl .a {
  font-weight: 700;
  font-size: 14px;
  min-width: 66px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.bl .a s {
  display: block;
  font-weight: 500;
  font-size: 11px;
  color: var(--dark-m);
}
.bl.flash {
  animation: blflash 2.4s ease-out;
}
@keyframes blflash {
  0%,
  30% {
    background: rgba(232, 168, 124, 0.22);
  }
  100% {
    background: transparent;
  }
}
.bvoid {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0 4px;
  font-size: 12px;
  color: var(--dark-m);
}
.bvoid svg {
  flex: none;
}
.qd {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--dark-line);
  background: transparent;
  color: var(--dark-t);
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.qd:hover {
  border-color: var(--dark-m);
}
.tot {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--dark-m);
}
.tot > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.tot .pr {
  color: #8fd0a6;
}
.grand {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--dark-line);
  padding-top: 10px;
}
.grand .v {
  font-family: var(--f-disp);
  font-weight: var(--disp-w);
  font-size: 38px;
  line-height: 1;
  letter-spacing: var(--disp-ls);
  white-space: nowrap;
}
.t-terre .grand .v {
  font-size: 38px;
}
.acts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.act.wide {
  grid-column: 1/-1;
  min-height: 40px;
}
.tkt .nk {
  display: block;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.75;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bill .qd.edit {
  align-self: flex-start;
  margin-top: 2px;
  flex: none;
}
.bill .nick {
  font-size: 14px;
  font-weight: 600;
  color: #e8a87c;
  margin-top: 2px;
}
.act {
  min-height: 42px;
  border: 1px solid var(--dark-line);
  border-radius: var(--r);
  background: transparent;
  color: var(--dark-t);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1.15;
  font-weight: 600;
  cursor: pointer;
  padding: 0 4px;
  text-align: center;
}
.t-terre .act {
  border-radius: 18px;
  background: var(--dark2);
  border-color: var(--dark2);
}
.act svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.act:hover {
  border-color: var(--hi);
}
.act.on {
  background: #3a2f22;
  border-color: var(--hi);
}
.cash {
  min-height: 54px;
  border: 0;
  border-radius: var(--r);
  background: var(--acc);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  cursor: pointer;
}
.t-terre .cash {
  border-radius: 32px;
  background: var(--hi);
  color: var(--hi-t);
}
.cash:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.send {
  min-height: 48px;
  border: 1px solid var(--dark-line);
  border-radius: var(--r-ui);
  background: transparent;
  color: var(--dark-t);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.send.on {
  border-color: #e8a87c;
  color: #e8a87c;
}
.msum {
  display: none;
}
@media (max-width: 1100px) {
  .pos {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  .pos .menu {
    padding: 22px 20px;
  }
}
@media (max-width: 860px) {
  .pos {
    grid-template-columns: minmax(0, 1fr);
  }
  .pos .menu {
    padding: 14px 14px 170px;
    gap: 14px;
  }
  .poshead {
    flex-direction: column;
    align-items: stretch !important;
    gap: 10px;
  }
  .poshead .search {
    flex: 1 1 auto !important;
    min-width: 0;
  }
  .poshead .h1 {
    font-size: 30px;
  }
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .tile {
    min-height: 132px;
    padding: 12px;
  }
  .tile .n {
    font-size: 18px;
  }
  .qb {
    width: 40px;
    height: 40px;
  }
  .bill {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 35;
    height: auto !important;
    margin: 0 !important;
    border-radius: 0 !important;
    padding: 18px 18px 28px;
  }
  .bill.open {
    display: flex;
  }
  .msum {
    display: flex;
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 70px;
    z-index: 24;
    min-height: 60px;
    border: 0;
    border-radius: var(--r-pop);
    background: var(--dark);
    color: var(--dark-t);
    align-items: center;
    gap: 12px;
    padding: 0 8px 0 16px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: var(--shadow);
    text-align: left;
  }
  .msum .go {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 14px;
    border-radius: var(--r-ui);
    background: var(--acc);
    color: #fff;
    font-size: 14px;
  }
}
