/* Torra: O que torrar, Torras (ficha com curva e prova), Estoque, Movimentação e Quem torra.
   Só variáveis de demo.css, para o tema escuro valer aqui também. Classes com prefixo tr-. */

/* O que torrar */
.tr-hz .abas { margin-bottom: 0; }
.tr-grande { font-size: 17px; font-weight: var(--w-display); letter-spacing: -.015em; }
.tr-dec td { vertical-align: top; }
.tr-dec .cafe-cel .sec .prio { margin-right: 4px; }
.tr-dec .cafe-cel { min-width: 170px; }
.tr-dec .tr-moer { min-width: 190px; }
.tr-dec td.r { white-space: normal; min-width: 104px; }
.tr-dec td.r > b, .tr-dec td.r > .tr-grande { white-space: nowrap; }
@media (max-width: 760px) { .tr-dec .cafe-cel, .tr-dec .tr-moer, .tr-dec td.r { min-width: 0; } }
.tr-sel { max-width: 200px; }
.tr-ordem { margin-top: 14px; border-radius: var(--r-2); box-shadow: inset 0 0 0 1px var(--hair-2); background: var(--sup-1); overflow: hidden; }
.tr-ordem-top { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 12px 14px; flex-wrap: wrap; }
.tr-ordem-top > span { display: flex; flex-direction: column; min-width: 0; font-size: 13.5px; }
.tr-ordem-top .muted { font-size: 12.5px; }
.tr-ordem .tab-w { background: var(--cartao); }

/* Estoque */
.tr-kpis-p { margin-bottom: 12px; }
.tr-kpis-p .kpi { padding: 10px 12px; }
.tr-kpis-p .kpi b { font-size: 18px; }
.tr-colar-l { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.tr-colar-l span { display: inline-flex; gap: 5px; align-items: baseline; padding: 6px 11px; border-radius: var(--r-pill); background: var(--warn-bg); color: var(--warn); font-size: 12.5px; }
.tr-colar-l b { font-variant-numeric: tabular-nums; }
.tr-ct-in { width: 96px; text-align: right; margin-left: auto; display: block; }
.tr-aj { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-top: 1px solid var(--hair); }
.pend > .tr-aj:first-child { border-top: 0; padding-top: 2px; }

/* Ficha da fornada */
.tr-ficha-topo { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.tr-ficha-topo h2 { font-size: clamp(19px, 2.2vw, 24px); font-weight: var(--w-display); letter-spacing: -.02em; }
.tr-ficha-topo p { font-size: 13px; margin-top: 2px; }
.tr-ficha-topo .tag { vertical-align: 1px; }
.tr-curva { width: 100%; height: auto; display: block; overflow: visible; }
.tr-cv-grade { stroke: var(--hair); stroke-width: 1; }
.tr-cv-eixo { font: 500 12px var(--mono); fill: var(--ink-3); }
.tr-cv-eixo-r { fill: var(--info); }
.tr-cv-dev { fill: var(--accent-soft); opacity: .75; }
.tr-cv-seca { fill: var(--pos-bg); opacity: .5; }
.tr-cv-bt { fill: none; stroke: var(--accent-ink); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.tr-cv-ror { fill: none; stroke: var(--info); stroke-width: 1.6; stroke-dasharray: 4 3; opacity: .85; }
.tr-cv-pt { fill: var(--cartao); stroke: var(--accent-ink); stroke-width: 2; }
.tr-cv-rot { font: 500 13px var(--font); fill: var(--ink-2); paint-order: stroke; stroke: var(--cartao); stroke-width: 3px; stroke-linejoin: round; }
.legenda i.tr-lg-bt { background: var(--accent-ink); height: 3px; border-radius: 2px; }
.legenda i.tr-lg-ror { background: var(--info); height: 3px; border-radius: 2px; }
.legenda i.tr-lg-dev { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--hair-2); }
.tr-fases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.tr-fases > div { background: var(--sup-1); border-radius: var(--r-2); padding: 10px 12px; box-shadow: inset 0 0 0 1px var(--hair); min-width: 0; }
.tr-fases small { display: block; font-size: 11.5px; color: var(--ink-3); }
.tr-fases b { display: block; font-size: 16px; font-weight: var(--w-display); font-variant-numeric: tabular-nums; }
.tr-fases span { font-size: 12px; color: var(--ink-2); }
@media (max-width: 560px) { .tr-fases { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tr-cv-rot { font-size: 16px; } .tr-cv-eixo { font-size: 15px; } }

.tr-prova { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; }
.tr-nota { width: 92px; height: 92px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: var(--accent-soft); color: var(--accent-ink); }
.tr-nota b { font-size: 28px; font-weight: var(--w-display); letter-spacing: -.02em; line-height: 1; }
.tr-nota small { font-size: 11.5px; }
.tr-atrib { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tr-atrib > div { display: grid; grid-template-columns: 88px minmax(0, 1fr) 34px; gap: 8px; align-items: center; font-size: 12.5px; color: var(--ink-2); }
.tr-atrib i { display: block; height: 7px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.tr-atrib i b { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.tr-atrib .num { text-align: right; color: var(--ink); }
.tr-desc { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 420px) { .tr-prova { grid-template-columns: minmax(0, 1fr); } .tr-nota { width: 76px; height: 76px; } }

.tr-irmao { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-2); background: var(--info-bg); color: var(--ink); font-size: 13px; }
.tr-irmao p { margin-bottom: 8px; }
.tr-resto { background: repeating-linear-gradient(135deg, var(--barra) 0 6px, var(--paper-3) 6px 12px) !important; color: var(--ink-2) !important; }
.tr-h3 { font-size: 13.5px; font-weight: var(--w-strong); margin: 16px 0 6px; }

/* Movimentação */
.tr-ref { font-size: 12.5px; color: var(--ink-2); }
.tr-ref .link { font-size: 12.5px; }
.link.mono { font-family: var(--mono); font-size: 12.5px; }
button.link { cursor: pointer; }
