/* Estoque, produção e custo */
.es-secoes{margin-bottom:12px;}
.es-topo{display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:10px;}
.es-topo h3{margin:0;}
.es-tab{overflow-x:auto;}
.es-n{text-align:right; white-space:nowrap;}
.neg{color:#b3261e !important;}
.es-base td{border-top:2px solid var(--linha); padding-top:9px;}
.es-por td{color:#5d544b; font-size:13.5px; padding-top:3px; padding-bottom:3px; border:0;}
.es-por td:first-child{padding-left:22px;}
.es-tag{display:inline-block; font-size:10.5px; font-weight:800; padding:0 7px; border-radius:7px; background:#eee7dd; color:#6b5f52; vertical-align:middle;}
.es-tag.am, #es-raiz mark{background:#fff0c2; color:#8a6200;}
#es-raiz mark{padding:0 4px; border-radius:4px;}
.es-card{display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; padding:11px 12px; border:1px solid var(--linha); border-radius:12px; margin-bottom:8px; background:#fffaf3;}
.es-acoes{display:flex; gap:8px; flex-wrap:wrap;}
.es-can td{color:#9a8f84; text-decoration:line-through;}
.es-row{cursor:pointer;} .es-row:hover{background:#fff7ee;}
.es-fichas{display:grid; grid-template-columns:repeat(auto-fill, minmax(270px, 1fr)); gap:8px; margin-bottom:14px;}
.es-ficha{border:1px solid var(--linha); border-radius:12px; padding:9px 11px; cursor:pointer; background:#fff;}
.es-ficha:hover{background:#fff7ee;} .es-ficha.pend{border-color:#e8c260;}
.es-ficha small{color:#6b5f52; line-height:1.5;}
.es-fn{display:flex; justify-content:space-between; gap:8px; margin-bottom:3px;}
.ef-l{display:flex; align-items:center; gap:6px; margin-bottom:6px; flex-wrap:wrap;}
.ef-l select{flex:1 1 180px; min-width:0; padding:7px;}
.ef-l input:not([type=checkbox]){width:92px; padding:7px;}
.ef-l span{min-width:52px; color:#6b5f52; font-size:13px;}
.ef-l small{flex-basis:100%; color:#8a6200;}
.ef-l.pend input{background:#fff7dc;}
.ec-l{border-bottom:1px dashed var(--linha); padding:6px 0;} .ec-l small{color:#6b5f52;}
.es-cont{max-height:52vh; overflow-y:auto; padding-right:4px;}
.es-var{font-size:12.5px; font-weight:800; color:#6b5f52; white-space:nowrap;}
.es-var.alta{color:#b3261e;} .es-var.queda{color:#1b7a3a;}
.es-forn h3{margin:0 0 2px;} .es-forn small{color:#6b5f52;} .es-inativo{opacity:.6;}
.es-faisca{vertical-align:middle;}
.es-marcar{display:grid; grid-template-columns:repeat(auto-fill, minmax(190px, 1fr)); gap:4px 10px; max-height:38vh;}
.es-marcar label{display:flex; gap:6px; align-items:center; font-size:13.5px; padding:3px 0;}
.es-graf{position:relative; background:#fff; border:1px solid var(--linha); border-radius:12px; padding:10px 12px 4px; margin-bottom:12px;}
.es-eixo{font-size:11.5px; fill:#6b5f52; color:#6b5f52;}
.es-rot{font-size:12px; font-weight:700; fill:#3b332b;}
.es-leg{display:flex; flex-wrap:wrap; gap:4px 14px; font-size:12.5px; color:#3b332b; margin-bottom:4px;}
.es-leg i{display:inline-block; width:10px; height:10px; border-radius:50%; margin-right:5px;}
.es-alvo{cursor:pointer; outline:none;} .es-alvo:focus-visible{stroke:#3b332b; stroke-width:1.5;}
.es-dica{position:absolute; width:170px; background:#2b241e; color:#fff; font-size:12.5px; line-height:1.4; padding:7px 9px; border-radius:9px; pointer-events:none; z-index:2;}
.es-op{display:block; width:100%; text-align:left; background:#fff; border:1px solid var(--linha); border-radius:10px; padding:8px 10px; margin-bottom:6px; cursor:pointer; font:inherit;}
.es-op:hover{background:#fff7ee;} .es-op.on{border-color:#e8590c; background:#fff3e8;}
.es-op-s{float:right; font-size:12.5px; font-weight:700; color:#1b7a3a;} .es-op small{display:block; color:#6b5f52; margin-top:2px;}
.es-op.sem{opacity:.55;}
.es-prio{display:inline-block; font-size:10.5px; font-weight:800; padding:1px 7px; border-radius:7px; white-space:nowrap;}
.es-prio.p3{background:#fde0e0; color:#b3261e;} .es-prio.p2{background:#ffe3cc; color:#a34700;} .es-prio.p1{background:#fff0c2; color:#8a6200;}
#es-precisa small{color:#6b5f52;}
.es-rotc{font-size:12.5px; font-weight:800; color:#6b5f52; align-self:center; margin:0 2px 0 8px;} .es-rotc:first-child{margin-left:0;}
.es-okl td{color:#9a8f84;} .es-lc h3{margin:0 0 2px;} .es-lc small{color:#6b5f52;}
#es-raiz mark.es-estim, mark.es-estim{background:#ffe3cc; color:#a34700; padding:0 4px; border-radius:4px;}
.es-ficha.estim{border-color:#f0b27a; border-style:dashed;}
.ef-l.estim input:not([type=checkbox]){background:#fff1e3;} .es-conf{color:#1b7a3a; font-weight:800;}

/* nota por foto */
.es-bolha{background:#c62828; color:#fff; border-radius:999px; padding:0 7px; font-size:12px; margin-left:4px;}
.es-nt{display:inline-block; padding:2px 9px; border-radius:999px; font-size:12.5px; font-weight:700; background:#eee; color:#444;}
.es-nt-conf{background:#fff1d6; color:#8a5a00;} .es-nt-ok{background:#e2f4e6; color:#1b7a3a;} .es-nt-rep, .es-nt-erro{background:#fde8e8; color:#8f1d1d;} .es-nt-lendo{background:#e8eefc; color:#274690;}
.es-nt-av{color:#b3261e; font-weight:700;} .es-or-ok{color:#1b7a3a; font-weight:700;} .es-or-sug{color:#8a5a00; font-weight:700;}
.modal.es-modal-nota{max-width:1180px; width:96vw;}
.es-nota{display:flex; gap:16px; align-items:flex-start; flex-wrap:wrap;}
.es-nota-foto{flex:1 1 300px; max-width:440px; position:sticky; top:0;}
.es-nota-img{border:1px solid var(--linha); border-radius:12px; background:#faf6f0; max-height:72vh; overflow:auto; min-height:120px;}
.es-nota-img img{display:block; width:100%;}
.es-nota-dados{flex:2 1 420px; min-width:0;}
.es-nota-cab{display:flex; gap:8px; flex-wrap:wrap;}
.es-nota-soma{text-align:right; margin:10px 0 0;}
.en-l.en-ign{opacity:.55;} .en-dica{color:#6b5f52;}
@media (max-width:760px){ .es-nota-foto{position:static; max-width:none;} .es-nota-img{max-height:46vh;} }

/* ---- 033: pagamento da nota (vai para o financeiro) ---- */
.es-pg{margin-top:12px; padding:10px 12px; border:1px solid #cfe6d6; background:#f1faf4; border-radius:12px;}
.es-pg small{color:var(--suave);} .es-pg .es-nota-cab{margin-top:4px;}
.es-pg-check{display:flex; align-items:center; gap:7px; height:40px; font-weight:700; cursor:pointer;} .es-pg-check input{width:auto;}
button.es-nt-fin{border:1px solid #aedcc2; background:#e7f6ec; color:#14532d; cursor:pointer; font:inherit; font-size:11.5px; font-weight:800; margin-top:4px;}
/* fechamento do turno */
.fech-g{background:#f3ede4;font-size:12.5px;padding:5px 10px;color:#6b5f52;border-radius:8px;margin:10px 0 4px;font-weight:700}
.fech-l{display:flex;align-items:center;gap:8px;padding:7px 4px;border-bottom:1px solid var(--linha)}
.fech-n{flex:1;min-width:0}.fech-n b{font-size:14px}.fech-m{font-size:11.5px;color:#6b5f52;margin-top:2px}
.fech-c{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:10.5px;color:#6b5f52}
.fech-c input{width:68px;text-align:right;padding:7px 6px;font-size:15px}
.fech-c input[data-fp]:not(:placeholder-shown){background:#e8f7ec}.fech-c input[data-fs]:not(:placeholder-shown){background:#fff4d6}
.es-fl{list-style:none; margin:6px 0 0; padding:0; color:#4a4038; font-size:12.5px; line-height:1.45;}
.es-fl li{padding:2px 0; border-top:1px dashed #eee6dc;} .es-fl li:first-child{border-top:0;} .es-fl mark{padding:0 3px; border-radius:4px;}
.es-fc{display:block; margin-top:6px; padding-top:6px; border-top:1px solid #eee6dc; color:#4a4038;}
.es-fc span{display:flex; justify-content:space-between; gap:8px; padding:1px 0;} .es-fc i{color:#8a7d70; font-style:normal; font-size:11px; flex:1; margin-left:6px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;} .es-base .es-ficha{cursor:pointer;}
.ct-g{background:#f1e8dc; font-weight:700; padding:6px 10px; border-radius:8px; margin:10px 0 4px;}
.ct-l{display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:8px; align-items:end; padding:6px 0; border-bottom:1px solid var(--linha);}
.ct-n small{display:block; color:#6b5f52;} .ct-emb{width:64px; padding:2px 6px; font-size:13px; text-align:right;} .ct-c{display:flex; flex-direction:column; gap:2px;} .ct-c span{font-size:11px; color:#6b5f52;} .ct-c input{width:100%;} .ct-c em{font-size:11px; color:#6b5f52; font-style:normal;}
@media (max-width:600px){ .ct-l{grid-template-columns:1fr 1fr;} .ct-n{grid-column:1/3;} .ct-vazio{display:none;} }

.es-grupo td{background:#f6f1ea; color:#6b5f52; font-size:12px; padding:4px 8px;} .es-prod-falta td{background:#fff7ee;}
