/* POS VIEW */
#view-pos {
  padding: 0;
  flex-direction: row;
}
.pos-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-right: 1px solid #e2e8f0;
  min-width: 0;
}
.pos-categories {
  display: flex;
  gap: 10px;
  padding: 15px 20px;
  overflow-x: auto;
  background: var(--surface);
  border-bottom: 1px solid #e2e8f0;
}
.cat-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 20px;
  background: var(--bg-color);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.cat-btn.active {
  background: var(--primary);
  color: var(--text-main);
}

.pos-products {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  align-content: start;
}
.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.1s;
}
.product-card:active {
  transform: scale(0.96);
}
.product-img {
  width: 100%;
  height: 120px;
  background-size: cover;
  background-position: center;
  background-color: #e2e8f0;
}
.product-info {
  padding: 12px;
}
.product-name {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
  line-height: 1.2;
  height: 34px;
  overflow: hidden;
}
.product-price {
  font-weight: 600;
  color: var(--success);
  font-size: 14px;
}

.pos-right {
  width: 360px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.order-header {
  padding: 20px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-color);
}
.order-meta h3 {
  font-size: 20px;
  font-weight: 800;
}
.order-meta p {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.order-body {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
}
.course-group {
  margin-bottom: 20px;
}
.course-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 2px solid #e2e8f0;
}
.course-title {
  font-weight: 800;
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.fire-btn {
  background: var(--warning);
  color: white;
  border: none;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
}

.order-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed #e2e8f0;
}
.item-qty {
  font-weight: 800;
  color: var(--primary);
  margin-right: 8px;
  width: 20px;
  display: inline-block;
}
.item-details {
  flex: 1;
}
.item-name {
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.item-price {
  font-weight: 700;
  font-size: 14px;
  margin-left: 10px;
}
.item-sub {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}
.item-status {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}
.status-hold {
  background: #e2e8f0;
  color: var(--text-muted);
}
.status-sent {
  background: var(--warning);
  color: white;
}
.status-ready {
  background: var(--success);
  color: white;
}

.order-footer {
  padding: 20px;
  border-top: 1px solid #e2e8f0;
  background: var(--surface);
}
.order-totals {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 15px;
}
.total-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}
.total-row.grand {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 5px;
}

.action-btns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* Tactile action buttons in order items */
.order-item [onclick] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  touch-action: manipulation;
  user-select: none;
}

