/* Painel Donna Nana — redesign 24/10 (baseado na referência visual do dono) */
* { box-sizing: border-box; }
:root {
  --marrom: #6B4226;
  --marrom-escuro: #4A2C18;
  --marrom-medio: #8A5A3B;
  --fundo: #FBF6F0;
  --superficie: #FFFFFF;
  --borda: #EFE4D8;
  --borda-suave: #F5EDE3;
  --texto: #33261D;
  --texto-fraco: #8A7A6A;
  --rosa: #E5386D; --rosa-tx: #C2255C; --rosa-bg: #FBE7EE;
  --ambar-bg: #FDF3DF; --ambar-tx: #A26A12;
  --azul-bg: #E9F1FB; --azul-tx: #2B5FA8;
  --verde-bg: #E8F5EC; --verde-tx: #2F7D32;
  --verm-bg: #FBE7E7; --verm-tx: #9B1C1C;
  --raio: 14px;
  --sombra: 0 2px 10px rgba(90, 62, 40, .06);
}
html { font-size: 15px; }
body { margin: 0; font-family: Inter, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
       background: var(--fundo); color: var(--texto); font-size: 15px;
       -webkit-font-smoothing: antialiased; }
a { color: var(--marrom); }

/* ---------- aviso do ambiente de teste ---------- */
.aviso-teste { background: #FFF3E9; color: #B4552A; text-align: center; font-size: 12px;
               font-weight: 600; padding: 6px 10px; border-bottom: 1px solid #F3D9C4; }

/* ---------- layout ---------- */
.layout { display: flex; min-height: 100vh; }
.lateral { width: 240px; flex: 0 0 auto; background: linear-gradient(180deg, #4A2E1B 0%, #2E1B0F 100%);
           color: #fff; display: flex; flex-direction: column; padding: 20px 14px 14px;
           position: sticky; top: 0; height: 100vh; }
.marca { text-align: center; padding: 4px 4px 16px; }
.marca-logo { width: 74px; height: 74px; border-radius: 50%; display: block; margin: 0 auto 8px;
              box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.marca-sub { font-size: 11.5px; color: rgba(255, 255, 255, .6); margin-top: 2px;
             letter-spacing: .4px; }
.menu { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.menu .item { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 11px;
              color: rgba(255, 255, 255, .82); text-decoration: none; font-size: 14px;
              font-weight: 600; }
.menu .item .ic { width: 20px; text-align: center; font-size: 15px; }
.menu .item:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.menu .item.ativo { background: #F9DCE7; color: #7A2E4A; font-weight: 700;
                    box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.menu .item.em-breve { color: rgba(255, 255, 255, .42); cursor: default; }
.menu .item.em-breve em { margin-left: auto; font-style: normal; font-size: 9.5px;
                          font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
                          background: rgba(255, 255, 255, .12); border-radius: 20px;
                          padding: 2px 7px; }
.lateral-rodape { margin-top: auto; border-top: 1px solid rgba(255, 255, 255, .14);
                  padding-top: 12px; display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: #F3EDE4; color: var(--marrom);
          font-weight: 800; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.quem { line-height: 1.25; }
.quem b { display: block; font-size: 13px; }
.quem span { font-size: 11px; color: rgba(255, 255, 255, .55); }
.sair { margin-left: auto; color: rgba(255, 255, 255, .7); text-decoration: none; font-size: 17px; }
.sair:hover { color: #fff; }
.sair-linha { display: block; margin-top: 10px; padding: 10px 12px; border-radius: 11px;
              color: rgba(255, 255, 255, .82); text-decoration: none; font-size: 13.5px;
              font-weight: 600; }
.sair-linha:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.principal { flex: 1 1 auto; padding: 22px 26px 40px; min-width: 0; }

/* ---------- cabecalho ---------- */
.topo-principal { display: flex; justify-content: space-between; align-items: flex-start;
                  gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.topo-principal h1 { font-size: 27px; font-weight: 800; margin: 0; letter-spacing: -.4px; }
.topo-principal .sub { font-size: 14px; color: var(--texto-fraco); margin: 4px 0 0; }
.topo-acoes { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pilula-data { display: inline-flex; align-items: center; gap: 8px; background: #fff;
               border: 1px solid var(--borda); border-radius: 12px; padding: 9px 12px;
               font-size: 13px; color: #5A4632; font-weight: 600; white-space: nowrap; }
.pilula-data b { background: #F7F1E8; border-radius: 8px; padding: 3px 8px; font-weight: 700;
                 color: var(--marrom); }

/* ---------- botoes ---------- */
button, .botao-claro, .botao-marrom, .botao-sec { font-family: inherit; cursor: pointer; }
.botao-claro, .botao-marrom, .botao-sec { display: inline-flex; align-items: center; gap: 7px;
  border-radius: 11px; padding: 9px 14px; font-size: 13.5px; font-weight: 700;
  text-decoration: none; white-space: nowrap; }
.botao-claro { background: var(--superficie); border: 1px solid var(--borda); color: #4A3626; }
.botao-claro:hover { background: #FAF6EF; }
.botao-marrom { background: var(--marrom); border: 1px solid var(--marrom); color: #fff; }
.botao-marrom:hover { background: var(--marrom-escuro); }
.botao-sec { background: #F3EDE4; border: 1px solid var(--borda); color: #5A4632; }
.botao-sec:hover { background: #ECDFC6; }
button.primario { background: var(--marrom); color: #fff; border: 0; border-radius: 11px;
                  padding: 11px 18px; font-size: 14px; font-weight: 700; }
button.primario:hover { background: var(--marrom-escuro); }
.link-limpar { font-size: 12.5px; font-weight: 700; color: var(--marrom);
               text-decoration: underline; align-self: center; }
.nowrap { white-space: nowrap; }

/* ---------- cartoes de indicadores ---------- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(180px, 1fr));
         gap: 12px; margin-bottom: 14px; }
.card-ind { border: 1px solid var(--borda); border-radius: 16px; box-shadow: var(--sombra);
            padding: 15px 16px; display: flex; gap: 12px; align-items: center; }
.card-rosa { background: #FCE9F1; }
.card-ambar { background: #FDF4E3; }
.card-azul { background: #EAF1FB; }
.card-verde { background: #E9F6EC; }
.ic-card { width: 44px; height: 44px; flex: 0 0 auto; background: #fff; border-radius: 12px;
           display: flex; align-items: center; justify-content: center; font-size: 20px;
           box-shadow: 0 1px 4px rgba(90, 62, 40, .08); }
.card-ind b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.4px; }
.card-ind span { font-size: 12.5px; color: #6E5B48; }

/* ---------- filtros ---------- */
.painel-filtros { background: var(--superficie); border: 1px solid var(--borda);
                  border-radius: 16px; box-shadow: var(--sombra); padding: 14px 16px; }
.filtros-linha { display: grid; grid-template-columns: 1.55fr 1.15fr 1fr 1fr 1fr; gap: 12px; }
.painel-filtros label { display: flex; flex-direction: column; gap: 5px; font-size: 12px;
                        font-weight: 600; color: #6B5A48; }
.painel-filtros input, .painel-filtros select { width: 100%; height: 42px; border: 1px solid var(--borda);
                        border-radius: 11px; font-size: 14px; padding: 0 10px;
                        background: #fff; color: var(--texto); font-family: inherit; }
.painel-filtros input:focus, .painel-filtros select:focus { outline: 2px solid var(--marrom-medio);
                        outline-offset: 0; border-color: var(--marrom-medio); }
.campo-icone { position: relative; display: block; }
.campo-icone .lupa { position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
                     font-size: 14px; opacity: .6; pointer-events: none; }
.campo-icone input { padding-left: 34px; }
.periodo { display: flex; align-items: center; gap: 6px; }
.periodo input { flex: 1; min-width: 0; }
.periodo .sep { color: var(--texto-fraco); }
.filtros-mais-linha { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.mais-filtros { position: relative; }
.mais-filtros summary { list-style: none; background: #F3EDE4; border-radius: 11px; padding: 9px 14px;
                        font-size: 13.5px; font-weight: 700; color: #5A4632; cursor: pointer;
                        display: inline-flex; gap: 7px; align-items: center; }
.mais-filtros summary::-webkit-details-marker { display: none; }
.mais-filtros summary:hover { background: #ECDFC6; }
.mais-grade { position: absolute; z-index: 40; left: 0; top: calc(100% + 8px); width: 640px;
              max-width: 86vw; background: #fff; border: 1px solid var(--borda); border-radius: 14px;
              box-shadow: 0 10px 30px rgba(60, 42, 24, .16); padding: 14px;
              display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 10px; }
.mais-grade label { font-size: 12px; }
.mais-nota { position: absolute; z-index: 41; left: 0; top: calc(100% + 8px + 148px);
             width: 640px; max-width: 86vw; background: #fff; border: 1px solid var(--borda);
             border-top: 0; border-radius: 0 0 14px 14px; box-shadow: 0 10px 30px rgba(60, 42, 24, .16);
             padding: 8px 14px 10px; font-size: 11.5px; color: var(--texto-fraco); }
details.mais-filtros:not([open]) .mais-grade, details.mais-filtros:not([open]) .mais-nota { display: none; }
.chip-atalho { display: inline-flex; align-items: center; gap: 6px; background: #fff;
               border: 1px solid var(--borda); border-radius: 20px; padding: 8px 14px;
               font-size: 13px; font-weight: 600; color: #5A4632; text-decoration: none; }
.chip-atalho:hover { background: #FAF6EF; }
.chip-limpar { color: var(--rosa-tx); border-color: #F3D3DF; background: #FDF2F6; }
.chip-limpar:hover { background: #FBE7EE; }
.chip-ativo { display: inline-flex; align-items: center; gap: 6px; background: var(--rosa-bg);
              border-radius: 20px; padding: 8px 12px; font-size: 12.5px; font-weight: 700;
              color: var(--rosa-tx); text-decoration: none; }
.chip-ativo .x { color: #C77E97; font-weight: 800; }
.chip-ativo:hover { background: #F7D7E2; }
.btn-filtrar { margin-left: auto; }

/* ---------- lista ---------- */
.painel-lista { background: var(--superficie); border: 1px solid var(--borda);
                border-radius: 16px; box-shadow: var(--sombra); margin-top: 14px; }
.lista-cab { display: flex; justify-content: space-between; align-items: center;
             gap: 10px; padding: 16px 18px 10px; flex-wrap: wrap; }
.lista-titulo h2 { font-size: 18px; font-weight: 800; margin: 0; display: inline-flex;
                   align-items: center; gap: 10px; }
.lista-ic { background: var(--rosa-bg); border-radius: 10px; padding: 6px 8px; font-size: 15px; }
.chip-n { background: #F3EDE4; border-radius: 20px; padding: 4px 11px;
          font-size: 12px; font-weight: 700; color: #5A4632; }
.lista-dica { font-size: 12.5px; color: var(--texto-fraco); margin: 6px 0 0; }
.lista-acoes { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.menu-exp { position: relative; }
.menu-exp summary { list-style: none; display: inline-flex; }
.menu-exp summary::-webkit-details-marker { display: none; }
.menu-exp-itens { position: absolute; right: 0; top: calc(100% + 6px); background: #fff;
                  border: 1px solid var(--borda); border-radius: 12px;
                  box-shadow: 0 10px 30px rgba(60, 42, 24, .16);
                  min-width: 170px; z-index: 30; overflow: hidden; }
.menu-exp-itens a { display: block; padding: 11px 14px; font-size: 13.5px; font-weight: 600;
                    color: var(--texto); text-decoration: none; }
.menu-exp-itens a:hover { background: var(--fundo); }
.info-selecao { padding: 0 18px 10px; font-size: 12px; color: var(--texto-fraco); }
.rolagem { overflow-x: auto; }
.tabela { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tabela thead th { background: #FAF6EF; color: var(--texto-fraco); font-size: 11.5px;
                   font-weight: 700; text-align: left; padding: 11px 12px; white-space: nowrap;
                   border-bottom: 1px solid var(--borda-suave); }
.tabela td { padding: 11px 12px; border-top: 1px solid var(--borda-suave); vertical-align: middle; }
.tabela tbody tr:hover td { background: #FDFAF5; }
.tabela .num { text-align: right; white-space: nowrap; }
.tabela input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--rosa); cursor: pointer; }
.sec { font-size: 11.5px; color: var(--texto-fraco); }
.link-pedido { color: var(--marrom); font-weight: 800; text-decoration: none; white-space: nowrap; }
.link-pedido:hover { text-decoration: underline; }

/* tabela de pedidos (redesign) */
.tabela-pedidos { min-width: 1000px; }
.tabela-pedidos .col-sel { width: 34px; }
.tabela-pedidos .col-acoes { width: 96px; white-space: nowrap; }
.tabela-pedidos td { padding: 8px 10px; }
.tabela-pedidos td > .sec { display: block; margin-top: 2px; white-space: nowrap; }
.cliente-cel { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar-cli { width: 32px; height: 32px; border-radius: 50%; background: var(--rosa-bg);
              color: var(--rosa-tx); font-weight: 800; font-size: 14px; flex: 0 0 auto;
              display: flex; align-items: center; justify-content: center; }
.cliente-dados { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cliente-nome { color: var(--texto); font-weight: 700; text-decoration: none; white-space: nowrap; }
.cliente-nome:hover { color: var(--rosa-tx); }
.zap { text-decoration: none; font-size: 11px; margin-left: 4px; }
.tag-cli { align-self: flex-start; font-size: 10px; font-weight: 700; border-radius: 20px;
           padding: 2px 8px; margin-top: 3px; }
.tag-cli.rec { background: #FDF3DF; color: var(--ambar-tx); }
.tag-cli.novo { background: #E9F1FB; color: var(--azul-tx); }
.end-cel { display: flex; flex-direction: column; gap: 3px; }
.badge-tipo { align-self: flex-start; background: #F6EFE6; border-radius: 20px; padding: 2px 10px;
              font-size: 11px; font-weight: 700; color: #7A5A3A; white-space: nowrap; }
.end-linha { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.mapa { text-decoration: none; font-size: 11px; margin-left: 3px; opacity: .75; }
.mapa:hover { opacity: 1; }
.itens-cel { display: flex; align-items: center; gap: 10px; }
.miniaturas { display: flex; align-items: center; }
.mini { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #F6EFE6;
        border: 2px solid #fff; box-shadow: 0 1px 4px rgba(90, 62, 40, .18); }
.mini + .mini { margin-left: -9px; }
.mini-mais { display: flex; align-items: center; justify-content: center; font-size: 10.5px;
             font-weight: 800; color: #5A4632; background: #F3EDE4; }
.itens-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.itens-txt b { font-size: 13px; white-space: nowrap; }
.pag-cel { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.pag-forma { font-size: 12.5px; font-weight: 700; color: #4A3626; white-space: nowrap; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px;
         font-weight: 700; white-space: nowrap; }
.badge-sit-pend { background: var(--ambar-bg); color: var(--ambar-tx); }
.badge-sit-conf { background: var(--verde-bg); color: var(--verde-tx); }
.badge-sit-canc { background: var(--verm-bg); color: var(--verm-tx); }
.badge-sit-indef { background: #EEEAE4; color: #6B5A48; }
.chip-status { display: inline-block; padding: 5px 11px; border-radius: 20px; font-size: 11.5px;
               font-weight: 700; white-space: nowrap; }
.cs-aguardando_pagamento { background: #FDF3DF; color: var(--ambar-tx); }
.cs-pago { background: #FDEBD3; color: #B4552A; }
.cs-em_preparo { background: var(--azul-bg); color: var(--azul-tx); }
.cs-entregue { background: var(--verde-bg); color: var(--verde-tx); }
.cs-cancelado { background: var(--verm-bg); color: var(--verm-tx); }
.acao-ver { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
            border-radius: 9px; border: 1px solid var(--borda); background: #fff; text-decoration: none;
            font-size: 14px; }
.acao-ver:hover { background: #FAF6EF; }
.acao-mais { position: relative; display: inline-block; margin-left: 4px; }
.acao-mais summary { list-style: none; width: 32px; height: 32px; border-radius: 9px;
                     border: 1px solid var(--borda); background: #fff; cursor: pointer;
                     display: inline-flex; align-items: center; justify-content: center;
                     font-size: 16px; color: #5A4632; }
.acao-mais summary::-webkit-details-marker { display: none; }
.acao-mais summary:hover { background: #FAF6EF; }
.acao-menu { position: absolute; right: 0; top: calc(100% + 6px); background: #fff;
             border: 1px solid var(--borda); border-radius: 12px; min-width: 165px; z-index: 35;
             box-shadow: 0 10px 30px rgba(60, 42, 24, .16); overflow: hidden; }
.acao-menu a { display: block; padding: 10px 13px; font-size: 13px; font-weight: 600;
               color: var(--texto); text-decoration: none; white-space: nowrap; }
.acao-menu a:hover { background: var(--fundo); }

/* rodape da lista */
.rodape-lista { display: flex; justify-content: space-between; align-items: center; gap: 12px;
                padding: 13px 18px; border-top: 1px solid var(--borda-suave); font-size: 12.5px;
                color: var(--texto-fraco); flex-wrap: wrap; }
.por-pagina { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px;
              color: var(--texto-fraco); }
.por-pagina select { height: 34px; border: 1px solid var(--borda); border-radius: 9px;
                     background: #fff; font-family: inherit; font-size: 13px; padding: 0 8px;
                     color: var(--texto); cursor: pointer; }
.pag-numeros { display: flex; gap: 5px; }
.pag-numeros a, .pag-numeros span.seta { min-width: 32px; height: 32px; display: inline-flex;
                 align-items: center; justify-content: center; border-radius: 9px;
                 border: 1px solid var(--borda); background: #fff; color: var(--texto);
                 font-weight: 700; text-decoration: none; font-size: 12.5px; padding: 0 6px; }
.pag-numeros a.atual { background: var(--marrom); border-color: var(--marrom); color: #fff; }
.pag-numeros a:hover:not(.atual) { background: var(--fundo); }
.pag-numeros a.seta { color: var(--marrom); }
.pag-numeros span.seta.desativada { color: #C9BCAD; }

/* vazio */
.vazio-grande { text-align: center; padding: 46px 20px; }
.vazio-grande .emo { font-size: 40px; }
.vazio-grande b { display: block; font-size: 16px; margin: 8px 0 4px; }
.vazio-grande p { font-size: 13.5px; color: var(--texto-fraco); margin: 0 0 14px; }
.vazio { color: var(--texto-fraco); }
td.vazio { text-align: center; padding: 24px; }

/* ---------- paginas internas (cliente/pedido) ---------- */
.card-painel { background: var(--superficie); border: 1px solid var(--borda);
               border-radius: 16px; box-shadow: var(--sombra); padding: 16px; margin-bottom: 14px; }
.grade-detalhe { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.cabecalho-pagina { display: flex; justify-content: space-between; align-items: center;
                    gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.cabecalho-pagina h1 { font-size: 22px; font-weight: 800; margin: 0; display: flex;
                       gap: 10px; align-items: center; flex-wrap: wrap; }
.mini-tabela { width: 100%; border-collapse: collapse; font-size: 14px; }
.mini-tabela td { padding: 5px 0; border-top: 1px solid var(--borda-suave); }
.mini-tabela td.num { text-align: right; }
.mini-tabela .linha-total td { border-top: 2px solid var(--borda); }
.endereco-item { border-top: 1px solid var(--borda-suave); padding: 8px 0; }
.endereco-item:first-of-type { border-top: 0; padding-top: 0; }
.nota-pequena { font-size: 12px; color: var(--texto-fraco); }
h2 { font-size: 15px; font-weight: 800; margin: 0 0 8px; }
p { line-height: 1.45; }

/* filtros paginas secundarias */
.filtros { background: var(--superficie); border: 1px solid var(--borda); border-radius: 16px;
           box-shadow: var(--sombra); padding: 12px 14px; margin-bottom: 12px; }
.grade-filtros { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.grade-filtros label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px;
                       font-weight: 600; color: #6B5A48; }
.campo-largo { flex: 1 1 260px; }
.grade-filtros input, .grade-filtros select { padding: 10px; border: 1px solid var(--borda);
                       border-radius: 11px; font-size: 14.5px; background: #fff;
                       color: var(--texto); font-family: inherit; }
.acoes-filtro { margin-top: 10px; display: flex; gap: 8px; align-items: center; }

/* badges legados (detalhe do pedido / cliente) */
.badge-aguardando_pagamento, .badge-pag-pending { background: var(--ambar-bg); color: var(--ambar-tx); }
.badge-pago, .badge-pag-approved { background: var(--verde-bg); color: var(--verde-tx); }
.badge-cancelado, .badge-pag-cancelled, .badge-pag-rejected, .badge-pag-refunded,
.badge-pag-charged_back, .badge-pag-pix_erro, .badge-pag-cartao_erro
  { background: var(--verm-bg); color: var(--verm-tx); }
.badge-em_preparo { background: var(--azul-bg); color: var(--azul-tx); }
.badge-entregue { background: #E4E9EC; color: #3D4D5A; }
.badge-met { background: #EEE6DA; color: #5A4632; }

/* ---------- login ---------- */
body.tela-login { display: flex; align-items: center; justify-content: center;
                  min-height: 100vh; background: linear-gradient(160deg, #4A2E1B, #2E1B0F); }
.card-login { background: #fff; border-radius: 16px; padding: 30px 30px; width: 340px;
              box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.card-login h1 { font-size: 19px; margin: 2px 0 14px; }
.marca-login { font-size: 14px; color: var(--texto-fraco); margin-bottom: 2px; }
.card-login label { font-size: 13px; color: #6B5A48; display: block; margin-bottom: 4px; }
.card-login input { width: 100%; padding: 11px 12px; border: 1px solid var(--borda);
                    border-radius: 11px; font-size: 16px; font-family: inherit; }
.card-login button { width: 100%; margin-top: 14px; }
.codigo-2fa { text-align: center; font-size: 22px; letter-spacing: 5px; font-weight: 700;
              font-family: inherit; }
.nota { font-size: 12px; color: var(--texto-fraco); text-align: center; margin-top: 12px; }
.alerta { background: var(--verm-bg); color: var(--verm-tx); border-radius: 11px;
          padding: 9px 12px; font-size: 13.5px; margin-bottom: 10px; }
.rodape { text-align: center; font-size: 11.5px; color: var(--texto-fraco); padding: 14px 8px 4px; }

/* ---------- responsivo ---------- */
@media (max-width: 1250px) {
  .filtros-linha { grid-template-columns: 1.5fr 1.2fr 1fr 1fr; }
  .filtros-linha label:nth-child(5) { grid-column: span 2; }
}
@media (max-width: 1024px) {
  .filtros-linha { grid-template-columns: 1fr 1fr; }
  .filtros-linha label:nth-child(5) { grid-column: auto; }
  .cards { grid-template-columns: 1fr 1fr; }
  .btn-filtrar { margin-left: 0; }
}
@media (max-width: 960px) {
  .layout { flex-direction: column; }
  .lateral { width: auto; height: auto; position: static; flex-direction: row;
             align-items: center; padding: 10px 14px; gap: 12px; flex-wrap: wrap; }
  .marca { padding: 0; text-align: left; display: flex; align-items: center; gap: 10px; }
  .marca-logo { width: 40px; height: 40px; margin: 0; }
  .marca-sub { display: none; }
  .menu { flex-direction: row; margin-left: auto; flex-wrap: wrap; }
  .menu .item { padding: 8px 11px; font-size: 13px; }
  .menu .item.em-breve { display: none; }
  .lateral-rodape { margin: 0; padding: 0; border: 0; }
  .quem span { display: none; }
  .sair-linha { display: none; }
  .principal { padding: 16px 14px 30px; }
  .topo-principal h1 { font-size: 23px; }
  .lista-cab { align-items: flex-start; flex-direction: column; }

  /* tabela vira cartoes */
  .tabela-pedidos { min-width: 0; }
  .tabela-pedidos thead { display: none; }
  .tabela-pedidos, .tabela-pedidos tbody, .tabela-pedidos tr, .tabela-pedidos td { display: block; width: 100%; }
  .tabela-pedidos tr { border: 1px solid var(--borda); border-radius: 14px; margin: 10px 12px;
                       padding: 10px 12px; background: #fff; box-shadow: var(--sombra); }
  .tabela-pedidos tr:first-child { margin-top: 4px; }
  .tabela-pedidos td { border: 0; padding: 6px 0; }
  .tabela-pedidos td[data-rot]::before { content: attr(data-rot); display: block; font-size: 10.5px;
                       font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
                       color: #B0A090; margin-bottom: 3px; }
  .tabela-pedidos td.col-sel { display: flex; align-items: center; gap: 8px; }
  .tabela-pedidos td.col-sel::before { content: 'Selecionar'; display: inline; margin: 0; }
  .tabela-pedidos td.col-acoes { display: flex; align-items: center; gap: 6px; padding-top: 10px; }
  .tabela-pedidos td.col-acoes::before { display: none; }
  .end-linha { max-width: none; }
}
@media (max-width: 560px) {
  .filtros-linha { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .mais-grade { width: 88vw; grid-template-columns: 1fr; }
  .mais-nota { width: 88vw; top: calc(100% + 8px + 320px); }
}

/* ============================================================
   Refinamento 26/10 — ícones SVG, botões unificados, dias de entrega
   ============================================================ */

/* marca (novo base.html com ícones) */
.marca { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 4px 4px 18px; }
.marca-txt { text-align: center; line-height: 1.25; }
.marca-txt b { display: block; font-size: 15px; font-weight: 800; letter-spacing: .2px; }
.marca-txt span { font-size: 11px; color: rgba(255,255,255,.55); letter-spacing: .3px; }
.menu .item .ic { display: inline-flex; align-items: center; justify-content: center; }
.menu .item .ic svg { width: 18px; height: 18px; display: block; }
.sair { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
        border-radius: 9px; color: rgba(255,255,255,.7); }
.sair svg { width: 18px; height: 18px; display: block; }
.sair:hover { background: rgba(255,255,255,.1); color: #fff; }

/* botões unificados */
.botao-claro, .botao-marrom, .botao-sec, button.primario, .mais-filtros summary, .chip-atalho {
  height: 40px; padding: 0 14px; border-radius: 10px; font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--borda); background: #fff; color: #4A3626;
  text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.botao-claro:hover, .mais-filtros summary:hover, .chip-atalho:hover {
  background: #FAF6EF; border-color: #E3D4C4;
}
.botao-marrom, button.primario { background: var(--marrom); border-color: var(--marrom); color: #fff; }
.botao-marrom:hover, button.primario:hover { background: var(--marrom-escuro); border-color: var(--marrom-escuro); }
.botao-sec { background: transparent; }
.chip-atalho { height: 36px; border-radius: 999px; font-size: 12.5px; }
.chip-limpar { color: var(--rosa-tx); border-color: #F3D3DF; background: #FDF2F6; }
.chip-limpar:hover { background: #FBE7EE; }
.mais-filtros summary { list-style: none; cursor: pointer; }

/* dias de entrega */
.dias-entrega { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.dias-rot { font-size: 11.5px; font-weight: 700; color: var(--texto-fraco);
            text-transform: uppercase; letter-spacing: .5px; margin-right: 2px; }
.dia-chip { display: inline-flex; align-items: baseline; gap: 7px; height: 40px; padding: 0 14px;
            border-radius: 10px; border: 1px solid var(--borda); background: #fff;
            color: #4A3626; text-decoration: none; font-size: 13px; }
.dia-chip b { font-weight: 700; }
.dia-chip span { font-size: 12px; color: var(--texto-fraco); }
.dia-chip:hover { background: #FAF6EF; border-color: #E3D4C4; }
.dia-chip.ativo { background: var(--marrom); border-color: var(--marrom); color: #fff; }
.dia-chip.ativo span { color: rgba(255,255,255,.75); }
.dia-abrev { display: none; }

/* tabela (novas colunas) */
.tabela-pedidos { table-layout: fixed; width: 100%; min-width: 980px; }
.tabela-pedidos th, .tabela-pedidos td { padding: 9px 8px; font-size: 12.5px; }
.tabela-pedidos th:nth-child(1) { width: 32px; }
.tabela-pedidos th:nth-child(2) { width: 84px; }
.tabela-pedidos th:nth-child(3) { width: 150px; }
.tabela-pedidos th:nth-child(4) { width: 168px; }
.tabela-pedidos th:nth-child(5) { width: 95px; }
.tabela-pedidos th:nth-child(6) { width: 95px; }
.tabela-pedidos th:nth-child(7) { width: 95px; }
.tabela-pedidos th:nth-child(8) { width: 120px; }
.tabela-pedidos th:nth-child(9) { width: 120px; }
.tabela-pedidos th:nth-child(10) { width: 80px; }
.tabela-pedidos th:nth-child(11) { width: 95px; }
.tabela-pedidos th:nth-child(12) { width: 92px; }
.tabela-pedidos thead th { white-space: normal; line-height: 1.2; }
.tabela-pedidos td { overflow: hidden; text-overflow: ellipsis; }
.tabela-pedidos .col-sel, .tabela-pedidos .col-acoes { overflow: visible; }
.tabela-pedidos td[data-rot="Data da entrega"] strong { white-space: nowrap; }
.tabela-pedidos td[data-rot="Dia da entrega"] { white-space: nowrap; color: #5A4632; font-weight: 600; font-size: 12.5px; }
.tabela-pedidos td[data-rot="Nome do recebedor"], .tabela-pedidos td[data-rot="Contato do recebedor"] { white-space: nowrap; }
.tabela-pedidos .end-linha { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabela-pedidos td[data-rot="Endereço"] .sec { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabela-pedidos .cliente-dados { min-width: 0; }
.tabela-pedidos .cliente-nome { overflow: hidden; text-overflow: ellipsis; }

/* icones dos cards */
.ic-card svg { width: 22px; height: 22px; }
.card-rosa .ic-card { color: var(--rosa-tx); }
.card-ambar .ic-card { color: var(--ambar-tx); }
.card-azul .ic-card { color: var(--azul-tx); }
.card-verde .ic-card { color: var(--verde-tx); }

@media (max-width: 960px) {
  .marca { flex-direction: row; }
  .marca-txt { text-align: left; }
  .marca-txt span { display: none; }
  .dias-entrega { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
                  gap: 6px; align-items: stretch; }
  .dias-rot { grid-column: 1 / -1; margin: 0 0 2px; }
  .dia-chip { height: auto; min-height: 52px; padding: 7px 6px; border-radius: 12px;
              flex-direction: column; align-items: center; justify-content: center;
              gap: 2px; text-align: center; line-height: 1.15; }
  .dia-chip b { font-size: 12.5px; }
  .dia-chip span { font-size: 11.5px; }
  .dia-chip.ativo { box-shadow: 0 4px 12px rgba(112, 72, 47, .22); }
}

@media (max-width: 560px) {
  .dias-entrega { gap: 5px; }
  .dia-chip { min-height: 56px; padding: 8px 3px; }
  .dia-chip b { font-size: 11px; letter-spacing: .3px; text-transform: uppercase; }
  .dia-chip span { font-size: 10.5px; }
  .dia-nome { display: none; }
  .dia-abrev { display: block; }
}

/* ============================================================
   Relatório de vendas (27/10)
   ============================================================ */
.rel-mini { display: block; font-size: 11px; color: var(--texto-fraco); margin-top: 3px; line-height: 1.3; }
.rel-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 12px 0 14px; }
.rel-pilula { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px;
              border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid transparent; }
.rel-ok { background: #E9F6EC; color: var(--verde-tx); border-color: #CFE9D5; }
.rel-pend { background: #FDF4E3; color: var(--ambar-tx); border-color: #F3E0BE; }
.rel-canc { background: #FBEAEA; color: var(--verm-tx); border-color: #F0CFCF; }
.rel-nota { font-size: 11.5px; color: var(--texto-fraco); }
.rel-periodos { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip-atalho.ativo { background: var(--marrom); border-color: var(--marrom); color: #fff; }
.rel-filtros { grid-template-columns: 190px 190px auto auto; align-items: end; }
.rel-grade { display: grid; grid-template-columns: 1.45fr 1fr; gap: 16px; margin-top: 16px; }
.rel-card { background: var(--superficie); border: 1px solid var(--borda); border-radius: 16px;
            box-shadow: var(--sombra); padding: 18px 18px 14px; min-width: 0; }
.rel-card h2 { font-size: 16px; font-weight: 800; margin: 0; letter-spacing: -.2px; }
.rel-sub { margin-top: 18px !important; }
.rel-card .dica { font-size: 12px; color: var(--texto-fraco); margin: 3px 0 12px; }
.rel-card-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.rel-total { font-size: 18px; font-weight: 800; color: var(--marrom); white-space: nowrap; }
.rel-grafico { display: flex; align-items: flex-end; gap: 4px; height: 190px;
               padding: 10px 2px 24px; border-bottom: 1px solid var(--borda); }
.rel-col { position: relative; flex: 1 1 0; height: 100%; display: flex;
           align-items: flex-end; justify-content: center; min-width: 3px; }
.rel-barra { width: 100%; max-width: 34px; background: linear-gradient(180deg, #C98AA4, #A85E7E);
             border-radius: 5px 5px 0 0; transition: filter .15s; }
.rel-col:hover .rel-barra { filter: brightness(.92); }
.rel-col .rot { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%);
                font-size: 9.5px; color: var(--texto-fraco); white-space: nowrap; }
.rel-eixo { display: flex; justify-content: space-between; margin-top: 8px;
            font-size: 11px; color: var(--texto-fraco); }
.rel-vazio { text-align: center; color: var(--texto-fraco); padding: 24px 10px;
             font-size: 13px; line-height: 1.5; }
.rel-vazio span { font-size: 11.5px; }
.rel-tabela { width: 100%; border-collapse: collapse; font-size: 13px; }
.rel-tabela th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .4px;
                 color: var(--texto-fraco); padding: 8px 6px; border-bottom: 1px solid var(--borda);
                 white-space: nowrap; }
.rel-tabela td { padding: 9px 6px; border-bottom: 1px solid var(--borda-suave); }
.rel-tabela tbody tr:last-child td { border-bottom: 0; }
.rel-tabela .num { text-align: right; white-space: nowrap; }
.rel-tabela td.rel-vazio { padding: 18px 8px; }
.rel-card-largo { margin-top: 16px; }

@media (max-width: 1100px) {
  .rel-grade { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .rel-filtros { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .rel-filtros { grid-template-columns: 1fr; }
  .rel-filtros .botao-claro, .rel-filtros button { width: 100%; }
  .rel-grafico { height: 150px; gap: 3px; }
  .rel-total { font-size: 15px; }
  .rel-status { gap: 6px; }
  .rel-pilula { font-size: 11px; height: 28px; padding: 0 9px; }
  .rel-nota { flex-basis: 100%; }
}

/* Tipos de local (filtro Casa..Outro) */
.tipos-local { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tipo-chip { display: inline-flex; align-items: center; justify-content: center; height: 36px;
             padding: 0 14px; border-radius: 999px; border: 1px solid var(--borda);
             background: #fff; color: #4A3626; font-size: 12.5px; font-weight: 600;
             text-decoration: none; white-space: nowrap; }
.tipo-chip:hover { background: #FAF6EF; border-color: #E3D4C4; }
.tipo-chip.ativo { background: var(--marrom); border-color: var(--marrom); color: #fff; }

@media (max-width: 960px) {
  .tipos-local { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
                 gap: 6px; align-items: stretch; }
  .tipos-local .dias-rot { grid-column: 1 / -1; margin: 0 0 2px; }
  .tipo-chip { height: 42px; padding: 0 8px; border-radius: 11px; font-size: 12px; }
}
