.pos-hero-panel {
  background: var(--surface);
  border: 1px solid #cfe3de;
  border-radius: 20px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.pos-hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.pos-hero-title {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 700;
}

.pos-hero-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0d5d35;
  background: #e9fbf2;
}

.pos-hero-state::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #17b26a;
}

.pos-hero-module {
  margin-top: 10px;
}

.pos-hero-module .pos-system-grid {
  grid-template-columns: 1fr;
}

.pos-hero-module .pos-panel {
  padding: 12px;
}

.pos-hero-module .pos-basket-row {
  font-size: 0.85rem;
}

.pos-hero-module .pos-pay-btn,
.pos-hero-module .pos-keypad button {
  min-height: 36px;
}

.pos-system-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1.05fr 1.1fr 0.85fr;
}

.pos-panel {
  border: 1px solid #cde0da;
  border-radius: 14px;
  background: #fff;
  padding: 10px;
}

.pos-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #deebe7;
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.pos-panel-head small {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.pos-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pos-item-btn {
  border: 1px solid #cde0da;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  text-align: left;
  display: grid;
  gap: 4px;
  cursor: pointer;
}

.pos-item-btn span {
  font-size: 0.8rem;
  color: #2f4b44;
  font-weight: 700;
}

.pos-item-btn strong {
  color: #0f766e;
  font-size: 0.84rem;
}

.pos-basket {
  display: grid;
  gap: 6px;
}

.pos-basket-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  border: 1px solid #dbe8e3;
  border-radius: 8px;
  padding: 7px 8px;
}

.pos-totals {
  margin-top: 10px;
  border: 1px solid #d8e8e2;
  border-radius: 10px;
  background: #f8fcfa;
  padding: 8px;
  display: grid;
  gap: 5px;
}

.pos-totals p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
}

.pos-totals .is-total {
  border-top: 1px dashed #bdd8cf;
  padding-top: 6px;
  font-weight: 800;
}

.pos-payment-row {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.pos-pay-btn {
  border: 1px solid #bdd8cf;
  border-radius: 9px;
  background: #fff;
  color: #2b4941;
  font-size: 0.77rem;
  font-weight: 700;
  padding: 7px 8px;
  cursor: pointer;
}

.pos-pay-btn.is-active {
  border-color: #65b7a2;
  background: #e8f7f2;
  color: #1f5f52;
}

.pos-keypad {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.pos-keypad button {
  border: 1px solid #c6ddd6;
  border-radius: 9px;
  background: #fff;
  color: #2b4941;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 8px 0;
  cursor: pointer;
}

.pos-control-list {
  display: grid;
  gap: 6px;
}

.pos-control-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8rem;
  border: 1px solid #d8e8e2;
  border-radius: 8px;
  padding: 7px 8px;
}

.pos-control-row strong {
  color: #1f3f37;
}

.pos-control-actions {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.pos-control-actions .btn {
  justify-content: center;
}

@media (max-width: 1279px) {
  .pos-hero-panel {
    border-radius: 16px;
    padding: 11px;
  }

  .pos-system-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .pos-system-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .pos-checkout {
    grid-column: 1 / -1;
  }

  .pos-catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
