/* Planar CNC Cloud — plano de corte (site e plugin). Cores próprias, sem depender da página que carrega. */
.pcorte { --pc-linha: #d6d3cc; --pc-tinta: #1f1f1f; --pc-mudo: #5f5f5f; --pc-acento: #b4561a; --pc-fundo: #fafaf8; color: var(--pc-tinta); font-size: 13px; }
.pcorte [hidden] { display: none !important; }
.pcorte fieldset { border: 1px solid var(--pc-linha); background: #fff; margin: 0 0 12px; padding: 12px 16px 14px; min-width: 0; }
.pcorte legend { font-weight: 700; font-size: 14px; padding: 0 6px; margin-left: -6px; }
.pcorte .pc-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px 14px; align-items: end; }
.pcorte label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; min-width: 0; }
.pcorte select, .pcorte input:not([type=checkbox]) { min-height: 34px; font: inherit; font-size: 13px; font-weight: 400; padding: 5px 8px; border: 1px solid #9a9a9a; background: #fff; color: var(--pc-tinta); border-radius: 0; width: 100%; }
.pcorte .pc-marca { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; font-size: 13px; }
.pcorte .pc-marca input { width: 16px; height: 16px; margin: 0; flex: none; }
.pcorte button { font: inherit; font-size: 12px; font-weight: 600; min-height: 30px; padding: 0 10px; border: 1px solid #9a9a9a; background: #fff; color: var(--pc-tinta); cursor: pointer; border-radius: 0; }
.pcorte button:hover { border-color: var(--pc-acento); color: var(--pc-acento); }
.pcorte .pc-corpo { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 12px; align-items: start; }
.pcorte .pc-quadro { border: 1px solid var(--pc-linha); background: #fff; min-width: 0; }
.pcorte .pc-barra { display: flex; justify-content: space-between; gap: 10px; align-items: center; border-bottom: 1px solid var(--pc-linha); padding: 6px 8px; }
.pcorte .pc-chapas { display: flex; gap: 4px; flex-wrap: wrap; min-width: 0; }
.pcorte .pc-chapas button[aria-selected=true] { border-color: var(--pc-tinta); background: var(--pc-tinta); color: #fff; }
.pcorte .pc-chapas b { display: inline-block; min-width: 16px; padding: 0 4px; background: var(--pc-acento); color: #fff; font-size: 10px; margin-left: 4px; }
.pcorte .pc-zoom { display: flex; gap: 4px; flex: none; }
.pc-legenda { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 6px 10px; color: var(--pc-mudo, #5f5f5f); font-size: 11.5px; border-bottom: 1px solid var(--pc-linha, #d6d3cc); }
.pc-legenda span { display: inline-flex; align-items: center; gap: 6px; }
.pc-legenda [hidden] { display: none !important; }
.pc-legenda i.l { display: inline-block; width: 20px; border-top-width: 2px; border-top-style: solid; }
.pc-legenda .c-cont { border-color: #2b2b2b; } .pc-legenda .c-int { border-color: #1f5fbf; } .pc-legenda .c-part { border-color: #0a9f4f; }
.pc-legenda .c-div { border-color: #d62828; } .pc-legenda .c-fora { border-color: #c62828; }
.pc-legenda .c-ccs1 { border-color: #7b2cbf; } .pc-legenda .c-elim { border-color: #8f8f8f; }
.pc-legenda i.l.g { border-top-width: 4px; }
.pc-legenda i.l.t { border-top-style: dashed; }
.pc-legenda i.b { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #f39200; border: 1px solid #7a4a00; }
.pcorte .pc-dica { margin-left: auto; }
.pcorte .pc-svg { height: 560px; overflow: auto; background: var(--pc-fundo); padding: 6px; outline: none; }
.pcorte .pc-svg svg { display: block; width: 100%; height: 100%; margin: 0 auto; }
.pcorte .pc-svg .vetor, .pcorte .pc-svg .alvo { cursor: pointer; outline: none; }
.pcorte .pc-svg .vetor:hover .traco, .pcorte .pc-svg .vetor:hover .seta, .pcorte .pc-svg .vetor:focus .traco { stroke: var(--pc-acento); }
.pcorte .pc-svg .vetor.sel .traco, .pcorte .pc-svg .vetor.sel .seta { stroke: #e0560f; }
.pcorte .pc-svg .vetor.sel .traco { filter: drop-shadow(0 0 2px rgba(224, 86, 15, .9)); }
.pcorte .pc-svg .vetor.ajustado .inicio { fill: #ffd34d; }
.pcorte.pc-carregando .pc-svg, .pc-quadro.pc-carregando .pc-svg { opacity: .55; transition: opacity .15s; }
.pcorte .pc-lateral { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pc-painel { border: 1px solid var(--pc-linha, #d6d3cc); background: #fff; padding: 10px 12px; display: flex; flex-direction: column; gap: 9px; max-height: 660px; overflow: auto; font-size: 13px; }
.pc-lista { border: 1px solid var(--pc-linha, #d6d3cc); background: #fff; max-height: 330px; overflow: auto; font-size: 13px; }
.pc-lista-topo { position: sticky; top: 0; background: #f4f2ee; padding: 7px 10px; font-size: 12px; color: #444; border-bottom: 1px solid #d6d3cc; z-index: 1; }
.pc-item { display: grid; grid-template-columns: 26px 18px minmax(0, 1fr); gap: 6px; align-items: start; width: 100%; text-align: left; border: 0 !important; border-bottom: 1px solid #ece9e3 !important; background: #fff; padding: 6px 10px !important; min-height: 0 !important; font: inherit; cursor: pointer; color: #1f1f1f; border-radius: 0; }
.pc-item:hover { background: #faf4ee; color: #1f1f1f !important; }
.pc-item.sel { background: #fde9dc; box-shadow: inset 3px 0 0 #e0560f; }
.pc-item .pc-ord { font-weight: 800; font-size: 12px; color: #555; text-align: right; padding-top: 1px; }
.pc-item .pc-ic { font-size: 14px; line-height: 1.2; }
.pc-item.t-externo .pc-ic, .pc-item.t-grupo .pc-ic, .pc-item.t-ccs_individual .pc-ic { color: #2b2b2b; } .pc-item.t-ccs_primeira .pc-ic { color: #7b2cbf; } .pc-item.t-interno .pc-ic { color: #1f5fbf; } .pc-item.t-particao .pc-ic { color: #0a9f4f; }
.pc-item .pc-txt { display: flex; flex-direction: column; min-width: 0; }
.pc-item .pc-txt b { font-size: 12.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-item .pc-txt small { font-size: 11.5px; color: #5f5f5f; font-weight: 400; }
.pc-item.aj .pc-ord { color: #b4561a; }
.pcorte .pc-svg.pc-movendo, .pcorte .pc-svg.pc-movendo * { cursor: grabbing !important; }
.pc-painel h4 { margin: 2px 0 0; font-size: 13px; }
.pc-mudo { color: var(--pc-mudo); margin: 0; font-size: 12px; line-height: 1.45; }
.pc-acoes { display: flex; gap: 6px; flex-wrap: wrap; }
.pc-linha { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; }
.pc-avisos { margin: 0; padding-left: 16px; font-size: 12px; color: #7a5200; }
.pc-erro { color: #941c0a; margin: 0; }
.pcorte .pc-vazio { color: var(--pc-mudo); padding: 20px; }
@media (max-width: 900px) {
  .pcorte .pc-corpo { grid-template-columns: 1fr; }
  .pcorte .pc-svg { height: 420px; }
  .pcorte .pc-dica { margin-left: 0; }
}

/* prévia da estratégia (desenho) */
.pc-figura { margin: 12px 0 0; background: #fbfaf7; border: 1px solid #e3e0d9; padding: 8px; max-width: 360px; }
.pc-figura svg { display: block; width: 100%; height: auto; max-height: 380px; }
.pc-figura figcaption { font-size: 11.5px; color: #5f5f5f; margin-top: 4px; line-height: 1.4; }

/* estilos de corte e caixa informativa (abaixo dos estilos, para qualquer estilo) */
.pcorte .pc-estilos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; margin: 14px 0 0; }
.pcorte .pc-estilos .pc-rotulo { grid-column: 1 / -1; font-size: 12px; font-weight: 600; }
.pcorte .pc-estilo { flex-direction: row; align-items: flex-start; gap: 8px; border: 1px solid #c9c5bc; background: #fff; padding: 8px 10px; cursor: pointer; font-weight: 400; }
.pcorte .pc-estilo:hover { border-color: var(--pc-acento); }
.pcorte .pc-estilo.sel { border-color: var(--pc-tinta); box-shadow: inset 3px 0 0 var(--pc-acento); background: #fbf7f2; }
.pcorte .pc-estilo input { margin: 2px 0 0; width: 15px; height: 15px; flex: none; accent-color: var(--pc-acento); }
.pcorte .pc-estilo span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pcorte .pc-estilo b { font-size: 13px; }
.pcorte .pc-estilo small { font-size: 11.5px; color: var(--pc-mudo); line-height: 1.3; }
.pcorte .pc-grade-estilo { margin-top: 10px; }
.pcorte .pc-grade-estilo:not(:has(label:not([hidden]))) { display: none; }
.pcorte .pc-info { margin: 12px 0 0; border: 1px solid #c9c5bc; border-top: 3px solid var(--pc-tinta); background: #fff; font-size: 12.5px; }
.pcorte .pc-info header { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px 0; min-width: 0; }
.pcorte .pc-info header b { font-size: 12.5px; letter-spacing: .02em; }
.pcorte .pc-info header span { font-size: 11px; color: var(--pc-mudo); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcorte .pc-info > p { margin: 6px 12px 10px; line-height: 1.5; color: #333; }
.pcorte .pc-dados { margin: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid #ece9e3; }
.pcorte .pc-dados div { display: grid; grid-template-columns: minmax(120px, 42%) 1fr; gap: 8px; padding: 5px 12px; border-bottom: 1px solid #f0ede8; }
.pcorte .pc-dados dt { color: var(--pc-mudo); font-size: 11.5px; }
.pcorte .pc-dados dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.pcorte .pc-seq { padding: 8px 12px 10px; border-bottom: 1px solid #ece9e3; }
.pcorte .pc-seq > b { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: #444; }
.pcorte .pc-seq ol { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; line-height: 1.4; }
.pcorte .pc-seq .pc-mais { list-style: none; margin-left: -18px; color: var(--pc-mudo); }
.pcorte .pc-alertas { margin: 0; padding: 8px 12px 10px 28px; background: #fff8e8; color: #6b4a00; display: flex; flex-direction: column; gap: 3px; line-height: 1.45; font-size: 12px; }
