/* Godoy Painel - camada visual principal.
   Este arquivo sobrescreve apenas estilos, sem alterar regras de negócio. */

:root {
  --m: #2f1a0f;
  --c: #bd7a35;
  --cr: #f7efe4;
  --w: #ffffff;
  --g: #786b60;
  --v: #267052;
  --r: #bd3328;
  --a: #e1a12d;
  --b: #145f86;
  --o: #df7d22;
  --panel: #f5f1ea;
  --surface: #fffaf4;
  --surface-strong: #ffffff;
  --line: rgba(47, 26, 15, .11);
  --line-strong: rgba(47, 26, 15, .18);
  --muted: #7b6f65;
  --shadow-xs: 0 2px 10px rgba(47, 26, 15, .05);
  --shadow-sm: 0 8px 22px rgba(47, 26, 15, .08);
  --shadow-md: 0 18px 46px rgba(47, 26, 15, .14);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
}

html {
  background: var(--panel);
}

body {
  font-family: 'DM Sans', 'Segoe UI', Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(189, 122, 53, .12), transparent 34rem),
    linear-gradient(135deg, #fbf7f0 0%, var(--panel) 54%, #eee4d8 100%);
  color: var(--m);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(189, 122, 53, .26);
  outline-offset: 2px;
}

/* Login */
.login-wrap {
  background:
    radial-gradient(circle at 22% 18%, rgba(189, 122, 53, .26), transparent 22rem),
    radial-gradient(circle at 82% 78%, rgba(255, 250, 244, .12), transparent 24rem),
    #241106;
}

.login-box {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
}

.login-logo {
  font-size: 40px;
}

.login-field,
.fg input,
.fg select,
.fg textarea,
.cf input,
.cf select,
.cf textarea,
.kanban-header input,
.kanban-header select,
.cardapio-tools input,
.cardapio-tools select,
.comp-card input,
.comp-card select {
  border-color: var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}

.login-field:focus,
.fg input:focus,
.fg select:focus,
.fg textarea:focus,
.cf input:focus,
.cf select:focus,
.cf textarea:focus,
.kanban-header input:focus,
.kanban-header select:focus,
.cardapio-tools input:focus,
.cardapio-tools select:focus,
.comp-card input:focus,
.comp-card select:focus {
  border-color: var(--c);
  background: var(--surface-strong);
  box-shadow: 0 0 0 4px rgba(189, 122, 53, .11);
}

.cf textarea {
  display: block;
  width: 100%;
  min-height: 58px;
  padding: 8px 10px;
  color: var(--m);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  line-height: 1.4;
  outline: none;
  resize: vertical;
}

/* Shell do painel */
#painel-wrap[style*="block"] {
  display: grid !important;
  grid-template-columns: 228px minmax(0, 1fr);
  grid-template-rows: 64px minmax(0, 1fr);
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(189, 122, 53, .13), transparent 28rem),
    var(--panel);
  transition: grid-template-columns .22s ease;
}

#painel-wrap.sidebar-collapsed[style*="block"] {
  grid-template-columns: 76px minmax(0, 1fr);
}

#painel-wrap > header {
  grid-column: 1 / -1;
  grid-row: 1;
  height: 64px;
  padding: 9px 20px;
  background: linear-gradient(135deg, #2b1508 0%, #3d1f0a 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 12px 32px rgba(47, 26, 15, .18);
}

.logo-txt {
  font-size: 23px;
  letter-spacing: -.03em;
}

.logo-sub {
  opacity: .88;
}

.hr {
  gap: 10px;
}

.logo {
  min-width: 0;
}

.sidebar-toggle {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 13px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  transition: background .2s, transform .2s, border-color .2s;
}

.sidebar-toggle:hover {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .28);
  transform: translateY(-1px);
}

.dh,
.usuario-info {
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
}

#painel-wrap > .tabs {
  grid-column: 1;
  grid-row: 2;
  position: sticky;
  top: 64px;
  align-self: start;
  height: calc(100vh - 64px);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 14px;
  background:
    linear-gradient(180deg, #361b0a 0%, #291306 100%);
  border-top: 0;
  border-right: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 10px 0 24px rgba(47, 26, 15, .08);
  transition: padding .22s ease, width .22s ease;
}

#painel-wrap > .tc {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  display: none;
  padding: 14px 18px 28px;
}

#painel-wrap > .tc.on {
  display: block;
}

.tb {
  width: 100%;
  padding: 11px 12px;
  border-radius: 13px;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, .68);
  border-bottom: 0;
  text-align: left;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  overflow: hidden;
}

.tb:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.tb.on {
  color: #fff;
  border-bottom: 0;
  background: linear-gradient(135deg, rgba(189, 122, 53, .95), rgba(154, 91, 34, .95));
  border-color: rgba(255, 255, 255, .13);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .12);
}

#painel-wrap.sidebar-collapsed .logo-txt,
#painel-wrap.sidebar-collapsed .logo-sub {
  display: none;
}

#painel-wrap.sidebar-collapsed > .tabs {
  padding: 18px 10px;
  align-items: center;
}

#painel-wrap.sidebar-collapsed .tb {
  width: 50px;
  height: 50px;
  padding: 0;
  justify-content: center;
  font-size: 0;
  border-radius: 16px;
  position: relative;
}

#painel-wrap.sidebar-collapsed .tb::before {
  content: attr(data-icon);
  font-size: 20px;
  color: #fff;
  line-height: 1;
}

#painel-wrap.sidebar-collapsed .tb span {
  display: none !important;
}

/* Botões */
.btn,
.login-btn,
.bsc,
.kb2 {
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: -.01em;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset;
}

.btn {
  min-height: 32px;
  padding: 7px 13px;
  font-size: 12px;
}

.btn:hover,
.kb2:hover,
.login-btn:hover,
.bsc:hover {
  transform: translateY(-1px);
}

.bout {
  background: rgba(255, 255, 255, .86);
  border-color: rgba(47, 26, 15, .12);
}

header .bout {
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .13);
}

header .bout:hover {
  background: rgba(255, 255, 255, .16);
}

/* Áreas e cards */
.gc {
  padding: 0;
}

.gcard,
.cs,
.cw,
.insight,
.tip-card,
.rs,
.pc,
.kcard,
.cardapio-stat,
.cat-secao,
.mo .md {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.gcard,
.cs,
.cw,
.insight,
.tip-card,
.rs {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(10px);
}

.gtt,
.mtt {
  font-size: 21px;
  letter-spacing: -.03em;
}

.gdesc {
  color: var(--muted);
}

.kanban-legenda,
.kanban-header {
  padding-left: 0;
  padding-right: 0;
}

.kanban-legenda {
  margin-bottom: 8px;
  font-size: 12px;
}

.kanban-header {
  position: sticky;
  top: 84px;
  z-index: 20;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 244, .92);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-xs);
}

.kanban-header input,
.kanban-header select {
  min-height: 38px;
}

.kanban-header input[type="text"] {
  min-width: 160px;
}

.kw {
  padding: 0;
}

.kb {
  padding: 0 2px 10px;
  gap: 12px;
  min-width: 0;
}

.kc {
  width: clamp(242px, 18vw, 270px);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .58);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}

#painel-wrap.sidebar-collapsed .kc {
  width: clamp(250px, 18.5vw, 282px);
}

.kch {
  padding: 13px 14px;
  font-size: 12px;
  letter-spacing: 1px;
}

.kcb {
  padding: 10px;
  gap: 10px;
}

.kcard {
  border-radius: 15px;
  padding: 12px;
  background: #fff;
}

.kcli {
  font-size: 18px;
}

.kits {
  background: #fff7ee;
  border: 1px solid rgba(189, 122, 53, .11);
  border-radius: 12px;
  padding: 8px;
}

.ktag,
.ptag,
.pchip,
.nivel-badge {
  border-radius: 999px;
}

/* Cardápio */
.cardapio-top {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cardapio-stat {
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(255, 248, 238, .92));
}

.cardapio-stat strong {
  font-size: 27px;
}

.cardapio-tools {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 244, .9);
  padding: 12px;
}

.cat-secao {
  border-radius: 18px;
  background: rgba(255, 255, 255, .76);
}

.cat-secao-header {
  padding: 14px 16px;
  background: rgba(255, 250, 244, .82);
}

.cat-secao-titulo {
  font-size: 19px;
}

.cat-secao-body {
  padding: 14px;
}

.pg {
  grid-template-columns: repeat(auto-fill, minmax(226px, 1fr));
  gap: 14px;
}

.pc {
  border-radius: 18px;
  background: #fff;
}

.pc:hover {
  box-shadow: var(--shadow-md);
}

.pim {
  height: 132px;
  background:
    radial-gradient(circle at center, rgba(189, 122, 53, .12), transparent 52%),
    #fbf4eb;
}

.pb {
  padding: 14px;
}

.pnom {
  font-size: 18px;
  line-height: 1.15;
}

.ppr {
  font-size: 21px;
  margin-top: 4px;
}

.pft {
  padding: 10px 14px;
}

.drag-handle {
  border-radius: 999px;
}

/* Formulários, tabelas e listas */
.fr {
  gap: 10px;
  margin-bottom: 12px;
}

.fg label,
.cf label,
.comp-mini,
.summary-label,
.cst,
.plabel {
  color: var(--muted);
  font-weight: 800;
}

.ir,
.comp-card,
.comp-item,
.summary-card,
.hist-empty,
.ib {
  border: 1px solid var(--line);
  border-radius: 13px;
}

.ir {
  background: #fffaf4;
}

.comp-card {
  background: rgba(255, 250, 244, .88);
}

.comp-item {
  background: #fff;
}

.hist-filtros {
  align-items: end;
  background: #fffaf4;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(190px, 1fr) 140px 140px auto auto;
  margin-bottom: 10px;
  padding: 10px;
}

.hist-order-row .ia {
  flex-shrink: 0;
}

.hist-detail-wrap {
  display: grid;
  gap: 9px;
  max-height: 72vh;
  overflow: auto;
  padding-right: 2px;
}

.hist-detail-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.hist-field,
.hist-box,
.hist-items > div {
  background: #fffaf4;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
}

.hist-field span {
  color: var(--muted);
  display: block;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hist-field strong {
  color: var(--m);
  display: block;
  font-size: 12px;
  margin-top: 2px;
}

.hist-items {
  display: grid;
  gap: 5px;
}

.hist-items > div {
  align-items: baseline;
  display: grid;
  gap: 6px;
  grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.4fr) auto;
}

.hist-items b,
.hist-items strong {
  color: var(--m);
}

.hist-items em {
  color: var(--muted);
  font-style: normal;
}

.hist-box {
  color: var(--e);
  font-size: 11px;
  line-height: 1.45;
}

.itbl {
  border-radius: 14px;
  border-color: var(--line);
}

.itr {
  padding: 10px 12px;
}

.itr.h {
  background: #fff7ee;
}

/* Modais */
.mo {
  background: rgba(23, 13, 8, .55);
  backdrop-filter: blur(4px);
}

.md {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.msec {
  border-radius: var(--radius);
}

.mft {
  position: sticky;
  bottom: -19px;
  margin-left: -19px;
  margin-right: -19px;
  margin-bottom: -19px;
  padding: 14px 19px 19px;
  background: linear-gradient(180deg, rgba(255,255,255,.78), #fff);
  border-top: 1px solid var(--line);
}

/* Relatórios, entrega e notificações */
.rel-grid,
.delivery-grid {
  gap: 16px;
}

#mapa-entrega {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}

.notif {
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.popup-atend {
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

/* Responsivo */
@media (max-width: 1100px) {
  #painel-wrap[style*="block"] {
    grid-template-columns: 218px minmax(0, 1fr);
  }

  .tb {
    font-size: 12px;
    padding: 10px;
  }

  .kc {
    width: 264px;
  }

  .cardapio-top,
  .insight-grid,
  .rel-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  #painel-wrap[style*="block"] {
    display: block !important;
    min-height: 100vh;
  }

  #painel-wrap > header {
    height: auto;
    min-height: 64px;
    padding: 10px 12px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .logo-txt {
    font-size: 22px;
  }

  .hr {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  #painel-wrap > .tabs {
    position: sticky;
    top: 0;
    z-index: 190;
    height: auto;
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 12px;
    border-right: 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 10px 22px rgba(47, 26, 15, .16);
  }

  .tb {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
    height: auto;
    min-height: 42px;
    padding: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, .68);
  }

  #painel-wrap.sidebar-collapsed .logo-txt,
  #painel-wrap.sidebar-collapsed .logo-sub {
    display: block;
  }

  #painel-wrap.sidebar-collapsed .tb {
    width: auto;
    height: auto;
    padding: 10px;
    font-size: 12px;
    border-radius: 13px;
  }

  #painel-wrap.sidebar-collapsed .tb::before {
    content: none;
  }

  #painel-wrap.sidebar-collapsed .tb span {
    display: inline-block !important;
  }

  #painel-wrap > .tc {
    padding: 14px 12px 24px;
  }

  .kanban-header {
    top: 0;
    padding: 10px;
  }

  .kb {
    padding-bottom: 14px;
  }

  .kc {
    width: min(84vw, 282px);
  }

  .pg {
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  }

  .cardapio-tools,
  .rel-grid,
  .delivery-grid,
  .f2,
  .f2a,
  .f3,
  .f3a,
  .comp-head,
  .comp-item,
  .fr-row {
    grid-template-columns: 1fr;
  }

  .md {
    width: 94%;
    border-radius: 20px;
  }

  .mft {
    bottom: -14px;
    margin-left: -14px;
    margin-right: -14px;
    margin-bottom: -14px;
    padding: 12px 14px 14px;
  }
}

@media (max-width: 560px) {
  .cardapio-top,
  .insight-grid,
  .rel-stats,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .pg {
    grid-template-columns: 1fr;
  }

  .kanban-legenda {
    flex-wrap: wrap;
  }

  .kact,
  .mft {
    justify-content: stretch;
  }

  .mft .btn {
    flex: 1;
  }

  .itr {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .itr.h {
    display: none;
  }
}

/* Ajustes operacionais: melhora legibilidade em Windows/Chrome e no balcão. */
body {
  color: #32190a;
  font-size: 15px;
}

#painel-wrap > .tabs {
  gap: 8px;
}

.tb {
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
  font-weight: 750;
}

.tb:hover,
.tb.on {
  color: #fff;
}

.dh,
.usuario-info {
  color: rgba(255, 255, 255, .84);
  font-size: 13px;
  font-weight: 650;
}

.kanban-legenda {
  color: #5b4b3f;
  font-size: 14px;
  font-weight: 700;
  gap: 15px;
}

.pedido-config-operacao {
  margin-bottom: 12px;
}

.pedido-config-operacao .ib {
  margin-bottom: 10px;
}

.pedido-operacao-grid {
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 10px 12px;
  align-items: start;
}

.pedido-operacao-grid .cf:not(.cff) {
  display: flex;
  flex-direction: column;
}

.pedido-operacao-grid .cf:not(.cff) label {
  min-height: 34px;
  display: flex;
  align-items: flex-end;
}

.pedido-operacao-grid .cf:not(.cff) input,
.pedido-operacao-grid .cf:not(.cff) select {
  min-height: 44px;
}

.pedido-operacao-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.pedido-operacao-tabs button {
  border: 1px solid rgba(47, 26, 15, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .78);
  color: #4a3324;
  min-height: 62px;
  padding: 10px 13px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.pedido-operacao-tabs button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(189, 122, 53, .25);
}

.pedido-operacao-tabs button.on {
  background: linear-gradient(135deg, rgba(61, 31, 10, .97), rgba(113, 63, 25, .94));
  color: #fff;
  border-color: rgba(255, 255, 255, .16);
  box-shadow: 0 16px 34px rgba(47, 26, 15, .18);
}

.pedido-operacao-tabs .op-ico {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(189, 122, 53, .13);
  font-size: 20px;
}

.pedido-operacao-tabs button.on .op-ico {
  background: rgba(255, 255, 255, .14);
}

.pedido-operacao-tabs strong {
  display: block;
  font-size: 17px;
  line-height: 1.1;
}

.pedido-operacao-tabs small {
  display: block;
  margin-top: 4px;
  color: #7a6a5e;
  font-size: 11px;
  font-weight: 700;
}

.pedido-operacao-tabs button.on small {
  color: rgba(255, 255, 255, .72);
}

.pedido-operacao-tabs b {
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(47, 26, 15, .08);
  color: inherit;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
}

.pedido-operacao-tabs button.on b {
  background: rgba(255, 255, 255, .16);
}

.kanban-header {
  gap: 8px;
  padding: 10px 12px;
}

.kanban-header input,
.kanban-header select {
  color: #32190a;
  font-size: 14px;
  font-weight: 650;
}

.kanban-header input,
.kanban-header select {
  min-height: 34px;
}

.kb {
  --kanban-col: 280px;
  gap: 12px;
  align-items: stretch;
  min-width: max-content;
  padding-right: 18px;
}

.kc {
  width: var(--kanban-col);
  flex: 0 0 var(--kanban-col);
  background: rgba(255, 255, 255, .74);
}

#painel-wrap.sidebar-collapsed .kb {
  --kanban-col: 304px;
}

#painel-wrap.sidebar-collapsed .kc {
  width: var(--kanban-col);
  flex-basis: var(--kanban-col);
}

.kch {
  color: #2c1609;
  font-size: 14px;
  font-weight: 900;
}

.kch span:last-child {
  font-size: 15px;
}

.kcard {
  color: #2c1609;
  border-color: rgba(47, 26, 15, .13);
  box-shadow: 0 10px 24px rgba(47, 26, 15, .09);
  cursor: pointer;
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
}

.kcard::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: rgba(189, 122, 53, .55);
}

.kcard:hover {
  border-color: rgba(189, 122, 53, .28);
  box-shadow: 0 16px 34px rgba(47, 26, 15, .14);
  transform: translateY(-2px);
}

.kcard:focus-visible {
  outline: 3px solid rgba(189, 122, 53, .26);
  outline-offset: 3px;
}

.kcard.now {
  background: linear-gradient(180deg, #fff, #fff8ed);
}

.kcard.now::before {
  background: #c17f3a;
}

.kcard.agend::before {
  background: #145f86;
}

.kcard.validate {
  background: linear-gradient(180deg, #fff, #fff8ed);
}

.kcard.validate::before,
.kcard.urg::before {
  background: #df7d22;
}

.kcard.pay {
  background: linear-gradient(180deg, #fff, #fff9db);
}

.kcard.pay::before {
  background: #d5a21b;
}

.kcard.confirmed {
  background: linear-gradient(180deg, #fff, #f3fbf6);
}

.kcard.confirmed::before {
  background: #2d6a4f;
}

.kcard.production {
  background: linear-gradient(180deg, #fff, #eef6ff);
}

.kcard.production::before {
  background: #1a5276;
}

.kcard.ready {
  background: linear-gradient(180deg, #fff, #effbe9);
}

.kcard.ready::before {
  background: #4d9b38;
}

.kcard.soon {
  background: linear-gradient(180deg, #fff, #fff4df);
}

.kcard.soon::before {
  background: #e67e22;
}

.kcard.late {
  background: linear-gradient(180deg, #fff5f5, #fff);
}

.kcard.late::before {
  background: #c1392b;
  width: 5px;
}

.kid,
.kmeta,
.ins,
.ptag {
  color: #5e5147;
  font-size: 11px;
  font-weight: 650;
}

.kcli {
  color: #2f1a0f;
  font-family: 'DM Sans', 'Segoe UI', Arial, sans-serif;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.12;
}

.kits {
  color: #382011;
  font-size: 12px;
  font-weight: 700;
  border-color: rgba(189, 122, 53, .18);
  background: linear-gradient(135deg, #fff8ee, #fffdf9);
  max-height: none;
  overflow: visible;
}

.item-line {
  align-items: flex-start;
}

.item-nm {
  min-width: 0;
  overflow-wrap: anywhere;
}

.item-qtd {
  min-width: 44px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(47, 26, 15, .06);
  text-align: center;
}

.ktag,
.ptag {
  line-height: 1.45;
}

.kact {
  align-items: center;
  gap: 5px;
}

.kmove {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(47, 26, 15, .06);
  position: relative;
}

.kmove-direct {
  align-items: center;
  background: #fffaf4;
  border: 1px solid rgba(47, 26, 15, .1);
  border-radius: 999px;
  color: #2f1a0f;
  cursor: pointer;
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  height: 26px;
  justify-content: center;
  list-style: none;
  padding: 0 10px;
  user-select: none;
}

.kmove-direct:hover {
  background: var(--m);
  color: #fff;
}

.kmove-popover {
  background: #fff;
  border: 1px solid rgba(47, 26, 15, .12);
  border-radius: 10px;
  box-shadow: 0 14px 28px rgba(47, 26, 15, .18);
  display: grid;
  gap: 4px;
  min-width: 165px;
  padding: 6px;
  position: fixed;
  z-index: 10000;
}

.kmove-popover .kb2 {
  justify-content: flex-start;
  min-height: 28px;
  text-align: left;
  width: 100%;
}

.danger-btn {
  border: 1px solid rgba(189, 51, 40, .35);
  color: var(--r);
  background: #fff;
}

.danger-btn:hover {
  background: #fff0ee;
}

.btn {
  font-size: 13px;
}

.ir {
  color: #32190a;
}

.inm {
  color: #2f1a0f;
  font-weight: 850;
}

.gtt {
  color: #2f1a0f;
}

.chamada-entrega .ins {
  line-height: 1.45;
}

.kanban-header {
  align-items: center;
  padding: 12px 16px;
}

.pedido-refresh-status {
  color: #6f6258;
  font-size: 12px;
  font-weight: 700;
  margin-left: auto;
  white-space: nowrap;
}

.ktop {
  align-items: flex-start;
  gap: 10px;
}

.kpromise {
  min-width: 76px;
  max-width: 112px;
  padding: 7px 8px;
  border-radius: 10px;
  background: #fff7ea;
  color: #2f1a0f;
  text-align: center;
  border: 1px solid rgba(189, 122, 53, .2);
}

.kpromise small {
  display: block;
  color: #8a715d;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .04em;
}

.kpromise strong {
  display: block;
  font-size: 16px;
  line-height: 1.1;
}

.kpromise-count {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
}

.kpromise.late {
  background: #f8d7da;
  color: #842029;
}

.kpromise.soon {
  background: #fff3cd;
  color: #856404;
}

.kpromise.now {
  background: #fde2d7;
  color: #8a2f12;
}

.kpromise.ontime {
  background: #eaf7ef;
  color: #14532d;
  border-color: rgba(45, 106, 79, .22);
}

.kcreated {
  color: #74665b;
  font-size: 11px;
  font-weight: 700;
  margin: -2px 0 6px;
}

.kalerts {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 7px 0;
}

.kalert {
  border-radius: 999px;
  padding: 3px 8px;
  background: #f6efe7;
  color: #4b3424;
  font-size: 10px;
  font-weight: 900;
}

.kalert.late {
  background: #f8d7da;
  color: #842029;
}

.kalert.soon,
.kalert.pay {
  background: #fff3cd;
  color: #856404;
}

.kalert.info {
  background: #cfe2ff;
  color: #084298;
}

.item-more {
  color: #6f6258;
  font-size: 10px;
  font-weight: 800;
  padding-top: 3px;
}

.kfinance {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  padding: 7px 0 3px;
  color: #5e5147;
  font-size: 11px;
  font-weight: 800;
}

.kfinance strong {
  color: #14734a;
  font-size: 14px;
  margin-right: 2px;
}

.kact {
  align-items: stretch;
  flex-direction: column;
  gap: 7px;
}

.kprimary-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.kprimary-action {
  flex: 1;
  justify-content: center;
  min-height: 32px;
}

.ksecondary {
  display: flex;
  align-items: stretch;
  gap: 5px;
  flex-wrap: wrap;
  width: 100%;
  padding-top: 6px;
}

.ksecondary .kb2 {
  font-size: 10px;
  padding: 5px 8px;
}

.ksecondary .icon-only {
  min-width: 30px;
  padding-left: 7px;
  padding-right: 7px;
}

.kmore {
  border-top: 1px solid rgba(47, 26, 15, .08);
  margin-top: 2px;
  padding-top: 5px;
}

.kmore summary {
  color: #6f6258;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  list-style: none;
  outline: none;
  user-select: none;
}

.kmore summary::-webkit-details-marker {
  display: none;
}

.kmore summary::after {
  content: "▾";
  float: right;
  color: #8a715d;
}

.kmore[open] summary::after {
  content: "▴";
}

.kw {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-gutter: stable both-edges;
  max-width: 100%;
  padding: 0 4px 14px;
}

.kcb {
  align-items: stretch;
  max-height: calc(100vh - 242px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 16px;
}

@media (min-width: 1200px) {
  #painel-wrap > .tc {
    padding-left: 26px;
    padding-right: 26px;
  }

  .kw {
    overflow-x: auto;
    padding-bottom: 12px;
  }

  .kb {
    min-width: max-content;
  }
}

@media (max-width: 1536px) and (min-width: 861px) {
  #painel-wrap[style*="block"] {
    grid-template-rows: 58px minmax(0, 1fr);
  }

  #painel-wrap.sidebar-collapsed[style*="block"] {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  #painel-wrap > header {
    height: 58px;
    padding: 7px 16px;
  }

  #painel-wrap > .tabs {
    top: 58px;
    height: calc(100vh - 58px);
    padding: 14px 9px;
    align-items: center;
  }

  #painel-wrap > .tc {
    padding: 12px 16px 24px;
  }

  #painel-wrap.sidebar-collapsed .logo-txt,
  #painel-wrap.sidebar-collapsed .logo-sub {
    display: none;
  }

  #painel-wrap.sidebar-collapsed .tb {
    width: 50px;
    height: 50px;
    padding: 0;
    justify-content: center;
    font-size: 0;
    border-radius: 16px;
    position: relative;
  }

  #painel-wrap.sidebar-collapsed .tb::before {
    content: attr(data-icon);
    font-size: 20px;
    color: #fff;
    line-height: 1;
  }

  #painel-wrap.sidebar-collapsed .tb span {
    display: none !important;
  }

  .pedido-operacao-tabs {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    gap: 8px;
    margin-bottom: 8px;
  }

  .pedido-operacao-tabs button {
    min-height: 52px;
    padding: 8px 11px;
    gap: 9px;
  }

  .pedido-operacao-tabs small {
    display: none;
  }

  .pedido-operacao-tabs .op-ico {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .pedido-operacao-tabs strong {
    font-size: 15px;
  }

  .pedido-operacao-tabs b {
    min-width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .kanban-header {
    top: 70px;
    padding: 9px 10px;
    gap: 7px;
  }

  .kanban-header input,
  .kanban-header select {
    min-height: 32px;
    font-size: 13px;
  }

  .manual-order-btn {
    margin-left: 0;
  }

  .pedido-refresh-status {
    width: 100%;
    margin-left: 0;
    text-align: right;
  }

  .kb {
    --kanban-col: 260px;
  }

  #painel-wrap.sidebar-collapsed .kb {
    --kanban-col: 292px;
  }

  .kc,
  #painel-wrap.sidebar-collapsed .kc {
    width: var(--kanban-col);
    flex-basis: var(--kanban-col);
  }

  .kcb {
    max-height: calc(100vh - 218px);
  }

  .kcard {
    padding: 10px;
  }

  .md {
    max-height: 90vh;
    padding: 16px;
  }

  .kcli {
    font-size: 17px;
  }

  .kmeta,
  .kcreated {
    font-size: 11px;
  }
}

@media (max-width: 1366px) and (min-width: 861px) {
  #painel-wrap > .tc {
    padding: 10px 12px 22px;
  }

  .kanban-header {
    top: 66px;
  }

  .kb {
    --kanban-col: 250px;
  }

  #painel-wrap.sidebar-collapsed .kb {
    --kanban-col: 284px;
  }

  .kc,
  #painel-wrap.sidebar-collapsed .kc {
    width: var(--kanban-col);
    flex-basis: var(--kanban-col);
  }

  .kcb {
    max-height: calc(100vh - 208px);
  }

  .kfinance {
    font-size: 10px;
    gap: 5px;
  }
}

@media (min-width: 1800px) {
  .kb {
    --kanban-col: clamp(260px, calc((100vw - 448px) / 6), 316px);
  }

  #painel-wrap.sidebar-collapsed .kb {
    --kanban-col: clamp(292px, calc((100vw - 196px) / 6), 316px);
  }

  .kc,
  #painel-wrap.sidebar-collapsed .kc {
    width: var(--kanban-col);
    flex-basis: var(--kanban-col);
  }

  .kcb {
    max-height: calc(100vh - 250px);
  }
}

@media (max-width: 860px) {
  .pedido-operacao-grid {
    grid-template-columns: 1fr;
  }

  .pedido-operacao-grid .cf:not(.cff) label {
    min-height: 0;
  }

  .pedido-operacao-tabs {
    grid-template-columns: 1fr;
  }

  .kc,
  #painel-wrap.sidebar-collapsed .kc {
    width: min(86vw, 300px);
  }

  .tb,
  #painel-wrap.sidebar-collapsed .tb {
    font-size: 13px;
  }
}

/* Polimento conservador: preserva a identidade atual e deixa o painel mais limpo. */
:root {
  --shadow-xs: 0 1px 4px rgba(47, 26, 15, .04);
  --shadow-sm: 0 4px 14px rgba(47, 26, 15, .07);
  --shadow-md: 0 12px 30px rgba(47, 26, 15, .12);
  --radius-sm: 9px;
  --radius: 14px;
  --radius-lg: 20px;
  --surface: #fffaf4;
  --panel: #f5f1ea;
}

body {
  background:
    linear-gradient(180deg, #fbf7f0 0%, var(--panel) 100%);
}

#painel-wrap[style*="block"] {
  background:
    linear-gradient(180deg, #faf7f2 0%, #f4efe7 100%);
}

#painel-wrap > header {
  box-shadow: 0 6px 18px rgba(47, 26, 15, .14);
}

#painel-wrap > .tabs {
  gap: 6px;
  box-shadow: 6px 0 18px rgba(47, 26, 15, .06);
}

.tb {
  min-height: 42px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 750;
}

.tb.on {
  background: rgba(193, 127, 58, .22);
  border-color: rgba(255, 255, 255, .12);
  box-shadow: inset 3px 0 0 var(--c);
}

#painel-wrap.sidebar-collapsed .tb {
  border-radius: 13px;
}

.btn,
.login-btn,
.bsc,
.kb2,
.mtab,
.seg button,
.prod-comp-toggle {
  border-radius: 9px;
  box-shadow: none;
}

.btn:hover,
.kb2:hover,
.login-btn:hover,
.bsc:hover {
  transform: none;
}

.gcard,
.cs,
.cw,
.insight,
.tip-card,
.rs,
.pc,
.kcard,
.cardapio-stat,
.cat-secao,
.mo .md,
.kc {
  box-shadow: var(--shadow-xs);
  border-color: rgba(47, 26, 15, .10);
}

.gcard,
.cs,
.cw,
.insight,
.tip-card,
.rs,
.cardapio-stat,
.cat-secao,
.mo .md {
  border-radius: var(--radius);
}

.gtt,
.mtt {
  font-size: 18px;
  letter-spacing: -.02em;
}

.gdesc,
.help,
.ins,
.tls,
.pa-meta {
  color: #74685f;
}

.kanban-header,
.cardapio-tools {
  box-shadow: var(--shadow-xs);
  background: rgba(255, 250, 244, .96);
}

.kc {
  background: rgba(255, 255, 255, .70);
}

.kcard {
  border-radius: 13px;
  box-shadow: 0 4px 14px rgba(47, 26, 15, .07);
}

.kcard:hover,
.pc:hover,
.pedido-operacao-tabs button:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

.cardapio-stat {
  background: rgba(255, 255, 255, .88);
}

.pc,
.cat-secao {
  border-radius: 15px;
}

.pim {
  background: #fbf4eb;
}

.md {
  border-radius: var(--radius-lg);
}

.msec,
.summary-card,
.ir,
.comp-card,
.comp-item,
.quick-comp,
.preview-box {
  border-radius: 11px;
}

.notif,
.popup-atend {
  box-shadow: var(--shadow-md);
}

@media (max-width: 760px) {
  .hist-filtros,
  .hist-items > div {
    grid-template-columns: 1fr;
  }

  .hist-order-row {
    align-items: stretch;
    flex-direction: column;
  }

  .hist-order-row .ia {
    justify-content: flex-start;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   POLIMENTO PROFISSIONAL (Monitor Desktop)
   Estratégia: apenas acréscimos/sobrescritas no final. Rollback seguro.
   ───────────────────────────────────────────────────────────────────────────── */

/* 1. PALETA SEMÂNTICA ─────────────────────────────────────────────────────── */
:root {
  --pro-brand:        #c17f3a;
  --pro-brand-dark:   #a06a2e;
  --pro-brand-light:  #fef6ec;
  --pro-brand-ring:   rgba(193, 127, 58, .15);
  --pro-text:         #1e110a;
  --pro-text-2:       #4a3728;
  --pro-muted:        #7b6b60;
  --pro-border:       rgba(47, 26, 15, .10);
  --pro-border-strong:rgba(47, 26, 15, .18);
  --pro-surface:      #ffffff;
  --pro-bg:           #f5f1ea;
  --pro-success:      #166534;
  --pro-success-bg:   #dcfce7;
  --pro-danger:       #991b1b;
  --pro-danger-bg:    #fee2e2;
  --pro-warning:      #92400e;
  --pro-warning-bg:   #fef3c7;
  --pro-info:         #1e40af;
  --pro-info-bg:      #dbeafe;
  --pro-radius-xs:    6px;
  --pro-radius-sm:    9px;
  --pro-radius:       13px;
  --pro-radius-lg:    18px;
  --pro-shadow-card:  0 1px 3px rgba(47,26,15,.06), 0 4px 12px rgba(47,26,15,.05);
  --pro-shadow-hover: 0 2px 6px rgba(47,26,15,.08), 0 8px 20px rgba(47,26,15,.09);
  --pro-shadow-modal: 0 20px 60px rgba(47,26,15,.18), 0 4px 12px rgba(47,26,15,.10);
  --pro-transition:   160ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. TIPOGRAFIA OPERACIONAL ─────────────────────────────────────────────────
   Remove Playfair Display dos elementos de dados. Mantém no logo/login.
   ─────────────────────────────────────────────────────────────────────────── */

/* Nomes no kanban — Playfair → DM Sans bold */
.kcli {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  line-height: 1.2 !important;
}

/* Valores financeiros no kanban */
.kfinance strong {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: var(--pro-success) !important;
  letter-spacing: -0.01em;
}

/* Preços no cardápio */
.ppr, .prod-row-price {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
}

/* Títulos de seção operacionais */
.gtt, .mtt {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em;
}

/* Summary values no modal */
.summary-value {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}

/* Insight numbers no relatório */
.insight b {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
}

/* Títulos de categoria no cardápio */
.cat-secao-titulo {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
}

/* Nome do produto no cardápio */
.pnom, .cardapio-stat strong {
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
}
.cardapio-stat strong {
  font-size: 24px !important;
}

/* Labels de campo — mais legíveis no balcão */
.fg label, .cf label, .comp-mini, .summary-label, .cst, .plabel,
.hist-field span, .kmore summary, .quick-comp-title, .pa-section,
.cat-rule-label, .prod-comp-title {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase;
  color: var(--pro-muted) !important;
}

/* Texto principal em todo o painel */
body {
  font-size: 13px;
  color: var(--pro-text);
  -webkit-font-smoothing: antialiased;
}


/* 3. CARDS DO KANBAN ─────────────────────────────────────────────────────────
   ─────────────────────────────────────────────────────────────────────────── */

.kcard {
  border: 1px solid var(--pro-border) !important;
  box-shadow: var(--pro-shadow-card) !important;
  border-radius: 12px !important;
  transition: box-shadow var(--pro-transition), border-color var(--pro-transition) !important;
}

.kcard:hover {
  box-shadow: var(--pro-shadow-hover) !important;
  border-color: rgba(193, 127, 58, .22) !important;
  transform: none !important;
}

/* Linha lateral colorida */
.kcard::before {
  width: 3px !important;
  border-radius: 0 2px 2px 0 !important;
}

/* ID e metadados */
.kid {
  font-size: 10px !important;
  font-weight: 700 !important;
  color: var(--pro-muted) !important;
  letter-spacing: 0.03em;
}

/* Bloco de prazo */
.kpromise {
  border-radius: 8px !important;
  padding: 6px 8px !important;
}

.kpromise small {
  font-size: 8px !important;
  letter-spacing: 0.06em;
  font-weight: 800 !important;
}

.kpromise strong {
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
}

/* Items preview */
.kits {
  font-size: 12px !important;
  line-height: 1.4 !important;
  padding: 6px 8px !important;
  max-height: none !important;
  overflow: visible !important;
  background: linear-gradient(135deg, #fffbf5, #fff8ee) !important;
  border-color: rgba(193, 127, 58, .14) !important;
}

.item-nm {
  -webkit-line-clamp: 3 !important;
  font-size: 12px;
  font-weight: 600;
  color: var(--pro-text-2);
}

.item-qtd {
  font-size: 11px !important;
  font-weight: 800 !important;
  min-width: 26px !important;
}

/* Alertas no card */
.kalert {
  font-size: 10px !important;
  padding: 3px 7px !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
}

.kalert.late { background: var(--pro-danger-bg) !important; color: var(--pro-danger) !important; }
.kalert.soon, .kalert.pay { background: var(--pro-warning-bg) !important; color: var(--pro-warning) !important; }
.kalert.info { background: var(--pro-info-bg) !important; color: var(--pro-info) !important; }

/* Cabeçalho das colunas kanban */
.kch {
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  padding: 10px 13px !important;
}

/* Coluna kanban */
.kc {
  border-radius: var(--pro-radius) !important;
  border: 1px solid var(--pro-border) !important;
  box-shadow: none !important;
}

/* Botões de ação no card */
.kb2 {
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 5px 9px !important;
  min-height: 28px !important;
  border-radius: var(--pro-radius-xs) !important;
  transition: opacity var(--pro-transition), background var(--pro-transition) !important;
}

.kb2:hover { opacity: 0.85 !important; transform: none !important; }
.kb2:active { opacity: 0.95 !important; transform: scale(0.98) !important; }


/* 4. SIDEBAR E NAVEGAÇÃO ─────────────────────────────────────────────────────
   ─────────────────────────────────────────────────────────────────────────── */

#painel-wrap > .tabs {
  gap: 4px !important;
}

.tb {
  border-radius: 10px !important;
  min-height: 40px !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  transition: background var(--pro-transition), color var(--pro-transition) !important;
  color: rgba(255, 255, 255, .72) !important;
  justify-content: flex-start !important;
}

.tb:hover {
  background: rgba(255, 255, 255, .09) !important;
  color: rgba(255, 255, 255, .92) !important;
}

.tb.on {
  background: rgba(193, 127, 58, .20) !important;
  color: #fff !important;
  box-shadow: inset 3px 0 0 var(--pro-brand), 0 1px 3px rgba(0,0,0,.08) !important;
  font-weight: 750 !important;
}

/* Logo no header */
.logo-txt {
  font-size: 20px !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
}

.logo-sub {
  font-size: 9px !important;
  letter-spacing: 0.18em !important;
  opacity: 0.55 !important;
}

.logo-img {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  object-fit: contain !important;
  border: 1.5px solid rgba(193, 127, 58, .40) !important;
  background: rgba(255, 255, 255, .08);
}

/* Header do painel */
#painel-wrap > header {
  box-shadow: 0 2px 12px rgba(47, 26, 15, .22) !important;
}

/* Sidebar Encurtada (Apenas Emojis) */
#painel-wrap.sidebar-collapsed .tb {
  width: 44px !important;
  padding: 0 !important;
  justify-content: center !important;
  text-align: center !important;
  color: inherit !important;
}

#painel-wrap.sidebar-collapsed .tb::before {
  content: none !important;
  display: none !important;
}

#painel-wrap.sidebar-collapsed .tb span {
  display: none !important;
}


/* 5. FORMULÁRIOS E MODAIS ────────────────────────────────────────────────────
   ─────────────────────────────────────────────────────────────────────────── */

/* Todos os inputs do painel */
.fg input, .fg select, .fg textarea,
.cf input, .cf select, .cf textarea,
.kanban-header input, .kanban-header select,
.cardapio-tools input, .cardapio-tools select,
.comp-card input, .comp-card select,
.comp-card textarea {
  background: var(--pro-surface) !important;
  border-color: var(--pro-border-strong) !important;
  border-radius: var(--pro-radius-sm) !important;
  font-size: 13px !important;
  color: var(--pro-text) !important;
  transition: border-color var(--pro-transition), box-shadow var(--pro-transition) !important;
  min-height: 36px;
}

.fg input:focus, .fg select:focus, .fg textarea:focus,
.cf input:focus, .cf select:focus, .cf textarea:focus,
.kanban-header input:focus, .kanban-header select:focus,
.cardapio-tools input:focus, .cardapio-tools select:focus,
.comp-card input:focus, .comp-card select:focus {
  border-color: var(--pro-brand) !important;
  box-shadow: 0 0 0 3px var(--pro-brand-ring) !important;
  background: #fff !important;
  outline: none !important;
}

/* Alinhamento de campos de formulário (corrige botão caindo quando label tem 2 linhas) */
.cg {
  align-items: end !important;
}

/* Summary cards no modal */
.summary-grid {
  gap: 8px !important;
}

.summary-card {
  background: var(--pro-surface) !important;
  border: 1px solid var(--pro-border) !important;
  border-radius: var(--pro-radius-sm) !important;
  padding: 10px 12px !important;
  box-shadow: var(--pro-shadow-card) !important;
}

.summary-label {
  font-size: 10px !important;
  letter-spacing: 0.06em !important;
  margin-bottom: 4px !important;
  display: block;
}

.summary-value {
  margin-top: 0 !important;
  color: var(--pro-text) !important;
}

/* Modal — animação de abertura */
.mo {
  animation: none;
}

.mo.on {
  animation: fadeInOverlay var(--pro-transition) ease forwards;
}

.mo.on .md {
  animation: scaleInModal 180ms cubic-bezier(0.34, 1.04, 0.64, 1) forwards;
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleInModal {
  from { opacity: 0; transform: scale(0.96) translateY(6px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);   }
}

/* Modal header */
.mtt {
  color: var(--pro-text) !important;
  margin-bottom: 14px !important;
}

/* Tabs do modal */
.mtab {
  font-size: 11px !important;
  font-weight: 700 !important;
  border-radius: var(--pro-radius-xs) !important;
  padding: 5px 10px !important;
  transition: background var(--pro-transition), color var(--pro-transition) !important;
}

.mtab.on {
  background: var(--pro-text) !important;
  color: #fff !important;
  border-color: var(--pro-text) !important;
}

/* Seções do modal */
.msec {
  border-color: var(--pro-border) !important;
  border-radius: var(--pro-radius-sm) !important;
  box-shadow: none !important;
}

/* Footer do modal */
.mft {
  background: linear-gradient(180deg, rgba(255,255,255,.85), #fff) !important;
  border-top-color: var(--pro-border) !important;
}


/* 6. BOTÕES — sistema unificado ──────────────────────────────────────────────
   ─────────────────────────────────────────────────────────────────────────── */

.btn, .bsc, .login-btn {
  border-radius: var(--pro-radius-sm) !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  letter-spacing: -0.01em !important;
  transition: opacity var(--pro-transition), background var(--pro-transition), box-shadow var(--pro-transition) !important;
  box-shadow: none !important;
}

.btn:hover, .bsc:hover, .login-btn:hover {
  transform: none !important;
  opacity: 0.88 !important;
}

.btn:active, .bsc:active {
  transform: scale(0.98) !important;
  opacity: 1 !important;
}

/* Botão primário (dourado) */
.bc {
  box-shadow: 0 1px 4px rgba(193, 127, 58, .28) !important;
}

.bc:hover {
  box-shadow: 0 2px 8px rgba(193, 127, 58, .36) !important;
  opacity: 1 !important;
  background: var(--pro-brand-dark) !important;
}

/* Botão ghost/outline */
.bout {
  border: 1px solid var(--pro-border-strong) !important;
  background: rgba(255,255,255,.92) !important;
  color: var(--pro-text-2) !important;
  font-weight: 700 !important;
}

.bout:hover {
  background: var(--pro-brand-light) !important;
  border-color: rgba(193, 127, 58, .30) !important;
  opacity: 1 !important;
}


/* 7. CARDS DE PRODUTO / GESTÃO ──────────────────────────────────────────────
   ─────────────────────────────────────────────────────────────────────────── */

.gcard, .cs, .insight, .tip-card, .rs, .cw {
  border: 1px solid var(--pro-border) !important;
  box-shadow: var(--pro-shadow-card) !important;
  border-radius: var(--pro-radius) !important;
}

.pc {
  border: 1px solid var(--pro-border) !important;
  box-shadow: var(--pro-shadow-card) !important;
  border-radius: var(--pro-radius) !important;
  transition: box-shadow var(--pro-transition), border-color var(--pro-transition) !important;
}

.pc:hover {
  box-shadow: var(--pro-shadow-hover) !important;
  border-color: rgba(193, 127, 58, .20) !important;
  transform: none !important;
}

/* Nome do produto no card */
.pnom {
  font-size: 14px !important;
  line-height: 1.2 !important;
  color: var(--pro-text) !important;
}

/* Preço do produto */
.ppr {
  color: var(--pro-success) !important;
}


/* 8. NOTIFICAÇÃO TOAST ───────────────────────────────────────────────────────
   ─────────────────────────────────────────────────────────────────────────── */

.notif {
  top: 16px !important;
  right: 16px !important;
  border-radius: var(--pro-radius-sm) !important;
  padding: 12px 16px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  box-shadow: var(--pro-shadow-modal) !important;
  transition: transform 200ms cubic-bezier(0.34, 1.04, 0.64, 1), opacity 200ms ease !important;
  transform: translateX(110%) translateY(0) !important;
  opacity: 0;
  min-width: 240px;
  max-width: 320px;
  border: 1px solid rgba(255,255,255,.12);
}

.notif.show {
  transform: translateX(0) translateY(0) !important;
  opacity: 1 !important;
}


/* 9. KANBAN — barras de coluna com cor do status ────────────────────────────
   ─────────────────────────────────────────────────────────────────────────── */

.col-hor .kch { background: #fff3e0 !important; color: #a04000 !important; border-bottom: 2px solid #ffb74d; }
.col-pag .kch { background: #fef3cd !important; color: #856404 !important; border-bottom: 2px solid #fcd34d; }
.col-con .kch { background: #dcfce7 !important; color: #166534 !important; border-bottom: 2px solid #4ade80; }
.col-pro .kch { background: #dbeafe !important; color: #1e40af !important; border-bottom: 2px solid #60a5fa; }
.col-prt .kch { background: #d1fae5 !important; color: #065f46 !important; border-bottom: 2px solid #34d399; }
.col-ent .kch { background: #f1f5f9 !important; color: #334155 !important; border-bottom: 2px solid #94a3b8; }


/* 10. MISC — polimentos gerais ───────────────────────────────────────────────
   ─────────────────────────────────────────────────────────────────────────── */

/* Linha de item de lista */
.ir {
  border: 1px solid var(--pro-border) !important;
  border-radius: var(--pro-radius-sm) !important;
  background: #fffaf5 !important;
  transition: background var(--pro-transition) !important;
}

.ir:hover {
  background: var(--pro-brand-light) !important;
}

/* Histórico */
.hist-field {
  border-radius: var(--pro-radius-sm) !important;
}

/* Toolbar de filtros do kanban */
.kanban-header {
  border-radius: var(--pro-radius) !important;
  box-shadow: var(--pro-shadow-card) !important;
  border: 1px solid var(--pro-border) !important;
}

/* Tabela de itens */
.itbl {
  border-color: var(--pro-border) !important;
  border-radius: var(--pro-radius-sm) !important;
}

.itr.h {
  background: var(--pro-brand-light) !important;
  font-size: 10px !important;
  letter-spacing: 0.06em;
}

/* Cardápio — stat cards */
.cardapio-stat {
  border: 1px solid var(--pro-border) !important;
  box-shadow: var(--pro-shadow-card) !important;
  border-radius: var(--pro-radius-sm) !important;
  background: #fff !important;
}

/* Seção de categoria */
.cat-secao {
  border: 1px solid var(--pro-border) !important;
  box-shadow: var(--pro-shadow-card) !important;
}

/* Popup de atendimento */
.popup-atend {
  border-radius: var(--pro-radius) !important;
  box-shadow: var(--pro-shadow-modal) !important;
  border-color: var(--pro-brand) !important;
}

/* Estado vazio */
.es {
  border-radius: var(--pro-radius) !important;
  border-color: var(--pro-border) !important;
}

/* Scrollbar global — mais sutil */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(193,127,58,.22) transparent;
}
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(193,127,58,.22); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(193,127,58,.38); }
