/* Fiozato Logistics — Fila de peças aprovada. Classes .fz-*; usa as cores .pz-p-* de /pedidos/pedidos-ui.css (carregar os dois). */
.fz-fila { background: #ffffff; border: 1px solid #e5e5e5; border-radius: 3px; display: flex; flex-direction: column; padding-bottom: 14px; }

/* abas */
.fz-tabs { display: flex; padding: 0 16px; border-bottom: 1px solid #e5e5e5; }
.fz-tabs button { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border: 0; border-bottom: 2px solid transparent; background: transparent; font: inherit; font-size: 13.5px; font-weight: 500; color: #5f5f5f; cursor: pointer; }
.fz-tabs button span { font-size: 11px; padding: 1px 6px; border-radius: 2px; background: #efefef; }
.fz-tabs button.is-on { border-bottom-color: #000000; font-weight: 700; color: #111111; }
.fz-tabs button.is-on span { background: #f2ff58; }

/* busca, filtros, legenda */
.fz-toolbar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; flex-wrap: wrap; }
.ct-bar + .fz-toolbar { padding-top: 0; } /* quando o seletor das 3 abas vem antes da busca */
.fz-search { display: flex; align-items: center; gap: 8px; width: 320px; height: 36px; padding: 0 12px; box-sizing: border-box; border: 1px solid #d4d4d4; border-radius: 3px; color: #5f5f5f; }
.fz-search input { border: 0; outline: 0; flex-grow: 1; font: inherit; font-size: 13px; background: transparent; }
.fz-legends { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 0 16px 14px; border-bottom: 1px solid #e5e5e5; }
.fz-legend { display: inline-flex; align-items: center; gap: 6px; padding: 2px; border: 0; border-radius: 4px; background: transparent; cursor: pointer; font: inherit; }
.fz-legend b { font-size: 12px; }
.fz-legend.is-on { outline: 2px solid #000000; outline-offset: 1px; }

/* resumo do corte: três blocos + cartões por produto */
.fz-summary { margin: 0 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.fz-tiles { display: flex; gap: 10px; }
.fz-tile { flex: 1; min-width: 0; border-radius: 3px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.fz-tile > div:first-child { display: flex; flex-direction: column; gap: 3px; }
.fz-tile small { font-size: 11px; font-weight: 700; letter-spacing: .1em; white-space: nowrap; }
.fz-tile strong { font-size: 36px; line-height: 1; white-space: nowrap; }
.fz-tile span { font-size: 12.5px; opacity: .85; }
.fz-tile-total { background: #111111; color: #ffffff; }
.fz-tile-now { background: #f2ff58; color: #111111; }
.fz-tile-now { flex: 1.45; }
.fz-tile-now.is-empty { background: #f7f7f7; color: #5f5f5f; }
.fz-tile-rest { background: #f1f1f1; color: #111111; }
.fz-tile-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fz-bulk-actions { align-items: flex-end; }
.fz-selection-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fz-tile-now .fz-btn-ghost { color: #111111; border-color: #777777; }
.fz-bulk-status { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 10px; border: 1px solid #111111; border-radius: 3px; background: #ffffff; color: #111111; }
.fz-bulk-status > span { font-size: 11px; font-weight: 700; white-space: nowrap; opacity: 1; }
.fz-bulk-status select { min-width: 154px; border: 0; outline: 0; background: #ffffff; color: #111111; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.fz-bulk-status:has(select:disabled) { opacity: .45; }
.fz-bulk-status select:disabled { cursor: default; }
.fz-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 12px; border: 1px solid #d4d4d4; border-radius: 3px; background: #ffffff; color: #111111; font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.fz-btn-primary { background: #000000; color: #ffffff; border-color: #000000; }
.fz-btn-ghost { background: transparent; color: #ffffff; border-color: #777777; font-weight: 600; }
.fz-btn-icon { width: 34px; height: 34px; padding: 0; font-size: 18px; line-height: 1; }
.fz-btn:disabled { opacity: .45; cursor: default; }
.fz-cardsbox { display: flex; flex-direction: column; gap: 10px; }
.fz-cards-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.fz-cards-head > div { display: flex; align-items: center; gap: 8px; }
.fz-cards-head b { font-size: 12px; letter-spacing: .1em; }
.fz-cards-head span { font-size: 12.5px; color: #5f5f5f; }
.fz-cards-head .fz-btn { height: 34px; font-weight: 600; }
.fz-cards { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: #111111 #e5e5e5; }
.fz-cards::-webkit-scrollbar { height: 6px; }
.fz-cards::-webkit-scrollbar-track { background: #e5e5e5; border-radius: 3px; }
.fz-cards::-webkit-scrollbar-thumb { background: #111111; border-radius: 3px; }
.fz-cards.is-expanded { flex-wrap: wrap; overflow-x: visible; }
.fz-card { flex: 0 0 300px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid #cfcfcf; border-radius: 3px; background: #ffffff; color: #111111; font: inherit; text-align: left; cursor: pointer; }
.fz-card.is-marked { border: 2px solid #000000; padding: 11px; }
.fz-card.is-locked { border-color: #e7c3c8; background: #fcf4f5; }
.fz-card-top { display: flex; gap: 10px; align-items: center; }
.fz-card-name { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; min-width: 0; }
.fz-card-name b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fz-card-name small { font-size: 11px; color: #5f5f5f; }
.fz-card-num { display: flex; flex-direction: column; align-items: flex-end; }
.fz-card-num strong { font-size: 24px; line-height: 1; }
.fz-card.is-locked .fz-card-num strong { color: #b52f3e; }
.fz-card-num small { font-size: 10px; color: #5f5f5f; }
.fz-card-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fz-card-line > span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.fz-card-line small { font-size: 11.5px; color: #5f5f5f; font-weight: 500; }
.fz-card-foot { font-size: 11.5px; color: #5f5f5f; margin-top: auto; }
.fz-card-foot.on { color: #111111; font-weight: 700; }

/* grade de tamanhos */
.fz-grid { display: inline-flex; gap: 4px; }
.fz-cell { display: inline-flex; flex-direction: column; width: 34px; border-radius: 3px; border: 1.5px solid #dcdcdc; overflow: hidden; color: #b0b0b0; }
.fz-cell > span { display: flex; flex-direction: column; align-items: center; padding: 4px 0 3px; }
.fz-cell small { font-size: 9.5px; font-weight: 700; line-height: 1; }
.fz-cell b { font-size: 14px; line-height: 1.1; }
.fz-cell i { height: 15px; display: flex; align-items: center; justify-content: center; font-size: 9.5px; font-weight: 800; font-style: normal; color: transparent; border-top: 1px solid transparent; }
.fz-cell.has { border-color: #111111; background: #f2ff58; color: #111111; }
.fz-cell i.on { background: #111111; color: #f2ff58; border-top-color: #111111; }
.fz-cell u { display: flex; height: 16px; border-top: 1px solid #dcdcdc; background: #ffffff; text-decoration: none; }
.fz-cell u button { flex: 1; padding: 0; border: 0; background: transparent; color: #111111; font: inherit; font-size: 12.5px; font-weight: 700; line-height: 15px; cursor: pointer; }
.fz-cell u button + button { border-left: 1px solid #dcdcdc; }
.fz-cell u button:disabled { color: #c4c4c4; cursor: default; }
.fz-grid-dark .fz-cell u { background: #111111; border-top-color: #444444; }
.fz-grid-dark .fz-cell u button { color: #ffffff; }
.fz-grid-dark .fz-cell u button + button { border-left-color: #444444; }
.fz-grid-dark .fz-cell u button:disabled { color: #555555; }
.fz-grid-dark .fz-cell { border-color: #444444; color: #777777; }
.fz-grid-dark .fz-cell.has { border-color: #ffffff; color: #111111; }
.fz-grid-big .fz-cell { width: 38px; }
.fz-grid-big .fz-cell b { font-size: 17px; }

/* tabela */
.fz-body { padding: 0 16px; }
.fz-head, .fz-row { display: grid; grid-template-columns: 30px 40px 110px minmax(0, 1fr) 50px 80px 90px 130px 210px; align-items: center; column-gap: 12px; }
.fz-head { padding: 12px 16px 8px 40px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; color: #5f5f5f; }

/* produto: faixa preta */
.fz-product { margin-top: 14px; border: 1px solid #000000; }
.fz-product:first-of-type { margin-top: 0; }
.fz-product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 16px; background: #f6f6f6; border-bottom: 1px solid #dddddd; }
.fz-product-actions .fz-bulk-status { flex-wrap: wrap; padding: 8px 10px; }
.fz-product-actions .fz-bulk-status > span { white-space: normal; }
.fz-phead { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #000000; color: #ffffff; }
.fz-phead > input, .fz-row > input { width: 16px; height: 16px; margin: 0; accent-color: #000000; }
.fz-phead > input { accent-color: #f2ff58; }
.fz-pinfo { display: flex; flex-direction: column; gap: 4px; flex-grow: 1; min-width: 0; }
.fz-pinfo > b { font-size: 16px; }
.fz-pinfo > span { font-size: 12px; color: #bdbdbd; }
.fz-pinfo > span b { color: #ffffff; }
.fz-swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.fz-swatch { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 11px; background: #ffffff; color: #111111; font-size: 12px; font-weight: 600; }
.fz-dot { display: inline-block; border-radius: 50%; border: 1px solid #9a9a9a; box-sizing: border-box; flex-shrink: 0; }
.fz-dot-dark { border-color: #ffffff; }
.fz-counts { display: flex; align-items: center; gap: 12px; padding: 0 14px; border-left: 1px solid #333333; border-right: 1px solid #333333; flex-shrink: 0; }
.fz-num { display: flex; flex-direction: column; align-items: center; min-width: 74px; }
.fz-num strong { font-size: 34px; line-height: 1; color: #ffffff; }
.fz-num strong.is-cut { color: #f2ff58; }
.fz-num strong.is-locked { color: #ff9aa5; }
.fz-num strong.is-zero { color: #555555; }
.fz-num small { font-size: 10.5px; letter-spacing: .08em; color: #bdbdbd; }
.fz-blocks { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; flex-shrink: 0; white-space: nowrap; }
.fz-seg { display: inline-flex; border: 1px solid #555555; border-radius: 3px; overflow: hidden; }
.fz-seg button { height: 28px; padding: 0 10px; border: 0; border-right: 1px solid #444444; background: transparent; color: #cfcfcf; font: inherit; font-size: 12px; font-weight: 500; cursor: pointer; }
.fz-seg button:last-child { border-right: 0; }
.fz-seg button.is-on { background: #ffffff; color: #111111; font-weight: 700; }
.fz-seg button.is-on.is-bad { background: #b52f3e; color: #ffffff; }
.fz-warn { display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: #b52f3e; color: #ffffff; font-size: 12.5px; }

/* cor */
.fz-color { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 40px; background: #f3f3f3; border-top: 1px solid #e5e5e5; }
.fz-color b { font-size: 13px; }
.fz-color > span { font-size: 12.5px; color: #5f5f5f; }
.fz-color .fz-grid { margin-left: auto; }

/* peça */
.fz-row { min-height: 60px; padding: 4px 16px 4px 40px; border-top: 1px solid #eeeeee; background: #ffffff; }
.fz-row.is-selected { background: #fbfde6; }
.fz-row.is-locked { background: #fcf4f5; }
.fz-row.is-ready { background: #f4faf6; }
.fz-photo { display: inline-flex; align-items: center; justify-content: center; object-fit: cover; background: #f1f1f1; border: 1px solid #e5e5e5; border-radius: 2px; font-size: 9.5px; color: #9a9a9a; box-sizing: border-box; flex-shrink: 0; }
.fz-photo-dark { background: #2a2a2a; border-color: #444444; }
.fz-order { padding: 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: #111111; text-align: left; cursor: pointer; }
.fz-order:hover { text-decoration: underline; }
.fz-cust { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; min-width: 0; }
.fz-size { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 26px; padding: 0 6px; box-sizing: border-box; border: 1.5px solid #111111; border-radius: 3px; font-size: 12px; font-weight: 700; }
.fz-svc { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 2px; background: #efefef; font-size: 11.5px; font-weight: 700; }
.fz-svc.is-priority { background: #f2ff58; }
.fz-days { font-size: 12px; color: #5f5f5f; }
.fz-days.is-late { color: #b52f3e; font-weight: 600; }
.fz-printed { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: #5f5f5f; }
.fz-notprinted { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: #111111; }
.fz-notprinted i { width: 6px; height: 6px; border-radius: 50%; background: #1f4fbf; }
.fz-state { justify-self: end; }
.fz-locked { display: flex; flex-direction: column; gap: 2px; align-items: flex-end; }
.fz-locked small { font-size: 10.5px; color: #5f5f5f; }

/* seletor de situação */
.fz-picker { position: relative; display: inline-block; }
.fz-status { border-width: 0; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.fz-status.pz-p-nao_informado { border-width: 1.5px; }
.fz-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; width: 240px; border: 1px solid #cfcfcf; border-radius: 3px; overflow: hidden; background: #ffffff; box-shadow: 0 6px 18px rgba(0, 0, 0, .14); }
.fz-menu[hidden] { display: none; }
.fz-opt { display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 14px; border: 0; border-radius: 0; font: inherit; font-size: 13.5px; font-weight: 700; text-align: left; cursor: pointer; }
.fz-opt.pz-p-nao_informado { border: 0; box-shadow: inset 0 0 0 1.5px #bdbdbd; }
.fz-opt[aria-selected="true"] { box-shadow: inset 4px 0 0 #000000; }
.fz-opt-last { margin-top: 6px; }
.fz-opt { color: #ffffff; }
.fz-opt.pz-p-nao_informado { color: #555555; }
.fz-opt.pz-p-so_tecido { color: #6b4f2a; }
.fz-opt.pz-p-cortada { color: #8a3d0b; }
