/* Calenvella Restaurant Studio V2 — compact owner-workspace design */
body.cv-food{background:#071019;color:#f2f8fb;font-size:14px}
.cv-rest-v2{max-width:1120px;padding:19px 16px 80px}
.cv-rest-v2 .cv-rest-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:2px 0 14px}
.cv-rest-v2 .eyebrow{color:#ff9954;letter-spacing:.15em;font-size:10px;font-weight:850}
.cv-rest-v2 .cv-rest-head h1{font-size:clamp(25px,3.1vw,32px);letter-spacing:-.045em;margin:3px 0 5px}
.cv-rest-v2 .cv-rest-head p,.cv-r2-titlebar p{color:#a9becb;font-size:13px;line-height:1.48;margin:0;max-width:680px}
.cv-r2-back{white-space:nowrap;color:#e9f6fa!important;border:1px solid #355360;border-radius:9px;padding:9px 12px;text-decoration:none;font-weight:700;font-size:12px}
.cv-r2-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin:16px 0}
.cv-r2-stats>div{background:#112430;border:1px solid #2f4c59;border-radius:12px;display:flex;flex-direction:column;gap:3px;padding:12px 15px}
.cv-r2-stats span{font-size:10px;letter-spacing:.11em;color:#a6becb;font-weight:800}
.cv-r2-stats strong{font-size:25px;line-height:1.2;letter-spacing:-.05em;color:#f2fcff}
.cv-r2-test{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;border:1px solid #396d77;background:#14343d;border-radius:12px;padding:12px 15px;margin:12px 0}
.cv-r2-test strong{font-size:13px;color:#a3f8ff}.cv-r2-test p{margin:4px 0 0;color:#c4dbe2;font-size:12px;line-height:1.5}
.cv-r2-test-pill{font-size:10px;font-weight:900;color:#07131a;background:#70eef2;padding:5px 8px;border-radius:6px;letter-spacing:.1em;white-space:nowrap}
.cv-r2-tabs{display:flex;gap:5px;padding:5px;background:#0d1e28;border:1px solid #294752;border-radius:12px;overflow-x:auto;scrollbar-width:thin;margin:14px 0 20px}
.cv-r2-tabs button{flex:1 0 auto;background:transparent;border:none;border-radius:8px;color:#b8cfda;padding:10px 11px;white-space:nowrap;cursor:pointer;font-size:12px;font-weight:800;font-family:inherit}
.cv-r2-tabs button[aria-selected=true]{background:#58e3ea;color:#061923;box-shadow:0 3px 12px #0004}
.cv-r2-pane[aria-hidden=true]{display:none}
.cv-r2-titlebar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin:20px 0 15px}
.cv-r2-titlebar h2{font-size:22px;letter-spacing:-.035em;margin:3px 0 5px}
.cv-r2-card,.cv-r2-item-card{background:linear-gradient(145deg,#142533,#0e1a24);border:1px solid #304d5c;border-radius:13px;padding:17px;margin-bottom:13px;min-width:0}
.cv-r2-card h3,.cv-r2-item-card h3{font-size:15px;letter-spacing:-.015em;margin:0 0 6px}
.cv-r2-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:9px}
.cv-r2-grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 14px}
.cv-rest-v2 .cv-food-field{font-size:12px;margin:9px 0;gap:6px;color:#d5e6ed}
.cv-rest-v2 .cv-food-field input,.cv-rest-v2 .cv-food-field textarea,.cv-rest-v2 .cv-food-field select{font-size:14px;background:#081721;border-color:#345462;border-radius:9px;padding:10px 11px;min-height:42px;color:#f5fcff}
.cv-rest-v2 .cv-food-field textarea{min-height:76px;resize:vertical}
.cv-rest-v2 .cv-food-button{font-size:12px;padding:10px 13px;border-radius:9px;font-weight:850;line-height:1.3}
.cv-rest-v2 .cv-food-button.alt{border-color:#375968;background:#1c3541;color:#edf8fe}
.cv-r2-icon-button{background:#1a3340;border:1px solid #44606e;border-radius:7px;color:#e9f6fb;padding:3px 10px;cursor:pointer;font-size:24px;line-height:1}
.cv-r2-text-button{border:0;background:transparent;color:#69e8f2;font:inherit;font-weight:800;font-size:12px;cursor:pointer;text-decoration:underline;text-underline-offset:3px;padding:9px 0;text-align:left}
.cv-r2-inline-link{display:flex;align-items:end;padding-bottom:14px}
.cv-r2-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:18px 0 12px}
.cv-r2-toolbar strong{font-size:16px}.cv-r2-filter{font-size:12px;color:#b8ced7;display:flex;gap:8px;align-items:center}
.cv-r2-filter select,.cv-r2-attach select{background:#102734;border:1px solid #3a5a66;color:#ebfbff;border-radius:8px;padding:9px;max-width:100%;font-size:12px}
.cv-r2-item-card>.cv-r2-item-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;flex-wrap:wrap}
.cv-r2-item-head h3{font-size:16px;margin:0}.cv-r2-item-head .cv-r2-price{font-size:18px;font-weight:900;color:#70e8f0}
.cv-r2-badges{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0 11px}.cv-r2-badge{font-size:10px;border-radius:7px;background:#1c3744;color:#c8e5ee;padding:4px 7px}.cv-r2-badge.off{background:#462b32;color:#ffc8c8}
.cv-r2-options{border-top:1px solid #2f4b59;padding-top:12px;margin-top:12px}
.cv-r2-options h4{margin:7px 0 3px;font-size:13px}.cv-r2-options p{font-size:12px;color:#a8c1cc}
.cv-r2-group{background:#0b1c27;border:1px solid #34525e;border-radius:10px;padding:12px;margin:12px 0}
.cv-r2-group-head{display:flex;align-items:flex-start;justify-content:space-between;gap:9px;flex-wrap:wrap}
.cv-r2-mini-actions{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0}.cv-r2-mini-actions button{font-size:11px!important;padding:8px 10px!important}
.cv-r2-choice{padding:8px 0;border-bottom:1px solid #2d4452;display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;font-size:12px}
.cv-r2-choice:last-of-type{border-bottom:0}.cv-r2-choice button{flex:0 0 auto}
.cv-r2-editor{padding:12px;border:1px dashed #426473;background:#0d2531;border-radius:10px;margin-top:9px}
.cv-r2-editor h4{margin:0 0 10px}.cv-r2-editor .cv-food-field{margin:6px 0}
.cv-r2-count{background:#23414d;border:1px solid #345968;padding:4px 9px;border-radius:999px;color:#b4eaf2;font-size:11px;font-weight:800}
.cv-r2-list-row{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;border-top:1px solid #294551;padding:10px 0}.cv-r2-list-row:first-child{border-top:0}
.cv-r2-list-row p{color:#a6bcc8;margin:3px 0;font-size:12px}.cv-r2-attach{display:flex;align-items:center;gap:7px;margin-top:6px;flex-wrap:wrap}.cv-r2-attach select{min-width:160px;max-width:230px}
.cv-r2-formline{display:flex;align-items:end;gap:12px}.cv-r2-formline .cv-food-field{flex:1}.cv-r2-formline>.cv-food-button{margin-bottom:9px}
.cv-r2-guide{background:#122d37;border:1px solid #3e6570;border-left:3px solid #58e3ea;border-radius:11px;padding:14px;margin:0 0 13px}.cv-r2-guide strong{color:#c4faff}.cv-r2-guide p,.cv-r2-hint{color:#a8bdc9;font-size:12px;line-height:1.5;margin:5px 0}
.cv-r2-empty{text-align:center;padding:34px 15px;background:#12232d;border:1px dashed #3d5b6a;border-radius:12px;color:#b9cfdb}.cv-r2-empty strong{display:block;color:white;margin-bottom:7px}.cv-r2-empty button{margin-top:14px}
.cv-r2-toggle{display:flex;align-items:center;gap:12px;border-bottom:1px solid #294653;padding:12px 0;color:#ebf9fe}.cv-r2-toggle input{accent-color:#58e3ea;height:22px;width:22px}.cv-r2-toggle small{display:block;color:#a9c1ca;font-weight:400;font-size:11px;margin-top:2px}
.cv-r2-form-card[hidden]{display:none}.cv-rest-v2 [hidden]{display:none!important}
.cv-r2-subitem{display:block;border-left:2px solid #2f5663;padding-left:10px;margin:8px 0;color:#a5bec8;font-size:12px}
.cv-rest-v2 .cv-food-actions{margin-top:10px}
@media(max-width:700px){.cv-rest-v2{padding:12px 12px 60px}.cv-rest-v2 .cv-rest-head{align-items:flex-start}.cv-rest-v2 .cv-rest-head h1{font-size:24px}.cv-r2-back{font-size:11px;padding:7px 9px}.cv-r2-stats{gap:7px}.cv-r2-stats>div{padding:10px}.cv-r2-stats span{font-size:9px}.cv-r2-stats strong{font-size:20px}.cv-r2-card,.cv-r2-item-card{padding:13px}.cv-r2-tabs{margin:11px 0 17px}.cv-r2-tabs button{font-size:12px;padding:9px 10px}.cv-r2-grid2{grid-template-columns:1fr}.cv-r2-inline-link{padding-bottom:0}.cv-r2-titlebar h2{font-size:20px}.cv-r2-formline{display:block}.cv-r2-toolbar{flex-wrap:wrap}.cv-r2-attach select{max-width:100%}}
/* Every Studio section remains visible on narrow phones—no hidden tabs off-screen. */
@media(max-width:700px){
 .cv-r2-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;gap:5px}
 .cv-r2-tabs button{white-space:normal;min-width:0;min-height:43px;font-size:11px;line-height:1.22;padding:7px 5px}
}

/* Calenvella Restaurant Studio V3 — single sliding row of shortcuts, no wrapping. */
.cv-r2-shortcut-shell{display:grid;grid-template-columns:34px minmax(0,1fr) 34px;align-items:center;gap:7px;max-width:100%;min-width:0;margin:15px 0 20px}
.cv-r2-shortcut-arrow{height:39px;width:34px;display:flex;align-items:center;justify-content:center;border-radius:10px;border:1px solid #345662;background:#142d39;color:#bff9ff;cursor:pointer;font:800 27px/1 inherit;transition:background .15s,color .15s}
.cv-r2-shortcut-arrow:disabled{opacity:.38;cursor:default}
.cv-r2-shortcut-arrow:not(:disabled):hover{background:#234b56}
.cv-r2-shortcut-arrow:focus-visible,.cv-r2-tabs button:focus-visible{outline:2px solid #70ecf4;outline-offset:2px}
.cv-r2-shortcut-shell .cv-r2-tabs{display:flex!important;grid-template-columns:none!important;flex-flow:row nowrap!important;gap:6px;min-width:0;max-width:100%;width:100%;margin:0!important;padding:5px!important;overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior-x:contain;scrollbar-width:none;scroll-snap-type:x proximity;scroll-padding-inline:5px;-webkit-overflow-scrolling:touch;touch-action:pan-x}
.cv-r2-shortcut-shell .cv-r2-tabs::-webkit-scrollbar{display:none}
.cv-r2-shortcut-shell .cv-r2-tabs button{flex:0 0 auto!important;display:inline-flex;align-items:center;justify-content:center;min-width:108px;min-height:40px;max-width:none!important;width:auto!important;white-space:nowrap!important;line-height:1.1!important;font-size:12px!important;font-weight:800!important;padding:10px 14px!important;text-align:center;scroll-snap-align:center}
.cv-r2-shortcut-shell .cv-r2-tabs button[aria-selected=true]{box-shadow:0 3px 10px #0005}
@media(max-width:700px){.cv-r2-shortcut-shell{grid-template-columns:30px minmax(0,1fr) 30px;gap:5px;margin:12px 0 17px}.cv-r2-shortcut-arrow{width:30px;height:40px;font-size:25px}.cv-r2-shortcut-shell .cv-r2-tabs button{min-width:106px;min-height:42px;font-size:12px!important;padding:9px 12px!important}}
@media(prefers-reduced-motion:reduce){.cv-r2-shortcut-arrow{transition:none}.cv-r2-shortcut-shell .cv-r2-tabs{scroll-behavior:auto}}

/* Calenvella compact, accessible destructive controls */
.cv-r2-danger{background:rgba(255,123,110,.09)!important;border:1px solid rgba(255,145,132,.47)!important;color:#ffad9f!important;font-size:12px!important;font-weight:700!important}
.cv-r2-danger:hover,.cv-r2-danger:focus-visible{background:rgba(255,123,110,.18)!important;border-color:#ff9988!important}
.cv-r2-inline-controls{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.cv-r2-list-row>div:last-child{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.cv-r2-choice>span{flex:1;min-width:0;overflow-wrap:anywhere}
.cv-r2-delete-dialog{background:#132632;color:#f6fdff;border:1px solid #426574;box-shadow:0 20px 60px #000a;border-radius:17px;width:min(425px,calc(100vw - 24px));padding:23px;max-height:88vh}
.cv-r2-delete-dialog::backdrop{background:rgba(0,8,13,.79);backdrop-filter:blur(3px)}
.cv-r2-delete-kicker{font-size:10px;font-weight:800;letter-spacing:.16em;color:#ff9e88}
.cv-r2-delete-dialog h2{font-size:23px;margin:8px 0 9px;line-height:1.25}
.cv-r2-delete-dialog p{font-size:14px;color:#afc4d0;line-height:1.6;margin-bottom:19px}
.cv-r2-delete-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:9px}
.cv-r2-delete-actions .cv-food-button{font-size:13px;padding:11px 14px}
@media(max-width:450px){.cv-r2-choice{align-items:start;flex-wrap:wrap}.cv-r2-list-row{align-items:flex-start}.cv-r2-list-row>div:last-child{width:100%}.cv-r2-inline-controls button{font-size:11px!important}}
