@font-face {
    font-family: "Simbolos Lavacao V2";
    src: url("../fonts/simbolos-v2.ttf") format("truetype");
}

:root { --aura: #1f3b5c; --aura-claro: #e8eef5; }
html { font-size: 18px; }
body { background: #f6f7f9; font-size: 1rem; }
.bg-aura { background: var(--aura); }
.card { border: 1px solid #e2e5ea; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.table thead th { font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .02em; color: #555; }

.status { display: inline-block; padding: .15rem .55rem; border-radius: 1rem; font-size: .78rem; font-weight: 600; }
.status-Rascunho { background: #eceff3; color: #444; }
.status-Enviado { background: #fff1c2; color: #6b4d00; }
.status-Liberado { background: #d6ecff; color: #0b4a80; }
.status-Impresso { background: #d4f2dc; color: #1b5e2e; }
.status-Cancelado { background: #f7d9d9; color: #842029; }

/* Símbolos de conservação (fonte do Aura) */
.simbolos { font-family: "Simbolos Lavacao V2"; font-size: 1.7rem; line-height: 1; letter-spacing: .1rem; }
.simbolo-opcao { display: inline-flex; flex-direction: column; align-items: center; cursor: pointer; border: 1px solid #d5dae1;
    border-radius: .35rem; padding: .2rem .3rem; margin: 0 .2rem .3rem 0; background: #fff; min-width: 2.6rem; }
.simbolo-opcao .simbolos { font-size: 1.6rem; }
.simbolo-opcao input { display: none; }
.simbolo-opcao:has(input:checked) { border-color: var(--aura); background: var(--aura-claro); box-shadow: 0 0 0 2px var(--aura) inset; }
.simbolo-grupo-titulo { font-size: .75rem; text-transform: uppercase; color: #666; margin-bottom: .2rem; }

/* Prévia aproximada da etiqueta */
.etiquetas { display: flex; flex-wrap: wrap; gap: 1rem; }
.etiqueta { width: 15rem; min-height: 19rem; background: #fff; border: 1px solid #cfd4da; border-top: 1.4rem solid #f0f1f3;
    padding: .8rem .6rem; text-align: center; font-family: "Arial Narrow", Arial, sans-serif; font-size: .95rem;
    line-height: 1.25; text-transform: uppercase; box-shadow: 0 2px 6px rgba(0,0,0,.08); position: relative; }
.etiqueta .fixo { margin-bottom: .45rem; }
.etiqueta .tam { font-size: 1.6rem; font-weight: 700; margin: .3rem 0 .5rem; }
.etiqueta .comp { margin-bottom: .5rem; }
.etiqueta .simbolos { font-size: 1.7rem; margin: .4rem 0 .5rem; letter-spacing: .05rem; }
.etiqueta .qtd { position: absolute; top: -1.3rem; left: 0; right: 0; font-size: .85rem; color: #444; text-transform: none; }
.etiqueta .falta { color: #b02a37; font-style: italic; text-transform: none; }

.produto { border-left: 4px solid var(--aura); }
.produto.tem-erro { border-left-color: #dc3545; }
.grade input { width: 5.5rem; }
.imagem-planilha { max-height: 3rem; border: 1px dashed #aaa; background: #fff; padding: 2px; }
.foto-referencia { max-height: 18rem; border: 1px solid #ccc; }
.soma-ok { color: #1b5e2e; } .soma-erro { color: #b02a37; }
.pendencias li { margin-bottom: .15rem; }

/* Pedido em linhas */
.tabela-pedido th { white-space: nowrap; background: #f3f5f8; position: sticky; top: 0; z-index: 1; }
.tabela-pedido td { padding: .25rem .3rem; vertical-align: top; }
.tabela-pedido .campo-composicao { min-width: 17rem; }
.tabela-pedido .campo-tamanho { width: 4.2rem; }
.tabela-pedido .campo-qtd { width: 5.5rem; }
.tabela-pedido input[data-campo="observacao"] { min-width: 14rem; }
.tabela-pedido .num { padding-top: .5rem; width: 2rem; }
.tabela-pedido .soma { min-height: 1rem; }
.tabela-pedido .botao-simbolos .simbolos { font-size: 1.6rem; }
.tabela-pedido .aviso { font-size: 1.1rem; cursor: help; }
tr.linha-erro > td { background: #fff4f4; }

/* Montagem da simbologia */
.etapas { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; padding: 0; margin: 0 0 .8rem; }
.etapa { display: flex; align-items: center; gap: .35rem; border: 1px solid #d5dae1; border-radius: 1rem; padding: .15rem .6rem;
    font-size: .78rem; cursor: pointer; background: #fff; }
.etapa .simbolos { font-size: 1.1rem; min-width: .5rem; }
.etapa.feita { background: #eef5ee; border-color: #9cc5a4; }
.etapa.atual { border-color: var(--aura); box-shadow: 0 0 0 2px var(--aura) inset; }
.opcoes-simbolo { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .5rem; }
.opcao { display: flex; flex-direction: column; align-items: center; gap: .2rem; border: 1px solid #d5dae1; border-radius: .5rem;
    background: #fff; padding: .5rem .3rem; }
.opcao:hover { border-color: var(--aura); background: var(--aura-claro); }
.opcao.marcada { border-color: var(--aura); box-shadow: 0 0 0 2px var(--aura) inset; background: var(--aura-claro); }
.opcao .simbolos { font-size: 2.3rem; }
.opcao .nome { font-size: .78rem; text-align: center; }
.conjunto .simbolos { font-size: 2rem; line-height: 1.2; letter-spacing: .15rem; }
.barra-acoes { background: #f6f7f9; }
.tabela-pedido .simbolos { white-space: nowrap; }
.ajuste-composicao { background: #eef5ff; border: 1px solid #b6d4fe; border-radius: .3rem; padding: .25rem .4rem; margin-top: .25rem; font-size: .78rem; }
.aviso-inmetro { color: #8a5a00; background: #fff6df; border-radius: .25rem; padding: .1rem .3rem; margin-top: .15rem; }
.tabela-pedido .soma { max-width: 22rem; }
.etiqueta .comp .parte { font-weight: 700; margin-top: .25rem; }
.etiqueta .comp .parte:first-child { margin-top: 0; }

/* Leitura confortável (clientes mais velhos): textos e campos maiores, bom contraste */
.tabela-pedido td, .tabela-pedido .form-control-sm { font-size: 1rem; }
.tabela-pedido th { font-size: .85rem; color: #333; }
.tabela-pedido .soma, .aviso-inmetro { font-size: .9rem; }
.tabela-pedido .simbolos { font-size: 1.6rem; }
.etiqueta-grade { font-size: 1rem; font-weight: 600; text-align: center; margin-top: .35rem; max-width: 15rem; }
.text-muted, .form-text { color: #555 !important; }
.btn { font-weight: 500; }

/* Prévia fiel (desenho do Aura a 203 dpi) */
.previa-aura { position: relative; background: #fff; border: 1px solid #bbb; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.previa-aura img { display: block; image-rendering: pixelated; image-rendering: crisp-edges; }
.previa-aura .costura { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: center;
    background: repeating-linear-gradient(45deg, rgba(220,120,20,.10) 0 6px, rgba(220,120,20,.22) 6px 12px);
    border-bottom: 2px dashed #d07a12; }
.previa-aura .costura span { background: #fff; color: #9a5a0c; font-size: .8rem; font-weight: 600; padding: 0 .4rem; border-radius: .2rem; }

/* Escolha do layout pelo cliente: botões grandes por marca */
.escolha-layout { display: flex; align-items: center; gap: .6rem; border: 1px solid #cfd5dc; border-radius: .5rem; padding: .6rem .8rem;
    margin-bottom: .4rem; cursor: pointer; background: #fff; }
.escolha-layout input { width: 1.2rem; height: 1.2rem; }
.escolha-layout:has(input:checked) { border-color: var(--aura); background: var(--aura-claro); box-shadow: 0 0 0 2px var(--aura) inset; }

/* Fila de impressão por máquina */
.status-NaFila { background: #d6ecff; color: #0b4a80; }
.status-Imprimindo { background: #fff1c2; color: #6b4d00; }
.status-Erro { background: #f7d9d9; color: #842029; }
.fila-coluna { background: #eef1f5; border-radius: .5rem; padding: .6rem; min-height: 12rem; height: 100%; }
.fila-coluna.sem-maquina { background: #fbf6e9; }
.fila-titulo { border-bottom: 2px solid #d5dbe3; padding-bottom: .4rem; margin-bottom: .6rem; }
.fila-posicao { font-size: 1.4rem; font-weight: 700; color: #8a94a3; min-width: 1.6rem; text-align: center; }
.trabalho { border-left: 5px solid #0b4a80; }
.trabalho-Imprimindo { border-left-color: #d4a106; background: #fffcf0; }
.trabalho-Erro { border-left-color: #dc3545; background: #fff6f6; }
.trabalho details > summary { list-style: none; }
.trabalho details > summary::-webkit-details-marker { display: none; }
