/* 6.139 — Demandas enxutas */
@media (min-width: 768px) {
  .k9-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
  .k9-head > div:first-child { flex: 1; min-width: 0; }
  .k9-head h1 { font-size: 30px !important; line-height: 1.1 !important; font-weight: 400; margin: 0; }
  .k9-head .hq-btn { display: none; }
  .k9-head .k9-views { margin: 0; padding: 3px; }
  .k9-head .k9-views a { padding: 0 10px; height: 34px; gap: 6px; }
  #taskKpis:has(+ *), #taskKpis { display: none !important; }
  body:has(.k9-tb) #content .mf-far { display: none !important; }
  .k9-tb { margin-bottom: 12px !important; }
}
@media (min-width: 768px) and (max-width: 1279px) {
  .k9-head .k9-views a { font-size: 0 !important; width: 38px; padding: 0; justify-content: center; }
  .k9-head .k9-views a svg { margin: 0; }
}
.k9-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: 600 12.5px/1 var(--font); cursor: pointer; white-space: nowrap; text-decoration: none; }
.k9-chip:hover { border-color: var(--border-strong); color: var(--text); text-decoration: none; }
.k9-late { color: #DC2626; border-color: color-mix(in srgb, #DC2626 30%, transparent); background: color-mix(in srgb, #DC2626 7%, var(--surface)); }
.k9-late b { font-weight: 800; }
.k9-far.on { background: var(--surface-muted); }
@media (max-width: 767px) { .k9-chip { height: 32px; } .k9-tb .k9-late, .k9-tb .k9-far { grid-column: auto; } }

/* quadro: colunas de largura fixa e rolagem para o lado */
@media (min-width: 768px) {
  .board { overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; }
  .board > .col, .board > .col.empty, .board > .col.fold { flex: 0 0 272px !important; min-width: 272px !important; padding: 10px !important; align-items: stretch !important; scroll-snap-align: start; }
  .board > .col.empty .col-h, .board > .col.fold .col-h { writing-mode: horizontal-tb !important; transform: none !important; padding: 4px 6px 8px !important; }
  .board > .col.empty .col-h .n, .board > .col.fold .col-h .n { transform: none !important; }
  .board > .col.empty .col-h .sp { display: block !important; flex: 1; }
  .board > .col.fold { cursor: pointer; }
  .board > .col .col-h { font-size: 14px; }
}
.k9-none { margin: 2px 0 4px; padding: 14px 8px; border: 1.5px dashed var(--border-strong); border-radius: 12px; text-align: center; font-size: 12px; color: var(--text-muted); }
.col-new { height: 32px; font-size: 12.5px; }
.tcardk.k6 .ft span[title="Checklist"] { opacity: .75; }
