:root {
  color-scheme: light;
  --azul: #174e91;
  --azul-claro: #edf3fa;
  --vermelho: #c9343d;
  --vermelho-claro: #fff0f1;
  --tinta: #202936;
  --secundaria: #697586;
  --linha: #e1e6ec;
  --papel: #ffffff;
  --fundo: #f7f8fa;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--fundo); color: var(--tinta); font-family: "Avenir Next", "Segoe UI", sans-serif; font-size: 14px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--vermelho); outline-offset: 2px; }
[hidden] { display: none !important; }

html.inventario-apenas .topbar .marca,
html.inventario-apenas [data-inventario-nav],
html.inventario-apenas [data-loja-online],
html.inventario-apenas .definicoes-loja { display: none; }

.topbar { min-height: 70px; padding: 0 clamp(20px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--linha); background: var(--papel); color: var(--azul); }
.marca { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.marca-simbolo { display: grid; width: 36px; aspect-ratio: 1; place-items: center; border: 1px solid var(--vermelho); color: var(--vermelho); font-family: Georgia, serif; font-size: 21px; }
.marca-texto { display: grid; gap: 4px; color: var(--azul); font-size: 14px; font-weight: 750; }
.marca-texto small { color: var(--secundaria); font-size: 9px; font-weight: 500; }
.top-acoes { display: flex; align-items: center; gap: 9px; }
.utilizador-atual { color: var(--secundaria); font-size: 12px; white-space: nowrap; }
.botao { min-height: 38px; padding: 0 14px; border: 1px solid transparent; border-radius: 3px; font-weight: 600; transition: background .16s ease, color .16s ease, border-color .16s ease; }
.botao-contorno { border-color: var(--linha); background: #fff; color: var(--azul); }
.botao-contorno:hover { border-color: var(--azul); background: var(--azul-claro); }
.botao-destaque { background: var(--azul); color: #fff; }
.botao-destaque:hover { background: #103c73; }
.botao-destaque span { margin-right: 5px; font-size: 18px; font-weight: 400; vertical-align: -1px; }
.botao-neutro { border-color: var(--linha); background: white; color: var(--tinta); }
.botao-neutro:hover { background: var(--fundo); }

.pagina { width: min(1440px, 100%); margin: 0 auto; padding: 32px clamp(20px, 5vw, 76px) 24px; }
.cabecalho-pagina { display: flex; align-items: end; justify-content: space-between; margin-bottom: 23px; }
.sobretitulo { margin: 0 0 8px; color: var(--vermelho); font-size: 10px; font-weight: 700; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 4px; color: var(--azul); font-size: 34px; font-weight: 650; line-height: 1.1; }
.subtitulo { margin: 0; color: var(--secundaria); }
.data-hoje { margin: 0 0 4px; color: var(--secundaria); font-size: 12px; }
.indicadores { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 20px; border: 1px solid var(--linha); background: var(--papel); }
.indicador { min-height: 108px; padding: 16px 20px; border-right: 1px solid var(--linha); display: flex; flex-direction: column; align-items: flex-start; }
.indicador:last-child { border-right: 0; }
.indicador-etiqueta { color: var(--secundaria); font-size: 12px; }
.indicador strong { margin: 8px 0 2px; color: var(--azul); font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.indicador-nota { color: #87918c; font-size: 11px; }
.indicador-alerta strong { color: var(--vermelho); }

.faixa-alerta { display: flex; align-items: center; gap: 12px; min-height: 58px; margin-bottom: 22px; padding: 10px 15px; border-left: 3px solid var(--vermelho); background: var(--vermelho-claro); }
.alerta-ponto { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--vermelho); }
.faixa-alerta p { display: grid; gap: 3px; flex: 1; margin: 0; }
.faixa-alerta p strong { font-size: 13px; }
.faixa-alerta p span { color: #78545a; font-size: 12px; }
.faixa-alerta button { border: 0; background: transparent; color: var(--vermelho); font-size: 12px; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }

.inventario { border-top: 1px solid var(--linha); }
.inventario-cabecalho { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 22px 0 15px; }
.inventario-cabecalho h2 { margin: 0 0 4px; color: var(--azul); font-size: 20px; font-weight: 600; }
.inventario-cabecalho p { margin: 0; color: var(--secundaria); font-size: 12px; }
.filtros { display: flex; align-items: center; gap: 8px; }
.pesquisa-wrap { position: relative; }
.pesquisa-icone { position: absolute; top: 5px; left: 11px; color: var(--secundaria); font-size: 22px; line-height: 1; transform: rotate(-20deg); }
.filtros input, .filtros select { height: 38px; border: 1px solid var(--linha); border-radius: 3px; background: #fff; color: var(--tinta); }
.filtros input { width: 230px; padding: 0 12px 0 34px; }
.filtros select { max-width: 180px; padding: 0 27px 0 10px; }
.filtros input::placeholder { color: #8791a0; }
.tabela-wrap { overflow-x: auto; border: 1px solid var(--linha); background: var(--papel); }
table { width: 100%; min-width: 820px; border-collapse: collapse; }
th { height: 42px; padding: 0 14px; background: #f3f5f8; color: #596579; font-size: 10px; font-weight: 650; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { height: 60px; padding: 9px 14px; border-top: 1px solid #edf0f4; font-size: 12px; vertical-align: middle; }
tbody tr:hover { background: #fafbfd; }
td:last-child, th:last-child { width: 130px; text-align: right; }
.artigo-identificacao { display: grid; gap: 4px; }
.identificacao-com-foto { display: flex; align-items: center; gap: 10px; min-width: 0; }
.miniatura-produto { width: 48px; height: 56px; flex: 0 0 48px; border-radius: 3px; object-fit: cover; background: #f0f2f5; }
.sem-fotografia { display: grid; place-items: center; color: #9aa3b0; font-size: 19px; }
.artigo-identificacao strong { font-size: 13px; font-weight: 650; }
.artigo-identificacao span { color: var(--secundaria); font-size: 11px; }
.especificacao { display: grid; gap: 3px; color: var(--secundaria); }
.especificacao strong { color: var(--tinta); font-weight: 550; }
.stock-valor { display: flex; align-items: center; gap: 7px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stock-valor strong { font-size: 13px; }
.stock-valor small { color: var(--secundaria); font-size: 10px; }
.stock-estado { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; color: var(--secundaria); font-size: 10px; }
.stock-estado::before { width: 6px; height: 6px; border-radius: 50%; background: #3a8b61; content: ""; }
.stock-estado.baixo { color: var(--vermelho); }
.stock-estado.baixo::before { background: var(--vermelho); }
.botao-editar { padding: 7px 9px; border: 1px solid var(--linha); border-radius: 3px; background: #fff; color: var(--azul); font-size: 11px; font-weight: 600; }
.botao-editar:hover { border-color: var(--azul); background: var(--azul-claro); }
.acoes-linha { display: flex; justify-content: flex-end; gap: 5px; }
.botao-apagar { padding: 7px 8px; border: 1px solid #f0d7d9; border-radius: 3px; background: #fff; color: var(--vermelho); font-size: 11px; font-weight: 600; }
.botao-apagar:hover { border-color: var(--vermelho); background: var(--vermelho-claro); }
.estado-vazio { padding: 58px 20px 62px; text-align: center; }
.vazio-simbolo { display: grid; width: 42px; height: 42px; margin: 0 auto 13px; place-items: center; border: 1px solid var(--linha); border-radius: 50%; color: var(--azul); font-size: 22px; }
.estado-vazio h3 { margin-bottom: 6px; color: var(--azul); font-size: 19px; font-weight: 600; }
.estado-vazio p { margin-bottom: 18px; color: var(--secundaria); font-size: 12px; }
.nota-rodape { margin: 22px 0 0; color: #8993a0; font-size: 9px; font-weight: 600; }
.nota-rodape span { padding: 0 5px; color: var(--vermelho); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }

dialog { width: min(650px, calc(100vw - 28px)); max-height: min(92vh, 850px); padding: 0; overflow: auto; border: 1px solid var(--linha); border-radius: 4px; background: var(--papel); color: var(--tinta); box-shadow: 0 16px 48px #18283a24; }
dialog::backdrop { background: #17283b80; }
dialog form { padding: 25px 28px 24px; }
.dialogo-topo { display: flex; align-items: start; justify-content: space-between; margin-bottom: 21px; }
.dialogo-topo .sobretitulo { margin-bottom: 5px; }
.dialogo-topo h2 { margin: 0; color: var(--azul); font-size: 24px; font-weight: 600; }
.fechar { width: 34px; height: 34px; border: 1px solid var(--linha); border-radius: 50%; background: transparent; color: var(--secundaria); font-size: 23px; line-height: 1; }
.campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.produto-foto-editor { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) 120px; align-items: center; gap: 16px; padding: 12px; border: 1px solid var(--linha); background: #fafbfd; }
.produto-foto-editor .campo { align-self: center; }
.produto-foto-editor input[type="file"] { height: auto; padding: 9px; }
.produto-foto-editor small { color: var(--secundaria); font-weight: 400; }
.produto-foto-previsualizacao { display: grid; justify-items: center; gap: 7px; color: var(--secundaria); font-size: 10px; text-align: center; }
.produto-foto-previsualizacao img { width: 80px; height: 92px; border: 1px solid var(--linha); border-radius: 3px; object-fit: cover; background: white; }
.produto-foto-previsualizacao .botao { min-height: 30px; padding: 0 8px; font-size: 10px; }
.campo { display: grid; gap: 6px; color: #536174; font-size: 11px; font-weight: 600; }
.campo b { color: var(--vermelho); }
.campo input, .campo select { width: 100%; height: 40px; padding: 0 10px; border: 1px solid var(--linha); border-radius: 3px; background: #fff; color: var(--tinta); font-weight: 450; }
.campo select { cursor: pointer; }
.campo input::placeholder { color: #9aa3b0; }
.erro { margin: 14px 0 0; color: var(--vermelho); font-size: 12px; }
.botoes { display: flex; justify-content: flex-end; gap: 8px; margin-top: 23px; padding-top: 17px; border-top: 1px solid var(--linha); }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 3; max-width: min(440px, calc(100vw - 32px)); padding: 13px 17px; border-left: 3px solid var(--vermelho); background: var(--azul); color: white; box-shadow: 0 8px 28px #172a2430; font-size: 13px; }

.pagina-login { min-height: 100vh; min-height: 100svh; padding: 0; display: block; overflow-x: hidden; background: #111210; color: #f2efe8; }
.pagina-login button:focus-visible, .pagina-login input:focus-visible { outline-color: #bda978; }
.login-layout { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr); width: 100%; min-height: 100vh; min-height: 100svh; overflow: hidden; background: #111210; }
.login-marca { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; min-height: 100svh; padding: clamp(32px, 5vw, 76px); overflow: hidden; border-right: 1px solid #ffffff0b; background: radial-gradient(ellipse at 38% 48%, #24231e 0%, #181916 44%, #131412 78%); color: #f5f2eb; }
.login-marca::before, .login-marca::after { position: absolute; width: 430px; height: 430px; border: 1px solid #c5aa6a14; border-radius: 50%; content: ""; pointer-events: none; }
.login-marca::before { top: 17%; left: -25%; box-shadow: 0 0 0 46px #c5aa6a08, 0 0 0 96px #c5aa6a05; }
.login-marca::after { right: -40%; bottom: -33%; width: 560px; height: 560px; border-color: #ffffff0d; box-shadow: 0 0 0 42px #ffffff05; }
.login-logo { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 12px; width: fit-content; color: white; text-decoration: none; }
.login-logo-simbolo { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid #bba57365; border-radius: 12px; color: #c6b27f; }
.login-logo-simbolo svg { width: 30px; height: 30px; }
.login-logo-texto { color: #f4f0e7; font-size: 24px; font-weight: 720; letter-spacing: -.8px; }
.login-logo-texto span { color: #c5ad78; }
.login-marca-conteudo { position: relative; display: grid; min-height: 300px; place-items: center; }
.login-selo { position: absolute; top: 13px; left: 0; color: #c1b590; font-size: 10px; font-weight: 700; letter-spacing: 1.65px; }
.login-grafico { position: relative; z-index: 1; width: min(100%, 370px); height: 235px; padding: 16px 18px 19px; border: 1px solid #c0a76b35; border-radius: 12px; background: linear-gradient(145deg, #ffffff0d, #ffffff03); box-shadow: 0 22px 55px #00000035; backdrop-filter: blur(8px); transform: rotate(-4deg); }
.grafico-topo { display: flex; gap: 5px; padding-bottom: 13px; border-bottom: 1px solid #ffffff18; }
.grafico-topo span { width: 6px; height: 6px; border-radius: 50%; background: #c5ad7880; }
.grafico-linha { position: absolute; top: 82px; right: 31px; left: 31px; display: flex; align-items: center; justify-content: space-between; height: 50px; border-top: 2px solid #c6b17c; transform: skewY(-12deg); }
.grafico-linha::before { position: absolute; top: -1px; right: 0; left: 0; border-top: 1px dashed #ffffff30; content: ""; transform: translateY(18px); }
.grafico-linha i, .grafico-linha b { position: relative; z-index: 1; width: 8px; height: 8px; border: 2px solid #26251f; border-radius: 50%; background: #dfc991; }
.grafico-linha b { width: 11px; height: 11px; }
.grafico-colunas { position: absolute; right: 28px; bottom: 20px; left: 28px; display: flex; align-items: end; justify-content: space-between; height: 50px; opacity: .58; }
.grafico-colunas i { width: 8%; height: 28%; border-radius: 3px 3px 0 0; background: #bca56f; }
.grafico-colunas i:nth-child(2) { height: 44%; }.grafico-colunas i:nth-child(3) { height: 36%; }.grafico-colunas i:nth-child(4) { height: 62%; }.grafico-colunas i:nth-child(5) { height: 50%; }.grafico-colunas i:nth-child(6) { height: 78%; }.grafico-colunas i:nth-child(7) { height: 100%; }
.login-ponto { position: absolute; width: 11px; height: 11px; border: 2px solid #c5ad78; border-radius: 50%; box-shadow: 0 0 0 7px #c5ad7818; }
.login-ponto-um { top: 27%; right: 9%; }
.login-ponto-dois { bottom: 18%; left: 8%; width: 7px; height: 7px; }
.login-versao { position: relative; z-index: 1; color: #c8c0ab8c; font-size: 9px; font-weight: 650; letter-spacing: 1.1px; }
.login-painel { position: relative; display: grid; min-height: 100vh; min-height: 100svh; place-items: center; padding: 56px clamp(36px, 7vw, 100px); background: radial-gradient(ellipse at 52% 42%, #20211e 0%, #191a18 42%, #151614 100%); }
.cartao-login { width: min(100%, 360px); }
.login-cabecalho { margin-bottom: 34px; }
.login-cabecalho .sobretitulo { margin-bottom: 11px; color: #c4ab70; font-size: 10px; letter-spacing: 1.45px; }
.login-cabecalho h1 { margin: 0 0 9px; color: #f1eee7; font-size: 31px; font-weight: 650; letter-spacing: -.9px; }
.login-descricao { margin: 0; color: #a9a69d; font-size: 13px; }
.campo-login { margin-bottom: 19px; gap: 8px; color: #d5d0c5; font-size: 12px; }
.campo-login input { height: 49px; padding: 0 14px; border-color: #ffffff20; border-radius: 7px; background: #11121080; color: #f3efe6; font-size: 13px; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.campo-login input:hover { border-color: #c4ab706b; }
.campo-login input:focus { border-color: #c4ab70; outline: 0; background: #111210; box-shadow: 0 0 0 3px #c4ab701b; }
.campo-login input::placeholder { color: #817f78; }
.login-password-wrap { position: relative; }
.campo-login .login-password-wrap input { width: 100%; padding-right: 76px; }
.login-mostrar-password { position: absolute; top: 50%; right: 12px; padding: 5px 3px; border: 0; background: transparent; color: #c4ab70; font-size: 11px; transform: translateY(-50%); }
.login-mostrar-password:hover { color: #dfc991; }
.login-mostrar-password:disabled { opacity: .55; }
.campo-login small { color: #aaa397; font-weight: 400; }
.botao-entrar { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 49px; margin-top: 9px; border-radius: 7px; background: #b59a60; color: #171611; font-size: 13px; box-shadow: 0 7px 18px #00000024; }
.botao-entrar:hover { background: #c4aa72; color: #171611; box-shadow: 0 9px 22px #00000032; transform: translateY(-1px); }
.botao-entrar svg { width: 18px; height: 18px; transition: transform .16s ease; }
.botao-entrar:hover svg { transform: translateX(3px); }
.ligacao-registo { display: block; margin: 22px auto 0; padding: 6px; border: 0; background: transparent; color: #aaa69b; font-size: 12px; }
.ligacao-registo strong { color: #c4ab70; font-weight: 700; }
.ligacao-registo:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.login-recuperar { margin-top: 12px; }
.login-ajuda-password { margin: 8px 0 0; color: #aaa69b; font-size: 11px; line-height: 1.6; text-align: center; }
.login-seguranca { display: flex; justify-content: center; align-items: center; gap: 7px; margin-top: 32px; padding-top: 19px; border-top: 1px solid #ffffff12; color: #8e8b82; font-size: 10px; }
.login-seguranca span { color: #c4ab70; font-size: 15px; }
.login-assinatura { position: absolute; right: 28px; bottom: 20px; z-index: 2; color: #c4ab7052; font-size: 10px; font-weight: 650; letter-spacing: 1.5px; pointer-events: none; user-select: none; }
.pagina-loja { min-height: 100vh; background: var(--fundo); }
.pagina-loja .topbar { color: #633d4d; }
.pagina-loja .marca-simbolo { border-color: #b99162; color: #a47d4d; font-size: 13px; }
.pagina-loja .marca-texto { color: #633d4d; }
.pagina-loja .botao-destaque { background: #a8536d; }
.pagina-loja .botao-destaque:hover { background: #89445b; }
.pagina-loja .sobretitulo { color: #ad6f7e; }
.pagina-loja h1, .pagina-loja .indicador strong, .pagina-loja .inventario-cabecalho h2,
.pagina-loja .estado-vazio h3 { color: #633d4d; }
.pagina-loja .indicador-alerta strong { color: #b34f5a; }
.pagina-loja .nota-rodape span { color: #b99162; }
.definicoes-loja { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(320px, 1fr); align-items: center; gap: 30px; margin: 20px 0 34px; padding: 22px 24px; border: 1px solid #e8dadd; background: #fffafb; }
.definicoes-formularios { display: grid; gap: 15px; }
.definicoes-loja h2, .cabecalho-encomendas h2 { margin: 0 0 5px; color: #633d4d; font-size: 17px; font-weight: 650; }
.definicoes-loja p:not(.sobretitulo) { margin: 0; color: var(--secundaria); font-size: 11px; }
.form-loja { display: grid; gap: 8px; }
.form-loja label { color: #53454a; font-size: 11px; font-weight: 600; }
.form-loja > div { display: flex; gap: 8px; }
.form-loja input { width: 140px; min-height: 38px; padding: 0 10px; border: 1px solid var(--linha); border-radius: 3px; background: white; }
.form-loja .botao { white-space: nowrap; }
.form-loja small { color: #897b80; font-size: 10px; line-height: 1.5; }
.pagina-encomendas .cabecalho-pagina { align-items: center; }
.navegacao-loja [aria-current="page"] { border-color: #d7bec5; background: #fff6f8; color: #88465c; }
.painel-encomendas { margin-top: 22px; }
.abas-encomendas { display: flex; gap: 5px; overflow-x: auto; border-bottom: 1px solid #e6dfe2; }
.aba-encomenda { display: inline-flex; min-height: 46px; align-items: center; gap: 9px; padding: 0 16px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #817579; font-size: 11px; font-weight: 600; white-space: nowrap; }
.aba-encomenda[aria-selected="true"] { border-bottom-color: #a8536d; color: #633d4d; }
.aba-encomenda span { display: grid; min-width: 20px; height: 20px; place-items: center; padding: 0 5px; border-radius: 20px; background: #f2eeee; color: #756a6e; font-size: 9px; }
.aba-encomenda[aria-selected="true"] span { background: #f7e9ed; color: #88465c; }
.lista-encomendas { display: grid; gap: 12px; }
.painel-encomendas .lista-encomendas { padding-top: 18px; }
.sem-encomendas { margin: 0; padding: 25px; border: 1px solid var(--linha); background: white; color: var(--secundaria); font-size: 12px; text-align: center; }
.cartao-encomenda { padding: 16px 18px; border: 1px solid #e6dfe2; background: white; }
.encomenda-topo, .encomenda-topo > div, .encomenda-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.encomenda-topo strong { color: #49353e; font-size: 12px; }
.encomenda-topo time { color: #8c8185; font-size: 10px; }
.estado-encomenda { padding: 6px 9px; border-radius: 30px; background: #f2eeee; color: #72686b; font-size: 9px; font-weight: 650; }
.estado-paga { background: #edf5ed; color: #436b4b; }
.estado-enviada { background: #eef2f8; color: #4a6382; }
.estado-stock_indisponivel { background: #fff0e3; color: #945427; }
.cartao-encomenda ul { display: grid; gap: 5px; margin: 13px 0; padding-left: 17px; color: #584e51; font-size: 10px; }
.cartao-encomenda li span { color: #91878a; }
.encomenda-cliente { display: grid; gap: 4px; padding-top: 11px; border-top: 1px solid #f0ebed; color: #84797d; font-size: 10px; overflow-wrap: anywhere; }
.encomenda-cliente strong { color: #493e41; }
.encomenda-cliente a { width: fit-content; color: #955267; text-decoration: none; }
.encomenda-total { justify-content: flex-end; flex-wrap: wrap; margin-top: 12px; padding-top: 10px; border-top: 1px solid #f0ebed; color: #84797d; font-size: 10px; }
.encomenda-total strong { color: #49353e; font-size: 11px; }
.botao-encomenda-enviada, .botao-encomenda-paga { min-height: 30px; padding: 0 10px; border: 1px solid #d8c6cc; border-radius: 3px; background: #fffafb; color: #88465c; font-size: 10px; font-weight: 600; }
.botao-encomenda-paga { border-color: #bf9b6b; background: #fffaf0; color: #715326; }
.botao-encomenda-enviada:disabled, .botao-encomenda-paga:disabled { opacity: .6; cursor: wait; }
.encomenda-notificacoes { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.estado-email { color: #74676c; font-size: 10px; }
.estado-email.email-enviado { color: #436b4b; }
.estado-email.email-pendente { color: #8a5d19; }
.botao-email-repetir, .botao-whatsapp-encomenda { display: inline-flex; min-height: 29px; align-items: center; padding: 0 9px; border: 1px solid #d8c6cc; border-radius: 3px; background: #fffafb; color: #88465c; font: inherit; font-size: 10px; font-weight: 600; text-decoration: none; cursor: pointer; }
.botao-email-repetir:disabled { opacity: .6; cursor: wait; }
.botao-whatsapp-encomenda { border-color: #b7d6c1; background: #f5fbf6; color: #346848; }
.navegacao-loja { flex-wrap: wrap; }
.pagina-loja .top-acoes { flex-wrap: wrap; }
.pagina-loja .filtros { flex-wrap: wrap; justify-content: flex-end; }
.pagina-loja .filtros .botao { white-space: nowrap; }
.tabela-loja { min-width: 860px; }

@media (max-width: 900px) {
  .login-layout { grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); }
  .login-marca { padding: 34px 28px; }
  .login-painel { padding: 48px 38px; }
  .topbar { padding-right: 22px; padding-left: 22px; }
  .pagina { padding-right: 22px; padding-left: 22px; }
  .indicador { padding-right: 15px; padding-left: 15px; }
  .inventario-cabecalho { align-items: stretch; flex-direction: column; }
  .filtros { flex-wrap: wrap; }
  .pesquisa-wrap { flex: 1 1 220px; }
  .filtros input { width: 100%; }
}
@media (max-width: 600px) {
  .pagina-login { min-height: 100vh; min-height: 100svh; padding: 0; background: #111210; }
  .login-layout { display: flex; min-height: 100vh; min-height: 100svh; flex-direction: column; border: 0; border-radius: 0; box-shadow: none; }
  .login-marca { min-height: 145px; flex: 0 0 145px; padding: 24px; border-right: 0; border-bottom: 1px solid #ffffff0b; background: #191a18; }
  .login-marca-conteudo, .login-versao { display: none; }
  .login-logo-simbolo { width: 38px; height: 38px; border-radius: 10px; }
  .login-logo-simbolo svg { width: 27px; height: 27px; }
  .login-logo-texto { font-size: 21px; }
  .login-painel { min-height: calc(100svh - 145px); flex: 1; align-items: start; padding: 42px 25px 32px; background: #111210; }
  .login-assinatura { right: 18px; bottom: 14px; }
  .cartao-login { width: min(100%, 410px); padding: 0; }
  .login-cabecalho { margin-bottom: 30px; }
  .login-cabecalho h1 { font-size: 28px; }
  .topbar { min-height: 64px; padding: 10px 16px; align-items: stretch; flex-direction: column; gap: 10px; }
  .marca-simbolo { width: 33px; }
  .marca-texto { font-size: 12px; }
  .top-acoes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .utilizador-atual { grid-column: 1 / -1; }
  .pagina-loja .top-acoes { display: flex; justify-content: space-between; align-items: center; }
  .top-acoes .botao { min-height: 36px; padding: 0 5px; font-size: 10px; white-space: nowrap; }
  .definicoes-loja { grid-template-columns: 1fr; gap: 16px; padding: 18px 15px; }
  .form-loja > div { align-items: stretch; flex-wrap: wrap; }
  .form-loja input { flex: 1; min-width: 100px; }
  .encomenda-topo, .encomenda-topo > div { align-items: flex-start; flex-direction: column; gap: 5px; }
  .encomenda-topo { flex-direction: row; }
  .encomenda-total { justify-content: flex-start; }
  .navegacao-loja { display: flex; justify-content: flex-start !important; flex-wrap: wrap; }
  .navegacao-loja .botao { flex: 1 1 auto; }
  .pagina-encomendas .cabecalho-pagina { align-items: stretch; flex-direction: column; gap: 14px; }
  .pagina-encomendas .cabecalho-pagina > .botao { align-self: flex-start; }
  .aba-encomenda { padding: 0 11px; font-size: 10px; }
  .top-acoes .utilizador-atual { font-size: 11px; }
  .pagina { padding: 24px 16px 20px; }
  .cabecalho-pagina { align-items: start; }
  h1 { font-size: 30px; }
  .subtitulo { max-width: 220px; font-size: 12px; }
  .data-hoje { max-width: 100px; text-align: right; font-size: 10px; }
  .indicadores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .indicador { min-height: 105px; padding: 13px; border-bottom: 1px solid var(--linha); }
  .indicador:nth-child(2) { border-right: 0; }
  .indicador:nth-child(n + 3) { border-bottom: 0; }
  .indicador strong { font-size: 23px; }
  .indicador-etiqueta { font-size: 11px; }
  .indicador-nota { font-size: 10px; }
  .faixa-alerta { align-items: flex-start; padding: 12px; }
  .faixa-alerta button { padding: 0; white-space: nowrap; }
  .filtros { display: grid; grid-template-columns: 1fr 1fr; }
  .pagina-loja .filtros { display: grid; grid-template-columns: 1fr 1fr; }
  .pesquisa-wrap { grid-column: 1 / -1; }
  .filtros select { width: 100%; max-width: none; }
  .pagina-loja .filtros > .botao { grid-column: 1 / -1; }
  .tabela-wrap { overflow-x: hidden; }
  table { min-width: 0; table-layout: fixed; }
  th, td { padding-right: 6px; padding-left: 6px; }
  th { height: auto; min-height: 40px; padding-top: 9px; padding-bottom: 9px; font-size: 9px; white-space: normal; }
  th:nth-child(2), td:nth-child(2), th:nth-child(5), td:nth-child(5) { display: none; }
  td:nth-child(1) { width: 37%; }
  td:nth-child(3) { width: 23%; }
  td:nth-child(4) { width: 20%; }
  td:last-child, th:last-child { width: 20%; }
  .artigo-identificacao strong, .artigo-identificacao span { overflow-wrap: anywhere; }
  .artigo-identificacao strong { font-size: 11px; }
  .artigo-identificacao span { font-size: 9px; }
  .especificacao { font-size: 10px; overflow-wrap: anywhere; }
  .stock-valor { gap: 3px; }
  .stock-valor strong { font-size: 11px; }
  .stock-valor small, .stock-estado { font-size: 9px; }
  .acoes-linha { flex-direction: column; gap: 4px; }
  .botao-editar, .botao-apagar { width: 100%; padding: 5px 2px; font-size: 9px; }
  dialog form { padding: 21px 18px; }
  .campos { gap: 12px 10px; }
  .campo { font-size: 10px; }
  .campo input, .campo select { height: 38px; padding: 0 8px; font-size: 12px; }
  .produto-foto-editor { grid-template-columns: 1fr 90px; gap: 8px; padding: 9px; }
  .produto-foto-editor input[type="file"] { max-width: 100%; padding: 7px 3px; font-size: 10px; }
  .produto-foto-previsualizacao img { width: 68px; height: 78px; }
  .botoes .botao { padding: 0 11px; font-size: 12px; }
}

.pagina-admin { min-height: 100vh; }
.cartao-admin { width: min(540px, calc(100% - 32px)); margin: 7vh auto; padding: 30px; border: 1px solid var(--linha); background: var(--papel); }
.cartao-admin h1 { font-size: 28px; }
.cartao-admin .subtitulo { margin-bottom: 24px; line-height: 1.6; }
.campo-admin { display: grid; gap: 7px; margin: 15px 0; color: #536174; font-size: 12px; font-weight: 600; }
.campo-admin input { width: 100%; height: 42px; padding: 0 11px; border: 1px solid var(--linha); border-radius: 3px; background: #fff; color: var(--tinta); font-weight: 450; }
.cartao-admin form > .botao { width: 100%; margin-top: 8px; }
.voltar-login { display: inline-block; margin-top: 18px; }
.estado-admin { margin: 14px 0; padding: 12px 14px; border-left: 3px solid #3a8b61; background: #eef8f1; color: #285d3b; font-size: 13px; }
.aviso-admin { margin-bottom: 18px; padding: 14px 16px; border-left: 3px solid var(--azul); background: var(--azul-claro); color: #33475e; font-size: 12px; line-height: 1.6; }
.tabela-admin { min-width: 720px; }
.tabela-admin td:last-child { width: auto; }
.tabela-admin td:last-child > * + * { margin-left: 6px; }
.auditoria-admin { margin-top: 30px; border-top: 1px solid var(--linha); padding-top: 22px; }
.auditoria-admin h2 { margin: 0 0 6px; color: var(--azul); font-size: 20px; font-weight: 600; }
.auditoria-admin .subtitulo { margin-bottom: 14px; font-size: 12px; }
.auditoria-admin ol { display: grid; gap: 8px; margin: 0; padding-left: 20px; color: var(--secundaria); font-size: 12px; }
.admin-mode-banner { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px clamp(16px, 5vw, 76px); border-bottom: 1px solid #c8b372; background: #fff7db; color: #554310; font-size: 12px; }

@media (max-width: 600px) {
  .cartao-admin { margin: 20px auto; padding: 22px 18px; }
  .admin-mode-banner { align-items: stretch; flex-direction: column; padding: 10px 16px; }
  .pagina-admin .tabela-wrap { overflow-x: auto; }
  .tabela-admin { min-width: 720px; }
  .tabela-admin th:nth-child(2), .tabela-admin td:nth-child(2),
  .tabela-admin th:nth-child(5), .tabela-admin td:nth-child(5) { display: table-cell; }
}