body { background: #eaf2ed; color: #0f241d; }
.hidden { display: none !important; }

.bo-shell {
  max-width: 1320px; margin: 0 auto; padding: 20px 18px 60px;
  display: grid; grid-template-columns: 256px minmax(0, 1fr); gap: 20px; align-items: start;
}

.bo-sidebar {
  background: #ffffff; border: 1px solid #d4e2da; border-radius: 18px; padding: 14px;
  position: sticky; top: 74px; display: flex; flex-direction: column; gap: 14px;
}

@media (max-width: 920px) {
  .bo-shell { grid-template-columns: minmax(0, 1fr); }
  .bo-sidebar { position: static; }
}
.bo-resto-head { padding: 6px 8px 12px; border-bottom: 1px solid #e2ece6; }
.bo-resto-head strong { display: block; font-size: 14px; font-weight: 900; color: #0d3b2e; }
.bo-live-dot { font-size: 12px; font-weight: 700; color: #0d3b2e; }
.bo-live-dot.paused { color: #dc2626; }

.bo-nav { display: flex; flex-direction: column; gap: 4px; }
.bo-nav button {
  width: 100%; text-align: left; border: 0; background: transparent; color: #3d544c;
  padding: 10px 12px; border-radius: 11px; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: space-between; gap: 8px; transition: all .15s;
}
.bo-nav button:hover { background: #eaf2ed; }
.bo-nav button.active { background: #0d3b2e; color: #ffffff; }
.bo-pill { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; font-variant-numeric: tabular-nums; white-space: nowrap; flex-shrink: 0; }
.bo-pill.red { background: #fee2e2; color: #b91c1c; }
.bo-pill.amber { background: #e8c780; color: #082920; }
.bo-pill.cyan { background: #e6f2ec; color: #0d3b2e; }

.bo-side-foot { padding-top: 10px; border-top: 1px solid #e2ece6; display: flex; flex-direction: column; gap: 6px; }
.bo-quick-link {
  text-decoration: none; font-size: 12px; font-weight: 700; color: #0d3b2e;
  padding: 7px 10px; border-radius: 9px; background: #eaf2ed;
}
.bo-reset-btn {
  border: 1px solid #d4e2da; background: #ffffff; color: #5d746c;
  font-size: 12px; font-weight: 700; padding: 7px 10px; border-radius: 9px; text-align: left;
}

.bo-panel { display: flex; flex-direction: column; gap: 18px; }
.bo-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.bo-head h1 { margin: 0; font-size: 24px; font-weight: 900; letter-spacing: -0.025em; color: #0d3b2e; }
.bo-head p { margin: 3px 0 0; font-size: 13.5px; color: #5d746c; }
.bo-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.bo-btn {
  padding: 10px 15px; border-radius: 11px; font-size: 13px; font-weight: 800;
  border: 1px solid transparent; transition: all .15s;
}
.bo-btn.primary { background: #de512b; color: #fff; }
.bo-btn.primary:hover { background: #c4411e; }
.bo-btn.ghost { background: #fff; border-color: #d4e2da; color: #0d3b2e; }
.bo-btn.ghost:hover { border-color: #0d3b2e; }
.bo-btn.danger { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.bo-btn.amber { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
.bo-btn.sm { padding: 7px 12px; font-size: 12px; }
.bo-btn.full { width: 100%; }

/* KPIs */
.bo-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1140px) { .bo-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bo-kpi {
  background: #fff; border: 1px solid #e2e5e0; border-radius: 16px; padding: 16px;
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.bo-kpi.highlight { background: #ecfdf5; border-color: #a7f3d0; }
.bo-kpi span { font-size: 12px; color: #64748b; font-weight: 600; }
.bo-kpi strong { font-size: clamp(20px, 2vw, 25px); font-weight: 900; letter-spacing: -0.03em; white-space: nowrap; }
.bo-kpi small { font-size: 11.5px; color: #64748b; }
.bo-kpi small.green { color: #059669; font-weight: 700; }

.bo-grid-2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 16px; }
@media (max-width: 820px) { .bo-grid-2 { grid-template-columns: 1fr; } }

.bo-card {
  background: #fff; border: 1px solid #e2e5e0; border-radius: 18px; padding: 18px;
  display: flex; flex-direction: column; gap: 14px;
}
.bo-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.bo-card-head h2 { margin: 0; font-size: 15.5px; font-weight: 900; }
.bo-muted { font-size: 12px; color: #64748b; }

/* CHART */
.bo-chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; height: 150px; align-items: end; padding-top: 12px; }
.bo-bar-col { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.bo-bars { width: 100%; max-width: 40px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; }
.b-del { background: #06b6d4; border-radius: 6px 6px 2px 2px; }
.b-pic { background: #10b981; border-radius: 2px 2px 6px 6px; }
.bo-bar-col span { font-size: 11px; color: #64748b; font-weight: 700; }
.bo-legend { display: flex; gap: 16px; font-size: 12px; color: #475569; }
.bo-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.bo-legend .dot.green { background: #10b981; }
.bo-legend .dot.cyan { background: #06b6d4; }

/* QUICK OPS */
.bo-quick-ops { display: flex; flex-direction: column; gap: 12px; }
.bo-op-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px; border-radius: 13px; background: #f8f9f8; border: 1px solid #e6e9e4;
}
.bo-op-row strong { display: block; font-size: 13px; font-weight: 800; }
.bo-op-row small { font-size: 12px; color: #64748b; }
.bo-prep-ctrl { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #d5d9d2; border-radius: 10px; padding: 4px 8px; }
.bo-prep-ctrl button { width: 30px; height: 30px; border-radius: 7px; border: 0; background: #f1f5f3; font-weight: 900; }

/* LISTS & CHOICES */
.bo-list { display: flex; flex-direction: column; }
.bo-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid #eef0ec;
}
.bo-row:last-child { border-bottom: 0; }
.bo-dish-meta { display: flex; align-items: center; gap: 12px; }
.bo-dish-meta img { width: 54px; height: 42px; border-radius: 10px; object-fit: cover; }
.bo-dish-meta strong { display: block; font-size: 14px; font-weight: 800; }
.bo-dish-meta small { font-size: 12px; color: #64748b; }
.bo-row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.bo-choices-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 720px) { .bo-choices-grid { grid-template-columns: 1fr 1fr; } }
.bo-choice-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px; border-radius: 13px; border: 1.5px solid #e2e5e0; background: #fafbfa; text-align: left;
}
.bo-choice-btn.oos { background: #fef2f2; border-color: #fca5a5; }
.bo-choice-btn strong { display: block; font-size: 13px; }
.bo-choice-btn small { font-size: 11px; color: #64748b; }

/* MCP & UBER STACKS */
.bo-stack { display: flex; flex-direction: column; gap: 12px; }
.bo-prop-card {
  background: #fff; border: 1.5px solid #fbbf24; border-radius: 16px; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.bo-prop-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.bo-prop-top strong { font-size: 15px; font-weight: 900; }
.bo-prop-diff { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 12.5px; }
@media (max-width: 600px) { .bo-prop-diff { grid-template-columns: 1fr; } }
.bo-diff { padding: 10px 12px; border-radius: 11px; background: #f8f9f8; border: 1px solid #e2e5e0; }
.bo-diff.after { background: #ecfdf5; border-color: #a7f3d0; }
.bo-prop-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid #eef0ec; font-size: 12px; color: #64748b; }

.bo-uber-rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 760px) { .bo-uber-rules { grid-template-columns: 1fr; } }
.bo-rule { background: #fff; border: 1px solid #e2e5e0; border-radius: 14px; padding: 14px; }
.bo-rule span { display: block; font-size: 11.5px; color: #64748b; }
.bo-rule strong { display: block; font-size: 13px; margin-top: 3px; }

.bo-uber-card {
  border-radius: 14px; padding: 14px; border: 1.5px solid #e2e5e0; background: #fafbfa;
  display: flex; flex-direction: column; gap: 10px;
}
.bo-uber-card.alert { background: #fffbeb; border-color: #f59e0b; }
.bo-uber-card.danger { background: #fef2f2; border-color: #ef4444; }
.bo-uber-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.bo-uber-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* AI GRID */
.bo-ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 760px) { .bo-ai-grid { grid-template-columns: 1fr; } }
.bo-ai-card {
  border: 1.5px solid #e2e5e0; border-radius: 14px; padding: 15px; background: #fafbfa;
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
}
.bo-ai-card.on { border-color: #10b981; background: #ecfdf5; }
.bo-ai-card p { margin: 4px 0 0; font-size: 12px; color: #475569; }

/* MODALS — height capped to the screen, scrolling body, header and action footer always reachable */
.bo-modal {
  background: #fff; border-radius: 18px; max-width: 480px; width: 100%; min-width: 0; padding: 0; box-shadow: 0 24px 60px rgba(0,0,0,0.3);
  display: flex; flex-direction: column; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: hidden;
}
.bo-modal-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid #eef0ec; flex-shrink: 0; }
.bo-modal-head h3 { margin: 0; font-size: 17px; font-weight: 900; min-width: 0; overflow-wrap: anywhere; }
.bo-close { width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px; border: 1px solid #e2e5e0; background: #fff; font-weight: 800; font-size: 16px; }
.bo-modal > .bo-form { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 14px 18px 0; }
.bo-modal > .bo-form > :last-child:not(.bo-modal-foot) { margin-bottom: 16px; }
.bo-modal-foot {
  position: sticky; bottom: 0; margin: auto -18px 0; padding: 12px 18px calc(14px + env(safe-area-inset-bottom, 0px));
  background: #fff; border-top: 1px solid #eef0ec; display: flex; gap: 8px; align-items: stretch; z-index: 1;
}
.bo-modal-foot .bo-btn { min-height: 46px; }
.bo-modal-foot .bo-btn.full { flex: 1; width: auto; }
.bo-modal input, .bo-modal select, .bo-modal textarea { font-size: 16px; }
.bo-form { display: flex; flex-direction: column; gap: 12px; font-size: 13px; min-width: 0; }
.bo-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; min-width: 0; }
.bo-form input, .bo-form select, .bo-form textarea { padding: 9px 11px; border-radius: 10px; border: 1px solid #d5d9d2; font-weight: 500; min-width: 0; max-width: 100%; box-sizing: border-box; }
.bo-form-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
@media (max-width: 480px) {
  .bo-form-2 { grid-template-columns: minmax(0, 1fr); }
  .f-modal-backdrop { padding: 10px; }
  .bo-modal { max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }
}

/* DIFFUSER & QR CODE TAB */
.bo-seg-mini { display: inline-flex; padding: 3px; border-radius: 10px; background: #eef0ec; gap: 3px; }
.bo-seg-mini button { border: 0; background: transparent; padding: 6px 11px; border-radius: 8px; font-size: 12px; font-weight: 700; color: #475569; }
.bo-seg-mini button.active { background: #0f2920; color: #fff; }
.bo-code-pill { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; padding: 6px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; }
.bo-subcard { background: #f8f9f8; border: 1px solid #e2e5e0; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; min-width: 0; }
.bo-code-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #141816; color: #6ee7b7; padding: 8px 10px; border-radius: 10px; font-size: 11px; min-width: 0; max-width: 100%; }
.bo-code-line code { white-space: nowrap; overflow-x: auto; min-width: 0; flex: 1; }
.bo-widget-custom { display: flex; gap: 8px; align-items: center; }
.bo-widget-custom input[type=text] { flex: 1; padding: 7px 10px; border-radius: 9px; border: 1px solid #d5d9d2; font-size: 12px; }
.bo-widget-custom input[type=color] { width: 38px; height: 34px; border: 1px solid #d5d9d2; border-radius: 8px; padding: 2px; background: #fff; cursor: pointer; }
.bo-widget-preview-row { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #64748b; }
.bo-float-preview { border: 0; padding: 9px 16px; border-radius: 999px; color: #fff; font-size: 12.5px; font-weight: 800; box-shadow: 0 8px 20px rgba(0,0,0,0.16); }

.bo-qr-box { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.bo-qr-checker {
  padding: 12px; border-radius: 16px; border: 1px solid #d5d9d2; flex-shrink: 0;
  background-image: linear-gradient(45deg, #eceee9 25%, transparent 25%), linear-gradient(-45deg, #eceee9 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #eceee9 75%), linear-gradient(-45deg, transparent 75%, #eceee9 75%);
  background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}
.bo-qr-controls { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 10px; }
.bo-qr-colors { display: flex; gap: 6px; }
.bo-qcol { padding: 5px 10px; border-radius: 8px; border: 1px solid #d5d9d2; background: #fff; font-size: 11.5px; font-weight: 700; }
.bo-qcol.active { background: #141816; color: #fff; border-color: #141816; }

.bo-mcp-qr-box {
  background: #111614; color: #f4f4f5; border-radius: 14px; padding: 14px; margin-top: 4px;
}
.bo-mcp-qr-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; font-size: 12.5px; }
.bo-mcp-qr-head code { font-size: 11px; color: #6ee7b7; background: rgba(16,185,129,0.16); padding: 2px 7px; border-radius: 6px; }
.bo-prompt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bo-prompt-chip { border: 1px solid rgba(255,255,255,0.18); background: #1d2622; color: #fff; padding: 7px 11px; border-radius: 9px; font-size: 12px; font-weight: 700; }
.bo-prompt-chip:hover, .bo-prompt-chip.active { background: #10b981; border-color: #10b981; color: #052e16; }

.bo-visual-stage {
  border-radius: 18px; overflow: hidden; border: 1px solid #e2e5e0; min-height: 290px;
  display: grid; place-items: center; padding: 18px; background: #f4f5f3;
}
.vis-card {
  width: 100%; max-width: 360px; border-radius: 20px; overflow: hidden;
  background: #111614; color: #fff; box-shadow: 0 18px 42px rgba(0,0,0,0.22);
}
.vis-card.vitrine { background: #ffffff; color: #141816; border: 2px solid #141816; }
.vis-card.story { max-width: 260px; background: linear-gradient(160deg, #c62828, #141816 70%); }
.vis-hero { height: 118px; position: relative; overflow: hidden; }
.vis-hero img { width: 100%; height: 100%; object-fit: cover; }
.vis-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.vis-body h3 { margin: 0; font-size: 17px; font-weight: 900; line-height: 1.15; }
.vis-body p { margin: 0; font-size: 12px; opacity: .85; }
.vis-qr-wrap { background: #fff; padding: 8px; border-radius: 12px; }
.vis-url { font-size: 11px; font-weight: 800; color: #34d399; }
.vis-card.vitrine .vis-url { color: #059669; }

.bo-checklist { display: flex; flex-direction: column; gap: 8px; }
.bo-check-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px;
  background: #f8f9f8; border: 1px solid #e6e9e4; cursor: pointer; font-size: 13px;
}
.bo-check-item.done { background: #ecfdf5; border-color: #a7f3d0; }
.bo-check-item input { width: 18px; height: 18px; accent-color: #059669; flex-shrink: 0; }
.bo-check-item small { display: block; font-size: 11.5px; color: #64748b; }


/* MANAGER SETTINGS SCREENS (hours, closures, promos, delivery, readiness, session) */
.bo-panel input, .bo-panel select, .bo-panel textarea { font-size: 16px; }
.bo-subtitle { margin: 4px 0 6px; font-size: 13.5px; font-weight: 900; color: #0d3b2e; }
.bo-note { margin: 0; padding: 10px 12px; border-radius: 11px; background: #fffbeb; border: 1px solid #fcd34d; color: #78350f; font-size: 13px; font-weight: 600; }
.bo-switch-row { display: flex !important; flex-direction: row !important; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 800; cursor: pointer; }
.bo-switch-row input { width: 22px; height: 22px; accent-color: #0d3b2e; flex-shrink: 0; }
.bo-readiness { background: #fffbeb; border: 1.5px solid #f59e0b; border-radius: 16px; padding: 14px 16px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.bo-readiness strong { font-size: 14.5px; color: #78350f; }
.bo-readiness ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.bo-readiness li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.bo-readiness li.done { color: #065f46; }
.bo-readiness li .bo-btn { min-height: 40px; }
.bo-hours-status { border-radius: 14px; padding: 14px 16px; font-size: 15px; font-weight: 800; background: #fff; border: 1.5px solid #e2e5e0; }
.bo-hours-status.open { background: #ecfdf5; border-color: #10b981; color: #065f46; }
.bo-hours-status.closed { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }
.bo-hours-status.empty { background: #fffbeb; border-color: #f59e0b; color: #78350f; }
.bo-hours-status small { display: block; font-size: 12.5px; font-weight: 600; margin-top: 4px; }
.bo-hours-presets { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bo-hours-presets .bo-btn, .bo-hours-day .bo-btn { min-height: 44px; }
.bo-hours-week { display: flex; flex-direction: column; gap: 8px; }
.bo-hours-week-title { font-size: 13.5px; font-weight: 900; color: #0d3b2e; margin-top: 4px; }
.bo-hours-day { border: 1px solid #e6e9e4; border-radius: 14px; padding: 10px 12px; background: #fafbfa; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bo-hours-day.closed { background: #f4f5f3; }
.bo-hours-day-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.bo-hours-day-top strong { font-size: 14.5px; font-weight: 900; min-width: 84px; }
.bo-hours-day-top label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13.5px; font-weight: 800; cursor: pointer; }
.bo-hours-day-top input[type=checkbox] { width: 22px; height: 22px; accent-color: #0d3b2e; }
.bo-hours-legacy { font-size: 12px; color: #92400e; }
.bo-hours-slot { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; min-width: 0; }
.bo-hours-slot select { flex: 1 1 0; width: 0; min-width: 0; height: 44px; padding: 6px 8px; border-radius: 10px; border: 1px solid #d5d9d2; background: #fff; font-size: 16px; }
.bo-hours-slot span { font-weight: 800; color: #64748b; }
.bo-hours-slot .bo-icon-btn { width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px; border: 1px solid #fecaca; background: #fef2f2; color: #b91c1c; font-weight: 900; }
.bo-hours-day-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.bo-sticky-save { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0 calc(6px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid #eef0ec; }
.bo-sticky-save .bo-btn { min-height: 46px; }
.bo-closure-form .bo-seg-mini button { min-height: 40px; padding: 8px 14px; font-size: 13px; }
.bo-row .bo-btn { min-height: 40px; }
.bo-row-main { min-width: 0; flex: 1 1 200px; }
.bo-row-main strong { overflow-wrap: anywhere; }
.bo-promo-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; font-weight: 900; letter-spacing: .04em; }
.bo-tiers { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.bo-tier { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; gap: 8px; align-items: end; }
.bo-tier label { font-size: 12px; }
.bo-tier .bo-icon-btn { width: 44px; height: 44px; border-radius: 10px; border: 1px solid #fecaca; background: #fef2f2; color: #b91c1c; font-weight: 900; }
.bo-order-btns { display: inline-flex; gap: 4px; }
.bo-order-btns button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid #d4e2da; background: #fff; font-weight: 900; color: #0d3b2e; }
.bo-order-btns button:disabled { opacity: .35; }
.bo-cat-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid #eef0ec; }
.bo-cat-row:last-child { border-bottom: 0; }
.bo-cat-row input { flex: 1 1 160px; min-width: 0; height: 42px; padding: 6px 10px; border-radius: 10px; border: 1px solid #d5d9d2; font-size: 16px; }
.bo-cat-row small { color: #64748b; font-size: 12px; }
.bo-session-screen { position: fixed; inset: 0; z-index: 9000; background: rgba(13,59,46,.72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.bo-session-box { background: #fff; border-radius: 18px; padding: 22px; max-width: 420px; width: 100%; display: flex; flex-direction: column; gap: 10px; }
.bo-session-box h2 { margin: 0; font-size: 19px; color: #0d3b2e; }
.bo-session-box p { margin: 0; font-size: 14px; color: #334155; line-height: 1.5; }
.bo-session-box .bo-btn { min-height: 48px; font-size: 15px; }
.bo-diff strong { white-space: pre-line; overflow-wrap: anywhere; }
/* Stripe — branchement guidé (paiement en ligne) */
.stripe-status { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.stripe-status-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #f8f9f8; border: 1px solid #e6e9e4; }
.stripe-status-row.ok { background: #ecfdf5; border-color: #a7f3d0; }
.stripe-status-row.ko { background: #fff7ed; border-color: #fed7aa; }
.stripe-status-row strong { display: block; font-size: 13.5px; }
.stripe-status-row small { display: block; font-size: 12.5px; color: #475569; line-height: 1.4; overflow-wrap: anywhere; }
.stripe-status-icon { font-size: 18px; line-height: 1.2; flex-shrink: 0; }
.stripe-disputes { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #fef2f2; border: 1px solid #fecaca; font-size: 13px; color: #7f1d1d; }
.stripe-disputes ul { margin: 6px 0 0; padding-left: 18px; }
.stripe-disputes li { margin: 4px 0; line-height: 1.4; }
.stripe-fold { margin-top: 12px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
.stripe-fold > summary { cursor: pointer; padding: 12px 14px; min-height: 44px; box-sizing: border-box; font-weight: 700; font-size: 13.5px; }
.stripe-steps { margin: 0; padding: 0 14px 12px 32px; font-size: 13px; line-height: 1.5; color: #334155; }
.stripe-steps li { margin: 6px 0; }
.stripe-perms { margin: 6px 0; padding-left: 18px; }
.stripe-perms small { display: block; color: #64748b; }
.stripe-events { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.stripe-events code, .stripe-copy-row code, #stripe-api-version { font-size: 11.5px; background: #f1f5f9; padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.stripe-copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.stripe-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.stripe-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; padding: 0 2px; }
.stripe-fold .stripe-field { padding: 0 14px 12px; }
.stripe-field input { padding: 11px 12px; min-height: 44px; box-sizing: border-box; border: 1px solid #d4d4d8; border-radius: 10px; font-size: 15px; width: 100%; }
.stripe-field small { font-weight: 500; }
.stripe-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.stripe-actions .bo-btn { min-height: 44px; }
.stripe-output { margin-top: 10px; font-size: 13px; }
.stripe-output ul { margin: 6px 0 0; padding-left: 0; list-style: none; }
.stripe-output li { margin: 4px 0; line-height: 1.4; }
@media (max-width: 520px) { .stripe-actions .bo-btn { flex: 1 1 100%; } }
.stripe-copy-row .bo-btn { min-height: 44px; }

/* Carte de validation d'un import de carte (tous les plats, groupés par rubrique) */
.bo-mb { display: flex; flex-direction: column; gap: 10px; font-size: 13px; min-width: 0; }
.bo-mb-total { margin: 0; padding: 10px 12px; border-radius: 11px; background: #eaf2ed; border: 1px solid #c6dcd0; color: #0d3b2e; font-size: 14px; }
.bo-mb-src, .bo-mb-note { margin: 0; color: #475569; font-size: 12.5px; overflow-wrap: anywhere; }
.bo-mb-src a { color: #0d3b2e; font-weight: 700; text-decoration: underline; }
.bo-mb-alert { padding: 10px 12px; border-radius: 11px; background: #fffbeb; border: 1.5px solid #f59e0b; color: #78350f; }
.bo-mb-alert ul { margin: 6px 0 0; padding-left: 18px; }
.bo-mb-group { border: 1px solid #e2e5e0; border-radius: 12px; background: #fafbfa; }
.bo-mb-group.todo { background: #fff7ed; border-color: #fdba74; }
.bo-mb-group > summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; cursor: pointer; font-weight: 800; list-style-position: inside; }
.bo-mb-group > summary > span:first-child { overflow-wrap: anywhere; min-width: 0; }
.bo-mb-group > summary .bo-muted { flex-shrink: 0; font-weight: 600; }
.bo-mb-group ul { list-style: none; margin: 0; padding: 0 8px 8px; display: flex; flex-direction: column; gap: 6px; }
.bo-mb-dish { background: #fff; border: 1px solid #eef0ec; border-radius: 10px; padding: 8px 10px; min-width: 0; }
.bo-mb-dish.unusual { border: 1.5px solid #f59e0b; background: #fffbeb; }
.bo-mb-dish-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.bo-mb-dish-top strong { overflow-wrap: anywhere; min-width: 0; }
.bo-mb-price { font-weight: 900; white-space: nowrap; }
.bo-mb-dish small { display: block; color: #64748b; font-size: 12px; margin-top: 4px; overflow-wrap: anywhere; }
.bo-mb-dish-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.bo-mb-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 800; }
.bo-mb-tag.new { background: #d1fae5; color: #065f46; }
.bo-mb-tag.upd { background: #dbeafe; color: #1e3a8a; }
.bo-mb-tag.warn { background: #fef3c7; color: #92400e; }
.bo-mb-warn { color: #92400e; }
.bo-mb-danger { color: #b91c1c; }
.bo-prop-card { min-width: 0; }
.bo-prop-foot .bo-btn { min-height: 44px; }
.bo-assist-src { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.bo-assist-src .bo-btn { min-height: 44px; }
.bo-assist-src .bo-btn.active { background: #0d3b2e; border-color: #0d3b2e; color: #fff; }
.bo-assist-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; }
.bo-assist-field input { min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid #d5d9d2; font-size: 16px; width: 100%; box-sizing: border-box; }
.bo-assist-phrase { margin: 0 0 10px; padding: 10px 12px; border-radius: 11px; background: #f8f9f8; border: 1px dashed #94a3b8; font-size: 14px; overflow-wrap: anywhere; user-select: all; }
#btn-assist-import-copy, #btn-assist-import-connect { min-height: 44px; }
.bo-mb-group > summary { list-style: none; }
.bo-mb-group > summary::-webkit-details-marker { display: none; }
.bo-mb-group > summary > span:first-child::before { content: '▸'; display: inline-block; width: 1.1em; color: #64748b; }
.bo-mb-group[open] > summary > span:first-child::before { content: '▾'; }

/* PILOTE AUTOMATIQUE */
.ap-status { padding: 14px 16px; border-radius: 14px; font-size: 15px; font-weight: 900; display: flex; flex-direction: column; gap: 4px; }
.ap-status small { font-size: 13px; font-weight: 600; }
.ap-status.off { background: #f1f5f3; border: 1px solid #d4e2da; color: #334155; }
.ap-status.on { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.ap-master span { font-size: 16px; }
.ap-scenarios, .ap-limits { display: flex; flex-direction: column; gap: 12px; }
.ap-scenario { padding: 12px; border-radius: 13px; background: #f8f9f8; border: 1px solid #e6e9e4; display: flex; flex-direction: column; gap: 6px; }
.ap-scenario.off .ap-sentence { opacity: 0.55; }
.ap-sentence { margin: 0; font-size: 14px; line-height: 2.4; color: #0f241d; overflow-wrap: anywhere; }
.ap-inline { width: 4.6em; min-height: 44px; padding: 6px 8px; margin: 0 2px; border-radius: 10px; border: 1px solid #c5cfc9; font-size: 15px; font-weight: 800; text-align: center; box-sizing: border-box; vertical-align: middle; }
.ap-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ap-row { align-items: flex-start; }
.ap-row-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 220px; }
.ap-row-text strong { font-size: 13.5px; }
.ap-row-text small { font-size: 12.5px; color: #475569; overflow-wrap: anywhere; }
.ap-row-text small.ap-why { color: #92400e; font-weight: 700; }
.ap-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ap-actions .bo-btn { min-height: 44px; }
@media (max-width: 480px) {
  .ap-actions { width: 100%; }
  .ap-actions .bo-btn { flex: 1 1 0; }
  .ap-kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
