/* Shared list UI. Scoped so reports, email and rich-text tables keep their layout. */
.data-table-scroll {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-gutter: stable;
  border-radius: 0.75rem;
}
.data-table {
  min-width: 44rem;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #344054;
}
.data-table > thead > tr > th {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid #e4e7ec;
  background: #f9fafb;
  color: #475467;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  white-space: nowrap;
  text-align: start;
}
.data-table > thead > tr > th.text-right { text-align: right; }
.data-table > thead > tr > th.text-center { text-align: center; }
.data-table > tbody > tr > td,
.data-table > tbody > tr > th {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #eaecf0;
  vertical-align: middle;
}
.data-table > tbody > tr:last-child > td { border-bottom: 0; }
.data-table > tbody > tr:hover > td,
.data-table > tbody > tr:focus-within > td { background-color: #f9fafb; }
.data-table td[colspan].text-center { padding-block: 3rem; color: #667085; }
.data-table td a,
.data-table td button:not([role="switch"]) {
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
}
.data-table td form { margin: 0; }
.data-table td .flex { flex-wrap: nowrap; }
.data-table td :is(input, select) { max-width: 100%; }

.list-filters { min-width: 0; gap: 0.75rem; }
.list-filters.flex { flex-wrap: wrap; }
.list-filters :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), select:not([multiple])) {
  min-height: 2.75rem;
  border-radius: 0.625rem;
  border-color: #d0d5dd;
  font-size: 0.875rem;
}
.list-filters :is(input[type="text"], input[type="search"], input[type="date"], input[type="month"], input[type="number"], select) {
  color: #344054;
  background-color: #fff;
}
.list-filters :is(input[type="submit"], button[type="submit"]) { cursor: pointer; }
.list-filters button[type="submit"]:has(svg):not(:has(span)) { min-width: 2.75rem; min-height: 2.75rem; }
.list-filter-clear,
.list-filters a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding-inline: 0.875rem;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475467;
}
.list-filter-clear:hover, .list-filters a:hover { background: #f2f4f7; }
.list-filters.grid > .list-filter-clear { justify-self: start; grid-column: 1 / -1; }
.list-filters > .list-filter-clear { margin-top: 0.25rem; }

.list-pagination-footer { padding: 1rem 1.25rem; border-top: 1px solid #eaecf0; }
.list-pagination {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.list-pagination-summary { color: #667085; font-size: 0.875rem; margin: 0; }
.list-pagination-summary strong { color: #344054; font-weight: 600; font-variant-numeric: tabular-nums; }
.list-pagination-controls { display: flex; align-items: center; gap: 0.375rem; flex-wrap: wrap; }
.list-page {
  display: inline-flex;
  min-height: 2.75rem;
  min-width: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d0d5dd;
  border-radius: 0.625rem;
  background: #fff;
  color: #344054;
  font-size: 0.875rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
a.list-page:hover { background: #f9fafb; border-color: #98a2b3; }
.list-page[aria-current="page"] { background: var(--color-brand-500, #004f6d); border-color: transparent; color: #fff; }
.list-page[aria-disabled="true"] { color: #98a2b3; background: #f9fafb; }
.list-page-gap { padding-inline: 0.25rem; color: #667085; }
.list-page-position { display: none; color: #475467; font-size: 0.8125rem; }

:is(.data-table-scroll, .data-table a, .data-table button, .list-filters input, .list-filters select, .list-filters button, .list-filter-clear, .list-page):focus-visible {
  outline: 3px solid var(--color-brand-400, #36a2c9);
  outline-offset: 3px;
}
.dark .data-table { color: #d0d5dd; }
.dark .data-table > thead > tr > th { color: #d0d5dd; background: #1d2939; border-color: #344054; }
.dark .data-table > tbody > tr > :is(td, th),
.dark .list-pagination-footer { border-color: #344054; }
.dark .data-table > tbody > tr:hover > td,
.dark .data-table > tbody > tr:focus-within > td { background: #1d2939; }
.dark .list-pagination-summary,
.dark .list-page-position { color: #98a2b3; }
.dark .list-pagination-summary strong { color: #f2f4f7; }
.dark .list-page,
.dark .list-filters :is(input[type="text"], input[type="search"], input[type="date"], input[type="month"], input[type="number"], select) { color: #eaecf0; background-color: #101828; border-color: #475467; }
.dark a.list-page:hover,
.dark .list-filter-clear:hover,
.dark .list-filters a:hover { background: #1d2939; }
.dark .list-page[aria-current="page"] { color: #fff; background: var(--color-brand-500, #004f6d); }
.dark .list-page[aria-disabled="true"] { color: #667085; background: #1d2939; }
.dark .list-filter-clear, .dark .list-filters a { color: #d0d5dd; }

@media (max-width: 639px) {
  .data-table > thead > tr > th,
  .data-table > tbody > tr > :is(td, th) { padding-inline: 1rem; }
  .list-filters { width: 100%; }
  .list-filters.flex { flex-direction: column; align-items: stretch; }
  .list-filters > * { min-width: 0; max-width: 100%; }
  .list-filters > .list-filter-clear { align-self: stretch; }
  .list-page-number, .list-page-gap { display: none; }
  .list-page-position { display: inline; }
  .list-pagination-controls { width: 100%; justify-content: space-between; flex-wrap: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .data-table *, .list-filters *, .list-pagination * { transition: none; }
}

.list-filters .relative > button[type="submit"]:has(svg) { right: 0.125rem; }
.list-empty { display: grid; justify-items: center; gap: 0.625rem; padding: 0.75rem; text-align: center; }
.list-empty-icon { color: #98a2b3; }
.list-empty-title { font-weight: 600; color: #475467; }
.list-empty-help { max-width: 28rem; font-size: 0.8125rem; color: #667085; }
.dark .list-empty-title { color: #d0d5dd; }
.dark .list-empty-help { color: #98a2b3; }

@media (max-width: 639px) {
  .data-table-scroll::before {
    content: attr(aria-label);
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #667085;
  }
  .dark .data-table-scroll::before { color: #98a2b3; }
}
.data-table :is(.text-brand-500, .text-brand-600) { color: var(--color-brand-700, #005943); }
.dark .data-table :is(.text-brand-500, .text-brand-600, .text-brand-700) { color: var(--color-brand-300, #8fd1bf); }
.dark .data-table :is(.text-red-600, .text-red-700, .text-error-600) { color: #fda29b; }
.dark .data-table :is(.text-gray-500, .text-gray-600) { color: #98a2b3; }

/* Page structure: header above, one card holding filters, table and pagination. */
.list-page-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.list-page-title { font-size: 1.5rem; line-height: 2rem; font-weight: 600; color: #1d2939; }
.list-page-subtitle { margin-top: 0.25rem; font-size: 0.875rem; color: #667085; }
.list-page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.list-button {
  display: inline-flex; min-height: 2.75rem; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.5rem 1.125rem; border-radius: 0.625rem; font-size: 0.875rem; font-weight: 500;
  background: var(--color-brand-500, #004f6d); color: #fff; white-space: nowrap;
}
.list-button:hover { background: var(--color-brand-600, #003f57); }
.list-button-secondary { background: #fff; color: #344054; border: 1px solid #d0d5dd; }
.list-button-secondary:hover { background: #f9fafb; }
.list-card { min-width: 0; border: 1px solid #e4e7ec; border-radius: 1rem; background: #fff; }
.list-card-toolbar { padding: 1rem 1.25rem; border-bottom: 1px solid #eaecf0; }
.list-card > .data-table-scroll { border-radius: 0; }
.list-card > .list-pagination-footer:first-child { border-top: 0; }
.dark .list-page-title { color: rgb(255 255 255 / 0.9); }
.dark .list-page-subtitle { color: #98a2b3; }
.dark .list-card { border-color: #1d2939; background: rgb(255 255 255 / 0.03); }
.dark .list-card-toolbar { border-color: #1d2939; }
.dark .list-button-secondary { background: #101828; color: #d0d5dd; border-color: #475467; }

/* Filter bar: search, quick filters, "Filtros" panel, one submit, active filter chips. */
.list-filter-bar { display: flex; flex-wrap: wrap; align-items: center; }
.list-filter-bar > :is(select, input).list-input { flex: 0 1 12rem; }
.list-search { position: relative; flex: 1 1 18rem; min-width: 0; }
.list-search-icon { position: absolute; left: 0.875rem; top: 50%; transform: translateY(-50%); color: #98a2b3; pointer-events: none; }
.list-filters .list-search-input { width: 100%; padding-left: 2.5rem; }
.list-input { width: 100%; }
.list-filter-advanced { display: contents; }
.list-filter-toggle, .list-filter-submit {
  display: inline-flex; min-height: 2.75rem; align-items: center; justify-content: center; gap: 0.5rem;
  padding-inline: 1rem; border-radius: 0.625rem; font-size: 0.875rem; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.list-filter-toggle { border: 1px solid #d0d5dd; background: #fff; color: #344054; }
.list-filter-toggle:hover { background: #f9fafb; }
.list-filter-submit { background: var(--color-brand-500, #004f6d); color: #fff; }
.list-filter-submit:hover { background: var(--color-brand-600, #003f57); }
.list-filter-count { display: inline-grid; place-items: center; min-width: 1.25rem; height: 1.25rem; padding-inline: 0.25rem; border-radius: 999px; background: var(--color-brand-500, #004f6d); color: #fff; font-size: 0.75rem; }
.list-filter-panel { order: 98; flex-basis: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 0.75rem; padding-top: 0.25rem; }
.list-field { display: grid; gap: 0.375rem; font-size: 0.75rem; font-weight: 500; color: #475467; }
.list-active-filters { order: 99; flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.list-chip {
  display: inline-flex; min-height: 2rem; align-items: center; gap: 0.25rem; padding: 0.25rem 0.5rem 0.25rem 0.75rem;
  border-radius: 999px; background: #f2f4f7; color: #344054; font-size: 0.8125rem;
}
.list-chip:hover { background: #eaecf0; }
.list-chip-label { color: #667085; }
.list-chip-remove { display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 999px; font-size: 1rem; line-height: 1; color: #667085; }
.list-chip:hover .list-chip-remove { background: #d0d5dd; color: #1d2939; }
.dark .list-filter-toggle { border-color: #475467; background: #101828; color: #d0d5dd; }
.dark .list-field, .dark .list-chip-label { color: #98a2b3; }
.dark .list-chip { background: #1d2939; color: #eaecf0; }
.dark .list-chip:hover { background: #344054; }

/* Row actions: primary link visible, the rest in a "⋯" menu. */
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 0.25rem; }
.data-table td .row-action, .row-action { padding-inline: 0.625rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 500; color: var(--color-brand-700, #005943); }
.row-action:hover { background: #f2f4f7; }
.data-table td .row-actions-toggle, .row-actions-toggle { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; color: #667085; }
.row-actions-toggle:hover, .row-actions-toggle[aria-expanded="true"] { background: #f2f4f7; color: #1d2939; }
.row-actions-list {
  position: fixed; z-index: 99999; min-width: 11rem; padding: 0.375rem; border: 1px solid #e4e7ec; border-radius: 0.75rem;
  background: #fff; box-shadow: 0 12px 16px -4px rgb(16 24 40 / 0.08), 0 4px 6px -2px rgb(16 24 40 / 0.03);
}
.row-actions-list form { margin: 0; }
.row-actions-item, .data-table td .row-actions-item {
  display: flex; width: 100%; min-height: 2.5rem; align-items: center; padding: 0.5rem 0.75rem; border-radius: 0.5rem;
  font-size: 0.875rem; color: #344054; text-align: left; cursor: pointer;
}
.row-actions-item:hover, .row-actions-item:focus-visible { background: #f2f4f7; outline: none; }
.row-actions-danger, .data-table td .row-actions-danger { color: #d92d20; }
.row-actions-danger:hover { background: #fef3f2; }
.dark .row-action:hover, .dark .row-actions-toggle:hover, .dark .row-actions-toggle[aria-expanded="true"] { background: #1d2939; color: #f2f4f7; }
.dark .row-actions-list { border-color: #344054; background: #101828; }
.dark .row-actions-item { color: #d0d5dd; }
.dark .row-actions-item:hover { background: #1d2939; }
.dark .row-actions-danger, .dark .data-table td .row-actions-danger { color: #fda29b; }

/* Primary cell: name in bold, one detail line below. */
.cell-title { display: block; font-weight: 500; color: #1d2939; }
.cell-detail { display: block; font-size: 0.75rem; color: #667085; }
a.cell-title:hover { color: var(--color-brand-700, #005943); text-decoration: underline; }
.data-table td a.cell-title { min-height: 0; display: block; }
.cell-muted { color: #667085; }
.dark .cell-title { color: rgb(255 255 255 / 0.9); }
.dark .cell-detail, .dark .cell-muted { color: #98a2b3; }

.list-per-page { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: #667085; }
.list-per-page select { min-height: 2.5rem; padding: 0 2rem 0 0.75rem; border: 1px solid #d0d5dd; border-radius: 0.625rem; background-color: #fff; font-size: 0.875rem; color: #344054; }
.dark .list-per-page select { background-color: #101828; border-color: #475467; color: #eaecf0; }
.list-empty-action { margin-top: 0.25rem; display: inline-flex; min-height: 2.5rem; align-items: center; padding-inline: 1rem; border: 1px solid #d0d5dd; border-radius: 0.625rem; font-size: 0.875rem; font-weight: 500; color: #344054; }
.list-empty-action:hover { background: #f9fafb; }

@media (max-width: 639px) {
  .list-page-actions, .list-page-actions > * { width: 100%; }
  .list-filter-bar > :is(select, input).list-input,
  .list-filter-bar > .list-filter-toggle,
  .list-filter-bar > .list-filter-submit { flex: 1 1 8rem; }
  .list-filter-bar > .list-search { flex-basis: 100%; }
  .list-pagination-footer .list-per-page { display: none; }

  /* Daily lists turn each row into a stacked card. */
  .data-table-scroll:has(> .data-table-stack) { overflow: visible; }
  .data-table-scroll:has(> .data-table-stack)::before { display: none; }
  .data-table-stack { min-width: 0; }
  .data-table-stack > thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table-stack > tbody > tr { display: block; padding: 0.875rem 1rem 0.5rem; border-bottom: 1px solid #eaecf0; }
  .data-table-stack > tbody > tr:last-child { border-bottom: 0; }
  .data-table.data-table-stack > tbody > tr > td { display: grid; grid-template-columns: minmax(6rem, auto) minmax(0, 1fr); column-gap: 1rem; padding: 0.1875rem 0; border: 0; text-align: right; overflow-wrap: anywhere; }
  .data-table-stack > tbody > tr > td[data-label] > * { grid-column: 2; }
  .data-table-stack > tbody > tr > td[data-label]::before { content: attr(data-label); grid-column: 1; color: #667085; text-align: left; }
  .data-table.data-table-stack > tbody > tr > td.cell-primary { display: block; padding-bottom: 0.375rem; text-align: left; }
  .data-table.data-table-stack > tbody > tr > td.cell-actions { display: block; margin-top: 0.375rem; }
  .data-table-stack .cell-actions .row-actions { justify-content: flex-start; margin-left: -0.625rem; }
  .data-table.data-table-stack > tbody > tr > td[colspan] { display: block; text-align: center; }
  .data-table-stack > tbody > tr:hover > td { background: none; }
  .dark .data-table-stack > tbody > tr { border-color: #344054; }
}
.list-filters :is(input, select).list-input { border: 1px solid #d0d5dd; background-color: #fff; color: #1d2939; padding-inline: 0.875rem; }
.list-filters select.list-input { padding-right: 2.25rem; }
.list-filters :is(input, select).list-input:focus { border-color: var(--color-brand-300, #7cc3dd); box-shadow: 0 0 0 3px rgb(0 79 109 / 0.1); outline: none; }
.dark .list-filters :is(input, select).list-input { border-color: #475467; background-color: #101828; color: #eaecf0; }
.list-card > .data-table-scroll { scrollbar-gutter: auto; }
.list-filters .list-search > input.list-search-input { padding-left: 2.5rem; }
.list-filters a.list-chip { min-height: 2rem; padding: 0.25rem 0.375rem 0.25rem 0.75rem; border-radius: 999px; font-weight: 400; color: #344054; }
.dark .list-filters a.list-chip { color: #eaecf0; }
.list-pagination-info { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.dark .row-action, .dark .data-table td .row-action { color: var(--color-brand-300, #8fd1bf); }
.dark .data-table td .row-actions-item:not(.row-actions-danger) { color: #d0d5dd; }

/* Badges for status and categories inside lists. */
.list-badge { display: inline-flex; align-items: center; padding: 0.125rem 0.625rem; border-radius: 999px; font-size: 0.75rem; font-weight: 500; line-height: 1.25rem; white-space: nowrap; }
.list-badge-gray { background: #f2f4f7; color: #344054; }
.list-badge-brand { background: var(--color-brand-50, #e6f4f1); color: var(--color-brand-700, #005943); }
.list-badge-blue { background: #eff8ff; color: #175cd3; }
.list-badge-green { background: #ecfdf3; color: #027a48; }
.list-badge-amber { background: #fffaeb; color: #b54708; }
.list-badge-red { background: #fef3f2; color: #b42318; }
.dark .list-badge-gray { background: rgb(255 255 255 / 0.06); color: #d0d5dd; }
.dark .list-badge-brand { background: rgb(18 183 106 / 0.15); color: var(--color-brand-300, #8fd1bf); }
.dark .list-badge-blue { background: rgb(46 144 250 / 0.15); color: #84caff; }
.dark .list-badge-green { background: rgb(18 183 106 / 0.15); color: #6ce9a6; }
.dark .list-badge-amber { background: rgb(247 144 9 / 0.15); color: #fec84b; }
.dark .list-badge-red { background: rgb(240 68 56 / 0.15); color: #fda29b; }
.cell-with-avatar { display: flex; align-items: center; gap: 0.75rem; text-align: left; }
.cell-avatar { display: grid; place-items: center; flex-shrink: 0; width: 2.5rem; height: 2.5rem; overflow: hidden; border-radius: 999px; background: #f2f4f7; color: #475467; font-size: 0.875rem; font-weight: 600; }
.cell-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dark .cell-avatar { background: #1d2939; color: #d0d5dd; }
.row-actions-spacer { display: inline-block; width: 2.5rem; }
@media (max-width: 639px) { .data-table-stack .row-actions-spacer { display: none; } }
.list-filter-grow { flex: 1 1 18rem; min-width: 0; }
.list-filter-bar > .list-filter-grow select, .list-filter-bar > .list-filter-grow .list-input { width: 100%; }
/* Campos de data ganham um invólucro (ícone do calendário); o invólucro segue a largura dos demais filtros. */
.list-filter-bar > div:has(> input.list-input):not(.list-search, .list-filter-grow) { flex: 0 1 12rem; }
.list-filter-bar > div:has(> input.list-input):not(.list-search, .list-filter-grow) > input { width: 100%; }
@media (max-width: 639px) {
  .list-filter-bar > div:has(> input.list-input):not(.list-search, .list-filter-grow) { flex: 1 1 8rem; }
}

/* Indicadores acima da lista: mesmos cartões em todas as telas, compactos no celular. */
.list-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.75rem; margin-bottom: 1.25rem; }
.list-metric { display: flex; flex-direction: column; justify-content: space-between; gap: 0.25rem; padding: 1rem 1.25rem; border: 1px solid #e4e7ec; border-radius: 0.75rem; background: #fff; }
.list-metric-label { font-size: 0.875rem; font-weight: 500; color: #667085; }
.list-metric-value { font-size: 1.5rem; line-height: 2rem; font-weight: 600; color: #1d2939; font-variant-numeric: tabular-nums; }
.list-metric-brand { color: var(--color-brand-600, #087d70); }
.list-metric-red { color: #d92d20; }
.dark .list-metric { border-color: #1d2939; background: rgb(255 255 255 / 0.03); }
.dark .list-metric-label { color: #98a2b3; }
.dark .list-metric-value { color: rgb(255 255 255 / 0.9); }
.dark .list-metric-brand { color: var(--color-brand-400, #4fb3a1); }
.dark .list-metric-red { color: #f97066; }
@media (max-width: 639px) {
  .list-metrics { grid-template-columns: repeat(auto-fit, minmax(6rem, 1fr)); gap: 0.5rem; }
  .list-metric { padding: 0.75rem; }
  .list-metric-label { font-size: 0.75rem; line-height: 1rem; }
  .list-metric-value { font-size: 1.25rem; line-height: 1.75rem; }
}

/* Quadros operacionais (banho e tosa, pet sitter, operações do dia): navegação por dia, abas de situação e cartões. */
.list-board-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.list-board-toolbar > .list-filters { flex: 1 1 24rem; min-width: 0; }
.list-date-nav { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.25rem; border: 1px solid #e4e7ec; border-radius: 0.75rem; background: #f9fafb; }
.list-date-nav-step { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 0.5rem; color: #475467; }
.list-date-nav-step:hover { background: #fff; color: #101828; box-shadow: 0 1px 2px rgb(16 24 40 / 0.06); }
.list-date-nav-label { min-width: 11rem; padding-inline: 0.5rem; text-align: center; }
.list-date-nav-weekday { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: #667085; }
.list-date-nav-day { font-size: 0.875rem; font-weight: 600; color: #1d2939; }
.list-date-nav-today { padding-inline: 0.5rem; font-size: 0.875rem; font-weight: 600; color: var(--color-brand-600, #087d70); }
.list-tabs { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.75rem 1.25rem; border-bottom: 1px solid #eaecf0; scrollbar-width: none; }
.list-tabs::-webkit-scrollbar { display: none; }
.list-tab { display: inline-flex; flex-shrink: 0; align-items: center; gap: 0.5rem; min-height: 2.25rem; padding: 0 0.875rem; border: 1px solid #e4e7ec; border-radius: 999px; background: #fff; font-size: 0.875rem; font-weight: 500; color: #475467; white-space: nowrap; }
.list-tab:hover { border-color: #d0d5dd; color: #101828; }
.list-tab-active, .list-tab-active:hover { border-color: #1d2939; background: #1d2939; color: #fff; }
.list-tab-count { padding: 0 0.5rem; border-radius: 999px; background: #f2f4f7; font-size: 0.75rem; font-weight: 600; color: #344054; font-variant-numeric: tabular-nums; }
.list-tab-active .list-tab-count { background: rgb(255 255 255 / 0.2); color: #fff; }
.list-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 1rem; padding: 1.25rem; }
.dark .list-date-nav { border-color: #344054; background: #101828; }
.dark .list-date-nav-step { color: #d0d5dd; }
.dark .list-date-nav-step:hover { background: #1d2939; color: #fff; }
.dark .list-date-nav-day { color: rgb(255 255 255 / 0.9); }
.dark .list-date-nav-weekday { color: #98a2b3; }
.dark .list-date-nav-today { color: var(--color-brand-400, #4fb3a1); }
.dark .list-tabs { border-color: #1d2939; }
.dark .list-tab { border-color: #344054; background: #101828; color: #d0d5dd; }
.dark .list-tab:hover { border-color: #475467; color: #fff; }
.dark .list-tab-active, .dark .list-tab-active:hover { border-color: #fff; background: #fff; color: #101828; }
.dark .list-tab-count { background: #1d2939; color: #d0d5dd; }
.dark .list-tab-active .list-tab-count { background: #eaecf0; color: #101828; }
@media (max-width: 639px) {
  .list-date-nav { display: flex; width: 100%; }
  .list-date-nav-label { flex: 1; min-width: 0; }
  .list-tabs { padding-inline: 1rem; }
  .list-board { padding: 1rem; }
}
.list-board-note { padding: 0.75rem 1.25rem 0; font-size: 0.75rem; font-weight: 500; color: #667085; }
/* Valores e a ação principal da linha não quebram ("R$ / 189,90"). */
.data-table td.text-right.tabular-nums, .row-action { white-space: nowrap; }

/* Cadastro rápido na própria tela da lista: fica recolhido acima da tabela e abre quando há erro ou nada cadastrado. */
.list-form-card { margin-bottom: 1.25rem; border: 1px solid #e4e7ec; border-radius: 1rem; background: #fff; }
.list-form-card > summary { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 1rem 1.25rem; cursor: pointer; list-style: none; font-weight: 600; color: #101828; }
.list-form-card > summary::-webkit-details-marker { display: none; }
.list-form-card > summary::after { content: "+"; font-size: 1.25rem; line-height: 1; color: #667085; }
.list-form-card[open] > summary { border-bottom: 1px solid #eaecf0; }
.list-form-card[open] > summary::after { content: "−"; }
.list-form-card-body { padding: 1.25rem; }
.list-form-card-help { margin-bottom: 1rem; font-size: 0.875rem; color: #667085; }
.dark .list-form-card { border-color: #1d2939; background: rgb(255 255 255 / 0.03); }
.dark .list-form-card > summary { color: rgb(255 255 255 / 0.9); }
.dark .list-form-card[open] > summary { border-color: #1d2939; }
