@font-face {
  font-family: Montserrat;
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("fonts/Montserrat-Regular.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Montserrat;
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("fonts/Montserrat-ext-400.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Montserrat;
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("fonts/Montserrat-SemiBold.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Montserrat;
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("fonts/Montserrat-ext-600.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Montserrat;
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("fonts/Montserrat-Bold.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Montserrat;
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("fonts/Montserrat-ext-700.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --tinta: #E8EEF2;
  --apagado: #8AA0AD;
  --fundo: #070B10;
  --superficie: #0E151C;
  --superficie-2: #121B24;
  --linha: rgba(0, 191, 178, 0.16);
  --linha-forte: rgba(0, 191, 178, 0.32);
  --acento: #00BFB2;
  --acento-tinta: #042422;
  --navy: #006699;
  --alerta: #FF5A5F;
  --ok: #3DDC97;
  --aviso-cor: #F0B429;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  font: 15px/1.5 Montserrat, system-ui, sans-serif;
  color: var(--tinta);
  background: var(--fundo);
}
a { color: var(--acento); text-decoration: none; }
a:hover { text-decoration: underline; }

nav {
  display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center;
  padding: .7rem 1.25rem;
  background: rgba(8, 14, 20, .92);
  border-bottom: 1px solid var(--linha);
}
nav a.marca { display: flex; align-items: center; gap: .7rem; margin-right: .4rem; text-decoration: none; }
nav a.marca img {
  height: 36px; width: auto; display: block;
  filter: drop-shadow(0 0 10px rgba(0, 191, 178, .35));
}
nav a.marca span { display: flex; flex-direction: column; line-height: 1.05; }
nav a.marca strong {
  font-weight: 700; letter-spacing: .14em; font-size: 1.05rem; color: #fff;
}
nav a.marca small {
  font-weight: 400; letter-spacing: .18em; font-size: .55rem;
  color: var(--acento); text-transform: uppercase;
}
nav a.item {
  color: var(--tinta); text-decoration: none;
  padding: .35rem .15rem; border-bottom: 2px solid transparent;
  font-weight: 600; font-size: .9rem;
}
nav a.item:hover { color: var(--acento); text-decoration: none; }
nav a.item[aria-current="page"] { color: var(--acento); border-bottom-color: var(--acento); }
nav .sair { margin-left: auto; }

main { padding: 1.4rem 1.25rem 3rem; max-width: 1120px; margin: 0 auto; }
h1 { font-size: 1.65rem; font-weight: 700; letter-spacing: .02em; margin: 0 0 1rem; }
h2 { font-size: 1.05rem; font-weight: 700; letter-spacing: .04em; margin: 1.6rem 0 .7rem; color: #cfe7ea; }

table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th {
  text-align: left; padding: .55rem .5rem;
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--apagado); font-weight: 600;
  border-bottom: 1px solid var(--linha);
}
td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid rgba(255,255,255,.04); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:hover td { background: rgba(0, 191, 178, .04); }

input, select, textarea, button { font: inherit; }
input, select, textarea {
  background: var(--superficie-2);
  border: 1px solid var(--linha);
  border-radius: 8px;
  padding: .5rem .65rem;
  color: var(--tinta);
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--acento);
  outline-offset: 1px;
  border-color: var(--acento);
}
label { display: block; margin: .55rem 0; color: var(--apagado); font-size: .82rem; font-weight: 600; }
label > input, label > select, label > textarea { margin-top: .25rem; font-weight: 400; color: var(--tinta); }
small { color: var(--apagado); font-weight: 400; }

button {
  padding: .5rem .9rem; border-radius: 8px; cursor: pointer;
  background: transparent; color: var(--tinta);
  border: 1px solid var(--linha-forte);
}
button[type="submit"] {
  background: var(--acento); color: var(--acento-tinta);
  border: 0; font-weight: 700;
}
button[type="submit"]:hover { box-shadow: 0 0 22px rgba(0, 191, 178, .35); }
nav .sair button {
  background: transparent; color: var(--apagado);
  border: 1px solid var(--linha); font-weight: 400;
}

.erro { color: var(--alerta); }
.vermelho { color: var(--alerta); }
.verde { color: var(--ok); }
.amarelo { color: var(--aviso-cor); }

.slots { border: 1px solid var(--linha); border-radius: 8px; padding: .5rem .7rem; margin: .6rem 0; }
.slots legend { color: var(--apagado); font-size: .82rem; font-weight: 600; }
.slot { display: grid; grid-template-columns: 1fr 4.5rem 6rem; gap: .35rem; margin: .3rem 0; }
.slot-cor { grid-template-columns: 1fr; }
.slot-cat { grid-template-columns: 1fr 4.5rem; }
input[type="color"] { height: 2.2rem; padding: .15rem; }
.slot input, .slot select { width: 100%; }
.aviso-fatiador { color: var(--apagado); font-size: .8rem; margin: .2rem 0 .6rem; }
.acoes-mesa { display: flex; flex-wrap: wrap; gap: .4rem; margin: .45rem 0; }
.acoes-mesa button, [data-mesa="resto"] button { width: auto; }

.filtro { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.filtro select, .filtro input, .filtro button { width: auto; }

.grade {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.1rem; align-items: start;
}
.grade > form {
  background: var(--superficie);
  border: 1px solid var(--linha);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

.painel {
  background: var(--superficie);
  border: 1px solid var(--linha-forte);
  border-radius: 12px;
  padding: 1rem;
}
.painel .detalhe td { color: var(--apagado); font-size: .8rem; border-bottom: none; padding: .15rem .5rem; }
.painel .comp {
  display: block; color: var(--apagado); font-size: .72rem; font-weight: 400;
  margin-top: .15rem; letter-spacing: 0;
}
.painel .hero-linha th, .painel .hero-linha td {
  color: var(--acento); font-size: 1.05rem;
  border-top: 1px solid var(--linha); padding-top: .7rem;
}

table.resumo { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin: 1rem 0 1.4rem; }
table.resumo tbody { display: contents; }
table.resumo tr {
  display: flex; flex-direction: column;
  background: var(--superficie);
  border: 1px solid var(--linha);
  border-radius: 12px;
  padding: .85rem 1rem;
}
table.resumo tr:hover td { background: transparent; }
table.resumo th, table.resumo td {
  border: 0; padding: 0; text-align: left;
  text-transform: none; letter-spacing: 0;
}
table.resumo th {
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; padding-bottom: .25rem;
}
table.resumo td.num {
  text-align: left; font-size: 1.35rem; font-weight: 700;
}
table.resumo td.hero {
  color: var(--acento); font-size: 1.55rem;
  text-shadow: 0 0 18px rgba(0, 191, 178, .25);
}
table.resumo tr:has(td[colspan]) {
  grid-column: 1 / -1;
}

.fila {
  background: var(--superficie);
  border: 1px solid var(--linha);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}
.fila h2 { margin-top: 0; }
.fila-cab {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: flex-end; gap: 1rem; margin-bottom: 1rem;
}
.fila-cab h2 { margin: 0; }
.fila .livre {
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--apagado); margin: 0; text-align: right;
}
.fila .livre strong {
  display: block; font-size: 1.7rem; letter-spacing: 0;
  text-transform: none; color: var(--acento); font-weight: 700;
}
tr.vermelho td:first-child::before,
tr.amarelo td:first-child::before,
tr.verde td:first-child::before {
  content: "";
  display: inline-block;
  width: .65rem; height: .65rem;
  border-radius: 50%;
  margin-right: .45rem;
  vertical-align: middle;
}
tr.vermelho td:first-child::before { background: var(--alerta); box-shadow: 0 0 8px var(--alerta); }
tr.amarelo td:first-child::before { background: var(--aviso-cor); box-shadow: 0 0 8px var(--aviso-cor); }
tr.verde td:first-child::before { background: var(--ok); box-shadow: 0 0 8px var(--ok); }

.galeria { display: flex; flex-wrap: wrap; gap: .75rem; }
.galeria figure { margin: 0; }
.galeria img {
  width: 180px; height: 180px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--linha);
}

.cores { display: flex; flex-wrap: wrap; gap: .7rem; }
.cor {
  display: flex; align-items: center; gap: .55rem;
  background: var(--superficie);
  border: 1px solid var(--linha);
  border-radius: 999px;
  padding: .45rem .9rem .45rem .5rem;
}
.bolinha { width: 1.15rem; height: 1.15rem; border-radius: 50%; border: 1px solid #fff2; }
.cor .legenda, .cor .esgotar { display: contents; }
.cor .amostra {
  position: relative; display: block; flex: 0 0 2.5rem;
  width: 2.5rem; height: 2.5rem; margin: 0; padding: 0;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,.65);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.45);
  overflow: hidden; cursor: pointer;
}
.cor .amostra input[type="color"] {
  appearance: none; -webkit-appearance: none;
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer;
}
.cor .esgotar button[type="submit"] {
  all: unset; cursor: pointer;
  font-size: .7rem; font-weight: 500; color: var(--apagado);
}
.cor .esgotar button[type="submit"]:hover {
  color: var(--alerta); background: none; box-shadow: none;
}

.aviso {
  border: 1px solid var(--alerta);
  background: rgba(255, 90, 95, .08);
  border-radius: 12px;
  padding: .75rem 1rem;
  margin: 1rem 0;
}
.fixo { color: var(--apagado); }
.fixo strong { color: var(--tinta); }

body.login {
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at 50% 28%, rgba(0, 191, 178, .16), transparent 60%),
    radial-gradient(700px 400px at 70% 80%, rgba(0, 102, 153, .18), transparent 55%),
    var(--fundo);
}
body.login::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; opacity: .18;
  background-image:
    linear-gradient(rgba(0, 191, 178, .18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 191, 178, .18) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 70%);
}
body.login main {
  position: relative;
  display: grid; place-items: center;
  min-height: 100vh;
  max-width: none;
  padding: 1rem;
}
form.login {
  width: min(26rem, 92vw);
  text-align: center;
  background: transparent;
  border: 0;
  padding: 1rem 0 2rem;
}
form.login img.hero {
  width: min(22rem, 88vw); height: auto;
  filter: drop-shadow(0 0 28px rgba(0, 191, 178, .28));
}
form.login label { text-align: left; }
form.login button { width: 100%; margin-top: .8rem; padding: .7rem; }
form.login .rodape {
  margin-top: 1.4rem;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--apagado);
}

@media (max-width: 800px) {
  .grade, table.resumo { grid-template-columns: 1fr 1fr; }
  nav .sair { margin-left: 0; }
}
@media (max-width: 560px) {
  .grade, table.resumo { grid-template-columns: 1fr; }
}
