/* ============================================
   Carne Nica - Styles
   ============================================ */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f0eb;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  background: #c0392b;
  color: white;
  padding: 1rem;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.header-brand {
  text-align: left;
}

header h1 {
  font-size: 1.5rem;
  margin-bottom: 0.15rem;
}

.subtitle {
  font-size: 0.85rem;
  opacity: 0.85;
}

nav {
  display: flex;
  gap: 0.25rem;
  justify-content: center;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.nav-link:hover {
  background: rgba(255,255,255,0.15);
}

.nav-link.active {
  background: rgba(255,255,255,0.25);
  font-weight: 600;
}

/* Main */
main {
  flex: 1;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  padding: 1rem;
}

/* Date banner */
.date-banner {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  text-align: center;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #c0392b;
}

/* Loading */
.loading {
  text-align: center;
  padding: 2rem;
  color: #888;
}

/* Form */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

input[type="text"],
textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}

input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: #c0392b;
  box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.15);
}

/* Menu sections */
.menu-section {
  margin-bottom: 1.25rem;
}

.menu-section h2 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #555;
}

.menu-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.menu-item {
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.75rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.menu-item:hover {
  border-color: #c0392b;
}

.menu-item.selected {
  border-color: #c0392b;
  background: #fdf2f0;
}

.menu-item input[type="radio"],
.menu-item input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: #c0392b;
}

.menu-item-info {
  flex: 1;
}

.menu-item-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.menu-item-desc {
  font-size: 0.8rem;
  color: #777;
  margin-top: 0.15rem;
}

.menu-item-price {
  font-weight: 700;
  color: #c0392b;
  white-space: nowrap;
}

.menu-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  flex-shrink: 0;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.qty-btn {
  width: 1.8rem;
  height: 1.8rem;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s, border-color 0.15s;
}

.qty-btn:hover:not(:disabled) {
  background: #f0f0f0;
  border-color: #bbb;
}

.qty-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.qty-value {
  min-width: 1.4rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
}

.combo-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.8rem;
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.combo-qty-label {
  font-weight: 600;
  color: #333;
}

.menu-item.unavailable {
  opacity: 0.45;
  pointer-events: none;
}

/* Total bar */
.total-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 2px solid #c0392b;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #c0392b;
}

/* Buttons */
.btn-primary {
  width: 100%;
  padding: 0.85rem;
  background: #c0392b;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover:not(:disabled) {
  background: #a93226;
}

.btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.btn-secondary {
  width: 100%;
  padding: 0.7rem;
  background: #fff;
  color: #c0392b;
  border: 2px solid #c0392b;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: #fdf2f0;
}

/* Status messages */
.status-msg {
  text-align: center;
  padding: 0.75rem;
  margin-top: 0.75rem;
  border-radius: 8px;
  font-weight: 600;
}

.status-msg.success {
  background: #d4edda;
  color: #155724;
}

.status-msg.error {
  background: #f8d7da;
  color: #721c24;
}

/* Stats bar */
.stats-bar {
  display: flex;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Summary aggregate */
#summary-aggregate {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.25rem;
}

#summary-aggregate h2 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: #555;
}

.aggregate-item {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.aggregate-item:last-of-type {
  border-bottom: none;
}

.aggregate-divider {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
  margin: 0.6rem 0 0.2rem;
}

.aggregate-item-extra .aggregate-qty {
  color: #888;
}

.aggregate-qty {
  font-weight: 700;
  color: #c0392b;
  margin-right: 0.5rem;
}

#copy-summary {
  margin-top: 0.75rem;
}

/* Orders table */
#orders-table-container {
  overflow-x: auto;
  margin-bottom: 1rem;
}

#orders-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.85rem;
}

#orders-table th {
  background: #f5f0eb;
  padding: 0.5rem;
  text-align: left;
  font-size: 0.8rem;
  color: #555;
}

#orders-table td {
  padding: 0.5rem;
  border-top: 1px solid #eee;
}

.row-denied {
  opacity: 0.4;
  text-decoration: line-through;
}

.row-pending {
  opacity: 0.7;
}

.status-badge {
  display: inline-block;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
}

.status-badge.approved {
  background: #27ae60;
}

.status-badge.denied {
  background: #c0392b;
}

.status-badge.pending {
  background: #f39c12;
}

/* Delivery checklist */
.delivery-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.delivery-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: background 0.2s, opacity 0.2s;
}

.delivery-item.delivered {
  background: #d4edda;
  opacity: 0.8;
}

.delivery-item.delivered .delivery-name,
.delivery-item.delivered .delivery-detail {
  text-decoration: line-through;
}

/* Two-icon check group */
.delivery-checks {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex-shrink: 0;
}

.check-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.check-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.check-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 2px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  background: #f5f0eb;
  color: #aaa;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  user-select: none;
}

/* Delivered icon — green check */
.check-label input.check-delivered:checked ~ .check-icon.delivered-icon {
  background: #27ae60;
  border-color: #27ae60;
  color: #fff;
}

/* Paid icon — blue dollar */
.check-label input.check-paid:checked ~ .check-icon.paid-icon {
  background: #2980b9;
  border-color: #2980b9;
  color: #fff;
}

.delivery-info {
  flex: 1;
}

.delivery-name {
  font-weight: 600;
}

.delivery-detail {
  font-size: 0.8rem;
  color: #777;
}

.delivery-price {
  font-weight: 700;
  color: #c0392b;
}

/* No orders message */
#no-orders,
#no-delivery-orders {
  text-align: center;
  padding: 2rem;
  color: #888;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
  color: #999;
}

footer .version {
  font-size: 0.7rem;
  color: #bbb;
  margin-top: 0.25rem;
}

/* Spinner for buttons */
.btn-primary.loading-btn {
  position: relative;
  color: transparent;
}

.btn-primary.loading-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---- Orders closed banner ---- */
.closed-banner {
  background: #f8d7da;
  border: 2px solid #c0392b;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

.closed-icon {
  font-size: 2rem;
  font-weight: 700;
  color: #c0392b;
  margin-bottom: 0.5rem;
}

.closed-banner p {
  font-weight: 600;
  color: #721c24;
}

.closed-sub {
  font-weight: 400 !important;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  opacity: 0.8;
}

/* ---- Admin nav link ---- */
.nav-admin {
  border-left: 1px solid rgba(255,255,255,0.3);
  margin-left: 0.25rem;
  padding-left: 1rem;
}

/* ---- Admin view ---- */
#admin-login {
  max-width: 300px;
  margin: 2rem auto;
}

#admin-login input[type="password"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  text-align: center;
  letter-spacing: 0.3em;
}

#admin-login input[type="password"]:focus {
  outline: none;
  border-color: #c0392b;
  box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.15);
}

.btn-logout {
  background: none;
  border: 1px solid #aaa;
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
  color: #666;
  cursor: pointer;
}

.btn-logout:hover {
  background: #f5f0eb;
  border-color: #c0392b;
  color: #c0392b;
}

.admin-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.admin-card-header h2 {
  font-size: 1rem;
  color: #555;
}

.btn-icon {
  background: none;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  font-size: 1.1rem;
  cursor: pointer;
  color: #555;
}

.btn-icon:hover {
  background: #f5f0eb;
}

.btn-icon.btn-danger:hover {
  border-color: #c0392b;
  color: #c0392b;
}

.admin-card-actions {
  display: flex;
  gap: 0.5rem;
}

/* Toggle button */
.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#toggle-label {
  font-weight: 600;
}

.btn-toggle {
  padding: 0.5rem 1.25rem;
  border: 2px solid;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-toggle.open {
  background: #d4edda;
  border-color: #27ae60;
  color: #155724;
}

.btn-toggle.closed {
  background: #f8d7da;
  border-color: #c0392b;
  color: #721c24;
}

/* Admin filter tabs */
#admin-filter {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.35rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: #fff;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn.active {
  background: #c0392b;
  color: white;
  border-color: #c0392b;
}

.filter-btn:hover:not(.active) {
  background: #f5f0eb;
}

/* Admin order items */
.admin-orders-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-order {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.75rem;
  transition: all 0.2s;
}

.admin-order.status-approved {
  border-left: 4px solid #27ae60;
}

.admin-order.status-denied {
  border-left: 4px solid #c0392b;
  opacity: 0.6;
}

.admin-order.status-pending {
  border-left: 4px solid #f39c12;
}

.admin-order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.admin-order-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.admin-order-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  text-transform: uppercase;
}

.admin-order-status.pending {
  background: #fff3cd;
  color: #856404;
}

.admin-order-status.approved {
  background: #d4edda;
  color: #155724;
}

.admin-order-status.denied {
  background: #f8d7da;
  color: #721c24;
}

.admin-order-detail {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 0.5rem;
}

.admin-order-price {
  font-weight: 700;
  color: #c0392b;
  font-size: 0.85rem;
}

.admin-order-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.btn-approve,
.btn-deny {
  flex: 1;
  padding: 0.4rem;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-approve {
  background: #27ae60;
  color: white;
}

.btn-deny {
  background: #c0392b;
  color: white;
}

.btn-approve:hover,
.btn-deny:hover {
  opacity: 0.85;
}

.btn-approve:disabled,
.btn-deny:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── AUTH ─────────────────────────────────────────────────────────────────── */

.auth-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.auth-greeting {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
}

header .btn-logout {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: white;
}

header .btn-logout:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: white;
  color: white;
}

.auth-form-container {
  max-width: 360px;
  margin: 1.5rem auto;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
}

.auth-form-container h2 {
  text-align: center;
  margin-bottom: 1.25rem;
  color: #c0392b;
  font-size: 1.2rem;
}

.auth-form-container input[type="email"],
.auth-form-container input[type="password"],
.auth-form-container input[type="text"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box;
}

.auth-form-container input:focus {
  outline: none;
  border-color: #c0392b;
  box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.15);
}

.auth-form-container .btn-primary {
  width: 100%;
  margin-top: 0.25rem;
}

.auth-switch {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #777;
}

.auth-switch a {
  color: #c0392b;
  font-weight: 600;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* Login prompt shown in order view when not authenticated */
.login-prompt {
  text-align: center;
  padding: 2rem 1rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 1rem;
  color: #555;
}

.login-prompt a {
  color: #c0392b;
  font-weight: 600;
  text-decoration: none;
}

.login-prompt a:hover {
  text-decoration: underline;
}

/* Admin access message */
.admin-access-msg {
  text-align: center;
  padding: 2rem 1rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  color: #555;
}

/* ── ADMIN MENU EDITOR ──────────────────────────────────────────────────── */

.admin-menu-category {
  margin-bottom: 1rem;
}

.admin-menu-category-title {
  font-size: 0.8rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #eee;
}

.admin-menu-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-menu-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.75rem;
}

.admin-menu-item-display {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-menu-item-info {
  flex: 1;
  min-width: 0;
}

.admin-menu-item-name {
  font-weight: 600;
  font-size: 0.95rem;
  display: block;
}

.admin-menu-item-desc {
  font-size: 0.8rem;
  color: #777;
  display: block;
}

.admin-menu-item-price {
  font-weight: 700;
  color: #c0392b;
  white-space: nowrap;
}

.admin-menu-item-avail {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  white-space: nowrap;
}

.admin-menu-item-avail.available {
  background: #d4edda;
  color: #155724;
}

.admin-menu-item-avail.unavailable {
  background: #f8d7da;
  color: #721c24;
}

.admin-menu-item-actions {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.admin-menu-item-edit {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #eee;
}

.admin-menu-form {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #eee;
}

.admin-menu-form h3 {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.75rem;
}

.admin-menu-form-actions {
  display: flex;
  gap: 0.5rem;
}

.admin-menu-form-actions .btn-primary,
.admin-menu-form-actions .btn-secondary {
  flex: 1;
  padding: 0.5rem;
  font-size: 0.85rem;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: normal;
}

.toggle-label input[type="checkbox"] {
  accent-color: #c0392b;
}

select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}

select:focus {
  outline: none;
  border-color: #c0392b;
  box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.15);
}

input[type="number"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}

input[type="number"]:focus {
  outline: none;
  border-color: #c0392b;
  box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.15);
}

/* ── COMBO OPTION GROUPS (order view) ──────────────────────────────────────── */

.option-group {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.option-group.included {
  border-color: #a8d5b5;
  background: #f4fbf6;
}

.option-group-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: #444;
}

.option-group-subtitle {
  font-weight: 400;
  color: #888;
}

.option-group-counter {
  font-size: 0.75rem;
  font-weight: 600;
  color: #c0392b;
  margin-bottom: 0.5rem;
}

.option-group-counter.satisfied {
  color: #27ae60;
}

.option-choices {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.option-choice {
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: border-color 0.15s, background 0.15s;
}

.option-choice:hover {
  border-color: #c0392b;
}

.option-choice.selected {
  border-color: #c0392b;
  background: #fdf2f0;
}

.option-choice input[type="checkbox"] {
  accent-color: #c0392b;
  flex-shrink: 0;
}

.option-choice-name {
  font-size: 0.9rem;
}

.option-group.included .option-choice {
  border-color: #a8d5b5;
  background: #eafaf1;
}

.option-group.included .option-choice.deselected {
  border-color: #ddd;
  background: #fff;
  opacity: 0.6;
}

/* Instance label shown when a combo has multiple variants (e.g. "Opcion 1") */
.instance-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #c0392b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.75rem 0;
}

.combo-instance + .combo-instance {
  border-top: 1px dashed #e0e0e0;
  margin-top: 0.5rem;
  padding-top: 0.25rem;
}

/* Small text for combo options in order displays */
.combo-opts-text {
  color: #777;
  font-weight: 400;
}

/* ── ADMIN OPTION GROUPS EDITOR ────────────────────────────────────────────── */

.option-groups-editor {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #eee;
}

.option-groups-editor-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 0.5rem;
}

.option-group-editor {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: #fafafa;
}

.option-group-editor .form-group {
  margin-bottom: 0.5rem;
}

.option-group-editor .form-group label {
  font-size: 0.8rem;
}

.option-group-editor-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}

.option-group-editor-row .form-group {
  flex: 1;
}

.choice-item {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 0.35rem;
}

.choice-item input {
  flex: 1;
}

.btn-remove-choice {
  background: none;
  border: none;
  color: #c0392b;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0 0.3rem;
  line-height: 1;
  flex-shrink: 0;
}

.btn-remove-choice:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.btn-add-choice,
.btn-add-group {
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
  background: #f5f0eb;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  color: #555;
  margin-top: 0.25rem;
}

.btn-add-choice:hover,
.btn-add-group:hover {
  background: #ebe6e0;
}

.btn-remove-group {
  font-size: 0.75rem;
  color: #c0392b;
  background: none;
  border: 1px solid #c0392b;
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
  margin-top: 0.35rem;
}

.btn-remove-group:hover {
  background: #fdf2f0;
}

.admin-menu-item-options-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.3rem;
}

.option-group-tag {
  font-size: 0.7rem;
  background: #eee;
  padding: 0.1rem 0.45rem;
  border-radius: 10px;
  color: #666;
}
