/* Produção (prefixo pd-) · visão geral, tela do setor (tablet) e "Onde estão meus pedidos" (vendedor).
   Só tokens. Visual limpo: fundos lisos, bordas sólidas, sem listras, sem tracejados, sem brilho, sem degradê.
   Urgência tem um sinal só: borda colorida (atrasada = crit, vence hoje/amanhã = warn) + texto do prazo. */

.pd-quiet .rise, .pd-quiet .progress i, .pd-quiet .pd-chk__box { animation: none !important; transition: none !important; }

/* ---------- Indicadores (.mini global: número em cima, rótulo embaixo) ---------- */
.pd-kpis, .pd-skpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }

/* ---------- Títulos de seção ---------- */
.pd-sec { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 12px; }
.pd-sec h2 { display: flex; align-items: center; gap: 8px; font-size: var(--fs-lg); font-weight: 500; }
.pd-sec p { font-size: var(--fs-xs); margin-top: 2px; }
.pd-sec__n { font-size: var(--fs-xs); font-weight: 600; min-width: 22px; height: 22px; padding: 0 7px; border-radius: var(--r-pill); display: inline-grid; place-items: center; background: var(--s3); color: var(--tx-2); }

/* ---------- Aviso de bloqueio (liso, com borda) ---------- */
.pd-aviso { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; margin-bottom: 18px; border-radius: var(--r-md); background: var(--s1); border: 1px solid var(--line-2); border-left: 3px solid var(--warn); }
.pd-aviso__ic { color: var(--warn); display: grid; flex: none; }
.pd-aviso__ic svg { width: 20px; height: 20px; }
.pd-aviso > div { flex: 1 1 320px; min-width: 0; }
.pd-aviso b { font-weight: 600; font-size: var(--fs-sm); }
.pd-aviso p { color: var(--tx-2); font-size: var(--fs-sm); margin-top: 2px; line-height: 1.45; }

/* ---------- Quadro por setor (6 colunas cabem a partir de 1280 px) ---------- */
.pd-board-wrap { margin-bottom: 26px; min-width: 0; }
.pd-rola { display: none; align-items: center; gap: 6px; margin: -4px 0 10px; font-size: var(--fs-xs); color: var(--tx-3); }
.pd-rola svg { width: 15px; height: 15px; color: var(--gold-tx); }
.pd-board-wrap.rola .pd-rola { display: flex; }
.pd-board { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(148px, 1fr)); gap: 10px; align-items: start; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.pd-col { scroll-snap-align: start; display: flex; flex-direction: column; min-width: 0; min-height: 320px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line); }
.pd-col__head { display: grid; gap: 3px; padding: 12px 12px 10px; border-bottom: 1px solid var(--line); min-width: 0; }
.pd-col__t { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pd-col__t b { flex: 1; min-width: 0; font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-col__ic { display: grid; color: var(--tx-3); flex: none; }
.pd-col__ic svg { width: 15px; height: 15px; }
.pd-col__go { width: 26px; height: 26px; margin: -4px -6px -4px 0; border-radius: 8px; display: grid; place-items: center; color: var(--tx-3); flex: none; }
.pd-col__go:hover { background: var(--s3); color: var(--tx); }
.pd-col__go svg { width: 15px; height: 15px; }
.pd-col__n { font-size: var(--fs-xs); color: var(--tx-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-col__u { font-size: var(--fs-2xs); color: var(--tx-3); }
.pd-col__u.crit { color: var(--crit); font-weight: 600; }
.pd-col__u.warn { color: var(--warn); font-weight: 600; }
.pd-col__body { display: grid; gap: 8px; align-content: start; padding: 8px; flex: 1; }
.pd-vazio { padding: 18px 10px; text-align: center; font-size: var(--fs-xs); color: var(--tx-4); }

/* Equipe do setor: avatares, o responsável primeiro e em destaque */
.pd-eq { display: flex; align-items: center; min-width: 0; margin-top: 5px; }
.pd-eq__a { display: grid; margin-left: -6px; border-radius: 50%; box-shadow: 0 0 0 2px var(--bg-2); }
.pd-eq__a:first-child { margin-left: 0; }
.pd-eq__a .avatar.sm { width: 22px; height: 22px; font-size: 9px; }
.pd-eq__a.resp .avatar.sm { width: 24px; height: 24px; box-shadow: 0 0 0 1.5px var(--gold); }
.pd-eq__mais { margin-left: 4px; font-size: var(--fs-2xs); color: var(--tx-3); }
.pd-eq__n { margin-left: 8px; font-size: var(--fs-2xs); color: var(--tx-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pd-eq__n small { color: var(--tx-4); font-size: inherit; }

/* Cartão da OS */
.pd-c { display: grid; gap: 5px; padding: 10px; min-width: 0; border-radius: var(--r-sm); background: var(--s2); border: 1px solid var(--line); cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); }
.pd-c:hover { border-color: var(--line-3); }
.pd-c:focus-visible, .pd-v:focus-visible { outline: 2px solid var(--gold-line); outline-offset: 2px; }
.pd-c.crit { border-left: 3px solid var(--crit); }
.pd-c.warn { border-left: 3px solid var(--warn); }
.pd-c__top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.pd-c__id { font-size: 11.5px; color: var(--tx-2); }
.pd-c__m3 { font-size: var(--fs-2xs); color: var(--tx-3); white-space: nowrap; }
.pd-c__cli { font-size: var(--fs-sm); font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.pd-c__desc { font-size: var(--fs-2xs); color: var(--tx-3); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pd-par { display: flex; gap: 5px; font-size: var(--fs-2xs); color: var(--crit); line-height: 1.4; font-weight: 500; }
.pd-par svg { width: 12px; height: 12px; flex: none; margin-top: 2px; }
.pd-c .pd-par span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pd-rt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 5px; font-size: var(--fs-2xs); color: var(--tx-3); line-height: 1.45; }
.pd-rt i { font-style: normal; color: var(--tx-4); }
.pd-rt span { display: inline-flex; align-items: center; gap: 3px; }
.pd-rt span.agora { color: var(--tx); font-weight: 600; }
.pd-rt span.feito { color: var(--tx-4); }
.pd-rt span svg { width: 11px; height: 11px; color: var(--ok); }
.pd-c__foot { display: grid; gap: 3px; margin-top: 2px; padding-top: 7px; border-top: 1px solid var(--line); }
.pd-prazo { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-2xs); color: var(--tx-3); white-space: nowrap; }
.pd-prazo svg { width: 12px; height: 12px; flex: none; }
.pd-prazo.crit { color: var(--crit); font-weight: 600; }
.pd-prazo.warn { color: var(--warn); font-weight: 600; }
.pd-prazo.pz-chip { height: 26px; padding: 0 10px; border-radius: var(--r-pill); background: var(--s3); font-size: var(--fs-xs); }
.pd-prazo.pz-chip.crit { background: var(--crit-soft); } .pd-prazo.pz-chip.warn { background: var(--warn-soft); }
.pd-prev { display: flex; align-items: flex-start; gap: 5px; font-size: var(--fs-2xs); color: var(--tx-2); line-height: 1.4; }
.pd-prev svg { width: 12px; height: 12px; flex: none; margin-top: 2px; color: var(--tx-3); }
.pd-prev.ok, .pd-prev.ok svg { color: var(--ok); }
.pd-prev em { font-style: normal; color: var(--warn); }

/* ---------- Cartões de baixo ---------- */
.pd-g { margin-bottom: 16px; }
.pd-g > .card { display: flex; flex-direction: column; min-width: 0; }
.pd-pad { padding: 14px 16px 16px; }
.pd-lista { display: grid; gap: 6px; min-width: 0; }
.pd-lk { font-family: var(--mono); font-size: inherit; color: var(--tx-2); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 2px; }
.pd-lk:hover { color: var(--tx); }

/* Máquinas */
.pd-mqs { display: grid; gap: 6px; padding: 14px 16px 16px; }
.pd-mq { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); min-width: 0; }
.pd-mq__st { display: grid; place-items: center; }
.pd-mq__st svg { width: 16px; height: 16px; }
.pd-mq__st.ok { color: var(--ok); } .pd-mq__st.crit { color: var(--crit); } .pd-mq__st.warn { color: var(--warn); }
.pd-mq__t { display: grid; gap: 1px; min-width: 0; }
.pd-mq__t b { font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-mq__t small { font-size: var(--fs-2xs); color: var(--tx-3); line-height: 1.4; }
.pd-mq__t small span { font-weight: 600; }
.pd-mq .btn { white-space: nowrap; }
.pd-mq.big { padding: 12px; }
.pd-mq.big .btn { min-height: 48px; border-radius: var(--r-md); }

/* Produção da semana por setor */
.pd-sem { display: grid; padding: 8px 16px 14px; }
.pd-sem__r { display: grid; grid-template-columns: minmax(0, 120px) minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; min-width: 0; }
.pd-sem__r + .pd-sem__r { border-top: 1px solid var(--line); }
.pd-sem__s { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: var(--fs-sm); }
.pd-sem__s svg { width: 15px; height: 15px; color: var(--tx-3); flex: none; }
.pd-sem__s b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-sem__v { font-size: var(--fs-sm); color: var(--tx-2); min-width: 0; }
.pd-sem__v > b { font-size: var(--fs-md); font-weight: 600; color: var(--tx); }
.pd-sem__v small { display: block; font-size: var(--fs-2xs); color: var(--tx-3); }
.pd-sem__n { font-size: var(--fs-xs); color: var(--tx-3); white-space: nowrap; }

/* Perdas */
.pd-perd { display: grid; gap: 12px; padding: 14px 16px 16px; }
.pd-perd__tot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pd-perd__tot > div { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); }
.pd-perd__tot b { font-size: var(--fs-xl); font-weight: 600; line-height: 1.15; }
.pd-perd__tot small { font-size: var(--fs-xs); color: var(--tx-3); }
.pd-perd__mot { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--fs-xs); color: var(--tx-3); }
.pd-perd__mot b { color: var(--tx); font-weight: 600; margin-left: 2px; }
.pd-pe, .pd-reg { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); min-width: 0; }
.pd-pe__q { min-width: 28px; height: 28px; padding: 0 6px; border-radius: 8px; display: grid; place-items: center; background: var(--warn-soft); color: var(--warn); font-weight: 600; font-size: var(--fs-sm); flex: none; }
.pd-pe__t, .pd-reg__t { display: grid; gap: 1px; flex: 1; min-width: 0; }
.pd-pe__t b, .pd-reg__t b { font-size: var(--fs-sm); font-weight: 500; line-height: 1.35; }
.pd-pe__t small, .pd-reg__t small { font-size: var(--fs-2xs); color: var(--tx-3); }
.pd-pe__v { font-size: var(--fs-xs); color: var(--tx-2); white-space: nowrap; }
.pd-reg__ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--s3); color: var(--tx-2); flex: none; }
.pd-reg__ic svg { width: 14px; height: 14px; }
.pd-reg.novo { border-color: var(--ok); background: var(--ok-soft); }
.pd-reg.novo .pd-reg__ic { background: var(--ok); color: var(--s1); }
.pd-reg__novo { font-size: var(--fs-2xs); font-weight: 600; color: var(--ok); flex: none; }

/* ---------- Agenda da semana ---------- */
.pd-agenda { margin-bottom: 8px; }
.pd-frota { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; padding: 16px 20px 0; }
.pd-frota.one { grid-template-columns: minmax(0, 1fr); padding: 14px 16px 16px; }
.pd-veic { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); min-width: 0; }
.pd-veic__ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--s3); color: var(--tx-2); flex: none; }
.pd-veic__ic svg { width: 16px; height: 16px; }
.pd-veic__t { display: grid; flex: 1; min-width: 0; }
.pd-veic__t b { font-size: var(--fs-sm); font-weight: 600; }
.pd-veic__t small { font-size: var(--fs-2xs); color: var(--tx-3); }
.pd-veic__f { flex-basis: 100%; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; padding-top: 8px; border-top: 1px solid var(--line); font-size: var(--fs-xs); min-width: 0; }
.pd-veic__f > span { display: inline-flex; align-items: center; gap: 5px; }
.pd-veic__f svg { width: 13px; height: 13px; }
.pd-tx-info { color: var(--info); }

.pd-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; padding: 16px 20px 20px; }
.pd-day { display: grid; gap: 8px; align-content: start; padding: 10px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line); min-width: 0; }
.pd-day.hoje { border-color: var(--gold-line); }
.pd-day__h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px 2px; font-size: var(--fs-sm); }
.pd-day__h b { font-weight: 600; }
.pd-day.hoje .pd-day__h small { color: var(--gold-tx); font-weight: 600; }
.pd-day__h small { font-size: var(--fs-2xs); }
.pd-ag { display: grid; gap: 4px; width: 100%; text-align: left; padding: 10px 11px; border-radius: var(--r-sm); background: var(--s2); border: 1px solid var(--line); min-width: 0; transition: border-color var(--t-fast); }
.pd-ag:hover { border-color: var(--line-3); }
.pd-ag__top { display: flex; align-items: center; gap: 6px; font-size: var(--fs-2xs); color: var(--tx-3); min-width: 0; }
.pd-ag__top svg { width: 13px; height: 13px; flex: none; }
.pd-ag__top .mono { color: var(--tx); font-size: var(--fs-xs); }
.pd-ag__top em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pd-ag__top .pd-ag__os { margin-left: auto; color: var(--tx-3); font-size: var(--fs-2xs); flex: none; }
.pd-ag > b { font-size: var(--fs-sm); font-weight: 600; line-height: 1.3; }
.pd-ag > small { font-size: var(--fs-2xs); color: var(--tx-3); line-height: 1.4; }
.pd-ag__res { display: flex; align-items: center; gap: 5px; font-size: var(--fs-2xs); color: var(--tx-2); }
.pd-ag__res svg { width: 12px; height: 12px; color: var(--tx-3); flex: none; }

/* ---------- Para quem vende ---------- */
.pd-vres { margin: -12px 0 20px; font-size: var(--fs-sm); color: var(--tx-2); }
.pd-vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; margin-bottom: 26px; }
.pd-v { display: grid; gap: 7px; align-content: start; padding: 14px 16px; border-radius: var(--r-md); background: var(--s1); border: 1px solid var(--line); cursor: pointer; min-width: 0; transition: border-color var(--t-fast); }
.pd-v:hover { border-color: var(--line-3); }
.pd-v.crit { border-left: 3px solid var(--crit); } .pd-v.warn { border-left: 3px solid var(--warn); }
.pd-v__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pd-v__cli { font-size: var(--fs-md); font-weight: 600; }
.pd-v__onde { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; font-size: var(--fs-sm); }
.pd-v__onde small { font-size: var(--fs-2xs); color: var(--tx-3); }
.pd-v__onde b { font-weight: 600; }
.pd-v .pd-rt { font-size: var(--fs-xs); }
.pd-v__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.pd-v__foot .pd-prev { font-size: var(--fs-xs); }
.pd-vazio-g { display: grid; justify-items: center; gap: 6px; padding: 40px 20px; text-align: center; }
.pd-vazio-g > svg { width: 26px; height: 26px; color: var(--ok); }
.pd-vazio-g b { font-size: var(--fs-md); }
.pd-vazio-g p { font-size: var(--fs-sm); max-width: 420px; }

/* ---------- Tela do setor (tablet) ---------- */
.pd-tabs { display: flex; gap: 8px; overflow-x: auto; margin: -4px 0 18px; padding: 4px 2px 6px; scrollbar-width: none; }
.pd-tabs::-webkit-scrollbar { display: none; }
.pd-tab { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 48px; padding: 0 16px; border-radius: var(--r-md); background: var(--s1); border: 1px solid var(--line-2); color: var(--tx-2); font-size: var(--fs-sm); white-space: nowrap; transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast); }
.pd-tab:hover { background: var(--s2); color: var(--tx); }
.pd-tab svg { width: 17px; height: 17px; }
.pd-tab em { font-style: normal; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-pill); display: grid; place-items: center; font-size: 11px; font-weight: 600; background: var(--s3); color: var(--tx); }
.pd-tab.on { background: var(--s3); border-color: var(--gold-line); color: var(--tx); font-weight: 500; }
.pd-tab.on svg { color: var(--gold-tx); }
.pd-tab.on em { background: var(--gold-soft); color: var(--gold-tx); }

.pd-shead { margin-bottom: 18px; align-items: center; }
.pd-shead h1 { display: flex; align-items: center; gap: 12px; }
.pd-shead__ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--s3); color: var(--gold-tx); border: 1px solid var(--line-2); flex: none; }
.pd-shead__ic svg { width: 21px; height: 21px; }
.pd-steam { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-steam__p { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: var(--r-pill); background: var(--s1); border: 1px solid var(--line); min-width: 0; }
.pd-steam__p.resp { border-color: var(--gold-line); }
.pd-steam__p .avatar.sm { width: 28px; height: 28px; font-size: 10.5px; }
.pd-steam__p > span { display: grid; line-height: 1.2; min-width: 0; }
.pd-steam__p b { font-size: var(--fs-sm); font-weight: 600; }
.pd-steam__p small { font-size: var(--fs-2xs); color: var(--tx-3); }
.pd-steam__p.resp small { color: var(--gold-tx); }

.pd-split { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.pd-split__main, .pd-split__side { display: grid; gap: 16px; min-width: 0; }

.pd-big { height: auto; min-height: 56px; padding: 8px 20px; border-radius: var(--r-md); font-size: var(--fs-md); white-space: normal; text-align: center; line-height: 1.25; }
.pd-big svg { width: 19px; height: 19px; flex: none; }

.pd-now { padding: 22px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.pd-now.warn { border-top: 3px solid var(--warn); } .pd-now.crit { border-top: 3px solid var(--crit); }
.pd-now__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pd-now__id { display: grid; gap: 2px; }
.pd-now__id small { font-size: var(--fs-2xs); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-tx); }
.pd-now__id .mono { font-size: 26px; font-weight: 500; letter-spacing: -.01em; }
.pd-now__cli b { font-size: var(--fs-xl); font-weight: 600; letter-spacing: -.01em; }
.pd-now__cli p { color: var(--tx-2); margin-top: 2px; }
.pd-now > .pd-par { font-size: var(--fs-sm); }
.pd-now > .pd-par svg { width: 15px; height: 15px; margin-top: 2px; }
.pd-now__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-now__meta > span { max-width: 100%; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); font-size: var(--fs-xs); color: var(--tx-2); min-width: 0; }
.pd-now__meta svg { width: 14px; height: 14px; color: var(--tx-3); flex: none; }
.pd-now__rot { display: grid; gap: 4px; }
.pd-now__rot small { font-size: var(--fs-2xs); color: var(--tx-3); }
.pd-now__rot .pd-rt { font-size: var(--fs-md); gap: 4px 8px; color: var(--tx-2); }
.pd-now__rot .pd-rt span svg { width: 14px; height: 14px; }
.pd-now__time { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--tx-2); }
.pd-now__time svg { width: 16px; height: 16px; color: var(--gold-tx); }
.pd-now__acts { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-now__acts .pd-go { flex: 1 1 280px; }
.pd-now__acts.sec { padding-top: 14px; border-top: 1px solid var(--line); }
.pd-now__acts.sec .btn { flex: 1 1 200px; }
.pd-auto { display: flex; gap: 8px; align-items: flex-start; margin-top: -4px; font-size: var(--fs-xs); color: var(--tx-3); line-height: 1.45; }
.pd-auto svg { width: 15px; height: 15px; flex: none; color: var(--ok); margin-top: 1px; }
.pd-auto b { color: var(--tx); font-weight: 600; }
.pd-now.vazio { padding: 48px 22px; }
.pd-now__empty { display: grid; justify-items: center; gap: 8px; text-align: center; }
.pd-now__empty > span { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.pd-now__empty > span svg { width: 24px; height: 24px; }
.pd-now__empty b { font-size: var(--fs-lg); }
.pd-now__empty p { max-width: 420px; font-size: var(--fs-sm); }

.pd-todo { display: grid; gap: 10px; }
.pd-todo__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: var(--fs-sm); }
.pd-todo__h > b { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--fs-md); }
.pd-todo__h svg { width: 17px; height: 17px; color: var(--gold-tx); }
.pd-todo .progress { height: 8px; }
.pd-todo .progress i { background: var(--ok); }
.pd-todo ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.pd-chk { width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line-2); text-align: left; transition: background var(--t-fast), border-color var(--t-fast); }
.pd-chk:hover { border-color: var(--line-3); }
.pd-chk__box { width: 34px; height: 34px; border-radius: 10px; border: 2px solid var(--line-3); display: grid; place-items: center; color: transparent; transition: background var(--t-fast), border-color var(--t-fast); }
.pd-chk__box svg { width: 20px; height: 20px; }
.pd-chk__t { display: grid; gap: 2px; min-width: 0; }
.pd-chk__t b { display: block; font-size: var(--fs-md); font-weight: 500; line-height: 1.35; }
.pd-chk__t .wood-dot { margin-right: 7px; vertical-align: 1px; }
.pd-chk__t .bitola { margin-left: 4px; vertical-align: 1px; }
.pd-chk__t small { font-size: var(--fs-xs); color: var(--tx-3); line-height: 1.4; }
.pd-chk__v { font-size: var(--fs-lg); font-weight: 600; white-space: nowrap; color: var(--tx); }
.pd-chk.on { background: var(--ok-soft); border-color: var(--ok-soft); }
.pd-chk.on .pd-chk__box { background: var(--ok); border-color: var(--ok); color: var(--s1); }
.pd-chk.on .pd-chk__t b { text-decoration: line-through; text-decoration-color: var(--tx-3); color: var(--tx-2); }
.pd-chk.on .pd-chk__v { color: var(--tx-3); }

.pd-fila__it { width: 100%; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 72px; padding: 12px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line); text-align: left; transition: background var(--t-fast), border-color var(--t-fast); }
.pd-fila__it.warn { border-left: 3px solid var(--warn); } .pd-fila__it.crit { border-left: 3px solid var(--crit); }
.pd-fila__it:hover { background: var(--s2); }
.pd-fila__it.on { background: var(--s3); border-color: var(--gold-line); }
.pd-fila__it.on.warn { border-left-color: var(--warn); } .pd-fila__it.on.crit { border-left-color: var(--crit); }
.pd-fila__n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--s3); font-weight: 600; font-size: var(--fs-sm); }
.pd-fila__it.on .pd-fila__n { background: var(--gold-soft); color: var(--gold-tx); }
.pd-fila__b { display: grid; gap: 3px; min-width: 0; }
.pd-fila__top { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; font-size: var(--fs-xs); }
.pd-fila__and { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-2xs); color: var(--gold-tx); }
.pd-fila__and svg { width: 12px; height: 12px; }
.pd-fila__b > b { font-size: var(--fs-md); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-fila__b > small { font-size: var(--fs-xs); color: var(--tx-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-fila__r { display: grid; justify-items: end; gap: 2px; }
.pd-fila__r b { font-size: var(--fs-md); white-space: nowrap; }
.pd-fila__r small { font-size: var(--fs-2xs); color: var(--tx-3); white-space: nowrap; }
.pd-cheg { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); min-width: 0; }
.pd-cheg > .mono { font-size: var(--fs-xs); color: var(--tx-2); }
.pd-cheg__t { display: grid; flex: 1; min-width: 0; }
.pd-cheg__t b { font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-cheg__t small { font-size: var(--fs-2xs); color: var(--tx-3); }

.pd-mudar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); }
.pd-mudar > svg { width: 16px; height: 16px; color: var(--gold-tx); }
.pd-mudar b { display: block; font-size: var(--fs-sm); font-weight: 600; }
.pd-mudar small { display: block; font-size: var(--fs-2xs); color: var(--tx-3); margin-top: 2px; }

/* ---------- Painel lateral da OS ---------- */
.pd-dr__t { display: grid; gap: 4px; min-width: 0; }
.pd-dr__t .os-id { justify-self: start; }
.pd-dr__t h3 { font-size: var(--fs-lg); font-weight: 600; }
.pd-dr__t small { font-size: var(--fs-xs); line-height: 1.4; }
.pd-dr > * + * { margin-top: 16px; }
.pd-dr > .pd-dr__h { margin-top: 22px; margin-bottom: -6px; }
.pd-dr .kv { margin-bottom: 0; }
.pd-dr .kv > div { grid-template-columns: 110px minmax(0, 1fr); }
.pd-dr .kv b { font-weight: 500; }
.pd-dr__pills { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pd-dr > .pd-par { font-size: var(--fs-sm); }
.pd-dr__who { display: inline-flex; align-items: center; gap: 8px; }
.pd-dr__who .avatar.sm { width: 22px; height: 22px; font-size: 9px; }
.pd-dr__h { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 600; }
.pd-dr__h svg { width: 16px; height: 16px; color: var(--gold-tx); }
.pd-dr__h small { font-weight: 400; }
.pd-dr__rot { list-style: none; margin: 0; padding: 0; display: grid; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.pd-dr__rot li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; font-size: var(--fs-sm); }
.pd-dr__rot li + li { border-top: 1px solid var(--line); }
.pd-dr__rot li > div { display: grid; min-width: 0; }
.pd-dr__rot b { font-weight: 500; }
.pd-dr__rot small { font-size: var(--fs-2xs); color: var(--tx-3); }
.pd-dr__mk { display: grid; color: var(--tx-4); margin-top: 2px; }
.pd-dr__mk svg { width: 15px; height: 15px; }
.pd-dr__rot li.feito .pd-dr__mk { color: var(--ok); }
.pd-dr__rot li.agora { background: var(--s2); }
.pd-dr__rot li.agora b { font-weight: 600; }
.pd-dr__rot li.agora .pd-dr__mk { color: var(--gold-tx); }
.pd-dr__its { display: grid; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.pd-dr__its > div { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: var(--fs-sm); min-width: 0; }
.pd-dr__its > div + div { border-top: 1px solid var(--line); }
.pd-dr__its span { display: grid; flex: 1; min-width: 0; }
.pd-dr__its b { font-weight: 500; }
.pd-dr__its small { font-size: var(--fs-2xs); color: var(--tx-3); }
.pd-dr__its em { font-style: normal; font-size: var(--fs-xs); color: var(--tx-2); white-space: nowrap; }
.pd-drawer .drawer__foot { flex-wrap: wrap; }
.pd-drawer .drawer__foot .btn-primary { flex: 1; max-width: 300px; }

/* ---------- Janelas (perda, parada, avisar cliente) ---------- */
.modal.pd-modal { width: min(640px, calc(100vw - 32px)); }
.pd-form { display: grid; gap: 18px; }
.pd-form .select { width: 100%; height: 46px; }
.pd-pe-os { font-size: var(--fs-sm); color: var(--tx-2); }
.pd-pe-os .mono { color: var(--tx); }
.pd-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.pd-opts.two { grid-template-columns: 1fr 1fr; }
.pd-opt { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 10px 12px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line-2); text-align: left; transition: background var(--t-fast), border-color var(--t-fast); min-width: 0; }
.pd-opt > svg { width: 18px; height: 18px; color: var(--tx-3); flex: none; }
.pd-opt span { display: grid; min-width: 0; }
.pd-opt b { font-size: var(--fs-sm); font-weight: 600; }
.pd-opt b .bitola { font-weight: 400; margin-left: 2px; }
.pd-opt small { font-size: var(--fs-2xs); color: var(--tx-3); }
.pd-opt:hover { border-color: var(--line-3); }
.pd-opt.on { background: var(--s3); border-color: var(--gold-line); }
.pd-opt.on > svg { color: var(--gold-tx); }
.pd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-chip { min-height: 42px; padding: 0 14px; border-radius: var(--r-pill); background: var(--bg-2); border: 1px solid var(--line-2); font-size: var(--fs-sm); color: var(--tx-2); transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast); }
.pd-chip:hover { color: var(--tx); border-color: var(--line-3); }
.pd-chip.on { background: var(--s3); border-color: var(--gold-line); color: var(--tx); font-weight: 500; }
.pd-f2 { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 16px; align-items: start; }
.pd-step__c { display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; gap: 6px; }
.pd-step__c button { height: 52px; border-radius: var(--r-md); background: var(--s3); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--tx); }
.pd-step__c button:hover { background: var(--s4); }
.pd-step__c button svg { width: 20px; height: 20px; }
.pd-step__c .input { height: 52px; width: 100%; text-align: center; font-size: var(--fs-xl); font-weight: 600; }
.pd-conv { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; padding: 12px 14px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line); font-size: var(--fs-sm); color: var(--tx-2); }
.pd-conv:empty { display: none; }
.pd-conv b { font-size: var(--fs-lg); font-weight: 600; color: var(--tx); }
.pd-conv small { flex-basis: 100%; font-size: var(--fs-xs); color: var(--tx-3); }
.pd-nota { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-2xs); color: var(--tx-3); line-height: 1.45; }
.pd-nota svg { width: 14px; height: 14px; flex: none; }
.pd-msg { width: 100%; height: auto; min-height: 130px; padding: 12px; line-height: 1.5; resize: vertical; font-family: var(--font); }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) { .pd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) { .pd-split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .pd-skpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .pd-board { grid-template-columns: repeat(var(--n, 6), minmax(78vw, 1fr)); margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
  .pd-col { min-height: 220px; }
}
@media (max-width: 640px) {
  .pd-kpis, .pd-skpis { gap: 10px; }
  .pd-days { padding: 14px; grid-template-columns: minmax(0, 1fr); }
  .pd-frota { padding: 14px 14px 0; grid-template-columns: minmax(0, 1fr); }
  .pd-mq { grid-template-columns: 22px minmax(0, 1fr); }
  .pd-mq .btn { grid-column: 2; justify-self: start; }
  .pd-sem__r { grid-template-columns: minmax(0, 1fr) auto; }
  .pd-sem__v { grid-column: 1 / -1; grid-row: 2; }
  .pd-now { padding: 16px; }
  .pd-now__id .mono { font-size: 22px; }
  .pd-chk { grid-template-columns: 30px minmax(0, 1fr); padding: 10px 12px; }
  .pd-chk__box { width: 30px; height: 30px; }
  .pd-chk__v { grid-column: 2; font-size: var(--fs-md); }
  .pd-f2, .pd-opts.two { grid-template-columns: minmax(0, 1fr); }
  .pd-fila__it { grid-template-columns: 26px minmax(0, 1fr); }
  .pd-fila__n { width: 26px; height: 26px; }
  .pd-fila__r { grid-column: 2; justify-items: start; grid-auto-flow: column; justify-content: start; gap: 10px; }
  .pd-tabs { margin-inline: -16px; padding-inline: 16px; }
  .pd-dr .kv > div { grid-template-columns: 90px minmax(0, 1fr); }
  .pd-shead__ic { width: 36px; height: 36px; border-radius: 10px; }
  .pd-vgrid { grid-template-columns: minmax(0, 1fr); }
  .pd-mudar { grid-template-columns: auto minmax(0, 1fr); }
  .pd-mudar .btn { grid-column: 1 / -1; }
}

/* ---------- Tema claro ---------- */
:root[data-theme="light"] .pd-col { background: var(--s2); }
:root[data-theme="light"] .pd-c { background: var(--s1); }
:root[data-theme="light"] .pd-eq__a { box-shadow: 0 0 0 2px var(--s2); }
:root[data-theme="light"] .pd-day { background: var(--s2); }
:root[data-theme="light"] .pd-ag { background: var(--s1); }
:root[data-theme="light"] .pd-chk, :root[data-theme="light"] .pd-fila__it, :root[data-theme="light"] .pd-opt, :root[data-theme="light"] .pd-chip, :root[data-theme="light"] .pd-veic, :root[data-theme="light"] .pd-mq, :root[data-theme="light"] .pd-pe, :root[data-theme="light"] .pd-reg { background: var(--s2); }
:root[data-theme="light"] .pd-chk.on { background: var(--ok-soft); }
:root[data-theme="light"] .pd-reg.novo { background: var(--ok-soft); }

/* ---------- Topo: selos dos botões e painéis laterais (máquinas e agenda) ---------- */
.pd-selo { min-width: 20px; height: 20px; padding: 0 6px; margin-left: 2px; border-radius: var(--r-pill); display: inline-grid; place-items: center; font-size: 11px; font-weight: 600; background: var(--s4); color: var(--tx); }
.pd-selo.warn { background: var(--warn-soft); color: var(--warn); }
.pd-ult { padding: 4px 16px 16px; display: grid; gap: 8px; }
.pd-ult h4 { font-size: var(--fs-xs); font-weight: 500; color: var(--tx-3); padding-top: 12px; border-top: 1px solid var(--line); }
.pd-dr__res { font-size: var(--fs-sm); color: var(--tx-2); }
.pd-dr .pd-mq { background: var(--bg-2); }
.pd-dag .pd-frota.one, .pd-days.one { padding: 0; }
.pd-days.one { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 640px) { .page-head .actions .btn .pd-selo { margin-left: 0; } }
/* Aviso de bloqueio em grade (ícone ao lado do texto também no celular) e nomes de coluna que cabem em 1280 px */
.pd-aviso { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
.pd-aviso > div { flex: none; }
@media (max-width: 1500px) { .pd-col__ic { display: none; } }
@media (max-width: 640px) { .pd-aviso { grid-template-columns: auto minmax(0, 1fr); align-items: start; } .pd-aviso__ic { margin-top: 1px; } .pd-aviso .btn { grid-column: 2; justify-self: start; } }
.pd-opt span.bitola { display: inline; }

/* ---------- Cartões de número com cor (Produção e telas cheias) ---------- */
#view .pd-k { text-align: left; width: 100%; color: inherit; font: inherit; border: 1px solid var(--line); transition: border-color var(--t-fast); }
#view button.pd-k { cursor: pointer; }
#view button.pd-k:hover { border-color: var(--line-3); }
#view .pd-k > div > small { display: inline-flex; align-items: center; gap: 6px; }
#view .pd-k > div > small svg { width: 14px; height: 14px; color: var(--tx-3); }
#view .pd-k.ok   { background: color-mix(in srgb, var(--ok) 6%, var(--s1));   border-color: color-mix(in srgb, var(--ok) 26%, var(--line)); }
#view .pd-k.warn { background: color-mix(in srgb, var(--warn) 7%, var(--s1)); border-color: color-mix(in srgb, var(--warn) 30%, var(--line)); }
#view .pd-k.crit { background: color-mix(in srgb, var(--crit) 7%, var(--s1)); border-color: color-mix(in srgb, var(--crit) 32%, var(--line)); }
#view .pd-k.info { background: color-mix(in srgb, var(--info) 6%, var(--s1)); border-color: color-mix(in srgb, var(--info) 28%, var(--line)); }
#view .pd-k.ok > div > b, #view .pd-k.ok > div > small svg { color: var(--ok); }
#view .pd-k.warn > div > b, #view .pd-k.warn > div > small svg { color: var(--warn); }
#view .pd-k.crit > div > b, #view .pd-k.crit > div > small svg { color: var(--crit); }
#view .pd-k.info > div > b, #view .pd-k.info > div > small svg { color: var(--info); }
.info-tx { color: var(--info); }
.pd-ch-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pd-ch-acts svg { width: 14px; height: 14px; }

/* ---------- Reposições (Pátio e Perdas) ---------- */
.pd-rep__it { flex-wrap: wrap; }
.pd-rep__it .pd-pe__t { flex: 1 1 240px; }
.pd-rep__a { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Perdas e reposições dentro da OS ---------- */
.pe-lista { display: grid; padding: 0 20px 16px; }
.pe-it { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); }
.pe-it:first-child { border-top: 0; }
.pe-it__t { display: grid; gap: 2px; min-width: 0; flex: 1 1 260px; }
.pe-it__t b { font-weight: 500; font-size: var(--fs-sm); }
.pe-it__t small { font-size: var(--fs-2xs); color: var(--tx-3); }
.pe-it__rep { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: var(--fs-xs); }
.pe-it__rep .mono { color: var(--tx-2); }
.pe-it__a { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.pe-rep { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; }
.pe-rep input { accent-color: var(--red); margin-top: 3px; width: 16px; height: 16px; flex: none; }
.pe-rep span { display: grid; gap: 2px; }
.pe-rep b { font-weight: 600; font-size: var(--fs-sm); }
.pe-rep small { font-size: var(--fs-xs); color: var(--tx-3); line-height: 1.45; }

/* ---------- Telas cheias da Produção (prefixo pt-) ---------- */
.pt { display: grid; gap: 0; }
.pt > .back { margin-bottom: 10px; }
.pt-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 22px; }
.pt-kpis .mini .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-sec { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 26px 0 12px; }
.pt-sec h2 { display: flex; align-items: center; gap: 8px; font-size: var(--fs-lg); font-weight: 600; }
.pt-sec h2 svg { width: 18px; height: 18px; color: var(--tx-3); }
.pt-sec .muted { font-size: var(--fs-xs); }
.pt > .card + .pt-sec, .pt > section.card { margin-bottom: 0; }
.pt > section.card + .pt-2 { margin-top: 16px; }
.pt-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.pt-fbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 18px 4px; }
.pt-fbar .select { width: 240px; height: 32px; font-size: var(--fs-xs); }
.pt-agbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.pt-agbar .select { width: 210px; height: 36px; font-size: var(--fs-xs); }

/* máquinas */
.pt-mqs, .pt-vs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
#view .pt-mc, #view .pt-vc { display: grid; gap: 12px; padding: 16px 18px; align-content: start; }
#view .pt-mc { cursor: pointer; transition: border-color var(--t-fast); }
#view .pt-mc:hover { border-color: var(--line-3); }
#view .pt-mc.crit { border-color: color-mix(in srgb, var(--crit) 35%, var(--line)); }
#view .pt-mc.warn { border-color: color-mix(in srgb, var(--warn) 35%, var(--line)); }
.pt-mc__h { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pt-mc__st { display: grid; place-items: center; flex: none; }
.pt-mc__st svg { width: 18px; height: 18px; }
.pt-mc__t { display: grid; flex: 1; min-width: 0; }
.pt-mc__t b { font-weight: 600; font-size: var(--fs-md); }
.pt-mc__t small { font-size: var(--fs-2xs); color: var(--tx-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-mc__agora { margin: 0; font-size: var(--fs-sm); color: var(--tx-2); line-height: 1.5; }
.pt-mc__agora svg { width: 14px; height: 14px; color: var(--tx-3); vertical-align: -2px; margin-right: 5px; }
.pt-mc__agora svg:not(:first-child) { margin-left: 4px; }
.pt-mc__dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); }
.pt-mc__dl dt { font-size: var(--fs-2xs); color: var(--tx-3); }
.pt-mc__dl dd { margin: 2px 0 0; font-size: var(--fs-sm); font-weight: 500; }
.pt-mc__a { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pt-mc__a > svg { width: 16px; height: 16px; color: var(--tx-3); }
.pt-mc__a .spacer { flex: 1; }
.pt-hs { display: grid; padding: 6px 18px 14px; }
.pt-h { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.pt-h:first-child { border-top: 0; }
.pt-h__ic { display: grid; place-items: center; flex: none; padding-top: 2px; }
.pt-h__ic svg { width: 16px; height: 16px; }
.pt-h__t { display: grid; gap: 2px; flex: 1; min-width: 0; }
.pt-h__t b { font-weight: 500; font-size: var(--fs-sm); }
.pt-h__t b .muted { font-weight: 400; }
.pt-h__t small { font-size: var(--fs-2xs); color: var(--tx-3); }
.pt-h__obs { font-size: var(--fs-xs); color: var(--tx-2); }
.pt-h.aberta .pt-h__t small { color: var(--tx-2); }
.pt-h__v { font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; }
.pt-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding: 22px 24px; margin-bottom: 18px; }
.pt-hero__m { display: grid; gap: 6px; min-width: 0; }
.pt-hero__ids { display: flex; gap: 8px; flex-wrap: wrap; }
.pt-hero h1 { font-size: var(--fs-2xl, 28px); font-weight: 600; }
.pt-hero p { margin: 0; }
.pt-hero__mot { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--tx-2); }
.pt-hero__mot svg { width: 15px; height: 15px; }
.pt-hero__a { display: flex; gap: 8px; flex-wrap: wrap; }

/* agenda */
.pt-week { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: start; }
.pt-day { display: grid; gap: 8px; padding: 10px; border-radius: var(--r-md); background: var(--s1); border: 1px solid var(--line); min-height: 220px; align-content: start; }
.pt-day.hoje { border-color: var(--red-line); box-shadow: inset 0 0 0 1px var(--red-line); }
.pt-day.passou { opacity: .62; }
.pt-day header { display: grid; gap: 1px; padding: 2px 4px 6px; border-bottom: 1px solid var(--line); }
.pt-day header b { font-weight: 600; font-size: var(--fs-sm); }
.pt-day header small { font-size: var(--fs-2xs); color: var(--tx-3); }
.pt-day__l { display: grid; gap: 8px; }
.pt-day__v { font-size: var(--fs-xs); color: var(--tx-3); padding: 6px 4px; }
.pt-ag { display: grid; gap: 4px; padding: 10px 11px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); text-align: left; width: 100%; color: inherit; font: inherit; transition: border-color var(--t-fast); }
.pt-ag:hover { border-color: var(--line-3); }
.pt-ag.info { border-color: color-mix(in srgb, var(--info) 30%, var(--line)); }
.pt-ag.ok { border-color: color-mix(in srgb, var(--ok) 30%, var(--line)); }
.pt-ag.warn { border-color: color-mix(in srgb, var(--warn) 32%, var(--line)); }
.pt-ag.feito { opacity: .55; }
.pt-ag__top { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: var(--fs-2xs); }
.pt-ag__top > span:first-child { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.pt-ag__top svg { width: 13px; height: 13px; }
.pt-ag b { font-size: var(--fs-sm); font-weight: 500; line-height: 1.3; }
.pt-ag small { font-size: var(--fs-2xs); color: var(--tx-3); line-height: 1.35; }
.pt-ag__res { display: flex; align-items: center; gap: 5px; font-size: var(--fs-2xs); color: var(--tx-2); }
.pt-ag__res svg { width: 12px; height: 12px; color: var(--tx-3); }
.pt-ag__res .mono { margin-left: auto; color: var(--tx-3); }
.pt-sd { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
#view .pt-sd__it { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.pt-sd__it > div { display: grid; min-width: 0; }
.pt-sd__it b { font-weight: 500; font-size: var(--fs-sm); }
.pt-sd__it small { font-size: var(--fs-2xs); color: var(--tx-3); }

/* caminhões e equipe */
.pt-nx { display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.pt-nx > small { font-size: var(--fs-2xs); color: var(--tx-3); margin-bottom: 2px; }
.pt-nx .muted { font-size: var(--fs-xs); }
.pt-nx__r { display: flex; gap: 10px; align-items: center; padding: 6px 8px; margin: 0 -8px; border-radius: var(--r-sm); font-size: var(--fs-xs); color: var(--tx-2); text-align: left; }
.pt-nx__r:hover { background: var(--s2); color: var(--tx); }
.pt-nx__r .mono { color: var(--tx-3); white-space: nowrap; }

/* perdas */
.pt-bars { display: grid; gap: 10px; padding: 4px 18px 18px; }
.pt-bar { display: grid; grid-template-columns: 150px minmax(0, 1fr) 36px 70px; gap: 10px; align-items: center; font-size: var(--fs-sm); }
.pt-bar__t { height: 8px; border-radius: 99px; background: var(--s3); overflow: hidden; }
.pt-bar__t i { display: block; height: 100%; border-radius: 99px; background: var(--warn); }
.pt-bar b { text-align: right; font-weight: 600; }
.pt-bar small { text-align: right; color: var(--tx-3); font-size: var(--fs-2xs); }
.pt-tbl td { vertical-align: middle; }
.pt-tbl td b { font-weight: 500; }
.pt-obs { display: block; font-size: var(--fs-2xs); }

@media (max-width: 1200px) { .pt-week { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .pt-2 { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .pt-week { grid-template-columns: 1fr; } .pt-day { min-height: 0; }
  .pt-hide-sm { display: none; }
  .pt-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pt-bar { grid-template-columns: 110px minmax(0, 1fr) 30px; } .pt-bar small { display: none; }
  .pt-fbar .select, .pt-agbar .select { width: 100%; }
  .pt-hero { padding: 18px; }
}
