/* Painel do restaurante — notebook, tema escuro com a marca (preto, dourado, off-white). */
body { background: var(--black); color: var(--cream); min-width: 1100px; }
.shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
aside { background: linear-gradient(#120f0b, #0b0a09); border-right: 1px solid var(--line); padding: 22px 16px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.brand { text-align: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.brand img { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 8px; box-shadow: 0 0 0 1px rgba(212, 166, 74, .5), 0 0 30px rgba(212, 166, 74, .25); }
.brand small { color: #9b8a6b; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; color: #b9a984; text-decoration: none; font-weight: 600; margin-bottom: 4px; transition: all .2s var(--ease); position: relative; }
nav a svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
nav a:hover { background: var(--coal); color: var(--cream); }
nav a.on { background: linear-gradient(90deg, rgba(212, 166, 74, .22), rgba(212, 166, 74, .04)); color: var(--gold-hi); box-shadow: inset 3px 0 0 var(--gold); }
nav a .cnt { margin-left: auto; background: var(--gold-grad); color: var(--black); font-size: 12px; font-weight: 800; border-radius: 99px; min-width: 22px; text-align: center; padding: 2px 7px; }
.side-foot { margin-top: auto; font-size: 12px; color: #7d6e58; text-align: center; }

main { padding: 0 28px 40px; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; padding: 18px 0; background: linear-gradient(var(--black) 75%, transparent); }
.topbar h1 { font-family: var(--serif); font-size: 28px; flex: 1; }
.topbar h1 small { display: block; font-family: var(--sans); font-size: 13px; color: #8d7b5c; font-weight: 500; margin-top: 2px; }
.sw { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 99px; background: var(--coal); border: 1px solid var(--line); font-weight: 600; font-size: 14px; cursor: pointer; user-select: none; }
.tog { width: 42px; height: 24px; border-radius: 99px; background: #3a3020; position: relative; transition: background .25s; flex: none; }
.tog::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .3s var(--spring); }
.tog.on { background: var(--ok); }
.tog.on::after { transform: translateX(18px); }
.btn-p { padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: 14px; background: var(--coal-2); border: 1px solid var(--line); color: var(--cream); transition: all .2s; text-decoration: none; display: inline-block; }
.btn-p:hover { border-color: var(--gold); }
.btn-p.gold { background: var(--gold-grad); color: var(--black); border: 0; }
.btn-p.danger { color: #ff9d92; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.stat { background: linear-gradient(160deg, var(--coal-2), var(--coal)); border: 1px solid var(--line); border-radius: 22px; padding: 20px; position: relative; overflow: hidden; animation: rise .5s var(--ease) both; }
.stat::after { content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(closest-side, rgba(212, 166, 74, .22), transparent); }
.stat label { color: #a8976f; font-size: 13px; font-weight: 600; }
.stat b { display: block; font-family: var(--serif); font-size: 34px; margin: 8px 0 4px; color: var(--gold-hi); }
.stat small { color: #8d7b5c; font-size: 13px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; margin-bottom: 18px; }
.panel-b { background: var(--coal); border: 1px solid var(--line); border-radius: 22px; padding: 20px; animation: rise .5s var(--ease) both; }
.panel-b h3 { font-family: var(--serif); font-size: 19px; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
.panel-b h3 a { font-family: var(--sans); font-size: 13px; color: var(--gold); text-decoration: none; }
.bar-row { margin-bottom: 12px; }
.bar-row .l { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 5px; }
.bar-row .l span:last-child { color: #a8976f; }
.bar { height: 10px; background: #2a2318; border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--gold-grad); width: 0; transition: width 1s var(--ease); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: #8d7b5c; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 8px 10px; }
td { padding: 11px 10px; border-top: 1px solid #2a2318; }
tr.click { cursor: pointer; }
tr.click:hover td { background: #211b14; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: #2f2619; color: #e6d3a1; }
.tag.novo { background: rgba(212, 166, 74, .2); color: var(--gold-hi); }
.tag.preparo { background: rgba(224, 160, 47, .18); color: #f3c46b; }
.tag.saida { background: rgba(80, 140, 200, .2); color: #8fc0f0; }
.tag.entregue { background: rgba(79, 154, 91, .2); color: #8fd29a; }
.tag.cancelado { background: rgba(201, 71, 58, .2); color: #ff9d92; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.quick a { background: var(--coal); border: 1px solid var(--line); border-radius: 18px; padding: 18px; text-decoration: none; font-weight: 700; display: flex; gap: 12px; align-items: center; transition: all .25s var(--ease); }
.quick a:hover { border-color: var(--gold); transform: translateY(-3px); }
.quick svg { width: 24px; height: 24px; stroke: var(--gold); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* kanban */
.kanban { display: grid; grid-template-columns: repeat(5, minmax(200px, 1fr)); gap: 12px; align-items: start; }
.kc .ft b { white-space: nowrap; }
.col { background: #120f0b; border: 1px solid var(--line); border-radius: 20px; padding: 12px; min-height: 60vh; transition: background .2s, border-color .2s; }
.col.over { border-color: var(--gold); background: #1b150d; }
.col h4 { display: flex; justify-content: space-between; align-items: center; padding: 6px 6px 12px; font-size: 15px; }
.col h4 span { background: var(--coal-2); border-radius: 99px; padding: 2px 10px; font-size: 13px; color: var(--gold-hi); }
.kc { background: linear-gradient(160deg, #2a2216, #1e1913); border: 1px solid #3d3120; border-radius: 18px; padding: 14px; margin-bottom: 12px; cursor: grab; }
.kc.fresh { box-shadow: 0 0 0 2px var(--gold), 0 0 30px rgba(212, 166, 74, .4); }
.kc .hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.kc .hd b { font-family: var(--serif); font-size: 20px; color: var(--gold-hi); }
.kc .time { font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: #2f2619; }
.kc .time.late { background: rgba(201, 71, 58, .25); color: #ff9d92; }
.kc h5 { font-size: 16px; }
.kc .meta { color: #a8976f; font-size: 13px; margin-top: 2px; }
.kc ul { list-style: none; margin: 10px 0; padding: 10px 0; border-top: 1px dashed #4a3b25; border-bottom: 1px dashed #4a3b25; }
.kc li { font-size: 14px; margin-bottom: 7px; }
.kc li small { display: block; color: #a8976f; font-size: 12.5px; }
.kc li em { color: var(--gold-hi); font-style: normal; font-size: 12.5px; }
.kc .ft { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #bda97d; margin-bottom: 10px; }
.kc .ft b { font-size: 18px; color: var(--cream); }
.adv { width: 100%; padding: 15px; border-radius: 14px; font-weight: 800; font-size: 16px; background: var(--gold-grad); color: var(--black); box-shadow: 0 8px 22px rgba(169, 122, 34, .35); transition: transform .15s var(--spring); }
.adv:active { transform: scale(.96); }
.await { padding: 13px; border-radius: 14px; text-align: center; font-weight: 700; font-size: 14px; color: var(--gold-hi); background: rgba(212, 166, 74, .12); border: 1px dashed var(--gold-lo); }
.kc .cancel { display: block; margin: 9px auto 0; font-size: 12.5px; color: #ff9d92; opacity: .8; }
.chip-t { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: #2f2619; color: #e6d3a1; }

/* formulários */
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.in { padding: 10px 14px; border-radius: 12px; background: var(--coal); border: 1px solid var(--line); color: var(--cream); outline: none; }
.in:focus { border-color: var(--gold); }
select.in option { background: #1c1814; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pc { background: var(--coal); border: 1px solid var(--line); border-radius: 20px; padding: 14px; display: flex; gap: 14px; animation: rise .45s var(--ease) both; }
.pc.off { opacity: .55; }
.pc .art { width: 92px; height: 92px; border-radius: 16px; overflow: hidden; flex: none; background: radial-gradient(circle at 30% 20%, #3a2c18, #140f0a); }
.pc .art svg, .pc .art img { width: 100%; height: 100%; object-fit: cover; }
.pc h4 { font-family: var(--serif); font-size: 17px; }
.pc .pr { color: var(--gold-hi); font-weight: 700; margin: 4px 0; }
.pc .acts { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.pc .acts button { font-size: 13px; font-weight: 700; color: var(--gold); }
.modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .7); backdrop-filter: blur(4px); z-index: 50; display: grid; place-items: center; animation: rise .2s; }
.modal { width: 640px; max-height: 90vh; overflow: auto; background: var(--coal); border: 1px solid var(--gold-lo); border-radius: 24px; padding: 26px; }
.modal h3 { font-family: var(--serif); font-size: 24px; margin-bottom: 16px; }
.fl { display: block; margin-bottom: 12px; }
.fl > span { display: block; font-size: 12.5px; color: #a8976f; font-weight: 600; margin-bottom: 5px; }
.fl .in { width: 100%; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); cursor: pointer; font-size: 14px; font-weight: 600; }
.checks input { display: none; }
.checks label:has(input:checked) { background: rgba(212, 166, 74, .2); border-color: var(--gold); color: var(--gold-hi); }
.mfoot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.gcard { background: var(--coal); border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.opts span { display: inline-flex; gap: 8px; align-items: center; padding: 6px 6px 6px 12px; border-radius: 99px; background: #2a2318; font-size: 14px; }
.opts span button { width: 22px; height: 22px; border-radius: 50%; background: #3d3120; color: #ff9d92; line-height: 1; }
.tabs-p { display: flex; gap: 6px; margin-bottom: 18px; }
.tabs-p button { padding: 10px 18px; border-radius: 99px; font-weight: 700; color: #a8976f; background: var(--coal); border: 1px solid var(--line); }
.tabs-p button.on { background: var(--gold-grad); color: var(--black); border: 0; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: #8fd29a; font-weight: 600; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse 1.6s infinite; }
.ptoast { position: fixed; right: 26px; top: 22px; z-index: 60; background: var(--gold-grad); color: var(--black); font-weight: 800; padding: 16px 22px; border-radius: 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); animation: rise .35s var(--spring) both; font-size: 16px; cursor: pointer; }
.num-input { width: 90px; }
.empty-p { text-align: center; padding: 30px; color: #8d7b5c; }

.photo-up { display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: 16px; border: 1.5px dashed var(--line); transition: all .2s; }
.photo-up.over { border-color: var(--gold); background: rgba(212, 166, 74, .08); }
.photo-prev { width: 110px; height: 110px; border-radius: 16px; overflow: hidden; flex: none; display: grid; place-items: center; background: #120f0b; border: 1px solid var(--line); text-align: center; color: #8d7b5c; font-size: 12px; }
.photo-prev img { width: 100%; height: 100%; object-fit: cover; }
.m-err { display: none; margin-top: 12px; padding: 11px 14px; border-radius: 12px; background: rgba(201, 71, 58, .15); color: #ff9d92; font-weight: 600; font-size: 14px; }

.sw .mode { color: #8d7b5c; font-weight: 500; font-size: 12px; margin-left: 2px; }
.sched-status { display: flex; gap: 12px; align-items: center; margin: 16px 0; padding: 14px 16px; border-radius: 16px; background: rgba(201, 71, 58, .12); border: 1px solid rgba(201, 71, 58, .35); }
.sched-status.open { background: rgba(79, 154, 91, .12); border-color: rgba(79, 154, 91, .4); }
.sched-status i { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); flex: none; }
.sched-status.open i { background: var(--ok); animation: pulse 1.6s infinite; }
.sched small { color: #a8976f; }
table.sched.off { opacity: .55; }
input[type=time].in { color-scheme: dark; }

.cfg-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; align-items: start; }
.cfg-grid > div > .panel-b { margin-bottom: 16px; }
.logo-edit { display: flex; gap: 18px; align-items: center; }
.logo-prev { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 1px rgba(212, 166, 74, .6), 0 0 26px rgba(212, 166, 74, .25); background: #000; }
.brand img { object-fit: cover; }
table.sched td { padding: 9px 8px; }
table.sched .in { width: 100%; min-width: 0; padding: 8px 10px; }
