/* Layout for the pages in more.js. Colours come from the app's own variables, so light and dark both work. */
.mo-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.mo-seg { display: flex; gap: 6px; flex-wrap: wrap; }
.mo-seg .mo-on { background: var(--primary); border-color: var(--primary); color: var(--surface); }
.mo-date { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; color: var(--muted); }
.mo-date .st-input { width: auto; min-height: 34px; padding: 6px 10px; font-size: 13px; }
.mo-search { flex: 1; min-width: 180px; max-width: 420px; }

.mo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 14px; align-items: start; margin: 14px 0; }
.mo-box { padding: 16px; margin: 0 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.mo-form { display: grid; gap: 12px; }
.mo-form p { margin: 0; }
.mo-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; align-items: end; }
.mo-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 650; color: var(--ink); }
.mo-paste { min-height: 180px; resize: vertical; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.5; }
.mo-foot { display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; }
.mo-foot.mo-center { justify-content: center; gap: 14px; margin: 14px 0; }
.mo-acts { display: inline-flex; gap: 6px; flex-wrap: wrap; }

.mo-sub { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--muted); }
.mo-note { margin: 12px 0; padding: 10px 12px; border: 1px solid var(--line); border-left: 3px solid var(--muted); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 13px; line-height: 1.45; }
.mo-note.mo-good { border-left-color: var(--primary); }
.mo-note.mo-warn { border-left-color: var(--ink); }

.mo-kv { margin: 0; display: grid; }
.mo-kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.mo-kv > div:last-child { border-bottom: 0; }
.mo-kv dt { color: var(--muted); }
.mo-kv dd { margin: 0; font-weight: 750; color: var(--ink); white-space: nowrap; }
.mo-kv .mo-strong dt { color: var(--ink); font-weight: 750; }

/* Busy hours: one bar for each hour, as tall as its sales against the busiest hour. */
.mo-hours { display: flex; align-items: stretch; gap: 4px; height: 170px; padding-top: 6px; overflow-x: auto; }
.mo-hours > div { flex: 1; min-width: 24px; display: flex; flex-direction: column; gap: 4px; }
.mo-hours span { flex: 1; display: flex; align-items: flex-end; }
.mo-hours i { display: block; width: 100%; border-radius: 6px 6px 0 0; background: var(--primary); }
.mo-hours small { text-align: center; font-size: 11px; color: var(--muted); white-space: nowrap; }

.mo-gauge { min-width: 130px; }
.mo-gauge span { display: block; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.mo-gauge i { display: block; height: 100%; border-radius: 6px; background: var(--primary); }
.mo-stars { letter-spacing: 1px; color: var(--primary); white-space: nowrap; }
.mo-stars.mo-bad { color: var(--ink); }

.mo-address { display: grid; gap: 6px; align-content: start; min-width: 0; }
.mo-address p { margin: 0; font-size: 13px; }
.mo-address code { display: block; padding: 9px 11px; border: 1px dashed var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 13px; overflow-wrap: anywhere; user-select: all; }
.mo-switch { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; }

.mo-steps { list-style: none; margin: 0; padding: 0; }
.mo-steps li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mo-steps li:last-child { border-bottom: 0; }
.mo-steps li > span:nth-child(2) { flex: 1; min-width: 0; }
.mo-steps .mo-done b { color: var(--muted); font-weight: 650; }

@media (max-width: 640px) {
  .mo-bar { align-items: stretch; }
  .mo-date { flex: 1; }
  .mo-date .st-input { flex: 1; min-width: 0; }
  .mo-foot { justify-content: stretch; }
  .mo-foot .st-btn { flex: 1; }
  .mo-steps li { flex-wrap: wrap; }
  .mo-kv dd { white-space: normal; text-align: right; }
}
