/* Editing layer on top of the catalogue page styles (those are inlined in index.html). */
html,body{background:#d9d0c4}
body.editing{padding-bottom:140px;-webkit-text-size-adjust:100%}
#bar{position:sticky;top:0;z-index:50;padding:8px 14px 9px;background:#611A06;color:#FFF8EC;font:600 14px 'Avenir Next',Helvetica,sans-serif}
#bar .r1{display:flex;justify-content:space-between;align-items:center;gap:10px}
#bar .bt{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#views{display:flex;gap:6px;margin-top:8px}
#views a{flex:1;text-align:center;padding:7px 4px;border-radius:99px;border:1px solid rgba(255,248,236,.45);color:#FFF8EC;text-decoration:none;font-size:14px}
#views a.on{background:#FFF8EC;color:#611A06;border-color:#FFF8EC}
.pg{scroll-margin-top:96px}
#status{font-weight:600;font-size:13px;padding:4px 10px;border-radius:99px;background:rgba(255,248,236,.18);white-space:nowrap}
#status.ok{background:#3f7d4e}
#status.wait{background:#a8741d}
#status.off{background:#B8323A}
#help{max-width:560px;margin:12px auto;padding:12px 14px;background:#FFF8EC;border:1px dashed #BF8458;border-radius:8px;
  font:15px/1.4 'Avenir Next',Helvetica,sans-serif;color:#611A06}
#help.needkey{border:2px solid #B8323A}
#help input{display:block;width:100%;margin:10px 0 8px;font:16px 'Avenir Next',Helvetica,sans-serif;padding:10px;border:1px solid #CFAA77;border-radius:6px;background:#fff;color:#611A06}
#help button{font:600 16px 'Avenir Next',Helvetica,sans-serif;padding:10px 18px;border:0;border-radius:8px;background:#611A06;color:#FFF8EC}
/* The A4 and Instagram pages are 1080 px wide before they are scaled down. Clipping them here keeps a phone from widening its screen to fit them. */
.pg{margin:0 auto 22px;width:calc(100vw - 16px);max-width:1080px;overflow:hidden}
body[data-view="celular"] .pg{max-width:540px}
html,body{overflow-x:hidden}
.pg .page{margin:0 auto 0;transition:height .15s}
.pgwarn{margin:0 auto 6px;padding:6px 10px;background:#fde6d4;border:1px solid #B8323A;border-radius:6px;
  font:600 13px/1.3 'Avenir Next',Helvetica,sans-serif;color:#7a3a2c}
.ed{outline:none;border-radius:3px;cursor:text;transition:background .15s}
.ed[contenteditable="false"]{cursor:default}
.ed:hover{background:rgba(240,191,200,.35)}
.ed:focus{background:rgba(255,238,170,.55);box-shadow:0 0 0 2px #BF8458}
.ed.chg{background:rgba(255,226,92,.45)}
.ed.chg:focus{background:rgba(255,226,92,.7)}
.ed.cmt{box-shadow:0 0 0 1.5px #B8323A}
.note{margin:8px auto 0;padding:10px 12px;background:#FFF8EC;border:1px solid #D9C4A2;border-radius:8px;font:14px/1.35 'Avenir Next',Helvetica,sans-serif;color:#611A06}
.note label,#msg label{display:block;font-weight:600;margin-bottom:6px}
.note textarea,#msg textarea,#sc{width:100%;font:16px/1.4 'Avenir Next',Helvetica,sans-serif;color:#611A06;background:#fff;border:1px solid #CFAA77;border-radius:6px;padding:8px;resize:vertical}
#msg{max-width:560px;margin:10px auto;padding:14px;background:#FFF8EC;border:2px solid #BF8458;border-radius:10px;font:15px/1.4 'Avenir Next',Helvetica,sans-serif;color:#611A06}
#dock{position:fixed;left:0;right:0;bottom:0;z-index:60;display:flex;gap:8px;justify-content:center;padding:8px;background:rgba(97,26,6,.96)}
#dock button{font:600 14px 'Avenir Next',Helvetica,sans-serif;padding:9px 12px;border:0;border-radius:8px;background:#FFF8EC;color:#611A06}
#sheet{position:fixed;inset:0;z-index:70;background:rgba(0,0,0,.4);display:flex;align-items:flex-end;justify-content:center}
#sheet[hidden],#dock[hidden],.pgwarn[hidden]{display:none}
#sheet .sh{width:100%;max-width:560px;background:#FFF8EC;padding:14px;border-radius:14px 14px 0 0;font:15px/1.4 'Avenir Next',Helvetica,sans-serif;color:#611A06}
#sx{font-style:italic;margin-bottom:8px;max-height:4.2em;overflow:hidden}
#sheet .sb{display:flex;gap:8px;margin-top:8px}
#sheet .sb button{flex:1;font:600 15px 'Avenir Next',Helvetica,sans-serif;padding:11px;border:0;border-radius:8px;background:#611A06;color:#FFF8EC}
#sheet .sb #sk{background:#e6d9c3;color:#611A06}
#bar .r2{display:flex;justify-content:flex-end;margin-top:8px}
/* "Edição desligada": the catalogue as a customer sees it, with no notes, hints or outlines */
body.view-only .note,body.view-only #msg,body.view-only #help,body.view-only .pgwarn,body.view-only #dock,body.view-only #sheet{display:none!important}
body.view-only .ed{background:none!important;box-shadow:none!important;cursor:default}
