/* Estilos específicos do grupo de módulos: pessoas (use só classes prefixadas) */

/* ---------- utilitários ---------- */
.tr-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tr-tab { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tr-sum:empty { display: none; }
.tr-sp { flex: 1; }
.tr-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tr-strong { font-weight: 600; }
.tr-sm { font-size: 11.5px; }
.tr-lbl { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); margin-bottom: 4px; }
.tr-link { display: inline-block; margin-top: 8px; font-size: 12px; }
.tr-tabs { overflow-x: auto; scrollbar-width: thin; }
.tr-tabs .tab { white-space: nowrap; }
.card.flush > .tbl-block .tbl-foot, .card.flush > .tbl-wrap { border-radius: 0 0 var(--r-lg) var(--r-lg); }
.card.flush .card-h .tr-acts .btn { height: 28px; }

/* ---------- seletor de colaborador ---------- */
.tr-pick { position: relative; }
.tr-pick-l { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); background: var(--sf); border: 1px solid var(--ln-strong); border-radius: var(--r); box-shadow: var(--sh-lg); max-height: 300px; overflow-y: auto; }
.tr-pick-i { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; border: 0; background: none; text-align: left; padding: 8px 12px; cursor: pointer; border-bottom: 1px solid var(--ln-2); }
.tr-pick-i:hover, .tr-pick-i:focus { background: var(--acc-soft); outline: none; }
.tr-pick-i .muted { font-size: 11.5px; }
.tr-pick-v { padding: 10px 12px; }
.tr-quem-c { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--sf-2); border: 1px solid var(--ln); border-radius: var(--r); }
.tr-quem-c > .ico { color: var(--acc-tx); }
.tr-quem-c > div { flex: 1; min-width: 0; }
.tr-quem-c .muted { font-size: 12px; }
.tr-lock { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--mut); white-space: nowrap; }
.card > .tr-venc { margin-top: 12px; }
.tr-venc { font-size: 12.5px; padding: 8px 12px; background: var(--acc-soft); border-radius: var(--r); }
.tr-cert-atual { display: flex; align-items: center; gap: 6px; font-size: 12.5px; margin-bottom: 6px; }

/* ---------- turma ---------- */
.tr-turma-tools { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.tr-turma-sug { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tr-turma-sug select { width: auto; min-width: 180px; }
.tr-turma-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; }

/* ---------- card do funcionário ---------- */
.tr-ficha { display: flex; flex-direction: column; gap: 16px; }
.tr-meus { display: flex; flex-direction: column; gap: 16px; }
.tr-fh { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.tr-fh-id { display: flex; gap: 14px; align-items: center; min-width: 0; }
.tr-av { width: 56px; height: 56px; border-radius: 50%; background: var(--acc); color: #fff; font-weight: 700; font-size: 19px; display: grid; place-items: center; flex: none; }
.tr-fh-main { min-width: 0; }
.tr-fh-nm { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.tr-fh-sub { color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.tr-fh-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.tr-fh-qr { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border: 1px solid var(--ln); border-radius: var(--r); background: var(--sf); }
.tr-qr { width: 108px; height: 108px; display: grid; place-items: center; }
.tr-qr svg { width: 100%; height: 100%; }
.tr-qr .loading { font-size: 11px; }
.tr-qr-t { font-size: 11px; color: var(--mut); line-height: 1.35; }
.tr-fk .kpi .k-v { font-size: 24px; }
.tr-hist { max-height: 360px; }
.tr-ficha .dl, .tr-meus .dl { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tr-ficha .dl .full, .tr-meus .dl .full { grid-column: 1 / -1; }
.tr-atr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; }
.tr-atr-i { align-items: flex-start; padding: 6px 0; border-bottom: 1px solid var(--ln-2); }
.tr-atr-i.tr-dis { color: var(--mut); }

/* ---------- painel ---------- */
.tr-mb { display: flex; align-items: center; gap: 8px; }
.tr-mb .mbar { flex: 1; }
.tr-mb > b { min-width: 48px; text-align: right; font-size: 12px; }
.tr-legend { margin-bottom: 10px; }
.tr-hm-wrap { overflow-x: auto; }
.tr-hm { width: auto; min-width: 100%; }
.tr-hm th.rl { white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; position: sticky; left: 0; background: var(--sf); z-index: 1; }
.tr-hm td { font-size: 11.5px; white-space: nowrap; }
.tr-hm td.tr-hm-g { outline: 1.5px solid var(--ink-2); outline-offset: -1.5px; }
.tr-prox { max-height: 290px; }

/* ---------- planejamento (gantt) ---------- */
.tr-ano { display: flex; align-items: center; gap: 8px; height: 32px; }
.tr-ano b { font-size: 15px; min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; }
.tr-gantt-wrap { overflow-x: auto; padding: 0 0 8px; }
.tr-gantt { min-width: 1080px; }
.tr-g-h, .tr-g-r { display: grid; grid-template-columns: 250px 1fr 92px 80px 96px; align-items: center; }
.tr-g-h { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--mut); border-bottom: 1px solid var(--ln); padding: 6px 0; }
.tr-g-h .tr-g-l { padding-left: 16px; }
.tr-g-r { border-bottom: 1px solid var(--ln-2); min-height: 44px; }
.tr-g-r:hover { background: var(--hover); }
.tr-g-l { display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 16px; min-width: 0; }
.tr-g-l span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.tr-g-l .btn { flex: none; }
.tr-g-m { display: grid; grid-template-columns: repeat(12, 1fr); }
.tr-g-h .tr-g-m span { text-align: center; }
.tr-g-n { text-align: center; font-size: 12.5px; }
.tr-g-h .tr-g-n { font-size: 10px; letter-spacing: .03em; white-space: nowrap; }
.tr-g-track { position: relative; height: 44px; }
.tr-g-mes { border-left: 1px dashed var(--ln); position: relative; display: flex; align-items: flex-end; justify-content: flex-end; padding: 0 3px 2px 0; }
.tr-g-mes em { font-style: normal; font-size: 10px; font-weight: 700; color: var(--s2); background: color-mix(in srgb, var(--s2) 14%, var(--sf)); border-radius: 3px; padding: 0 4px; line-height: 15px; }
.tr-g-bar { position: absolute; top: 7px; height: 20px; border: 0; border-radius: 4px; background: var(--s1); color: #fff; font-size: 10.5px; font-weight: 600; padding: 0 6px; text-align: left; overflow: hidden; white-space: nowrap; cursor: pointer; opacity: .9; }
.tr-g-bar.ok { background: var(--s3); }
.tr-g-bar:hover { opacity: 1; box-shadow: 0 0 0 2px var(--acc-soft); }
.tr-g-bar span { overflow: hidden; text-overflow: ellipsis; display: block; }
.tr-g-hoje { position: absolute; top: 0; bottom: 0; width: 1.5px; background: var(--crit); opacity: .75; pointer-events: none; }

/* ---------- catálogo / matriz ---------- */
.tr-subtabs { display: flex; }
.tr-mx-wrap { overflow: auto; max-height: 64vh; }
.tr-mx th { position: sticky; top: 0; background: var(--sf); z-index: 2; }
.tr-mx .tr-mx-c { position: sticky; left: 0; background: var(--sf); z-index: 1; min-width: 220px; white-space: nowrap; }
.tr-mx th.tr-mx-c { z-index: 3; }
.tr-mx td.c { padding: 6px 4px; }
.tr-mx td.tr-mx-mud { background: var(--warn-bg) !important; }
.tr-mx input { width: 16px; height: 16px; accent-color: var(--acc); cursor: pointer; }

/* ---------- brigada ---------- */
.tr-tipos { display: flex; flex-wrap: wrap; gap: 4px; max-width: 300px; }
.tr-qr-auto { align-items: center; text-align: center; }
.tr-qr-big { width: 220px; height: 220px; }
.tr-qr-big svg { width: 100%; height: 100%; }
.tr-url code { font-size: 11.5px; word-break: break-all; color: var(--ink-2); }

@media (max-width: 860px) {
  .tr-mdl .mdl-f { flex-wrap: wrap; }
  .tr-mdl .mdl-f .left { margin-right: 0; }
  .tr-ficha .dl, .tr-meus .dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tr-atr { grid-template-columns: minmax(0, 1fr); }
  .tr-fh-qr { width: 100%; }
}
@media print {
  .tr-fh-qr { display: none; }
}
