.cat .cat-desp { min-width: 0; max-width: 100%; }
.cat .cat-desp .desp-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.cat .cat-desp .desp-filter button { box-sizing: border-box; min-height: 40px; padding: 0 14px; border: 1px solid var(--border-input); border-radius: var(--r-pill, 9999px); background: transparent; color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer; }
.cat .cat-desp .desp-filter input { box-sizing: border-box; height: 40px; min-width: 0; padding: 0 10px; border: 1px solid var(--border-input); border-radius: var(--r-md); background: var(--surface); color: var(--text); }
.cat .cat-desp .cat-table-wrap { max-width: 100%; overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.cat .cat-desp table { width: 100%; border-collapse: collapse; }
.cat .cat-desp thead tr { border-bottom: 1px solid var(--border); }
.cat .cat-desp th { height: 40px; padding: 0 16px; color: var(--text-muted); font-size: 13px; font-weight: 600; letter-spacing: normal; text-align: left; text-transform: none; }
.cat .cat-desp tr[data-id] { height: 56px; border-bottom: 1px solid var(--border); cursor: pointer; }
.cat .cat-desp td { height: 56px; padding: 0 16px; white-space: nowrap; }
.cat .cat-desp .cat-col-description { display: flex; align-items: center; min-width: 0; }
.cat .cat-desp .cat-col-description > span:first-child { flex: 0 1 360px; max-width: 360px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat .cat-desp .desp-date-field { display: flex; align-items: center; gap: 6px; }
.cat .cat-desp .cat-col-description .badge { flex: 0 0 auto; }
.cat .cat-desp .cat-col-value { text-align: right; }
.cat .cat-desp .badge { margin-left: 8px; font-size: 13px; letter-spacing: normal; text-transform: none; }
.cat .cat-desp [data-skeleton] { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.cat .cat-desp .cat-sk-row { box-sizing: border-box; height: 56px; border-bottom: 1px solid var(--border); background: var(--surface-2); opacity: .5; }
.cat .cat-desp [role="alert"], .cat .cat-desp .cat-empty { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 48px 24px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); color: var(--text-muted); text-align: center; }
.cat .cat-desp [data-retry], .cat .cat-desp [data-empty-new] { box-sizing: border-box; min-height: 40px; padding: 0 20px; border: 1px solid var(--border-input); border-radius: var(--r-pill, 9999px); background: var(--btn-bg); color: var(--btn-fg); font-weight: 600; cursor: pointer; }
@media (max-width: 767px) {
  .cat .cat-desp .desp-filter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; }
  .cat .cat-desp .desp-filter button { min-height: 44px; }
  .cat .cat-desp .desp-filter input { width: 100%; height: 44px; }
  .cat .cat-desp .desp-filter .desp-date-field { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; min-width: 0; }
  .cat .cat-desp .desp-filter .desp-date-field label { width: 24px; }
  .cat .cat-desp .desp-filter #qthis, .cat .cat-desp .desp-filter #qlast { grid-column: auto; }
  .cat .cat-desp .desp-filter #pesquisar { grid-column: 1 / -1; }
  .cat .cat-desp .cat-table-wrap { overflow: visible; border: 0; background: transparent; }
  .cat .cat-desp thead { display: none; }
  .cat .cat-desp table, .cat .cat-desp tbody { display: block; width: 100%; min-width: 0; }
  .cat .cat-desp tr[data-id] { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; width: 100%; min-height: 56px; height: auto; margin-bottom: 8px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); box-sizing: border-box; }
  .cat .cat-desp td { height: auto; padding: 0; white-space: normal; background: transparent; }
  .cat .cat-desp .cat-col-description { order: 1; flex: 1 1 100%; max-width: 100%; font-size: 15px; font-weight: 600; }
  .cat .cat-desp .cat-col-date { order: 2; margin-top: 6px; color: var(--text-muted); }
  .cat .cat-desp .cat-col-category, .cat .cat-desp .cat-col-method { display: none; }
  .cat .cat-desp .cat-col-value { order: 3; margin-top: 6px; font-weight: 600; }
}
.cat .cat-desp tr[data-id]:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
.cat .cat-desp tr[data-id]:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.cat .cat-desp .cat-search { margin-bottom: 16px; }
.cat .cat-desp .cat-search input { box-sizing: border-box; width: 100%; height: 40px; min-height: 40px; padding: 0 12px; border: 1px solid var(--border-input); border-radius: var(--r-md); background: var(--surface); color: var(--text); }
[data-desp-ficha] { box-sizing: border-box; width: 100%; }
[data-desp-ficha] h2 { margin: 0; font-size: 20px; font-weight: 700; color: var(--text); }
[data-desp-ficha] [data-drawer-close] { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--text-muted); cursor: pointer; border-radius: var(--r-md); padding: 0; }
[data-desp-ficha] [data-drawer-close]:hover { color: var(--text); }
[data-desp-ficha] input:not([type=radio]):not([type=checkbox]), [data-desp-ficha] select { box-sizing: border-box; min-height: 44px; border: 1px solid var(--border-input); border-radius: var(--r-md); background: var(--surface); color: var(--text); }
[data-desp-ficha] button { box-sizing: border-box; min-height: 44px; white-space: nowrap; }
[data-desp-ficha] label { white-space: nowrap; font-size: 12px; }
@media (max-width: 767px) {
  .cat .cat-desp .cat-search input { height: 44px; min-height: 44px; }
}
