/* Kit calmo: chip, card, dataTable, emptyState, errorState, loadingState. Prefixo k-. So tokens de calm.css; sem gradiente,
   sombra pesada, emoji ou cor nova. Vermelho so para urgente/vencido. */

.k-chip { white-space: nowrap; }
.k-chip__n--alerta { color: var(--bad); font-weight: 700; }

.k-card { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; min-width: 0; }
.k-card--alerta { border-left: 2px solid var(--warn); }
.k-card--urgente { border-left: 2px solid var(--bad); }
.k-card__title { margin: 0; font-size: 14px; font-weight: 700; line-height: 20px; color: var(--ink); overflow-wrap: anywhere; }
.k-card__meta { font-size: 12px; color: var(--mute); }
.k-card__body { font-size: 13px; color: var(--ink2); overflow-wrap: anywhere; }
.k-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.k-line { margin: 0; font-size: 13px; color: var(--ink2); }
.page > .k-card + .k-card { margin-top: 0; }

.k-empty, .k-error { padding: 20px 4px; }
.k-loading { padding: 4px 0; }

/* dataTable */
.k-dt { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.k-dt__filter { max-width: 280px; height: 32px; }
.k-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.k-table th, .k-table td { padding: 8px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.k-table thead th { position: sticky; top: 0; z-index: 1; background: var(--surface); font-size: 12px; font-weight: 600; color: var(--mute); white-space: nowrap; }
.k-table tbody th { font-weight: 600; color: var(--ink); }
.k-table .k-r { text-align: right; }
.k-th-btn { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.k-th-btn:hover { color: var(--ink); }
.k-th-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.k-row--click { cursor: pointer; }
.k-row--click:hover { background: var(--hover); }
.k-row--click:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.k-dt__empty { border-bottom: 0; }

@media (max-width: 899px) {
  .k-table, .k-table tbody, .k-table tr, .k-table th, .k-table td { display: block; }
  .k-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .k-table tbody tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
  .k-table th, .k-table td { padding: 2px 0; border: 0; }
  .k-table td[data-label]::before, .k-table th[data-label]::before { content: attr(data-label) ": "; font-size: 12px; font-weight: 500; color: var(--mute); }
  .k-table tbody th[data-label]::before { content: none; }
  .k-table .k-r { text-align: left; }
  .k-dt__filter { max-width: none; height: 44px; }
}
