/* KatuFood - painel administrativo */

.app { display: flex; min-height: 100vh; }

/* --------------------------------------------------------- barra lateral */

.lateral {
  width: 236px; flex: none; background: #17171b; color: #d4d4d8;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.lateral .marca {
  padding: 18px 18px 14px; display: flex; align-items: center; gap: 9px;
  font-size: 18px; font-weight: 750; color: #fff; letter-spacing: -.02em;
}
.lateral .marca .k {
  width: 28px; height: 28px; border-radius: 8px; background: var(--laranja);
  display: grid; place-items: center; font-size: 15px; color: #fff;
}
.lateral .loja {
  margin: 0 12px 12px; padding: 10px 12px; background: rgba(255,255,255,.06);
  border-radius: var(--r-sm); font-size: 13px; line-height: 1.35;
}
.lateral .loja b { display: block; color: #fff; font-size: 14px; }
.lateral .loja a { color: var(--laranja); font-size: 12.5px; }

.menu { flex: 1; overflow-y: auto; padding: 4px 10px 20px; }
.menu .secao { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: #71717a; padding: 14px 10px 6px; font-weight: 700; }
.menu a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-sm);
  color: #d4d4d8; font-size: 14.5px; font-weight: 500; text-decoration: none; margin-bottom: 1px;
}
.menu a:hover { background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }
.menu a.ativo { background: var(--laranja); color: #fff; font-weight: 600; }
.menu a .ic { width: 18px; text-align: center; font-size: 15px; flex: none; }
.menu a .bolha {
  margin-left: auto; background: var(--vermelho); color: #fff; font-size: 11px; font-weight: 700;
  padding: 1px 6px; border-radius: var(--r-full); min-width: 18px; text-align: center;
}
.menu a.ativo .bolha { background: rgba(0,0,0,.3); }

.lateral .rodape { padding: 12px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.lateral .rodape .usuario { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.lateral .rodape .avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--laranja); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none;
}
.lateral .rodape a { color: #a1a1aa; }

/* --------------------------------------------------------- conteudo */

.conteudo { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topo {
  background: var(--papel); border-bottom: 1px solid var(--linha);
  padding: 12px 22px; display: flex; align-items: center; gap: 14px;
  position: sticky; top: 0; z-index: 30;
}
.topo h1 { font-size: 19px; margin: 0; }
.topo .acoes { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.status-loja { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; padding: 5px 11px; border-radius: var(--r-full); }
.status-loja.aberta { background: var(--verde-claro); color: #0f7a37; }
.status-loja.fechada { background: var(--vermelho-claro); color: var(--vermelho); }

.pagina { padding: 22px; flex: 1; }
.pagina-larga { max-width: 100%; }
.pagina-estreita { max-width: 820px; }

.abrir-menu { display: none; background: none; border: 0; font-size: 22px; cursor: pointer; padding: 0 4px; color: var(--tinta-2); }

@media (max-width: 900px) {
  .lateral {
    position: fixed; left: 0; top: 0; z-index: 100; transform: translateX(-100%);
    transition: transform .2s; box-shadow: var(--sombra-3);
  }
  .lateral.aberta { transform: none; }
  .abrir-menu { display: block; }
  .pagina { padding: 16px 14px; }
  .topo { padding: 10px 14px; }
  .cortina { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 99; }
}

/* --------------------------------------------------------- pedidos (kanban) */

.colunas { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; align-items: flex-start; }
.coluna { flex: 0 0 292px; background: #eeeef1; border-radius: var(--r); padding: 10px; }
.coluna-topo { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 10px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--tinta-2); }
.coluna-topo .n { background: var(--papel); border-radius: var(--r-full); padding: 1px 8px; font-size: 12px; }
.coluna-lista { display: flex; flex-direction: column; gap: 9px; min-height: 40px; }

.pedido-card {
  background: var(--papel); border-radius: var(--r-sm); padding: 12px;
  box-shadow: var(--sombra-1); border-left: 3px solid var(--linha); cursor: pointer;
  transition: box-shadow .15s, transform .1s;
}
.pedido-card:hover { box-shadow: var(--sombra-2); }
.pedido-card:active { transform: scale(.995); }
.pedido-card.novo { border-left-color: var(--laranja); animation: pulsa 1.6s ease-in-out 4; }
.pedido-card.atrasado { border-left-color: var(--vermelho); }
.pedido-card.agendado { border-left-color: var(--roxo); }
@keyframes pulsa { 0%,100% { box-shadow: var(--sombra-1); } 50% { box-shadow: 0 0 0 3px rgba(255,106,31,.35); } }

.pedido-card .num { font-weight: 750; font-size: 15px; }
.pedido-card .cli { font-size: 13.5px; color: var(--tinta-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pedido-card .meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--tinta-3); margin-top: 6px; flex-wrap: wrap; }
.pedido-card .itens { font-size: 12.5px; color: var(--tinta-3); margin-top: 6px; line-height: 1.4; }
.pedido-card .valor { font-weight: 700; }

/* --------------------------------------------------------- KDS */

body.kds { background: #101014; color: #e4e4e7; }
.kds-topo { display: flex; align-items: center; gap: 14px; padding: 12px 18px; background: #17171b; border-bottom: 1px solid #27272a; position: sticky; top: 0; z-index: 20; }
.kds-topo h1 { font-size: 17px; color: #fff; margin: 0; }
.kds-grade { display: grid; gap: 12px; padding: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.kds-card { background: #1c1c21; border-radius: var(--r); border-top: 4px solid var(--laranja); overflow: hidden; }
.kds-card.atrasado { border-top-color: var(--vermelho); }
.kds-card.pronto { border-top-color: var(--verde); opacity: .75; }
.kds-card .cab { padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; background: #232329; }
.kds-card .cab .n { font-size: 19px; font-weight: 750; color: #fff; }
.kds-card .cab .t { font-size: 13px; color: #a1a1aa; font-variant-numeric: tabular-nums; }
.kds-card ul { list-style: none; margin: 0; padding: 8px 0; }
.kds-card li { padding: 8px 14px; display: flex; gap: 10px; align-items: flex-start; border-bottom: 1px solid #26262c; cursor: pointer; }
.kds-card li:last-child { border-bottom: 0; }
.kds-card li:hover { background: #22222a; }
.kds-card li.pronto { opacity: .45; text-decoration: line-through; }
.kds-card li .q { font-weight: 750; color: var(--laranja); min-width: 26px; }
.kds-card li .obs { display: block; font-size: 12.5px; color: var(--ambar); margin-top: 2px; }
.kds-card li .comp { display: block; font-size: 12.5px; color: #a1a1aa; }
.kds-card .rodape { padding: 10px 14px; border-top: 1px solid #26262c; display: flex; gap: 8px; }

/* --------------------------------------------------------- listas do painel */

.item-lista {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  border-bottom: 1px solid var(--linha-2); background: var(--papel);
}
.item-lista:last-child { border-bottom: 0; }
.item-lista:hover { background: #fcfcfd; }
.item-lista .thumb { width: 46px; height: 46px; border-radius: var(--r-sm); object-fit: cover; background: var(--linha-2); flex: none; }
.item-lista .sem-foto { display: grid; place-items: center; color: var(--tinta-4); font-size: 18px; }

.arrastar { cursor: grab; color: var(--tinta-4); user-select: none; }
.arrastar:active { cursor: grabbing; }
.arrastando { opacity: .4; }

/* --------------------------------------------------------- impressao */

.cupom-impressao {
  width: 300px; margin: 0 auto; font-family: var(--mono); font-size: 12px; line-height: 1.45; color: #000;
}
.cupom-impressao hr { border-top: 1px dashed #000; margin: 6px 0; }
.cupom-impressao .c { text-align: center; }
.cupom-impressao .l { display: flex; justify-content: space-between; gap: 8px; }
.cupom-impressao h2 { font-size: 15px; text-align: center; margin: 0 0 4px; }

/* --------------------------------------------------------- login */

.tela-login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(160deg, #1c1c21, #2b1a10); }
.caixa-login { background: var(--papel); border-radius: var(--r-lg); padding: 32px; width: 100%; max-width: 400px; box-shadow: var(--sombra-3); }
.caixa-login .marca { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 6px; font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.caixa-login .marca .k { width: 36px; height: 36px; border-radius: 10px; background: var(--laranja); color: #fff; display: grid; place-items: center; font-size: 19px; }
.caixa-login p.sub { text-align: center; color: var(--tinta-3); margin-bottom: 24px; font-size: 14px; }
