/* ── F5.10 чанк 5: база кассира (было inline <style> index.html) ── */
/* ══ кассир ══ */
.cashier{
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: rise 0.4s both;
}
.cash-top{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.cash-top h2{
  font:
    400 24px "Prata", "Golos Text", serif;
  margin-right: auto;
}
.cash-top h2 em{
  font-style: normal;
  color: var(--flame);
}
.cash-card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--sh);
}
.scan{
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 22px;
  align-items: center;
}
.c1{
  top: 12px;
  left: 12px;
  border-right: 0;
  border-bottom: 0;
  border-radius: 8px 0 0 0;
}
.c2{
  top: 12px;
  right: 12px;
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 8px 0 0;
}
.c3{
  bottom: 12px;
  left: 12px;
  border-right: 0;
  border-top: 0;
  border-radius: 0 0 0 8px;
}
@keyframes scan{

  0%,
  100% {
    top: 12%;
  }

  50% {
    top: 84%;
  }
}
.scan .hint b{
  font-size: 16px;
}
.scan .hint p{
  color: var(--soft);
  font-size: 13px;
  margin: 6px 0 14px;
}
.findrow{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.findrow input{
  flex: 1;
  min-width: 150px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 16px;
  background: #fff;
  transition: 0.2s;
}
.findrow input:focus{
  outline: 2px solid var(--staff-focus-ring, #123A6B);
  outline-offset: 2px;
  border-color: var(--flame);
}
.cash-findrow{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cash-findrow input{
  flex: 1 1 100%;
  min-width: 0;
  font-size: 16px;
  padding: 12px 14px;
}
.find-actions{
  display: flex;
  gap: 8px;
  width: 100%;
}
.find-actions button{
  flex: 1 1 50%;
  padding: 12px;
}
.btn,
button.cta,
#checkoutBtn {
  border-radius: 12px;
  padding: 11px 17px;
  font-size: 13.5px;
  font-weight: 800;
  transition: 0.22s;
  background: var(--btn-fire-bg, #123a6b);
  color: var(--btn-fire-color, #ffffff);
  border: var(--btn-fire-border, none);
  box-shadow: var(--btn-fire-shadow, none);
  cursor: pointer;
}
.btn.dark{
  background: var(--esp);
  color: var(--cream);
}
.btn.dark:hover{
  background: #000;
  transform: translateY(-1px);
}
.btn.fire{
  border-radius: 12px;
  padding: 11px 17px;
  font-size: 13.5px;
  font-weight: 800;
  transition: 0.22s;
  cursor: pointer;
  background: var(--btn-fire-bg, var(--flame));
  color: var(--btn-fire-color, #fff);
  border: var(--btn-fire-border, none);
  box-shadow: var(--btn-fire-shadow, 0 6px 16px -6px rgba(18, 58, 107, 0.5));
}
.btn.fire:hover{
  filter: brightness(0.92);
  transform: translateY(-1px);
}
.btn.ghost{
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--soft);
}
.btn.ghost:hover{
  border-color: var(--esp);
  color: var(--ink);
}
.btn.ghost.danger:hover{
  border-color: #b3372b;
  color: #b3372b;
}
.cust{
  display: none;
  gap: 18px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.cust.show{
  display: flex;
  animation: rise 0.35s both;
}
.cust .big{
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3e8fd0, #123a6b);
  color: #fff;
  font: 700 22px "Unbounded", "Golos Text", sans-serif;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.cust .info{
  flex: 1;
  min-width: 220px;
}
.cust .info b{
  font: 700 18px "Unbounded", "Golos Text", sans-serif;
}
.cust .info .cp{
  color: var(--soft);
  font-size: 13px;
  margin: 3px 0 11px;
}
.cdots{
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.cdot{
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px dashed var(--line);
  font-size: 11px;
  display: grid;
  place-items: center;
}
.cdot.f{
  background: transparent;
  border: none;
  color: #6b4a2f;
}
.cdot.last{
  animation: stampin 0.5s cubic-bezier(0.2, 1.6, 0.4, 1);
}
.cust .acts{
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cust .note{
  font-size: 12px;
  color: var(--soft);
  margin-bottom: 8px;
}
.chist{
  border-top: 1px dashed var(--line);
  margin-top: 8px;
  padding-top: 4px;
}
.logrow{
  display: flex;
  gap: 10px;
  font-size: 13px;
  padding: 8px 2px;
  border-bottom: 1px dashed var(--line);
  animation: rise 0.3s both;
}
.logrow .lt{
  font: 700 10.5px "Unbounded", "Golos Text", sans-serif;
  color: #8b98a5;
  min-width: 0;
  white-space: nowrap;
}
.cashlog{
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
}
.cashlog .la{
  font-size: 13.5px;
}

/* Краткие инструкции для кассира и диспетчера */
.staff-guide {
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel, #fff);
  color: var(--ink);
}
.staff-guide summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}
.staff-guide summary::-webkit-details-marker {
  display: none;
}
.staff-guide summary::after {
  content: '›';
  flex: 0 0 auto;
  color: var(--soft);
  font-size: 23px;
  line-height: 1;
  transform: rotate(90deg);
  transition: transform .18s ease;
}
.staff-guide[open] summary::after {
  transform: rotate(-90deg);
}
.staff-guide-heading {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.staff-guide-heading b {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}
.staff-guide-heading small {
  color: var(--soft);
  font-size: 11.5px;
  line-height: 1.35;
}
.staff-guide-content {
  padding: 10px 14px 13px;
  border-top: 1px solid var(--line);
}
.staff-guide-content ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
}
.staff-guide-content li,
.staff-guide-content p {
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.5;
}
.staff-guide-content li {
  padding-left: 2px;
}
.staff-guide-content li b {
  font-weight: 700;
}
.staff-guide-content p {
  margin: 10px 0 0;
  color: var(--soft);
}
.staff-guide summary:focus-visible {
  outline: 2px solid var(--flame);
  outline-offset: 2px;
}
@media (max-width: 480px) {
  .staff-guide summary {
    padding: 11px 12px;
  }
  .staff-guide-content {
    padding: 9px 12px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cashier,
  .cust.show,
  .cdot.last,
  .logrow {
    animation: none;
  }

  .staff-guide summary::after {
    transition: none;
  }
}
