@font-face{font-family:DM Sans;src:url('/assets/dm-sans.woff2') format('woff2');font-weight:400 800;font-display:swap}
@font-face{font-family:Barlow Condensed;src:url('/assets/barlow-700.woff2') format('woff2');font-weight:700;font-display:swap}
:root{--ink:#18263a;--muted:#55667a;--line:#d5dde5;--soft:#fff3d8;--selected:#ffe2a3;--highlight:#503500;--pl-surface:#fff;--pl-bg:#eff2f5;--pl-well:#f6f8fa;--pl-accent:#d89b32;--pl-button:#1e3549;--pl-ink:#18263a;--rail:#101b29}
:root[data-theme=escuro]{--ink:#f5f4f0;--muted:#b8c6d3;--line:#334558;--pl-surface:#192635;--pl-bg:#101925;--pl-well:#14202e;--pl-accent:#f3bb5a;--pl-button:#f2bb5d;--pl-ink:#f1f5f7;--selected:#48391e;--highlight:#ffe6a8}
body[data-view=admin]{background:var(--pl-bg);font-family:'DM Sans',system-ui,sans-serif;color:var(--pl-ink)}
.shell{grid-template-columns:minmax(0,1fr) 248px;grid-template-areas:'main side'}
.shell>main{grid-area:main;min-width:0}.shell>aside{grid-area:side;background:var(--rail);color:#f4f4ed;border:0;position:sticky;top:0;height:100dvh;min-height:0;overflow-y:auto;display:flex;flex-direction:column;padding:24px 14px 12px}
.shell>aside .brand{margin:0 2px 18px;padding:0 4px}.shell>aside .brand em{color:#f2bd60}
.shell nav#main-nav{display:flex;flex-direction:column;gap:3px}.shell #main-nav button{padding:10px 11px;border-radius:7px;color:#c4d0db;text-align:left}
.shell #main-nav button:hover{background:#1a2c3d;color:white}.shell #main-nav button.active{background:#f0bc63;color:#172132;font-weight:760}.shell .who{padding:15px 2px 4px;gap:8px;border-top:1px solid #334354}.who .avatar{background:#334355;color:#ffdfa1}.who-name{flex:1;min-width:0;overflow-wrap:anywhere}.shell .who button{display:inline-flex;align-items:center;gap:4px;color:#fff;background:transparent}.shell .who-name small{color:#abbacb}
.top{min-height:62px;background:var(--pl-surface);border-top:0;border-bottom:1px solid var(--line);box-shadow:none;gap:8px}.account-tools,.preview-heading,.account-menu summary{display:flex;align-items:center;gap:12px}.account-menu{position:relative}.account-menu summary{cursor:pointer;color:var(--pl-ink);padding:7px 10px;border:1px solid var(--line);border-radius:7px;font-size:.85rem;list-style:none}.account-menu summary::-webkit-details-marker{display:none}.account-pop{position:absolute;z-index:12;right:0;top:calc(100% + 7px);background:var(--pl-surface);width:200px;padding:8px;border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 35px #06121f33}.account-pop button{width:100%;text-align:left;background:transparent;color:var(--pl-ink);font-weight:600}.account-pop button:hover{background:var(--pl-well)}.account-pop ticket-theme{display:block;padding:8px;border-top:1px solid var(--line)}.wrap{max-width:1510px;padding:28px clamp(16px,3vw,48px) 56px}
.intro h1,.card>h2,.draft-preview h3,.login h2{font-family:'Barlow Condensed',system-ui,sans-serif;font-weight:700;letter-spacing:.01em}.intro h1{font-size:clamp(2.2rem,3.7vw,3.65rem);line-height:1}.card>h2{font-size:1.7rem}.card{background:var(--pl-surface);border:1px solid var(--line);box-shadow:0 2px 8px #122a3b08;border-radius:14px}.tabs{background:var(--pl-well);border:1px solid var(--line);border-radius:12px;padding:5px;gap:3px;display:flex;flex-wrap:wrap}.tabs button.alt{background:transparent;border:0;color:var(--muted);border-radius:7px;padding:9px 13px}.tabs button.alt.active,[data-theme=escuro] .tabs button.alt.active{background:#efbd66;color:#182332;box-shadow:0 1px 3px #44320e20}.card button[type=submit],.studio-form button[type=submit]{background:var(--pl-button);color:white}[data-theme=escuro] :is(.card,.studio-form) button[type=submit]{color:#192433}
.menu-workbench{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(290px,.9fr);gap:18px;align-items:start}.menu-workbench>div>*+*{margin-top:16px}.menu-prices{min-width:0}.menu-price-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(85px,115px);align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid var(--line)}.menu-price-row>label{display:flex;align-items:center;gap:6px}.menu-price-row input[type=number]{min-width:0;width:100%}.menu-price-row input[type=checkbox]{width:16px;height:16px;min-height:0;flex:none}.menu-price-row:has(input:checked){background:var(--pl-well)}
.draft-preview{border:1px solid var(--line);border-radius:14px;padding:12px;background:var(--pl-surface);min-width:0}.preview-heading{justify-content:space-between;flex-wrap:wrap}.preview-heading h3{font-size:1.55rem;margin:0}.preview-heading label{font-size:.75rem;color:var(--muted)}.preview-heading select{display:block;width:auto;max-width:160px;min-height:32px}.preview-screen{position:relative;margin-top:10px;background:#101b29;overflow:hidden;border-radius:8px;width:100%;min-height:50px;display:flex;justify-content:center}.preview-screen iframe{border:0;position:absolute;top:0;left:50%;translate:-50% 0;transform-origin:top center;background:#101b29;max-width:none}
.connect-tv{display:grid;grid-template-columns:minmax(145px,215px) minmax(0,1fr);align-items:center;gap:18px}.connect-tv .qr{width:100%}.connect-tv input{width:100%;margin:8px 0}.proof-label{font-size:.78rem;font-weight:700;color:var(--muted)}.ticket-proof{background:white;color:#222b35;border-top:4px solid #efb657;max-width:265px;margin:10px auto;padding:18px;text-align:center;box-shadow:0 4px 14px #132a4020;word-break:break-word}.ticket-proof>img{max-width:100%;max-height:60px;display:block;margin:auto auto 8px}.ticket-proof h3{margin:6px}.proof-qr{width:min(100%,154px);margin:10px auto}.ticket-proof p{color:#3b4753}
.asset-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))}.photo-tile{background:var(--pl-surface);padding:6px;border-radius:10px}.photo-tile img{object-fit:contain;width:100%;background:#f0f2f3;border-radius:6px}
@media(max-width:1000px){.shell{grid-template-columns:minmax(0,1fr) 205px}.menu-workbench{grid-template-columns:1fr}}
@media(max-width:760px){.shell{display:flex;flex-direction:column}.shell>aside{position:relative;height:auto;padding:10px 15px;order:0}.shell>main{order:1}.shell>aside .brand{margin:0}.shell aside #main-nav{display:none}.shell aside #main-nav.expanded{display:flex}.shell aside .who{display:none}.shell aside:has(#main-nav.expanded) .who{display:flex}.shell .mobile-head{display:flex;align-items:center;justify-content:space-between}.shell .nav-toggle{display:inline-flex}.shell .top{position:relative;flex-wrap:wrap;min-height:55px}.shell .top select{max-width:60vw}.account-tools{margin-left:auto;gap:5px}.wrap{padding:17px 12px 32px}.menu-workbench{display:block}.menu-workbench>div{margin-top:14px}.connect-tv{grid-template-columns:1fr}.connect-tv .qr{max-width:240px}.tabs button.alt{padding:7px 9px}}

.menu-price-row .price-margin{grid-column:1/-1;color:var(--muted);font-size:.76rem}.price-margin:not(:empty)::before{content:"Margem por fornecedor · "}.price-margin:empty{display:none}

[data-theme=escuro] body[data-view=admin]{--canvas:var(--pl-bg);--surface:var(--pl-surface);--raised:#223345;--input:#142130;--accent:#f2bb5d;--mint:#f7ce83;--soft:#233041}
body[data-view=admin] :is(input,textarea,select){accent-color:var(--pl-accent)}
.expanded-preview.access-dialog{width:min(96vw,1500px);max-width:96vw;max-height:96dvh}.expanded-preview .draft-preview{border:0;padding:0}.expanded-preview .preview-screen{margin-inline:auto}.preview-heading [data-expand-preview]{margin-inline-start:auto}

.shell{--sidebar-width:248px}
.shell.side-closed{grid-template-columns:minmax(0,1fr);grid-template-areas:'main'}
.shell>aside[hidden]{display:none!important}
.shell>.side-handle{position:fixed;z-index:22;top:50dvh;right:var(--sidebar-width);display:grid;place-items:center;width:32px;height:50px;padding:0;border:1px solid var(--line);border-right:0;border-radius:12px 0 0 12px;background:var(--rail,#192738);color:#fff;box-shadow:0 2px 6px #0003}
.shell>.side-handle:focus-visible{outline:3px solid #eeb95d;outline-offset:2px}
.shell>.side-handle span{width:10px;height:10px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(-45deg)}
.shell.side-closed>.side-handle{right:0}
.shell.side-closed>.side-handle span{transform:rotate(135deg)}
.shell>.side-shade{display:none}
@media(min-width:761px){.shell.side-closed>main .wrap{max-width:none}}
@media(max-width:760px){
 .shell{--sidebar-width:min(248px,calc(100vw - 54px))}
 .shell>aside#panel-side{position:fixed;inset:0 0 0 auto;z-index:21;width:var(--sidebar-width);box-sizing:border-box;height:100dvh;padding:18px 12px;overflow-y:auto}
 .shell #panel-side #main-nav,.shell #panel-side .who{display:flex}
 .shell:not(.side-closed)>.side-shade{display:block;position:fixed;inset:0;z-index:20;background:#0d172a66}
 .shell>.side-handle{width:36px;min-height:48px}
}

.ticket-proof .paper-featured{font-size:1.65em;font-weight:800;line-height:1.12}.ticket-proof .paper-heading,.ticket-proof .paper-foot{font-weight:700}.ticket-proof .paper-small,.ticket-proof .paper-foot{font-size:.86em;line-height:1.2}.ticket-proof p{white-space:pre-line;overflow-wrap:anywhere}
