/* ============================================================
   TAREFAS · gestão de tarefas e projetos (28/out)
   modules/tarefas/pagina-tarefas.js
   Listas à esquerda, a lista no meio, o sistema à direita (em Hoje).
   Calma: sem vermelho, sem alarme. Dourado só no foco (selo do sistema).
   ============================================================ */
.tg { display: grid; grid-template-columns: 212px minmax(0, 1fr); gap: 28px; align-items: start; }
.tg.com-trilho { grid-template-columns: 212px minmax(0, 1fr) minmax(260px, 300px); }

/* ── listas à esquerda ─────────────────────────────────────── */
.tg-nav { position: sticky; top: 8px; display: flex; flex-direction: column; gap: 2px; }
.tg-nav-i { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 7px 10px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--v2-sub); font: inherit; font-size: 13px; text-align: left; cursor: pointer; transition: background .15s ease, color .15s ease; }
.tg-nav-i:hover { background: rgba(46,42,38,.04); color: var(--v2-ink); }
.tg-nav-i.on { background: #FFFFFF; color: var(--v2-ink); font-weight: 600; box-shadow: 0 1px 2px rgba(46,42,38,.06); }
.tg-nav-i.is-sobre { border-color: var(--v2-line-strong); background: #FFFFFF; color: var(--v2-ink); }
.tg-nav-ico { width: 16px; display: inline-flex; justify-content: center; flex: none; color: currentColor; }
.tg-nav-l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-nav-n { font-size: 11px; color: var(--v2-ter); font-variant-numeric: tabular-nums; font-weight: 500; }
.tg-nav-sec { margin-top: 18px; display: flex; flex-direction: column; gap: 2px; }
.tg-nav-sec-h { background: transparent; border: none; font: inherit; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--v2-ter); text-align: left; padding: 4px 10px 6px; cursor: pointer; }
.tg-nav-sec-h:hover, .tg-nav-sec-h.on { color: var(--v2-ink); }
.tg-nav-novo { color: var(--v2-ter); }
.tg-nav-pe { margin-top: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding-left: 4px; }
.tg-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.tg-dot.grande { width: 11px; height: 11px; margin-right: 10px; vertical-align: middle; position: relative; top: -2px; }

/* ── cabeçalho e captura ───────────────────────────────────── */
.tg-main { min-width: 0; }
.tg-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.tg-head-t h1 { font-size: 26px; font-weight: 600; color: var(--v2-ink); margin: 0; line-height: 1.15; }
.tg-head-t p { margin: 4px 0 0; font-size: 13px; color: var(--v2-sub); }
.tg-volta { background: transparent; border: none; font: inherit; font-size: 12px; font-weight: 600; color: var(--v2-link); padding: 0 0 6px; cursor: pointer; }
.tg-head-f { display: flex; align-items: center; gap: 10px; }
.tg-busca { display: flex; align-items: center; gap: 8px; background: #FFFFFF; border: 1px solid var(--v2-line); border-radius: 11px; padding: 0 12px; height: 38px; color: var(--v2-ter); width: clamp(180px, 22vw, 280px); }
.tg-busca:focus-within { border-color: var(--v2-line-strong); }
.tg-busca input { border: none; outline: none; background: transparent; font: inherit; font-size: 13px; color: var(--v2-ink); width: 100%; min-width: 0; }
.tg-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 18px; border: none; border-radius: var(--v2-r-btn, 11px); background: #241F1B; color: #F6F2EE; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tg-btn:hover { filter: brightness(1.12); }
.tg-link { background: transparent; border: none; font: inherit; font-size: 12px; font-weight: 600; color: var(--v2-link); padding: 6px 6px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; text-align: left; }
.tg-link:hover { color: #7A5F2F; }
.tg-link.on { color: var(--v2-ink); background: #FFFFFF; box-shadow: 0 1px 2px rgba(46,42,38,.06); }

.tg-cap { display: flex; align-items: center; gap: 10px; background: #FFFFFF; border: 1px solid var(--v2-line); border-radius: 14px; padding: 0 8px 0 14px; min-height: 50px; transition: border-color .15s ease, box-shadow .15s ease; }
.tg-cap:focus-within { border-color: var(--v2-line-strong); box-shadow: 0 2px 10px rgba(46,42,38,.06); }
.tg-cap-ico { color: var(--v2-ter); display: inline-flex; }
.tg-cap-in { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font: inherit; font-size: 14.5px; color: var(--v2-ink); padding: 14px 0; }
.tg-cap-in::placeholder { color: var(--v2-ter); }
.tg-cap-priv { flex: none; border: 1px solid var(--v2-line); background: #F7F3EE; color: var(--v2-sub); border-radius: 999px; font: inherit; font-size: 11px; font-weight: 600; padding: 5px 11px; cursor: pointer; white-space: nowrap; }
.tg-cap-priv:hover { border-color: var(--v2-line-strong); color: var(--v2-ink); }
.tg-cap-prev { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 26px; padding: 7px 4px 14px; }
.tg-cap-chip { font-size: 11px; font-weight: 600; color: #5A5049; background: #EFEAE2; border-radius: 6px; padding: 3px 8px; }
.tg-dica { font-size: 11.5px; color: var(--v2-ter); }

/* ── linha de tarefa ───────────────────────────────────────── */
.tg-lista { display: flex; flex-direction: column; gap: 6px; min-height: 8px; border-radius: 12px; transition: background .15s ease; }
.tg-lista.is-sobre, .tg-col.is-sobre { background: rgba(46,42,38,.035); }
.tg-row { position: relative; display: flex; align-items: flex-start; gap: 12px; background: #FFFFFF; border: 1px solid var(--v2-line); border-radius: 13px; padding: 11px 12px 11px 12px; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, opacity .24s ease; }
.tg-row:hover { border-color: var(--v2-line-strong); box-shadow: 0 1px 3px rgba(46,42,38,.05); }
.tg-row.is-sel { border-color: rgba(46,42,38,.28); box-shadow: 0 2px 10px rgba(46,42,38,.07); }
.tg-row.is-arrastando { opacity: .4; }
.tg-row.is-antes { box-shadow: inset 0 2px 0 var(--v2-ink); }
.tg-row.is-indo { opacity: .35; }
.tg-row.is-indo .tg-row-t, .tg-row.is-done .tg-row-t { text-decoration: line-through; text-decoration-color: rgba(46,42,38,.35); color: var(--v2-sub); }
.tg-row[draggable="true"] { cursor: grab; }
.tg-check { flex: none; width: 22px; height: 22px; margin: 1px 0 0; border-radius: 50%; border: 1.5px solid rgba(46,42,38,.28); background: #FFFFFF; color: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; position: relative; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.tg-check::after { content: ''; position: absolute; inset: -11px; } /* alvo de toque ≥44px */
.tg-check:hover { border-color: var(--v2-verde); color: var(--v2-verde); }
.tg-check.on { background: var(--v2-verde); border-color: var(--v2-verde); color: #FFFFFF; }
.tg-check.pequeno { width: 18px; height: 18px; }
.tg-row-corpo { flex: 1; min-width: 0; }
.tg-row-t { font-size: 14px; line-height: 1.4; color: var(--v2-ink); overflow-wrap: anywhere; }
.tg-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 5px; }
.tg-row-meta:empty { display: none; }
.tg-prio { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #B08A2E; margin-right: 8px; vertical-align: middle; position: relative; top: -1px; }
.tg-prio.is-urgente { background: var(--v2-terracota); }
.tg-quando, .tg-sub, .tg-nota { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--v2-sub); }
.tg-nota { color: var(--v2-ter); }
.tg-chip-org { display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: 10px; font-weight: 600; color: #5A5049; background: #F1EDE7; border: none; border-radius: var(--v2-r-chip, 6px); padding: 3px 8px; cursor: pointer; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-chip-org:hover { filter: brightness(.96); }
.tg-chip-pessoa { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--v2-sub); }
.tg-acoes { display: flex; gap: 2px; opacity: 0; transition: opacity .15s ease; align-self: center; }
.tg-row:hover .tg-acoes, .tg-row:focus-within .tg-acoes, .tg-row.is-sel .tg-acoes { opacity: 1; }
.tg-acao { width: 30px; height: 30px; border-radius: 8px; border: none; background: transparent; color: var(--v2-sub); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.tg-acao:hover { background: #F4EFE7; color: var(--v2-ink); }

.tg-foto, .tg-mini { border-radius: 50%; object-fit: cover; flex: none; background: #EFE8DE; }
.tg-foto { width: 30px; height: 30px; }
.tg-mini { width: 16px; height: 16px; font-size: 8.5px !important; }
.tg-foto-ini { display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: #8A6E38; }

.tg-fechado { margin-top: 14px; }
.tg-fechado > summary { cursor: pointer; list-style: none; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--v2-ter); padding: 8px 2px; }
.tg-fechado > summary::-webkit-details-marker { display: none; }
.tg-fechado[open] > summary { margin-bottom: 6px; }
.tg-dia { margin-bottom: 20px; }
.tg-dia-h { font-size: 12.5px; font-weight: 600; color: var(--v2-ink); margin: 0 0 8px 2px; }
.tg-adiante-h { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--v2-ter); margin: 26px 0 0 2px; }
.tg-livre { font-size: 12.5px; color: var(--v2-ter); padding: 8px 4px; }
.tg-vazio { background: #FFFFFF; border: 1px solid var(--v2-line); border-radius: var(--v2-r-card, 16px); padding: 34px 28px; text-align: center; }
.tg-vazio-t { font-size: 21px; color: var(--v2-ink); margin-bottom: 6px; }
.tg-vazio-t:empty { display: none; }
.tg-vazio-s { font-size: 13px; color: var(--v2-sub); max-width: 420px; margin: 0 auto; line-height: 1.5; }

/* ── Do time e quadro do projeto ───────────────────────────── */
.tg-time { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; align-items: start; }
.tg-quadro { display: grid; grid-template-columns: repeat(4, minmax(180px, 1fr)); gap: 14px; align-items: start; overflow-x: auto; padding-bottom: 6px; }
.tg-col { background: #EFEAE2; border: 1px solid transparent; border-radius: var(--v2-r-card, 16px); padding: 12px 10px 10px; min-width: 0; transition: background .15s ease, border-color .15s ease; }
.tg-col.is-sobre { border-color: var(--v2-line-strong); }
.tg-col-h { display: flex; align-items: center; gap: 10px; padding: 0 4px 10px; }
.tg-col-nome { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--v2-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-n { font-size: 11px; font-weight: 600; color: var(--v2-sub); background: rgba(255,255,255,.7); border-radius: 999px; padding: 2px 9px; font-variant-numeric: tabular-nums; }
.tg-col-lista { display: flex; flex-direction: column; gap: 6px; min-height: 40px; }
.tg-col .tg-row { padding: 10px 10px; }
.tg-col .tg-acoes { display: none; }
.tg-col-proj .v2mt-chip-project { display: none; } /* dentro do projeto, o chip dele é repetição */

/* ── Projetos ──────────────────────────────────────────────── */
.tg-projs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tg-proj { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; background: #FFFFFF; border: 1px solid var(--v2-line); border-radius: var(--v2-r-card, 16px); padding: 20px 20px 18px; font: inherit; color: var(--v2-ink); cursor: pointer; overflow: hidden; min-height: 150px; transition: border-color .15s ease, box-shadow .15s ease; }
.tg-proj:hover { border-color: var(--v2-line-strong); box-shadow: 0 2px 10px rgba(46,42,38,.05); }
.tg-proj-cor { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--cor); }
.tg-proj-nome { font-size: 18px; font-weight: 600; line-height: 1.2; }
.tg-proj-desc { font-size: 12.5px; color: var(--v2-sub); line-height: 1.45; }
.tg-proj-quadro { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--v2-sub); }
.tg-proj-prog { display: flex; align-items: center; gap: 10px; width: 100%; font-size: 11.5px; color: var(--v2-sub); margin-top: auto; }
.tg-proj-prog.grande { font-size: 13px; color: var(--v2-ink); }
.tg-barra { flex: 1; height: 5px; border-radius: 999px; background: #EFEAE2; overflow: hidden; max-width: 260px; }
.tg-barra i { display: block; height: 100%; border-radius: inherit; background: var(--cor, var(--v2-verde)); transition: width .3s ease; }
.tg-proj-rodape { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; color: var(--v2-ter); }
.tg-proj-novo { align-items: center; justify-content: center; flex-direction: row; gap: 8px; border-style: dashed; color: var(--v2-sub); background: transparent; }
.tg-proj-novo.is-form { flex-direction: column; align-items: stretch; justify-content: flex-start; cursor: default; background: #FFFFFF; border-style: solid; }
.tg-proj-topo { display: flex; flex-direction: column; gap: 10px; margin: -4px 0 18px; }
.tg-proj-info { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 12.5px; color: var(--v2-sub); }
/* 28/out · quem vê o projeto + Gerenciar projeto */
.tg-proj-quem { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--v2-sub); }
.tg-proj-quem.is-fechado { color: #8A6E38; }
.tg-nav-lock { display: inline-flex; color: #8A6E38; opacity: .8; margin-right: 2px; }
.tg-proj-barra { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; }
.tg-proj-barra .tg-proj-prog { flex: 1; min-width: 220px; width: auto; margin-top: 0; }
.tg-proj-acoes { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tg-quem { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 3px 12px 3px 4px; border: 1px solid var(--v2-line-strong); background: #FFFFFF; border-radius: 999px; font: inherit; font-size: 12px; color: var(--v2-ink); cursor: pointer; }
.tg-quem > span:last-child { display: inline-flex; align-items: center; gap: 5px; }
.tg-quem.is-fechado > span:last-child { color: #8A6E38; font-weight: 600; }
.tg-quem:hover, .tg-pill:hover { border-color: var(--v2-ink); }
.tg-quem-ico { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #F1EDE7; color: var(--v2-sub); }
.tg-rostos { display: inline-flex; }
.tg-rosto { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: none; background: #EFE8DE; border: 2px solid #FFFFFF; font-size: 10px; }
.tg-rostos .tg-rosto + .tg-rosto { margin-left: -7px; }
.tg-proj-st { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8A6E38; background: #F6EFE2; border-radius: 6px; padding: 3px 8px; }
.tg-pg-fundo { position: fixed; inset: 0; z-index: 9960; /* acima do + flutuante do celular */ background: rgba(36,31,27,.28); display: flex; align-items: center; justify-content: center; padding: 16px; animation: tgEntra .15s ease; }
.tg-pg { width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: #FFFFFF; border: 1px solid var(--v2-line-strong); border-radius: 18px; box-shadow: 0 18px 50px rgba(46,42,38,.18); overflow: hidden; }
.tg-pg-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 12px; }
.tg-pg-h h2 { margin: 2px 0 0; font-size: 22px; font-weight: 600; line-height: 1.2; color: var(--v2-ink); }
.tg-pg-sup { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--v2-ter); }
.tg-pg-x { border: none; background: transparent; font-size: 22px; line-height: 1; color: var(--v2-ter); cursor: pointer; padding: 4px 6px; border-radius: 8px; }
.tg-pg-x:hover { background: #F1EDE7; color: var(--v2-ink); }
.tg-pg-nota { margin: 0 22px 6px; font-size: 12px; color: var(--v2-sub); background: #FAF7F2; border: 1px solid var(--v2-line); border-radius: 10px; padding: 9px 12px; }
.tg-pg-corpo { overflow-y: auto; padding: 6px 22px 18px; display: flex; flex-direction: column; gap: 16px; }
.tg-pg-corpo textarea.tg-input { resize: vertical; min-height: 60px; }
.tg-pg-linha { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.tg-pg-cores { display: flex; gap: 8px; padding: 6px 0; }
.tg-pg-cor { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #FFFFFF; box-shadow: 0 0 0 1px var(--v2-line-strong); cursor: pointer; }
.tg-pg-cor.on { box-shadow: 0 0 0 2px var(--v2-ink); }
.tg-pg-seg { display: inline-flex; border: 1px solid var(--v2-line-strong); border-radius: 10px; overflow: hidden; align-self: flex-start; }
.tg-pg-seg button { border: none; background: #FFFFFF; font: inherit; font-size: 12.5px; letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--v2-sub); padding: 8px 14px; cursor: pointer; }
.tg-pg-seg button + button { border-left: 1px solid var(--v2-line); }
.tg-pg-seg button.on { background: #241F1B; color: #F6F2EE; }
.tg-pg-sec { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--v2-line); padding-top: 14px; }
.tg-pg-opts { display: flex; flex-direction: column; gap: 7px; }
.tg-pg-opt { display: flex; align-items: flex-start; gap: 10px; text-align: left; border: 1px solid var(--v2-line); border-radius: 11px; padding: 11px 13px; background: #FFFFFF; font: inherit; cursor: pointer; }
.tg-pg-opt.on { border-color: var(--v2-ink); background: #FBF8F2; }
.tg-pg-opt span:last-child { display: flex; flex-direction: column; gap: 2px; }
.tg-pg-opt strong { font-size: 13px; color: var(--v2-ink); font-weight: 600; }
.tg-pg-opt em { font-style: normal; font-size: 11.5px; color: var(--v2-ter); }
.tg-pg-radio { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--v2-line-strong); flex: none; margin-top: 2px; }
.tg-pg-opt.on .tg-pg-radio { border: 4.5px solid #241F1B; }
.tg-pg-pessoas { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.tg-pg-pessoa { display: flex; align-items: center; gap: 9px; border: 1px solid var(--v2-line); border-radius: 10px; padding: 7px 10px; cursor: pointer; font-size: 12.5px; }
.tg-pg-pessoa:has(input:checked) { border-color: var(--v2-ink); background: #FBF8F2; }
.tg-pg-pessoa .tg-rosto { width: 26px; height: 26px; border: none; }
.tg-pg-pessoa span { display: flex; flex-direction: column; min-width: 0; }
.tg-pg-pessoa strong { font-weight: 600; color: var(--v2-ink); }
.tg-pg-pessoa em { font-style: normal; font-size: 11px; color: var(--v2-ter); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-pg-dica { margin: 0; font-size: 11.5px; color: var(--v2-ter); line-height: 1.45; }
.tg-pg-pe { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--v2-line); background: #FDFBF8; }
.tg-pg-pe > div { display: flex; align-items: center; gap: 8px; }
.tg-pg-arq { color: #9A4B3C; }
.tg-pg button:disabled, .tg-pg input:disabled, .tg-pg textarea:disabled, .tg-pg select:disabled { cursor: default; opacity: .7; }
@media (max-width: 560px) {
  .tg-pg-fundo { align-items: flex-end; padding: 8px; }
  .tg-pg { max-height: 92vh; }
  .tg-pg-linha { grid-template-columns: 1fr; }
  .tg-proj-acoes { width: 100%; }
}
.tg-chip-quadro { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; background: #F1EDE7; border: none; border-radius: 8px; padding: 4px 9px; font: inherit; font-size: 10px; font-weight: 700; color: #5A5049; cursor: pointer; }
.tg-form-acoes { display: flex; align-items: center; gap: 10px; }

.tg-input { width: 100%; min-height: 38px; border: 1px solid var(--v2-line-strong); border-radius: 10px; background: #FFFFFF; padding: 8px 11px; font: inherit; font-size: 13px; color: var(--v2-ink); }
.tg-input:focus { outline: none; border-color: rgba(46,42,38,.3); }
.tg-input-sm { width: auto; min-height: 32px; padding: 5px 9px; font-size: 12px; }
.tg-rot { display: flex; flex-direction: column; gap: 6px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--v2-ter); }

/* ── à direita: o sistema, pra hoje ────────────────────────── */
.tg-trilho { position: sticky; top: 8px; display: flex; flex-direction: column; gap: 12px; }
.tg-trilho-h { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--v2-ter); padding: 10px 2px 0; }
.tg-card { background: #FFFFFF; border: 1px solid var(--v2-line); border-radius: 14px; padding: 12px 14px; }
.tg-card > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--v2-ink); margin-bottom: 4px; }
.tg-card > header .tg-link { font-size: 11px; padding: 2px 0; }
.tg-card-vazio, .tg-card-mais { font-size: 12px; color: var(--v2-ter); padding: 6px 0 2px; }
.tg-card-linha { display: flex; align-items: baseline; gap: 8px; width: 100%; background: transparent; border: none; font: inherit; font-size: 13px; color: var(--v2-ink); padding: 7px 0; cursor: pointer; text-align: left; border-top: 1px solid rgba(46,42,38,.05); }
.tg-card-linha:first-of-type { border-top: none; }
.tg-card > .tg-card-linha:only-child { padding: 2px 0; }
.tg-card-linha b { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tg-card-linha span { flex: 1; }
.tg-card-linha i { font-style: normal; color: var(--v2-link); font-weight: 600; font-size: 12px; }
.tg-card-item { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid rgba(46,42,38,.05); }
.tg-card-abre { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; background: transparent; border: none; font: inherit; text-align: left; cursor: pointer; padding: 0; }
.tg-card-abre b { font-size: 12.5px; font-weight: 600; color: var(--v2-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-card-abre span { font-size: 11px; color: var(--v2-sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-mini-btn { flex: none; background: #F4EFE7; border: none; border-radius: 8px; font: inherit; font-size: 11px; font-weight: 600; color: var(--v2-ink); padding: 6px 9px; cursor: pointer; white-space: nowrap; }
.tg-mini-btn:hover { background: #EDE6DB; }
.tg-card-ok { flex: none; font-size: 10.5px; color: var(--v2-verde); font-weight: 600; }
.tg-card .v2mt-agenda-row:first-of-type { border-top: none; }

/* ── menu Adiar ────────────────────────────────────────────── */
.tg-menu { position: fixed; z-index: 2000; width: 230px; background: #FFFFFF; border: 1px solid var(--v2-line-strong); border-radius: 13px; box-shadow: 0 10px 30px rgba(46,42,38,.14); padding: 8px; }
.tg-menu-h { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--v2-ter); padding: 4px 8px 6px; }
.tg-menu button { display: flex; align-items: center; justify-content: space-between; width: 100%; background: transparent; border: none; border-radius: 8px; font: inherit; font-size: 13px; color: var(--v2-ink); padding: 8px; cursor: pointer; min-height: 36px; }
.tg-menu button:hover { background: #F4EFE7; }
.tg-menu button i { font-style: normal; font-size: 11.5px; color: var(--v2-ter); }
.tg-menu-dia { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--v2-ink); padding: 6px 8px; border-top: 1px solid var(--v2-line); border-bottom: 1px solid var(--v2-line); margin: 4px 0; }
.tg-menu-dia input { font: inherit; font-size: 12px; border: 1px solid var(--v2-line-strong); border-radius: 8px; padding: 4px 6px; color: var(--v2-ink); max-width: 128px; }

/* ── gaveta da tarefa ──────────────────────────────────────── */
.tg-gaveta { position: fixed; z-index: 1500; top: 12px; right: 12px; bottom: 12px; width: min(440px, calc(100vw - 24px)); background: #FFFFFF; border: 1px solid var(--v2-line-strong); border-radius: 18px; box-shadow: 0 18px 50px rgba(46,42,38,.16); overflow-y: auto; padding: 18px 22px 0; display: flex; flex-direction: column; gap: 18px; animation: tgEntra .18s ease; }
.tg-gaveta > * { flex-shrink: 0; }
@keyframes tgEntra { from { transform: translateX(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.tg-g-topo { display: flex; align-items: center; gap: 10px; }
.tg-g-onde { flex: 1; font-size: 11.5px; font-weight: 600; color: var(--v2-sub); }
.tg-g-x { width: 34px; height: 34px; border-radius: 10px; border: none; background: transparent; font-size: 22px; line-height: 1; color: var(--v2-sub); cursor: pointer; }
.tg-g-x:hover { background: #F4EFE7; color: var(--v2-ink); }
.tg-g-titulo { width: 100%; border: none; resize: none; font-size: 21px; font-weight: 600; line-height: 1.3; color: var(--v2-ink); padding: 0; outline: none; background: transparent; }
.tg-g-bloco { display: flex; flex-direction: column; gap: 8px; }
.tg-g-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tg-g-datas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tg-g-datas label { display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; color: var(--v2-sub); }
.tg-g-fixo { font-size: 13px; color: var(--v2-ink); text-transform: none; letter-spacing: 0; font-weight: 400; padding: 9px 0; line-height: 1.35; }
.tg-g-notas { min-height: 96px; resize: vertical; line-height: 1.5; }
.tg-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.tg-pill { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--v2-line-strong); background: #FFFFFF; color: var(--v2-ink); border-radius: 999px; font: inherit; font-size: 12px; padding: 6px 12px; cursor: pointer; min-height: 32px; }
.tg-pill:hover { border-color: rgba(46,42,38,.3); }
.tg-pill.on { background: var(--v2-ink); border-color: var(--v2-ink); color: #FFFFFF; }
.tg-subs { display: flex; flex-direction: column; gap: 2px; }
.tg-sub-l { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 8px; font-size: 13.5px; color: var(--v2-ink); cursor: grab; }
.tg-sub-l:hover { background: #FAF7F3; }
.tg-sub-l span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tg-sub-l.ok span { text-decoration: line-through; color: var(--v2-sub); }
.tg-sub-x { border: none; background: transparent; color: var(--v2-ter); font-size: 17px; cursor: pointer; width: 26px; height: 26px; border-radius: 7px; opacity: 0; }
.tg-sub-l:hover .tg-sub-x { opacity: 1; }
.tg-sub-in { margin-top: 4px; }
.tg-g-pe { position: sticky; bottom: 0; display: flex; align-items: center; gap: 12px; background: #FFFFFF; border-top: 1px solid var(--v2-line); padding: 14px 0 16px; margin-top: auto; }
.tg-salvo { flex: 1; font-size: 12px; color: var(--v2-verde); font-weight: 600; }

/* ── larguras ──────────────────────────────────────────────── */
@media (max-width: 1280px) {
  .tg.com-trilho { grid-template-columns: 200px minmax(0, 1fr); }
  .tg.com-trilho .tg-trilho { grid-column: 2; position: static; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .tg.com-trilho .tg-trilho-h { grid-column: 1 / -1; }
  .tg { grid-template-columns: 200px minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .tg, .tg.com-trilho { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .tg.com-trilho .tg-trilho { grid-column: 1; }
  .tg-nav { position: static; flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 4px; scrollbar-width: none; }
  .tg-nav::-webkit-scrollbar { display: none; }
  .tg-nav-i { width: auto; flex: none; }
  .tg-nav-sec { margin: 0; flex-direction: row; gap: 4px; }
  .tg-nav-sec-h { flex: none; align-self: center; padding: 4px 6px 4px 12px; }
  .tg-nav-pe { margin: 0; flex-direction: row; flex: none; align-items: center; padding-left: 8px; }
  .tg-quadro { grid-template-columns: repeat(4, minmax(240px, 82vw)); }
  .tg-acoes { opacity: 1; }
  .tg-col .tg-acoes { display: none; }
  .tg-busca { width: 100%; }
  .tg-head-f { width: 100%; }
}
@media (max-width: 560px) {
  .tg-g-grade, .tg-g-datas { grid-template-columns: 1fr; }
  .tg-gaveta { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 88vh; }
  .tg-time, .tg-projs { grid-template-columns: 1fr; }
  .tg-acoes .tg-acao { width: 34px; height: 34px; }
}

/* ============================================================
   PEDIDOS × TAREFAS (28/out) · modules/tarefas/tipos-tarefa.js
   Gestão de pacientes › Pendências (lista calma e pedidos).
   ============================================================ */
.tt-pagina { max-width: 760px; }
.tt-pedidos { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.tt-pedido { display: inline-flex; align-items: baseline; gap: 9px; background: #FFFFFF; border: 1px solid var(--v2-line); border-radius: 14px; padding: 11px 16px; min-height: 46px; font: inherit; cursor: pointer; text-align: left; transition: border-color .15s ease; }
.tt-pedido:hover { border-color: var(--v2-line-strong); }
.tt-pedido-n { font-size: 17px; font-weight: 600; color: var(--v2-ink); line-height: 1; font-variant-numeric: tabular-nums; }
.tt-pedido-l { font-size: 13px; color: var(--v2-ink); }
.tt-pedido-ir { font-size: 11.5px; font-weight: 600; color: #8A6E38; margin-left: 4px; white-space: nowrap; }
.tt-lista { margin-bottom: 16px; }
.tt-lista-h { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: #8D7B6A; margin: 0 0 9px 2px; }
.tt-lista .v2mt-row, .tt-fechado .v2mt-row { margin-bottom: 6px; }
.tt-vazio { font-size: 13px; color: var(--v2-sub); padding: 6px 2px 14px; }
.tt-vazio-linha { font-size: 12.5px; color: var(--v2-ter); padding: 4px 2px 2px; }
.tt-mais { display: block; background: transparent; border: none; color: #8A6E38; font: inherit; font-size: 12px; font-weight: 600; padding: 6px 2px; cursor: pointer; }
.tt-fechado { margin-top: 4px; }
.tt-fechado > summary { cursor: pointer; list-style: none; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: #8D7B6A; padding: 8px 2px; }
.tt-fechado > summary::-webkit-details-marker { display: none; }
.tt-fechado[open] > summary { margin-bottom: 6px; }
.tt-filtro { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--v2-ink); font-weight: 600; margin: 0 0 18px 2px; }
.tt-filtro button { background: transparent; border: none; color: #8A6E38; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; padding: 4px 0; }
