* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, Segoe UI, Roboto, sans-serif;
  background: #f4f5f7;
  color: #1f2430;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #1f2430;
  color: #fff;
}
header h1 { font-size: 18px; margin: 0; }
nav { display: flex; gap: 8px; align-items: center; }

button {
  cursor: pointer;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  background: #ffb400;
  color: #1f2430;
  font-weight: 600;
}
button.secondary { background: #3a4051; color: #fff; }
button.tab-btn { background: transparent; color: #fff; }
button.tab-btn.active { background: #ffb400; color: #1f2430; }

main { padding: 24px; max-width: 1100px; margin: 0 auto; }

.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.product-card img { width: 100%; height: 140px; object-fit: cover; border-radius: 6px; margin-bottom: 8px; background: #eee; }
.product-card h3 { margin: 4px 0; }
.product-card .price { font-weight: 700; }
.product-card .inactive { opacity: 0.5; }
.product-card .actions { display: flex; gap: 8px; margin-top: 10px; }

.screen.login-screen, #login-screen { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-card { width: 320px; display: flex; flex-direction: column; gap: 10px; }
.login-card h1 { font-size: 20px; margin: 0 0 8px; }

label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #555; }
label.checkbox { flex-direction: row; align-items: center; gap: 8px; }
input, textarea { padding: 8px; border: 1px solid #ccc; border-radius: 6px; font-size: 14px; font-family: inherit; }
textarea { min-height: 70px; resize: vertical; }

.error { color: #d33; min-height: 18px; font-size: 13px; }

.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
}
.modal .card { width: 420px; display: flex; flex-direction: column; gap: 10px; max-height: 90vh; overflow-y: auto; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }

.order-card { margin-bottom: 12px; }
.order-card .order-items { margin: 8px 0; padding-left: 18px; }
.order-card .order-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.status-badge {
  display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 12px; font-weight: 600;
  background: #eee;
}
.status-NEW { background: #fff3cd; }
.status-CONFIRMED { background: #cfe2ff; }
.status-COMPLETED { background: #d1e7dd; }
.status-CANCELLED { background: #f8d7da; }

table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eee; font-size: 14px; }
th { background: #fafafa; }
