/* Maniô App — painel da loja e do motoboy */
body.m-page-panel, body.m-page-motoboy { background: var(--m-cream); padding: 0 !important; }
body.m-page-panel .page-header, body.m-page-motoboy .page-header, body.m-page-panel .m-footer, body.m-page-motoboy .m-footer { display: none; }
body.m-page-panel .site-main, body.m-page-motoboy .site-main, body.m-page-panel .page-content, body.m-page-motoboy .page-content { max-width: none; padding: 0; margin: 0; }
.mp { --mp-line: #EEDCD8; color: var(--m-ink); font-family: var(--m-font); font-size: 15px; min-height: 100vh; }
.mp *, .mp *::before, .mp *::after { box-sizing: border-box; }
.mp h1, .mp h2, .mp h3 { font-family: var(--m-font); color: var(--m-ink); letter-spacing: -.01em; }
.mp-loading { display: grid; place-items: center; min-height: 60vh; }
.mp-loading svg { width: 64px; animation: mp-breathe 1.4s ease-in-out infinite; }
@keyframes mp-breathe { 50% { opacity: .35; } }
.mp-muted { color: var(--m-muted); }
.mp-lead { margin: -6px 0 16px; color: var(--m-brown); max-width: 70ch; }

/* ------------------------------ Botões ------------------------------ */
.mp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--m-pink-a); color: #fff; font: 600 15px var(--m-font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, transform .1s; }
.mp-btn:hover { background: var(--m-pink-d); color: #fff; }
.mp-btn:active { transform: scale(.98); }
.mp-btn.is-go { background: var(--m-teal-d); }
.mp-btn.is-go:hover { background: #1B5956; }
.mp-btn.is-ghost { background: #fff; color: var(--m-brown-d); box-shadow: inset 0 0 0 1.5px var(--mp-line); }
.mp-btn.is-ghost:hover { background: var(--m-cream-d); }
.mp-btn.is-danger { background: #fff; color: #B3372E; box-shadow: inset 0 0 0 1.5px #F2C7C2; }
.mp-btn.is-sm { min-height: 34px; padding: 0 13px; font-size: 14px; }
.mp-btn.is-block { display: flex; width: 100%; }
.mp-btn.is-busy, .mp-btn:disabled { opacity: .6; pointer-events: none; }
.mp-icon { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #fff; color: var(--m-brown); cursor: pointer; text-decoration: none; flex: none; }
.mp-icon:hover { background: var(--m-cream-d); }
.mp-link { border: 0; background: none; padding: 4px 0; color: var(--m-teal-d); font: 600 14px var(--m-font); cursor: pointer; }
.mp-sound { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 8px; padding: 12px 18px; border: 0; border-radius: 999px; background: var(--m-ink); color: #fff; font: 500 14px var(--m-font); box-shadow: 0 10px 30px rgba(74, 42, 30, .3); cursor: pointer; white-space: nowrap; max-width: calc(100vw - 24px); }

/* ------------------------------ Estrutura ------------------------------ */
.mp-shell { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "logo top" "nav nav" "view view"; }
.mp-side, .mp-main { display: contents; }
.mp-logo { grid-area: logo; display: flex; align-items: center; gap: 10px; padding: 12px 16px; color: var(--m-ink); font-weight: 600; font-size: 16px; text-decoration: none; min-width: 0; }
.mp-logo span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-logo .m-brand-sym { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--m-pink); padding: 8px 7px 7px; display: grid; place-items: center; }
.mp-top { grid-area: top; display: flex; align-items: center; gap: 8px; padding: 10px 14px 10px 0; }
.mp-me { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.mp-status { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 0; border-radius: 999px; background: #fff; color: var(--m-ink); font: 600 14px var(--m-font); cursor: pointer; }
.mp-status i { width: 9px; height: 9px; border-radius: 50%; background: var(--m-muted); }
.mp-status.is-open i { background: var(--m-ok); box-shadow: 0 0 0 3px rgba(47, 158, 107, .18); }
.mp-status.is-paused i { background: var(--m-warn); }
.mp-status.is-closed i { background: var(--m-bad); }
.mp-nav { grid-area: nav; position: sticky; top: 0; z-index: 20; display: flex; gap: 6px; overflow-x: auto; padding: 6px 14px 10px; background: var(--m-cream); scrollbar-width: none; }
.admin-bar .mp-nav { top: 46px; }
.mp-nav::-webkit-scrollbar { display: none; }
.mp-nav button, .mp-nav a { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: #fff; color: var(--m-brown); font: 500 14px var(--m-font); text-decoration: none; cursor: pointer; white-space: nowrap; }
.mp-nav button.is-active { background: var(--m-brown-d); color: #fff; }
.mp-nav b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--m-pink-a); color: #fff; font-size: 11px; line-height: 20px; text-align: center; }
.mp-nav b:empty { display: none; }
.mp-nav hr, .mp-nav small { display: none; }
.mp-view { grid-area: view; padding: 6px 14px 110px; min-width: 0; }
.mp-h1 { margin: 8px 0 16px; font-size: 24px; font-weight: 600; }
.mp-titlebar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.mp-titlebar .mp-h1 { margin: 8px 0 0; }
.mp-loading-view { display: grid; place-items: center; padding: 80px 0; }
.mp-loading-view span { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--m-pink-t); border-top-color: var(--m-pink); animation: mp-spin .8s linear infinite; }
@keyframes mp-spin { to { transform: rotate(360deg); } }
.mp-empty { display: grid; justify-items: center; gap: 10px; padding: 48px 20px; text-align: center; color: var(--m-muted); }
.mp-empty .mi { color: var(--m-pink-l); }
.mp-empty p { margin: 0; max-width: 36ch; }
.mp-card { margin-bottom: 14px; padding: 18px; border-radius: 20px; background: #fff; }
.mp-card h2 { margin: 0 0 12px; font-size: 16px; font-weight: 600; }

/* ------------------------------ Início ------------------------------ */
.mp-alerts { display: grid; gap: 8px; margin-bottom: 16px; }
.mp-alert { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: inset 4px 0 0 var(--m-teal); }
.mp-alert { flex-wrap: wrap; }
.mp-alert p { flex: 1 1 200px; margin: 0; font-size: 15px; }
.mp-alert .mp-btn { margin-left: auto; }
.mp-alert > .mi { color: var(--m-teal-d); }
.mp-alert.is-danger { box-shadow: inset 4px 0 0 var(--m-bad); }
.mp-alert.is-danger > .mi { color: var(--m-bad); }
.mp-alert.is-warn { box-shadow: inset 4px 0 0 var(--m-warn); }
.mp-alert.is-warn > .mi { color: #B97A14; }
.mp-allgood { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; color: var(--m-ok); font-weight: 600; }
.mp-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.mp-kpi { display: grid; gap: 4px; padding: 14px 16px; border-radius: 18px; background: #fff; }
.mp-kpi span { font-size: 13px; color: var(--m-muted); }
.mp-kpi strong { font-size: 22px; font-weight: 600; color: var(--m-brown-d); }
.mp-kpis.is-sm .mp-kpi { background: var(--m-cream); padding: 10px 12px; }
.mp-kpis.is-sm strong { font-size: 16px; }
.mp-chart { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding-top: 8px; }
.mp-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.mp-bar i { width: 100%; max-width: 44px; min-height: 4px; border-radius: 8px 8px 3px 3px; background: var(--m-pink); }
.mp-bar:last-child i { background: var(--m-brown-d); }
.mp-bar span { font-size: 12px; color: var(--m-muted); text-transform: capitalize; }
.mp-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mp-quick button { display: grid; justify-items: center; gap: 6px; padding: 14px 6px; border: 0; border-radius: 16px; background: var(--m-cream); color: var(--m-brown-d); font: 500 13px var(--m-font); cursor: pointer; }
.mp-quick button .mi { color: var(--m-pink-d); }
.mp-quick button:hover { background: var(--m-pink-t); }
.mp-recent { display: grid; margin: 0; padding: 0; list-style: none; }
.mp-recent button { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "num name total" "num pill total"; gap: 2px 12px; align-items: center; width: 100%; padding: 10px 4px; border: 0; border-bottom: 1px solid var(--m-cream-d); background: none; color: var(--m-ink); font: 14px var(--m-font); text-align: left; cursor: pointer; }
.mp-recent li:last-child button { border-bottom: 0; }
.mp-recent strong { grid-area: num; }
.mp-recent span:not(.mp-pill) { grid-area: name; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-recent .mp-pill { grid-area: pill; justify-self: start; }
.mp-recent b { grid-area: total; }
.mp-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--m-cream-d); color: var(--m-brown); font-size: 12px; font-weight: 600; }
.mp-pill.is-processing, .mp-pill.is-on-hold { background: var(--m-pink-t); color: var(--m-pink-d); }
.mp-pill.is-m-preparing { background: #FFF1DC; color: #9A6212; }
.mp-pill.is-m-ready, .mp-pill.is-m-delivery { background: var(--m-teal-t); color: var(--m-teal-d); }
.mp-pill.is-completed { background: #E3F4EB; color: var(--m-ok); }

/* ------------------------------ Filtros e segmentos ------------------------------ */
.mp-seg { display: flex; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 16px; background: #fff; overflow-x: auto; scrollbar-width: none; }
.mp-seg::-webkit-scrollbar { display: none; }
.mp-seg button { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 14px; border: 0; border-radius: 12px; background: none; color: var(--m-muted); font: 600 14px var(--m-font); cursor: pointer; white-space: nowrap; }
.mp-seg button.is-active { background: var(--m-cream-d); color: var(--m-ink); }
.mp-seg b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--m-pink-a); color: #fff; font-size: 11px; line-height: 20px; }
.mp-seg b:empty { display: none; }
.mp-titlebar .mp-seg { margin: 0; }
.mp-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.mp-filters input, .mp-filters select { height: 42px; padding: 0 12px; border: 1.5px solid var(--mp-line); border-radius: 12px; background: #fff; color: var(--m-ink); font: 15px var(--m-font); }
.mp-filters input[type=search] { flex: 1 1 220px; }
.mp-filters label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--m-muted); }

/* ------------------------------ Pedidos ------------------------------ */
.mp-orders { display: grid; gap: 12px; }
.mp-order { display: grid; gap: 10px; padding: 14px 16px; border-radius: 20px; background: #fff; box-shadow: inset 4px 0 0 transparent; }
.mp-order.is-processing, .mp-order.is-on-hold { box-shadow: inset 4px 0 0 var(--m-pink); }
.mp-order.is-m-preparing { box-shadow: inset 4px 0 0 var(--m-warn); }
.mp-order.is-m-ready { box-shadow: inset 4px 0 0 var(--m-teal); }
.mp-order header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mp-order-open { display: grid; gap: 1px; padding: 0; border: 0; background: none; color: var(--m-ink); font: 15px var(--m-font); text-align: left; cursor: pointer; }
.mp-order-open strong { font-size: 18px; }
.mp-ago { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--m-muted); white-space: nowrap; }
.mp-chan { font-style: normal; padding: 2px 8px; border-radius: 8px; background: #FDE4E4; color: #C0262D; font-weight: 700; font-size: 12px; }
.mp-order-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mp-tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: var(--m-cream); color: var(--m-brown); font-size: 13px; font-weight: 500; }
.mp-tag.is-pickup { background: var(--m-teal-t); color: var(--m-teal-d); }
.mp-tag.is-first { background: var(--m-pink-t); color: var(--m-pink-d); font-weight: 600; }
.mp-tag.is-cod { background: #FFF1DC; color: #8A5A0B; font-weight: 600; }
.mp-tag.is-unpaid { background: #FDE8E6; color: #A7322A; }
.mp-tag.is-paid { background: #E3F4EB; color: var(--m-ok); }
.mp-order-items { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.mp-order-items li { display: block; line-height: 1.35; }
.mp-order-items li small { display: block; margin: 1px 0 0 22px; color: var(--mp-muted, #8a7a78); font-size: 13px; line-height: 1.35; }
.mp-order-items .mp-it b { display: inline-block; min-width: 18px; }
.mp-order-items.is-full li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; align-items: start; }
.mp-order-items small { flex-basis: 100%; padding-left: 26px; color: var(--m-muted); font-size: 13px; }
.mp-order-items.is-full li { align-items: baseline; }
.mp-order-items.is-full li span { margin-left: auto; }
.mp-note { display: flex; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 12px; background: #FFF6E6; color: #7A4E0C; font-size: 14px; }
.mp-order footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--m-cream-d); }
.mp-total { display: grid; font-size: 18px; font-weight: 700; }
.mp-total small { font-size: 13px; font-weight: 400; color: var(--m-muted); }
.mp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mp-actions .mp-icon { background: var(--m-cream); }
.mp-wait { display: inline-flex; align-items: center; gap: 6px; color: var(--m-teal-d); font-size: 14px; font-weight: 600; }
.mp-detail { display: grid; gap: 16px; }
.mp-detail section { display: grid; gap: 6px; }
.mp-detail h3 { margin: 0; font-size: 13px; font-weight: 600; color: var(--m-muted); }
.mp-detail p { margin: 0; }
.mp-detail-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: var(--m-muted); }
.mp-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid var(--m-cream-d); }
.mp-links { display: flex; flex-wrap: wrap; gap: 8px; }
.mp-links.is-grid { display: grid; grid-template-columns: 1fr 1fr; }
.mp-sum { display: grid; gap: 5px; margin: 6px 0 0; padding-top: 8px; border-top: 1px dashed var(--mp-line); }
.mp-sum div { display: flex; justify-content: space-between; font-size: 14px; }
.mp-sum dt { color: var(--m-muted); }
.mp-sum dd { margin: 0; }
.mp-sum .is-total { font-weight: 700; font-size: 16px; }

/* ------------------------------ Motoboy ------------------------------ */
body.m-app .mp.is-moto, .mp.is-moto { max-width: 640px !important; margin: 0 auto !important; padding: 0 14px 90px; }
.mp-moto-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0 14px; }
.mp-moto-head div { display: grid; gap: 2px; }
.mp-moto-head strong { font-size: 22px; }
.mp-moto-head span { color: var(--m-muted); font-size: 14px; }
.mp-moto-list { display: grid; gap: 12px; }
.mp-moto-card { display: grid; gap: 12px; padding: 16px; border-radius: 22px; background: #fff; }
.mp-moto-card header { display: flex; align-items: baseline; gap: 10px; }
.mp-moto-card header strong { font-size: 20px; }
.mp-moto-card header span { flex: 1; color: var(--m-brown); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-moto-card header em { font-style: normal; font-weight: 700; color: var(--m-teal-d); }
.mp-moto-addr { display: flex; gap: 10px; margin: 0; font-size: 18px; font-weight: 500; line-height: 1.35; }
.mp-moto-addr .mi { color: var(--m-pink-d); margin-top: 2px; }
.mp-moto-addr span { display: grid; gap: 4px; }
.mp-moto-addr small { font-size: 14px; font-weight: 400; color: var(--m-muted); }
.mp-moto-card .mp-btn { min-height: 50px; font-size: 16px; }

/* ------------------------------ Tabelas / listas ------------------------------ */
.mp-table { display: grid; border-radius: 20px; background: #fff; overflow: hidden; }
.mp-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--m-cream-d); }
.mp-row:last-of-type { border-bottom: 0; }
.mp-row > img, .mp-noimg { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: var(--m-cream-d); flex: none; display: grid; place-items: center; color: var(--m-line); }
.mp-row > img.is-round { border-radius: 50%; width: 44px; height: 44px; }
.mp-row-main { flex: 1; display: grid; gap: 2px; min-width: 0; padding: 0; border: 0; background: none; color: var(--m-ink); font: 14px var(--m-font); text-align: left; cursor: pointer; }
.mp-row-main strong { font-size: 15px; }
.mp-row-main > span { color: var(--m-muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-badges { display: flex !important; flex-wrap: wrap; gap: 5px; white-space: normal !important; margin-top: 3px; }
.mp-badges em { font-style: normal; padding: 2px 8px; border-radius: 999px; background: var(--m-cream-d); color: var(--m-brown); font-size: 12px; font-weight: 600; }
.mp-badges em.is-pink { background: var(--m-pink-t); color: var(--m-pink-d); }
.mp-badges em.is-teal { background: var(--m-teal-t); color: var(--m-teal-d); }
.mp-row-num { display: grid; justify-items: end; font-size: 14px; }
.mp-row-num small { color: var(--m-muted); }
.mp-count { padding: 10px 14px; margin: 0; font-size: 13px; }
.mp-cat-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--m-pink-t); color: var(--m-pink-d); flex: none; }
.mp-code { padding: 6px 10px; border-radius: 10px; border: 1.5px dashed var(--m-teal); color: var(--m-teal-d); font-weight: 700; font-size: 14px; letter-spacing: .03em; flex: none; }
.mp-switch { display: grid; justify-items: center; gap: 3px; cursor: pointer; flex: none; }
.mp-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mp-switch span, .mp-toggle > span { position: relative; width: 44px; height: 26px; border-radius: 13px; background: var(--mp-line); transition: background .15s; flex: none; }
.mp-switch span::after, .mp-toggle > span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); transition: transform .15s; }
.mp-switch input:checked + span, .mp-toggle input:checked + span { background: var(--m-teal); }
.mp-switch input:checked + span::after, .mp-toggle input:checked + span::after { transform: translateX(18px); }
.mp-switch input:disabled + span { opacity: .45; }
.mp-switch input:focus-visible + span, .mp-toggle input:focus-visible + span { outline: 2px solid var(--m-teal-d); outline-offset: 2px; }
.mp-switch small { font-size: 12px; color: var(--m-muted); }
.mp-toggle { position: relative; display: flex; align-items: center; gap: 10px; min-height: 36px; cursor: pointer; font-size: 15px; }
.mp-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }

/* ------------------------------ Avaliações ------------------------------ */
.mp-reviews { display: grid; gap: 12px; }
.mp-review { display: grid; gap: 10px; padding: 16px; border-radius: 20px; background: #fff; }
.mp-review header { display: flex; align-items: center; gap: 10px; }
.mp-review header img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.mp-review header a { flex: 1; color: var(--m-ink); font-weight: 600; text-decoration: none; }
.mp-stars { color: #E7A93C; letter-spacing: 1px; white-space: nowrap; }
.mp-stars i { font-style: normal; color: var(--mp-line); }
.mp-review-who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mp-review-who img { width: 30px; height: 30px; border-radius: 50%; }
.mp-review-who small { color: var(--m-muted); margin-left: auto; }
.mp-review > p { margin: 0; line-height: 1.5; color: var(--m-brown-d); }
.mp-review form { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--m-cream-d); }

/* ------------------------------ Formulários ------------------------------ */
.mp-form { display: grid; gap: 14px; }
.mp-f { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.mp-f > span, .mp-f > legend, .mp-flabel { font-size: 14px; font-weight: 500; color: var(--m-brown-d); padding: 0; margin-bottom: 0; }
.mp input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]), .mp textarea, .mp select, .mp-modal input:not([type=checkbox]):not([type=radio]):not([type=file]), .mp-modal textarea, .mp-modal select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1.5px solid var(--mp-line, #EEDCD8); border-radius: 12px; background: #fff; color: var(--m-ink); font: 15px var(--m-font); }
.mp textarea, .mp-modal textarea { resize: vertical; min-height: 70px; }
.mp input:focus, .mp textarea:focus, .mp select:focus, .mp-modal input:focus, .mp-modal textarea:focus, .mp-modal select:focus { outline: none; border-color: var(--m-pink); box-shadow: 0 0 0 3px var(--m-pink-t); }
.mp-filters input, .mp-filters select { width: auto !important; }
.mp-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mp-checks { display: flex; flex-wrap: wrap; gap: 6px; }
.mp-checks label { position: relative; cursor: pointer; }
.mp-checks input { position: absolute; opacity: 0; }
.mp-checks span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--mp-line, #EEDCD8); background: #fff; font-size: 14px; }
.mp-checks input:checked + span { background: var(--m-teal-t); color: var(--m-teal-d); box-shadow: inset 0 0 0 1.5px var(--m-teal); }
.mp-checks input:focus-visible + span { outline: 2px solid var(--m-teal-d); outline-offset: 2px; }
.mp-info { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--m-teal-t); color: var(--m-teal-d); font-size: 14px; }
.mp-info a { color: inherit; font-weight: 600; }
.mp-form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding-top: 6px; }
.mp-form-actions .is-danger { margin-right: auto; }
.mp-imgs { display: grid; gap: 8px; }
.mp-img-main { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 240px; border-radius: 18px; background: var(--m-cream-d); color: var(--m-line); overflow: hidden; }
.mp-img-main img { width: 100%; height: 100%; object-fit: cover; }
.mp-img-main label { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); }
.mp-gallery { display: flex; flex-wrap: wrap; gap: 8px; }
.mp-gallery span { position: relative; width: 64px; height: 64px; }
.mp-gallery img { width: 100%; height: 100%; border-radius: 12px; object-fit: cover; }
.mp-gallery button { position: absolute; top: -6px; right: -6px; display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: var(--m-ink); color: #fff; cursor: pointer; }
.mp-add-img { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 12px; border: 1.5px dashed var(--mp-line, #EEDCD8); color: var(--m-muted); cursor: pointer; }
.mp-iconbank { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 6px; }
.mp-iconbank label { position: relative; cursor: pointer; }
.mp-iconbank input { position: absolute; opacity: 0; }
.mp-iconbank span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 14px; background: var(--m-cream); color: var(--m-brown); }
.mp-iconbank input:checked + span { background: var(--m-pink-a); color: #fff; }
.mp-iconbank input:focus-visible + span { outline: 2px solid var(--m-teal-d); outline-offset: 2px; }
.mp-inline { display: flex; gap: 8px; }
.mp-plain { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; }
.mp-warn { font-style: normal; color: #B97A14; font-size: 13px; }
.mp-cust { display: grid; gap: 16px; }
.mp-cust section { display: grid; gap: 6px; }
.mp-cust h3 { margin: 0; font-size: 13px; color: var(--m-muted); font-weight: 600; }
.mp-cust p { margin: 0; }
.mp-cust-head { display: flex; align-items: center; gap: 14px; }
.mp-cust-head img { width: 64px; height: 64px; border-radius: 50%; }
.mp-cust-head div { display: grid; gap: 6px; justify-items: start; }
.mp-cust-head small { color: var(--m-muted); }

/* ----------------------- Configurações (schema) ----------------------- */
.mp-sform { display: grid; gap: 14px; }
.mp-group { margin: 0; }
.mp-group header { margin-bottom: 14px; }
.mp-group header h2 { margin: 0 0 4px; }
.mp-group header p { margin: 0; color: var(--m-muted); font-size: 14px; max-width: 70ch; }
.mp-fields { display: grid; gap: 14px; }
.mp-field { display: grid; gap: 6px; min-width: 0; }
.mp-fdesc { margin: 0; color: var(--m-muted); font-size: 13px; }
.mp-color { display: flex; gap: 8px; align-items: center; }
.mp-color input[type=color] { width: 48px; height: 44px; padding: 2px; border: 1.5px solid var(--mp-line); border-radius: 12px; background: #fff; cursor: pointer; }
.mp-color input:not([type=color]) { max-width: 130px; font-family: ui-monospace, monospace; }
.mp-readonly { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border-radius: 12px; background: var(--m-cream); }
.mp-readonly code { flex: 1; font-size: 13px; word-break: break-all; }
.mp-imgfield { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mp-imgfield img, .mp-imgfield .mp-noimg { width: 84px; height: 84px; border-radius: 14px; object-fit: cover; }
.mp-imgfield.is-wide img, .mp-imgfield.is-wide .mp-noimg { flex: none; width: min(320px, 100%); min-width: 0; height: auto; aspect-ratio: 2 / 1; }
.mp-coords { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mp-picked { display: flex; flex-wrap: wrap; gap: 6px; }
.mp-chip { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 6px 0 12px; border-radius: 999px; background: var(--m-teal-t); color: var(--m-teal-d); font-size: 14px; }
.mp-chip button { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.mp-presults { display: grid; gap: 2px; }
.mp-presults button { padding: 8px 12px; border: 0; border-radius: 10px; background: var(--m-cream); color: var(--m-ink); font: 14px var(--m-font); text-align: left; cursor: pointer; }
.mp-presults button:hover { background: var(--m-pink-t); }
.mp-week { display: grid; gap: 8px; }
.mp-day { display: grid; grid-template-columns: 150px 1fr; gap: 8px; align-items: start; padding: 10px 12px; border-radius: 14px; background: var(--m-cream); }
.mp-day.is-off { opacity: .8; }
.mp-ivs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 36px; }
.mp-iv { display: inline-flex; align-items: center; gap: 6px; }
.mp-iv input { width: 116px !important; min-height: 38px !important; }
.mp-iv i { font-style: normal; color: var(--m-muted); font-size: 13px; }
.mp-iv .mp-icon { width: 30px; height: 30px; }
.mp-rep { display: grid; gap: 8px; }
.mp-rep-item { border-radius: 14px; background: var(--m-cream); }
.mp-rep-item summary { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; list-style: none; cursor: pointer; font-weight: 600; }
.mp-rep-item summary::-webkit-details-marker { display: none; }
.mp-rep-item summary > span:first-of-type, .mp-rep-item summary > img + span, .mp-rep-item summary > i + span { flex: 1; }
.mp-rep-item summary img { width: 44px; height: 30px; border-radius: 6px; object-fit: cover; }
.mp-rep-item summary > i { width: 18px; height: 18px; border-radius: 50%; }
.mp-rep-tools { display: flex; gap: 2px; margin-left: auto; }
.mp-rep-tools .mp-icon { width: 32px; height: 32px; background: #fff; }
.mp-rep-tools [data-rup] .mi { transform: rotate(90deg); }
.mp-rep-body { display: grid; gap: 12px; padding: 4px 14px 14px; }
.mp-rep-body .mp-rep-item { background: #fff; }
.mp-rep.is-inline .mp-rep-row { display: flex; align-items: flex-end; gap: 8px; }
.mp-rep.is-inline .mp-rep-row > .mp-field { flex: 1; }
.mp-savebar { position: sticky; bottom: 14px; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 18px; border-radius: 999px; background: var(--m-ink); color: #fff; box-shadow: 0 10px 30px rgba(74, 42, 30, .3); }
.mp-savebar span { flex: 1; font-weight: 500; }
.mp-savebar .is-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); }

/* ------------------------------ Modal ------------------------------ */
.mp-modal { position: fixed; inset: 0; z-index: 130; font-family: var(--m-font); color: var(--m-ink); }
.mp-modal *, .mp-modal *::before, .mp-modal *::after { box-sizing: border-box; }
.mp-modal-bg { position: absolute; inset: 0; background: rgba(74, 42, 30, .4); opacity: 0; transition: opacity .2s; }
.mp-modal-box { position: absolute; left: 0; right: 0; bottom: 0; max-height: 94vh; display: flex; flex-direction: column; border-radius: 26px 26px 0 0; background: #fff; transform: translateY(100%); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.mp-modal.is-open .mp-modal-bg { opacity: 1; }
.mp-modal.is-open .mp-modal-box { transform: none; }
.mp-modal-box > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 16px 8px 20px; }
.mp-modal-box > header h2 { margin: 0; font-size: 20px; font-weight: 600; }
.mp-x { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--m-cream); color: var(--m-brown); cursor: pointer; }
.mp-modal-body { overflow-y: auto; padding: 8px 20px calc(24px + env(safe-area-inset-bottom, 0px)); overscroll-behavior: contain; }
.mp-stack { display: grid; gap: 8px; margin-bottom: 12px; }

/* ------------------- Motoboys, atendimento, avaliações privadas ------------------- */
.mp-review.is-private { box-shadow: inset 0 0 0 1.5px var(--m-cream-d); background: #FFFBFB; }
.mp-private { display: inline-flex; align-items: center; gap: 5px; justify-self: start; padding: 3px 10px; border-radius: 999px; background: var(--m-brown-d); color: #fff; font: 600 12px var(--m-font); font-style: normal; }
.mp-subh { margin: 8px 0 0; font-size: 14px; color: var(--m-muted); font-weight: 600; }
.mp-mini-reviews { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mp-mini-reviews li { padding: 10px 12px; border-radius: 14px; background: var(--m-cream); }
.mp-mini-reviews li.is-private { background: #fff; box-shadow: inset 0 0 0 1.5px var(--m-cream-d); }
.mp-mini-reviews small { color: var(--m-muted); }
.mp-mini-reviews p { margin: 4px 0 0; font-size: 14px; }
.mp-moto-prof { gap: 14px; }
.mp-moto-prof .mp-cust-head small { display: block; color: var(--m-muted); }
.mp-cat-ico.is-teal { background: var(--m-teal-t); color: var(--m-teal-d); }
.mp-tag.is-demo { background: #EDE7F6; color: #5B3F99; }
.mp-pill.is-t-open { background: var(--m-pink-t); color: var(--m-pink-d); }
.mp-pill.is-t-answered { background: var(--m-teal-t); color: var(--m-teal-d); }
.mp-pill.is-t-closed { background: #F1ECEB; color: var(--m-muted); }
.mp-row-num em.mp-pill { font-style: normal; }
.mp-thread { display: grid; gap: 8px; padding: 4px 0; }
.mp-msg { max-width: 88%; padding: 10px 12px; border-radius: 16px; background: var(--m-cream); }
.mp-msg.is-customer { justify-self: end; background: var(--m-pink-t); border-bottom-right-radius: 6px; }
.mp-msg.is-store { justify-self: start; border-bottom-left-radius: 6px; }
.mp-msg > span { display: block; color: var(--m-muted); font-size: 12px; margin-bottom: 2px; }
.mp-msg p { margin: 0; font-size: 15px; line-height: 1.45; }
.mp-msg img { display: block; max-width: 220px; margin-top: 8px; border-radius: 12px; }
.mp-msg small { display: block; margin-top: 6px; font-size: 12px; word-break: break-all; }

/* ------------------------------ Desktop ------------------------------ */
@media (min-width: 720px) {
  .mp-kpis { grid-template-columns: repeat(4, 1fr); }
  .mp-quick { grid-template-columns: repeat(6, 1fr); }
  .mp-modal-box { left: 50%; right: auto; top: 50%; bottom: auto; width: min(94vw, 560px); max-height: 88vh; border-radius: 26px; transform: translate(-50%, -46%); opacity: 0; transition: transform .2s, opacity .2s; }
  .mp-modal.is-wide .mp-modal-box { width: min(94vw, 780px); }
  .mp-modal.is-open .mp-modal-box { transform: translate(-50%, -50%); opacity: 1; }
  .mp-modal-body { padding-bottom: 24px; }
}
@media (min-width: 1024px) {
  .mp-shell { grid-template-columns: 250px minmax(0, 1fr); grid-template-areas: none; min-height: 100vh; }
  .mp-side { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 12px; background: #fff; box-shadow: 1px 0 0 var(--mp-line); }
  .admin-bar .mp-side { top: 32px; height: calc(100vh - 32px); }
  .mp-main { display: block; min-width: 0; }
  .mp-logo { padding: 4px 8px 18px; }
  .mp-nav { position: static; flex-direction: column; gap: 2px; padding: 0; overflow: visible; background: none; }
  .mp-nav button, .mp-nav a { justify-content: flex-start; height: 42px; border-radius: 12px; background: none; }
  .mp-nav button:hover, .mp-nav a:hover { background: var(--m-cream); }
  .mp-nav button.is-active { background: var(--m-cream-d); color: var(--m-ink); }
  .mp-nav button span, .mp-nav a span { flex: 1; text-align: left; }
  .mp-nav hr { display: block; width: 100%; margin: 10px 0; border: 0; border-top: 1px solid var(--m-cream-d); }
  .mp-nav small { display: block; padding: 4px 14px; color: var(--m-muted); font-size: 12px; }
  .mp-top { justify-content: flex-end; padding: 16px 32px 0; }
  .mp-view { max-width: 1120px; padding: 8px 32px 60px; }
  .mp-h1 { font-size: 28px; }
  .mp-orders { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); align-items: start; }
  .mp-sound { bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .mp *, .mp-modal * { animation: none !important; transition: none !important; }
}

/* ------------------------------ iFood ------------------------------ */
.mp-tag.is-mirror { background: #ECEFF3; color: #4A5565; }
.mp-tag.is-sched { background: #E8F4FD; color: #1D5E8C; }
.mp-tag.is-code { background: #FFF1D6; color: #8A5A00; }
.mp-dispute { display: grid; gap: 6px; margin: 8px 0; padding: 12px 14px; border-radius: 14px; background: #FDE8E6; color: #7E2A21; }
.mp-dispute strong { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.mp-dispute p { margin: 0; font-size: 14px; }
.mp-dispute small { font-size: 13px; }
.mp-dispute.is-done { display: flex; align-items: center; gap: 6px; background: #E7F5F3; color: #2F6F6A; font-size: 13px; }
.mp-collect { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; padding: 8px 10px; border-radius: 10px; background: #FFF1D6; color: #7A5200; font-size: 14px; font-weight: 600; }
.mp-loc { display: block; margin-top: 2px; color: var(--mp-muted, #8a7a78); }
.mp-radios { display: grid; gap: 8px; max-height: 50vh; overflow: auto; }
.mp-radio { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--mp-line, #eadbd8); cursor: pointer; }
.mp-radio:has(input:checked) { box-shadow: inset 0 0 0 1.5px #E56A7C; background: #FDEEF0; }
.mp-radio input { width: 18px; height: 18px; margin: 0; accent-color: #E56A7C; }

/* ------------------------- Sons, prévia do recibo, cancelar ------------------------- */
.mp-sound-pick { display: flex; gap: 8px; align-items: center; }
.mp-sound-pick select { flex: 1; min-width: 0; }
.mp-rprev { overflow: hidden; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--mp-line, #eadbd8); background: #eee; }
.mp-rprev iframe { display: block; width: 100%; height: 560px; border: 0; background: #eee; }
.mp-btn.is-danger-text { color: #B3402F !important; }

/* ------------------------------ Nota fiscal ------------------------------ */
.mp-fiscal { margin: 4px 0 8px; padding: 10px 12px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--mp-line, #eadbd8); }
.mp-fiscal summary { display: flex; align-items: center; gap: 6px; font-weight: 600; cursor: pointer; }
.mp-fiscal p { margin: 8px 0; font-size: 13px; }
.mp-pill.is-nfe-autorizada { background: #E3F4EA; color: #1F6B3F; }
.mp-pill.is-nfe-rejeitada { background: #FDE8E6; color: #A7322A; }
.mp-pill.is-nfe-pendente, .mp-pill.is-nfe-nenhuma { background: #FFF1D6; color: #8A5A00; }
.mp-pill.is-nfe-cancelada { background: #ECEFF3; color: #4A5565; }

/* ---------------- Vistoria de UI ---------------- */
.mp-rep-row { position: relative; }
.mp-rep-row > .mp-rep-tools { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; }
.mp-rep-item summary { padding-right: 104px; }
@media (max-width: 480px) { .mp-logo span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }

.mp-badges .m-medal, .mp-review-who .m-medal { color: color-mix(in srgb, var(--medal) 40%, var(--m-ink)); }
@media (max-width: 420px) { .mp-seg { gap: 4px; overflow-x: auto; scrollbar-width: none; } .mp-seg::-webkit-scrollbar { display: none; } .mp-seg button { padding: 0 10px; gap: 4px; font-size: 14px; } }

/* Recorte da foto do produto */
.mp-crop { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; padding: 16px; font-family: var(--m-font); color: var(--m-ink); }
.mp-crop-bg { position: absolute; inset: 0; background: rgba(74, 42, 30, .45); }
.mp-crop-box { position: relative; display: grid; gap: 12px; width: min(360px, 100%); padding: 18px; border-radius: 24px; background: #fff; box-shadow: 0 20px 50px rgba(74, 42, 30, .25); }
.mp-crop-box h2 { margin: 0; font-size: 18px; font-weight: 600; }
.mp-crop-box p { margin: 0; font-size: 13px; }
.mp-crop-stage { aspect-ratio: 1; overflow: hidden; border-radius: 18px; background: var(--m-cream-d); touch-action: none; }
.mp-crop-box.is-wide { width: min(600px, 100%); }
.mp-crop-box.is-wide .mp-crop-stage { border-radius: 14px; }
.mp-crop-legend { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--m-muted); }
.mp-crop-legend i { flex: none; width: 22px; border-top: 2px dashed currentColor; }
.mp-crop-stage canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.mp-crop-stage canvas:active { cursor: grabbing; }
.mp-crop-zoom { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.mp-crop-zoom input { flex: 1; min-height: 44px; accent-color: var(--m-teal); }
.mp-crop-acts { display: flex; justify-content: flex-end; gap: 8px; }

/* iPhone e celulares: campo com menos de 16 px faz a tela ampliar sozinha ao tocar. Nunca pode acontecer. */
@media (hover: none), (pointer: coarse) {
  .mp input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]), .mp select, .mp textarea,
  .mp-modal input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]), .mp-modal select, .mp-modal textarea { font-size: 16px !important; }
  .mp, .mp-modal, .mp-crop { touch-action: manipulation; }
}
