/* Optimiza · Restaurante (backoffice): reservas, menu e menu do dia. */
.rstBar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 14px}
.rstDays{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 6px;margin:0 0 12px;scrollbar-width:thin}
.rstDays button{flex:none;min-width:92px;border:1.5px solid #dfe7ec;background:#fff;border-radius:12px;padding:8px 12px;text-align:left;line-height:1.2}
.rstDays button small{display:block;font-size:11px;font-weight:800;text-transform:uppercase;color:#6b7f8c;letter-spacing:.04em}
.rstDays button b{display:block;font-size:20px;color:#15212a}
.rstDays button span{display:block;font-size:12px;color:#6b7f8c;margin-top:2px}
.rstDays button.isOn{border-color:#117b70;background:#e7f5f0}
.rstSeg{display:inline-flex;gap:4px;background:#eef2f4;border-radius:12px;padding:4px}
.rstSeg.rstWrap{flex-wrap:wrap;background:transparent;padding:0;gap:6px}
.rstSeg button{border:0;background:transparent;border-radius:9px;padding:7px 12px;font-weight:700;font-size:13px;color:#4a5d6b}
.rstSeg.rstWrap button{background:#fff;border:1.5px solid #dfe7ec}
.rstSeg button span{color:#8a9aa8;font-weight:600;margin-left:2px}
.rstSeg button.isOn{background:#fff;color:#0d655c;box-shadow:0 1px 3px rgba(21,33,42,.12)}
.rstSeg.rstWrap button.isOn{background:#e7f5f0;border-color:#117b70}
.rstKpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 14px}
.rstKpis div{background:#fff;border:1px solid #e1e8ec;border-radius:14px;padding:12px 14px}
.rstKpis span{display:block;font-size:12px;color:#6b7f8c;font-weight:600}
.rstKpis b{font-size:24px;color:#15212a}
.rstKpis .isWarn{background:#fff6e8;border-color:#f0d3a3}
.rstKpis .isWarn b{color:#96550b}
.rstList{display:flex;flex-direction:column}
.rstRow{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:12px;align-items:start;padding:12px 0;border-top:1px solid #edf1f3}
.rstRow:first-child{border-top:0}
.rstTime{font-size:18px;font-weight:800;color:#15212a;padding-top:1px}
.rstWho strong{font-size:15px}
.rstParty{display:inline-block;margin-left:8px;background:#e9f0fc;color:#305db3;border-radius:999px;padding:1px 9px;font-size:12px;font-weight:800}
.rstNote{margin-top:6px;background:#fff6e8;color:#6b4a12;border-radius:8px;padding:6px 9px;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}
.rstAct{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end;align-items:center}
.rstAct select{border:1.5px solid #dfe7ec;border-radius:9px;padding:7px 8px;background:#fff;font-weight:700;font-size:13px}
.rst-pending .rstAct select{border-color:#ecc68a;background:#fff6e8;color:#96550b}
.rst-confirmed .rstAct select{border-color:#a9dcc7;background:#e7f5f0;color:#0d655c}
.rst-cancelled,.rst-rejected{opacity:.55}
.rstForm{display:flex;flex-direction:column;gap:12px}
.rstForm .field{margin:0}
.rstGrid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:end}
.rstGrid3{display:grid;grid-template-columns:auto repeat(2,minmax(0,1fr));gap:10px;align-items:end}
.rstField>span{display:block;font-size:13px;font-weight:700;color:#33475a;margin-bottom:6px}
#appShell .rstCheck,.rstCheck{display:flex;flex-direction:row;justify-content:flex-start;gap:8px;align-items:center;font-weight:600;font-size:14px;min-height:40px;margin:0}
#appShell .rstCheck input,.rstCheck input{width:auto;min-width:0;flex:none;margin:0;height:auto}
.rstChips{display:flex;gap:6px;flex-wrap:wrap}
.rstChip{position:relative}
.rstChip input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.rstChip span{display:inline-block;border:1.5px solid #dfe7ec;background:#fff;border-radius:999px;padding:6px 11px;font-size:13px;font-weight:600;color:#4a5d6b}
.rstChip input:checked+span{background:#e7f5f0;border-color:#117b70;color:#0d655c}
.rstChip input:focus-visible+span{outline:2px solid #117b70;outline-offset:2px}
.rstDishes{display:flex;flex-direction:column}
.rstDish{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 0;border-top:1px solid #edf1f3}
.rstDish:first-child{border-top:0}
.rstDish.isOff{opacity:.55}
.rstThumb{width:64px;height:64px;border-radius:12px;background:#eef2f4 center/cover no-repeat}
.rstDishMain .muted{font-size:13px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.rstAllg{display:flex;gap:4px;flex-wrap:wrap;margin-top:5px}
.rstAllg span{font-size:10.5px;font-weight:800;background:#fff1df;color:#96550b;border:1px solid #ecc68a;border-radius:6px;padding:1px 5px}
.rstAllg em{font-style:normal;font-size:11px;font-weight:700;color:#0d655c;background:#e7f5f0;border-radius:6px;padding:1px 6px}
.rstAllg em.off{color:#5c6b78;background:#eef1f4}
.rstDishSide{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.rstDishSide b{font-size:15px}
.rstSold{display:flex;gap:6px;align-items:center;font-size:12.5px;font-weight:600;color:#4a5d6b}
.rstLink{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:8px}
.rstLink code{background:#f3f6f8;border:1px solid #e1e8ec;border-radius:8px;padding:8px 10px;font-size:13px;overflow-wrap:anywhere;flex:1;min-width:0}
.rstDailyWrap{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:16px;align-items:start}
.rstDList{display:flex;flex-direction:column;gap:14px}
.rstDGroup h4{margin:0 0 4px;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#6b7f8c}
.rstDItem{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid #edf1f3}
.rstDGroup h4+.rstDItem{border-top:0}
.rstDItem.isOff{opacity:.5}
.rstDMain{min-width:0}
.rstDMain strong{font-size:15px;color:#15212a}
.rstDNote{display:inline-block;margin-left:8px;background:#fff1df;color:#96550b;border-radius:999px;padding:1px 9px;font-size:12px;font-weight:700}
.rstDMeta{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.rstDMeta span{font-size:12px;font-weight:600;color:#5c6b78;background:#eef1f4;border-radius:6px;padding:2px 7px}
.rstDMeta .rstDDays.isSome{color:#0d655c;background:#e7f5f0}
.rstDSide{display:flex;align-items:center;gap:10px;flex:none}
.rstSwitch{position:relative;display:inline-block;width:40px;height:24px;margin:0}
.rstSwitch input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer;z-index:1}
.rstSwitch span{position:absolute;inset:0;border-radius:999px;background:#cfd8de;transition:background .15s}
.rstSwitch span::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:transform .15s}
.rstSwitch input:checked+span{background:#117b70}
.rstSwitch input:checked+span::after{transform:translateX(16px)}
.rstSwitch input:focus-visible+span{outline:2px solid #117b70;outline-offset:2px}
.rstRadio{position:relative;margin:0}
.rstRadio input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.rstRadio span{display:inline-block;border-radius:9px;padding:7px 12px;font-weight:700;font-size:13px;color:#4a5d6b}
.rstRadio input:checked+span{background:#fff;color:#0d655c;box-shadow:0 1px 3px rgba(21,33,42,.12)}
.rstRadio input:focus-visible+span{outline:2px solid #117b70;outline-offset:2px}
.rstDIDays{margin-top:10px}
.rstSheetActions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.rstSheetActions .btn{margin:0}
.rstDanger{color:#a84343!important;border-color:#f0caca!important}
.rstBoard{border-radius:16px;background:#142a63;color:#fff;padding:18px;margin-top:12px}
.rstBoard small{color:#e6a730;font-weight:800;letter-spacing:.08em;text-transform:uppercase;font-size:10.5px}
.rstBoard .tt{font-size:20px;font-weight:800;margin:4px 0 8px}
.rstBoard .c{display:grid;grid-template-columns:84px minmax(0,1fr);gap:8px;padding:7px 0;border-top:1px solid rgba(255,255,255,.14);font-size:14px}
.rstBoard .c small{padding-top:2px}
.rstBoard i{font-style:normal;font-size:11px;font-weight:700;background:rgba(255,255,255,.14);border-radius:999px;padding:1px 7px;margin-left:4px;white-space:nowrap}
.rstBoard .price{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap;margin-top:8px;padding-top:8px;border-top:1px solid rgba(255,255,255,.25)}
.rstBoard .price b{font-size:22px;color:#e6a730}
.rstBoard .price span{color:#cbd6f0;font-size:13px}
.rstBoard p{color:#cbd6f0;margin:6px 0 0}
.rstBoard.isEmpty{background:#f3f6f8;color:#4a5d6b;border:1px dashed #c4d0d8}
.rstBoard.isEmpty b{display:block;color:#15212a}
@media (max-width:1000px){.rstDailyWrap{grid-template-columns:minmax(0,1fr)}}
@media (max-width:740px){
 .rstKpis{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .rstKpis div{padding:10px}
 .rstKpis b{font-size:20px}
 .rstRow{grid-template-columns:52px minmax(0,1fr)}
 .rstAct{grid-column:1 / -1;justify-content:flex-start}
 .rstAct select{flex:1}
 .rstDish{grid-template-columns:52px minmax(0,1fr)}
 .rstThumb{width:52px;height:52px}
 .rstDishSide{grid-column:2;flex-direction:row;align-items:center;justify-content:space-between}
 .rstGrid2,.rstGrid3{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .rstGrid3 .rstCheck{grid-column:1 / -1;min-height:0}
}

/* ---------- Planta da sala (fase 2) ---------- */
.rpWrap{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:16px;align-items:start}
.rpCard{padding:14px}
.rpTools{display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:space-between;margin-bottom:12px}
.rpAdd{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.rpAdd select{border:1.5px solid #dfe7ec;border-radius:10px;padding:7px 10px;background:#fff;font-weight:700;font-size:13px}
.rpZoneForm{display:inline-flex;gap:6px;align-items:center}
.rpZoneForm input{width:140px;border:1.5px solid #dfe7ec;border-radius:9px;padding:6px 9px;font-size:13px}
.rpBox{position:relative;width:100%;height:560px;overflow:hidden;border-radius:14px;border:1px solid #e1e8ec;background:#fbfcfc}
.rpFloor{position:absolute;left:0;top:0;transform-origin:0 0;background-color:#fbfcfc;
 background-image:linear-gradient(#e9eff1 1px,transparent 1px),linear-gradient(90deg,#e9eff1 1px,transparent 1px);background-size:20px 20px}
.rpT{position:absolute;user-select:none;-webkit-user-select:none}
.rp-edit .rpT{touch-action:none;cursor:grab}
.rp-svc .rpT{cursor:pointer}
.rpT:focus-visible{outline:none}
.rpT:focus-visible .rpTop{box-shadow:0 0 0 4px rgba(17,123,112,.3)}
.rpTop{position:absolute;inset:0;background:#fff;border:2px solid #9fb2bf;border-radius:12px;display:grid;place-content:center;text-align:center;z-index:2;box-shadow:0 2px 6px rgba(20,40,60,.07)}
.rpT.rp-rd .rpTop{border-radius:50%}
.rpTop b{font-size:14px;line-height:1.1;color:#15212a}
.rpTop span{font-size:10.5px;color:#6b7f8c;font-weight:600;line-height:1.2;padding:0 4px}
.rpCh{position:absolute;width:20px;height:8px;border-radius:5px;background:#c8d4dc;z-index:1}
.rpT.isSel .rpTop{border-color:#117b70;box-shadow:0 0 0 4px rgba(17,123,112,.18)}
.rpT.isSel .rpCh{background:#8fd1c3}
.rpT.isDrag{z-index:5}
.rpT.isDrag .rpTop{box-shadow:0 10px 24px rgba(20,40,60,.2)}
.rpT.isDrop .rpTop{border-color:#7940b1;background:#f6effe;box-shadow:0 0 0 6px rgba(121,64,177,.18)}
.rpT.isOff .rpTop{background:repeating-linear-gradient(45deg,#f3f5f7 0 6px,#e8ecef 6px 12px);border-color:#b8c2ca}
.rpT.isFree .rpTop{background:#f4fbf8;border-color:#7cc8b4}.rpT.isFree .rpCh{background:#9fd8c8}
.rpT.isBooked .rpTop{background:#fff8ec;border-color:#e2b05f}.rpT.isBooked .rpCh{background:#f0c27a}
.rpT.isPending .rpTop{background:#fff;border-color:#e2b05f;border-style:dashed}.rpT.isPending .rpCh{background:#f0c27a}
.rpT.isSel.isFree .rpTop,.rpT.isSel.isBooked .rpTop,.rpT.isSel.isPending .rpTop{border-color:#117b70}
.rpGroup{position:absolute;border:2px dashed #7940b1;border-radius:22px;background:rgba(121,64,177,.05);pointer-events:none;z-index:0}
.rpGroup span{position:absolute;top:-13px;left:14px;background:#7940b1;color:#fff;font-size:11.5px;font-weight:800;padding:3px 9px;border-radius:999px;white-space:nowrap}
.rpEmpty{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);color:#6b7f8c;font-weight:600;font-size:15px;text-align:center;max-width:420px}
.rpFoot{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:10px;font-size:12.5px;color:#6b7f8c}
.rpLegend{display:flex;gap:12px;flex-wrap:wrap}
.rpLegend i{display:inline-block;width:12px;height:12px;border-radius:4px;margin-right:5px;vertical-align:-2px;border:2px solid}
.rpLegend i.isFree{background:#f4fbf8;border-color:#7cc8b4}.rpLegend i.isBooked{background:#fff8ec;border-color:#e2b05f}.rpLegend i.isPending{background:#fff;border-color:#e2b05f;border-style:dashed}
.rpShapes{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.rpShapes button{border:1.5px solid #dfe7ec;background:#fff;border-radius:10px;padding:9px 4px;display:flex;flex-direction:column;align-items:center;gap:5px;font-size:12px;font-weight:700;color:#4a5d6b}
.rpShapes button.isOn{border-color:#117b70;background:#e7f5f0;color:#0d655c}
.rpSh{display:block;width:22px;height:22px;border:2px solid currentColor;border-radius:4px}
.rpSh.rp-rd{border-radius:50%}.rpSh.rp-rect{width:32px;height:18px}
.rpRow{display:flex;justify-content:space-between;align-items:center;gap:10px;font-weight:700;font-size:14px;color:#33475a}
.rpStep{display:flex;align-items:center;border:1px solid #dfe7ec;border-radius:11px;overflow:hidden;width:max-content;background:#fff}
.rpStep button{border:0;background:#f1f5f6;width:38px;height:38px;font-size:18px;font-weight:700;color:#15212a}
.rpStep span{min-width:46px;text-align:center;font-weight:800;font-size:16px}
.rpTip{display:flex;flex-direction:column;gap:6px;background:#f6effe;border:1px solid #e2d2f4;border-radius:12px;padding:10px 12px;margin-top:10px;font-size:13px;color:#4b2a70}
.rpTip.isGroup{margin:0 0 12px}
.rpTip .btn{align-self:flex-start}
.rpCount{display:flex;justify-content:space-between;padding:7px 0;border-top:1px solid #edf1f3;font-size:14px}
.rpCount:first-of-type{border-top:0}
.rpH{margin:14px 0 8px;font-size:13px;text-transform:uppercase;letter-spacing:.04em;color:#6b7f8c}
.rpWait{display:flex;gap:10px;padding:6px 0;font-size:14px}
.rpRes{display:flex;flex-direction:column;gap:3px;padding:10px 0;border-top:1px solid #edf1f3;font-size:14px}
.rpRes:first-child{border-top:0}
.rpRes span{color:#6b7f8c;font-size:13px}
.rpRes em{font-style:normal;background:#fff6e8;color:#6b4a12;border-radius:8px;padding:5px 8px;font-size:13px}
.rpRes .btn{align-self:flex-start;margin-top:4px}
.rpAssign{display:block;width:100%;text-align:left;border:1.5px solid #dfe7ec;background:#fff;border-radius:10px;padding:9px 11px;margin:0 0 6px;font-size:14px}
.rpAssign:hover{border-color:#117b70;background:#f4fbf8}
.rpAssign.isBig small{display:block;color:#96550b;font-weight:700}
@media (max-width:1100px){.rpWrap{grid-template-columns:minmax(0,1fr)}}
@media (max-width:740px){
 .rpCard{padding:10px}
 .rpTools{flex-direction:column;align-items:stretch}
 .rpTools .rstSeg{overflow-x:auto;max-width:100%}
 .rpAdd .btn{flex:1 1 auto}
}
