/**
 * Kapela — Style : Clôture de caisse, tiroir et assistant « Nouveau produit de stock »
 * Auteur : Jacks Ngalangala
 */

/* Clôture : grille dollars / francs */
.cz {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 10px 12px;
  align-items: center;
}
.cz > b {
  text-align: right;
}
.cz > b:nth-child(-n + 3) {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}
.cz .inp {
  text-align: right;
}
@media (max-width: 560px) {
  .cz {
    grid-template-columns: 1fr 1fr 1fr;
    font-size: 13px;
  }
}
/* Caisse : qui tient le tiroir */
.shiftchip {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--line2);
  color: var(--ink);
  letter-spacing: 0.4px;
  text-transform: none;
  font-weight: 600;
}
.shiftchip.off {
  background: #f6e3d8;
  color: #a33a2a;
  text-decoration: none;
}
.locs {
  display: inline-flex;
  gap: 8px;
  justify-content: flex-end;
  white-space: nowrap;
  color: var(--muted);
}
.locs .bad {
  color: #a33a2a;
  font-weight: 600;
}

/* Assistant « Nouveau produit de stock » */
.wsteps {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.wsteps span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wsteps b {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.wsteps .on {
  color: var(--ink);
  font-weight: 700;
}
.wsteps .on b {
  background: var(--dark);
  color: var(--dark-t);
  border-color: var(--dark);
}
.wsteps .done b {
  background: var(--ok-bg);
  color: var(--ok);
  border-color: var(--ok-bg);
}
.wtype {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.wcard2 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: var(--surf);
  cursor: pointer;
  text-align: left;
  color: var(--ink);
}
.wcard2 b {
  font-size: 16px;
}
.wcard2 small {
  color: var(--muted);
  font-size: 13px;
}
.wcard2.on {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.wsale {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.wsale > .col:first-child {
  flex: 0 0 180px;
}
.bvis {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.bvis .liq {
  transition:
    y 0.35s ease,
    height 0.35s ease;
}
.wmeas {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surf);
  opacity: 0.6;
  cursor: pointer;
}
.wmeas.on {
  opacity: 1;
}
.wmeas.cur {
  border-color: var(--ink);
}
.wmeas input[type='checkbox'] {
  width: 20px;
  height: 20px;
  accent-color: var(--acc);
  flex: none;
}
.wmeas input[type='range'] {
  flex: 1;
  min-width: 90px;
  accent-color: var(--acc);
}
.inp.bare {
  border: 0;
  padding: 0;
  height: auto;
  min-height: 0;
  background: none;
  font-weight: 700;
  font-size: 15px;
  box-shadow: none;
}
.kvis {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 180px;
}
.kbar {
  position: relative;
  height: 28px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  overflow: hidden;
  background: var(--line2);
}
.kbar i {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--acc);
  transition: width 0.3s;
}
.kbar s {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: var(--surf);
  text-decoration: none;
}
@media (max-width: 640px) {
  .wtype {
    grid-template-columns: 1fr;
  }
  .wsale > .col:first-child {
    flex-basis: 100%;
  }
}
