/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * NO require_tree: it would sweep in application.tailwind.css (raw @tailwind
 * directives) and hand it to SassC, which can't parse modern CSS such as
 * rgb(a b c / var(--x)). Tailwind is compiled separately by tailwindcss:build
 * into app/assets/builds/tailwind.css and linked on its own in the layout.
 *

 */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Helvetica Neue", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: #1f2933;
  background: #f5f7fa;
}

.app-header {
  background: #c0392b;
  color: #fff;
}

.app-header nav {
  max-width: 900px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-header a { color: #fff; text-decoration: none; }
.app-header .brand { font-weight: 700; font-size: 1.1rem; }

.app-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px;
}

.flash {
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
}
.flash-notice { background: #d4f4dd; color: #11623a; }
.flash-alert, .flash-error { background: #fbe3e1; color: #8a1c12; }

.home h1 { font-size: 1.8rem; }
.home-links { list-style: none; padding: 0; }
.home-links a { color: #c0392b; font-weight: 600; }

/* Shared UI */
.page-head { display: flex; justify-content: space-between; align-items: center; }
.btn, button.btn {
  display: inline-block; padding: 6px 12px; border-radius: 6px;
  background: #c0392b; color: #fff; border: 0; text-decoration: none; cursor: pointer;
}
.btn-primary { background: #11623a; }
.btn-danger { background: #8a1c12; }
.muted, .badge-muted { color: #8a94a6; }
.badge { font-size: .75rem; background: #d4f4dd; color: #11623a; padding: 2px 6px; border-radius: 4px; }
.badge-muted { background: #eceff3; }
.field { margin: 10px 0; display: flex; flex-direction: column; gap: 4px; max-width: 32rem; }
.field input, .field textarea { padding: 6px; border: 1px solid #cbd2dc; border-radius: 6px; }
.form-errors { background: #fbe3e1; color: #8a1c12; padding: 8px 12px; border-radius: 6px; }
.actions { display: flex; gap: 12px; align-items: center; margin-top: 8px; }

.store-list { list-style: none; padding: 0; }
.store-list li { padding: 8px 0; border-bottom: 1px solid #e6e9ee; }

.menu-table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.menu-table th, .menu-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #e6e9ee; vertical-align: top; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; }

.chip {
  display: inline-block; margin: 2px; padding: 3px 8px; border-radius: 12px;
  border: 1px solid #cbd2dc; background: #fff; cursor: pointer; font-size: .8rem;
}
.chip-on { background: #11623a; color: #fff; border-color: #11623a; }
.chip-off { color: #555; }
.link-danger { background: none; border: 0; color: #8a1c12; cursor: pointer; padding: 0; }

.option-group { border: 1px solid #e6e9ee; border-radius: 8px; padding: 10px 14px; margin: 10px 0; }
.choices { list-style: none; padding: 0; }
.choices li { padding: 2px 0; }
.draft-actions { display: flex; gap: 12px; margin: 12px 0; }

/* Hide the default <details>/<summary> disclosure marker (the stray dot/triangle)
   so our custom triggers render cleanly. */
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::marker { content: ""; }
