:root {
  color-scheme: light;
  font-family: "Noto Sans KR", sans-serif;
}
body {
  margin: 0;
  background: #f6f7fb;
  color: #1f2937;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: white;
  border-bottom: 1px solid #e5e7eb;
}
main { padding: 20px; max-width: 1080px; margin: 0 auto; }
.hidden { display: none !important; }
.center-card {
  max-width: 420px;
  margin: 120px auto;
  background: white;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.large { font-size: 20px; padding: 16px 24px; }
button {
  border: 1px solid #cbd5e1;
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}
button.primary { background: #2563eb; color: #fff; border-color: #2563eb; }
.tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.tab.active { background: #1d4ed8; color: white; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.product-btn { text-align: left; }
.order-item {
  display: grid;
  grid-template-columns: 1fr auto auto auto auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.order-item input { width: 56px; padding: 4px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.row input { flex: 1; min-width: 180px; padding: 8px; }
.entry {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
  background: #fafafa;
}
.entry-header {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #374151;
}
.entry-actions { margin-top: 8px; }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid #e5e7eb; padding: 8px; text-align: left; }
