.tax-mgmt-page {
  min-height: calc(100vh - 8rem);
}

.tax-mgmt-shell {
  max-width: 93.333rem;
  margin: 0 auto;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 0.667rem 2rem rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.tax-mgmt-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.35rem 1.5rem;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.06), rgba(255, 255, 255, 0));
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.tax-mgmt-hero-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  color: #0d6efd;
  background: rgba(13, 110, 253, 0.1);
  flex-shrink: 0;
}

.tax-mgmt-hero--debt .tax-mgmt-hero-icon {
  color: #6f42c1;
  background: rgba(111, 66, 193, 0.1);
}

.tax-mgmt-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  color: #0f172a;
}

.tax-mgmt-subtitle {
  margin: 0.15rem 0 0;
  color: #64748b;
  font-size: 0.9rem;
}

.tax-mgmt-hero-actions {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tax-mgmt-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.tax-mgmt-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  border: 1px solid rgba(255, 193, 7, 0.35);
  border-left: 0.25rem solid #ffc107;
  border-radius: 0.75rem;
  background: #fffbeb;
  color: #854d0e;
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.tax-mgmt-alert i {
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.tax-mgmt-panel {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.9rem;
  background: #fff;
  margin-bottom: 1rem;
  overflow: hidden;
}

.tax-mgmt-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  font-weight: 700;
  color: #334155;
  font-size: 0.92rem;
}

.tax-mgmt-panel-body {
  padding: 1rem;
}

.tax-mgmt-filters .form-label {
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.tax-mgmt-filters .form-control,
.tax-mgmt-filters .form-select {
  border-color: rgba(15, 23, 42, 0.12);
  border-radius: 0.55rem;
}

.tax-mgmt-filters .form-control:focus,
.tax-mgmt-filters .form-select:focus {
  border-color: rgba(13, 110, 253, 0.45);
  box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.12);
}

.tax-mgmt-panel-head--toggle {
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease;
}

.tax-mgmt-panel-head--toggle:hover {
  background: #f1f5f9;
}

.tax-mgmt-panel-toggle {
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: #475569;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  padding: 0;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.tax-mgmt-panel-toggle-icon {
  display: grid;
  place-items: center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tax-mgmt-panel.is-collapsed .tax-mgmt-panel-toggle-icon {
  transform: rotate(-180deg);
}

.tax-mgmt-panel-toggle:hover {
  background: rgba(13, 110, 253, 0.08);
  border-color: rgba(13, 110, 253, 0.25);
  color: #0d6efd;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.12);
}

.tax-mgmt-panel-collapse {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.tax-mgmt-panel.is-collapsed .tax-mgmt-panel-collapse {
  grid-template-rows: 0fr;
}

.tax-mgmt-panel-collapse-inner {
  overflow: hidden;
  min-height: 0;
}

.tax-mgmt-panel-collapse-inner:not(.p-0) {
  padding: 1rem;
}

.tax-mgmt-filters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tax-mgmt-filter-group {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 0.75rem;
  background: linear-gradient(180deg, #fafbfc, #fff);
}

.tax-mgmt-filter-group-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 0.65rem;
}

.tax-mgmt-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  margin-top: 0.15rem;
}

.tax-mgmt-filters--compact {
  gap: 0.5rem;
}

.tax-mgmt-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.45rem 0.65rem;
  align-items: end;
}

.tax-mgmt-filter-field .form-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tax-mgmt-filter-field--wide {
  grid-column: span 2;
}

.tax-mgmt-filters--compact[data-list-mode="pending"] [data-filter-scope="inscriptions"],
.tax-mgmt-filters--compact[data-list-mode="inscriptions"] [data-filter-scope="pending"] {
  display: none;
}

@media (max-width: 575.98px) {
  .tax-mgmt-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tax-mgmt-filter-field--wide {
    grid-column: span 2;
  }
}

@media (min-width: 992px) {
  .tax-mgmt-filter-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .tax-mgmt-filter-field--wide {
    grid-column: span 2;
  }
}

.tax-mgmt-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 0.75rem;
}

.tax-mgmt-col-check {
  width: 2.5rem;
  min-width: 2.5rem;
}

.tax-mgmt-col-actions {
  width: 6.5rem;
  min-width: 6.5rem;
  position: sticky;
  right: 0;
  z-index: 2;
  background: #fff;
  box-shadow: -4px 0 8px rgba(15, 23, 42, 0.04);
}

.tax-mgmt-table thead .tax-mgmt-col-actions {
  background: #f8fafc;
}

.tax-mgmt-data-row.is-expanded .tax-mgmt-col-actions,
.tax-mgmt-data-row.is-selected .tax-mgmt-col-actions,
.tax-mgmt-data-row:hover .tax-mgmt-col-actions {
  background: inherit;
}

.tax-mgmt-col-da {
  min-width: 4.5rem;
  text-align: center;
}

.tax-mgmt-col-days,
.tax-mgmt-col-nosso {
  white-space: nowrap;
}

.tax-mgmt-col-amount {
  white-space: nowrap;
  font-weight: 600;
}

.tax-mgmt-col-status .badge {
  font-size: 0.72rem;
}

.btn-view-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-width: 2.35rem;
  height: 2.35rem;
  padding: 0 0.55rem;
  border: 1px solid rgba(13, 110, 253, 0.25);
  border-radius: 0.65rem;
  background: #fff;
  color: #0d6efd;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-view-icon:hover,
.btn-view-icon.is-active {
  background: #0d6efd;
  border-color: #0d6efd;
  color: #fff;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
}

.tax-mgmt-view-label {
  display: none;
}

@media (min-width: 1200px) {
  .tax-mgmt-view-label {
    display: inline;
  }

  .btn-view-icon {
    min-width: 4.5rem;
  }
}

.tax-mgmt-mobile-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.75rem;
}

.tax-mgmt-mobile-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.85rem;
  background: #fff;
  padding: 0.85rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.tax-mgmt-mobile-card.is-selected {
  border-color: rgba(13, 110, 253, 0.35);
  background: rgba(13, 110, 253, 0.03);
}

.tax-mgmt-mobile-card.is-expanded {
  border-color: rgba(13, 110, 253, 0.45);
  box-shadow: 0 6px 18px rgba(13, 110, 253, 0.1);
}

.tax-mgmt-mobile-card-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: start;
}

.tax-mgmt-mobile-person {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.92rem;
  line-height: 1.3;
}

.tax-mgmt-mobile-encargo {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.15rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tax-mgmt-mobile-amount {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.88rem;
  text-align: right;
  margin-bottom: 0.35rem;
}

.tax-mgmt-mobile-card-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.tax-mgmt-mobile-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 0.76rem;
  color: #64748b;
  align-items: center;
}

.tax-mgmt-mobile-detail {
  margin-top: 0.75rem;
  border-top: 1px dashed rgba(15, 23, 42, 0.1);
  padding-top: 0.75rem;
}

.tax-mgmt-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  background: #fff;
}

.tax-mgmt-page-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.tax-mgmt-page-btn,
.tax-mgmt-page-nav {
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: #475569;
  min-width: 2.1rem;
  height: 2.1rem;
  padding: 0 0.5rem;
  border-radius: 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.tax-mgmt-page-btn:hover:not(.is-active),
.tax-mgmt-page-nav:hover:not(:disabled) {
  border-color: #0d6efd;
  color: #0d6efd;
}

.tax-mgmt-page-btn.is-active {
  background: #0d6efd;
  border-color: #0d6efd;
  color: #fff;
}

.tax-mgmt-page-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tax-mgmt-page-ellipsis {
  color: #94a3b8;
  padding: 0 0.25rem;
}

.tax-mgmt-page-info {
  font-size: 0.78rem;
  color: #64748b;
  margin-left: 0.25rem;
}

.tax-mgmt-table {
  margin-bottom: 0;
}

.tax-mgmt-table thead th {
  background: #f8fafc;
  border-bottom-width: 1px;
  color: #475569;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
  white-space: nowrap;
}

.tax-mgmt-table td,
.tax-mgmt-table th {
  vertical-align: middle;
  font-size: 0.88rem;
  padding: 0.7rem 0.85rem;
}

.tax-mgmt-table tbody tr {
  transition: background 0.15s ease;
}

.tax-mgmt-table tbody tr:hover {
  background: rgba(13, 110, 253, 0.03);
}

.tax-skel-panel {
  pointer-events: none;
}

.tax-skel {
  display: block;
  height: 0.82rem;
  max-width: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #e5e7eb 0%, #f3f4f6 45%, #e5e7eb 100%);
  background-size: 220% 100%;
  animation: tax-skel-shimmer 1.25s ease-in-out infinite;
}

.tax-skel--lg {
  height: 1rem;
}

.tax-skel--sm {
  height: 0.7rem;
  margin-top: 0.7rem;
}

.tax-skel-row td {
  padding-top: 0.95rem;
  padding-bottom: 0.95rem;
}

.tax-skel-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

@keyframes tax-skel-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .tax-skel {
    animation: none;
    background: #e5e7eb;
  }
}

.tax-mgmt-empty {
  padding: 3rem 1.5rem;
  text-align: center;
  color: #94a3b8;
}

.tax-mgmt-empty i {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.65rem;
  opacity: 0.65;
}

.tax-mgmt-actions .btn {
  font-size: 0.82rem;
  border-radius: 0.55rem;
}

.tax-mgmt-cell-encargo {
  max-width: 12rem;
  min-width: 8rem;
}

.tax-mgmt-encargo-name {
  display: inline-block;
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
  cursor: help;
}

.tax-mgmt-data-row.is-selected td {
  background: rgba(13, 110, 253, 0.07);
}

.tax-mgmt-selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
}

.tax-mgmt-detail-inline {
  padding: 1.15rem 1.25rem 1.25rem;
  background: linear-gradient(165deg, rgba(13, 110, 253, 0.05) 0%, #fff 45%);
  border-top: 3px solid rgba(13, 110, 253, 0.35);
}

.tax-mgmt-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tax-mgmt-detail-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.tax-mgmt-detail-key {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tax-mgmt-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.tax-mgmt-detail-header-amount {
  text-align: right;
  padding: 0.65rem 0.9rem;
  border-radius: 0.75rem;
  background: rgba(13, 110, 253, 0.08);
  border: 1px solid rgba(13, 110, 253, 0.12);
}

.tax-mgmt-detail-header-amount strong {
  display: block;
  font-size: 1.25rem;
  color: #0d6efd;
  line-height: 1.2;
}

.tax-mgmt-status-hint {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  background: rgba(13, 202, 240, 0.08);
  border: 1px solid rgba(13, 202, 240, 0.2);
  color: #055160;
  font-size: 0.84rem;
}

.tax-mgmt-status-hint i {
  font-size: 1.1rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.tax-mgmt-status-hint strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.88rem;
}

.tax-mgmt-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.tax-mgmt-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .tax-mgmt-detail-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tax-mgmt-detail-field--wide {
    grid-column: span 2;
  }
}

.tax-mgmt-detail-field {
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.tax-mgmt-detail-field-label {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.tax-mgmt-detail-field-value {
  display: block;
  font-size: 0.88rem;
  color: #0f172a;
  font-weight: 600;
  line-height: 1.35;
  word-break: break-word;
}

.tax-mgmt-detail-section {
  margin-top: 0.85rem;
}

.tax-mgmt-detail-section-title {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.tax-mgmt-timeline {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0 0 0.35rem;
  position: relative;
}

.tax-mgmt-timeline::before {
  content: "";
  position: absolute;
  left: 0.95rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(13, 110, 253, 0.35), rgba(15, 23, 42, 0.08));
  border-radius: 2px;
}

.tax-mgmt-timeline-item {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  padding: 0.55rem 0 0.85rem;
  position: relative;
}

.tax-mgmt-timeline-marker {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #fff;
  border: 2px solid rgba(13, 110, 253, 0.25);
  color: #0d6efd;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  z-index: 1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.tax-mgmt-timeline-body {
  padding: 0.15rem 0.65rem 0.65rem;
  border-radius: 0.65rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.tax-mgmt-timeline-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tax-mgmt-timeline-type {
  font-weight: 700;
  font-size: 0.86rem;
  color: #0f172a;
}

.tax-mgmt-timeline-when {
  font-size: 0.74rem;
  color: #94a3b8;
  white-space: nowrap;
}

.tax-mgmt-timeline-desc {
  font-size: 0.82rem;
  color: #475569;
  margin-top: 0.25rem;
  line-height: 1.4;
}

.tax-mgmt-timeline-operator {
  font-size: 0.76rem;
  color: #64748b;
  margin-top: 0.35rem;
}

.tax-mgmt-history-empty {
  font-size: 0.84rem;
  color: #94a3b8;
  margin: 0;
  padding: 0.5rem 0;
}

.tax-mgmt-detail-row td {
  padding: 0 !important;
  border-top: none !important;
  background: #f8fafc;
}

.tax-mgmt-data-row.is-expanded td {
  background: rgba(13, 110, 253, 0.04);
  border-bottom-color: transparent;
}

.tax-mgmt-detail-hint {
  font-size: 0.85rem;
  color: #854d0e;
  background: #fffbeb;
  border: 1px solid rgba(255, 193, 7, 0.35);
  border-radius: 0.55rem;
  padding: 0.55rem 0.75rem;
}

.tax-mgmt-history-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  max-height: 280px;
  overflow-y: auto;
}

.tax-mgmt-history-item {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.tax-mgmt-history-item:last-child {
  border-bottom: none;
}

.tax-mgmt-history-when {
  font-size: 0.78rem;
  color: #64748b;
}

.tax-mgmt-history-type {
  font-weight: 700;
  font-size: 0.88rem;
  color: #0f172a;
  margin-top: 0.1rem;
}

.tax-mgmt-history-desc {
  font-size: 0.84rem;
  color: #475569;
  margin-top: 0.15rem;
}

.tax-mgmt-history-operator {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 0.2rem;
}

.tax-mgmt-detail {
  border: 1px solid rgba(13, 110, 253, 0.15);
  border-radius: 0.9rem;
  background: linear-gradient(180deg, rgba(13, 110, 253, 0.03), #fff 35%);
  padding: 1rem 1.15rem;
}

.tax-mgmt-detail pre {
  max-height: 260px;
  overflow: auto;
  font-size: 0.78rem;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.55rem;
  padding: 0.75rem;
  margin-bottom: 0;
}

.tax-mgmt-detail-inline--debt {
  border-top-color: rgba(15, 23, 42, 0.18);
  background: linear-gradient(165deg, #f8fafc 0%, #fff 42%);
}

.tax-mgmt-detail-header-amount--debt {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.1);
}

.tax-mgmt-detail-header-amount--debt strong {
  color: #0f172a;
}

.tax-mgmt-detail-inline code,
.tax-mgmt-detail-inline .tax-mgmt-ref,
.tax-mgmt-table code,
.tax-mgmt-ref {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1e293b;
  background: #e2e8f0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.4rem;
  padding: 0.15rem 0.4rem;
}

.tax-da-item-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tax-da-program-banner {
  border-color: rgba(180, 83, 9, 0.25);
  background: #fffbeb;
}

.tax-da-program-banner i {
  color: #b45309;
  font-size: 1.15rem;
}

.tax-da-item-card,
.tax-da-charge-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0.75rem;
  padding: 0.85rem 0.95rem;
}

.tax-da-item-card-head,
.tax-da-charge-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.85rem;
}

.tax-da-item-card-main,
.tax-da-charge-card-main {
  min-width: 0;
  flex: 1;
}

.tax-da-item-card-side,
.tax-da-charge-card-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
}

.tax-da-item-kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.tax-da-item-amount {
  font-size: 0.95rem;
  color: #0f172a;
  white-space: nowrap;
}

.tax-da-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  margin-top: 0.65rem;
  font-size: 0.78rem;
  color: #64748b;
}

.tax-da-item-meta i {
  margin-right: 0.3rem;
}

.tax-da-charge-type {
  margin: 0.4rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
}

.tax-da-charge-desc {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.4;
}

.tax-mgmt-detail-inline--debt .entity-disc-panel {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
}

.tax-mgmt-detail-inline--debt .entity-disc-links span {
  background: #e2e8f0;
  color: #334155;
}

.tax-mgmt-detail-inline--debt .tax-mgmt-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 768px) {
  .tax-mgmt-detail-inline {
    padding: 0.9rem 0.85rem 1rem;
  }

  .tax-mgmt-detail-header {
    flex-direction: column;
  }

  .tax-mgmt-detail-header-amount,
  .tax-mgmt-detail-header-amount--debt {
    width: 100%;
    text-align: left;
  }

  .tax-mgmt-detail-inline--debt .tax-mgmt-detail-grid,
  .tax-mgmt-detail-grid {
    grid-template-columns: 1fr;
  }

  .tax-da-item-card-head,
  .tax-da-charge-card-head {
    flex-direction: column;
  }

  .tax-da-item-card-side,
  .tax-da-charge-card-side {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .tax-mgmt-detail-actions {
    flex-direction: column;
  }

  .tax-mgmt-detail-actions .btn {
    width: 100%;
  }
}

.tax-mgmt-origin-box {
  border: 1px dashed rgba(15, 23, 42, 0.15);
  border-radius: 0.65rem;
  background: #f8fafc;
  padding: 0.75rem 0.9rem;
  font-size: 0.86rem;
}

@media (max-width: 991px) {
  .tax-mgmt-page {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  #app {
    margin: 1rem 0.5rem;
  }
}

@media (max-width: 768px) {
  .tax-mgmt-hero {
    padding: 1rem;
  }

  .tax-mgmt-body {
    padding: 1rem;
  }

  #menu .nav-tabs .nav-link {
    font-size: 0.82rem;
    padding: 0.55rem 0.65rem;
  }

  .tax-mgmt-hero-actions {
    width: 100%;
    margin-left: 0;
  }
}

#menu .nav-tabs {
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  margin-bottom: 0;
}

#menu .nav-tabs .nav-link {
  font-weight: 600;
  color: #64748b;
}

#menu .nav-tabs .nav-link.active {
  color: #0d6efd;
}

.tax-mgmt-hero--programs .tax-mgmt-hero-icon {
  color: #fff;
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
}

.tax-program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.tax-program-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tax-program-card:hover {
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.12);
  transform: translateY(-1px);
  color: inherit;
}

.tax-program-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
  color: #fff;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.tax-program-card-body {
  flex: 1;
  min-width: 0;
}

.tax-program-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: #0f172a;
}

.tax-program-card-desc {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0 0 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tax-program-card-arrow {
  color: #94a3b8;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.tax-da-person-summary {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: rgba(111, 66, 193, 0.04);
  border: 1px solid rgba(111, 66, 193, 0.12);
}

.tax-da-recent-panel {
  margin-bottom: 1rem;
}

.tax-da-recent-panel .tax-mgmt-panel-head {
  background: linear-gradient(135deg, rgba(111, 66, 193, 0.06), #fff 70%);
}

.tax-da-recent-hint {
  font-size: 0.84rem;
  color: #64748b;
  margin: 0 0 1rem;
  line-height: 1.5;
}

.tax-da-recent-row {
  cursor: pointer;
}

.tax-da-recent-row:hover {
  background: rgba(111, 66, 193, 0.04);
}

.tax-da-days-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(220, 53, 69, 0.1);
  color: #b02a37;
}

/* Discriminação + timeline de histórico operacional */
.entity-disc-panel {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  margin-bottom: 0.25rem;
}

.entity-disc-eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.2rem;
}

.entity-disc-title {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  overflow-wrap: anywhere;
}

.entity-disc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1rem;
}

.entity-disc-field--wide {
  grid-column: 1 / -1;
}

.entity-disc-label {
  display: block;
  font-size: 0.7rem;
  color: #64748b;
  margin-bottom: 0.1rem;
}

.entity-disc-value {
  font-size: 0.84rem;
  color: #0f172a;
  font-weight: 560;
  overflow-wrap: anywhere;
}

.entity-disc-amounts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.45rem;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(15, 23, 42, 0.1);
}

.entity-disc-amount {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.72rem;
  color: #64748b;
}

.entity-disc-amount strong {
  font-size: 0.84rem;
  color: #0f172a;
}

.entity-disc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.entity-disc-links span {
  font-size: 0.72rem;
  padding: 0.2rem 0.45rem;
  border-radius: 0.4rem;
  background: #e2e8f0;
  color: #334155;
}

.tax-mgmt-timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  margin-top: 0.35rem;
}

.tax-mgmt-timeline-origin {
  font-size: 0.76rem;
  color: #64748b;
}

.tax-mgmt-timeline-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 0.85rem;
  margin-top: 0.5rem;
  padding: 0.5rem 0.6rem;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.5rem;
}

.tax-mgmt-timeline-facts span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #64748b;
}

.tax-mgmt-timeline-facts strong {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.84rem;
  font-weight: 650;
  color: #0f172a;
}

@media (max-width: 640px) {
  .tax-mgmt-timeline-facts {
    grid-template-columns: 1fr;
  }
}

.tax-mgmt-timeline-notes {
  font-size: 0.8rem;
  color: #475569;
  margin-top: 0.25rem;
}

.entity-hist-diff {
  margin-top: 0.4rem;
  font-size: 0.75rem;
}

.entity-hist-diff summary {
  cursor: pointer;
  color: #0d6efd;
  user-select: none;
}

.entity-hist-diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.entity-hist-diff-label {
  display: block;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.2rem;
}

.entity-hist-diff pre {
  margin: 0;
  max-height: 140px;
  overflow: auto;
  padding: 0.4rem;
  border-radius: 0.4rem;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.68rem;
}

@media (max-width: 720px) {
  .entity-disc-grid,
  .entity-hist-diff-grid {
    grid-template-columns: 1fr;
  }
}

/* —— Baixa bancária —— */
.baixa-mode-tabs {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: #f1f5f9;
}

.baixa-mode-tab {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748b;
}

.baixa-mode-tab.is-active {
  background: #fff;
  color: #0d6efd;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.baixa-panel {
  padding-top: 0.25rem;
}

.baixa-transfer-box {
  padding: 1rem 1.1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(13, 110, 253, 0.16);
  background: #f8fbff;
}

.baixa-transfer-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0d6efd;
  margin: 0 0 0.85rem;
}

.baixa-dropzone {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.35rem;
  border: 1.5px dashed rgba(13, 110, 253, 0.35);
  border-radius: 1rem;
  background: rgba(13, 110, 253, 0.03);
}

.baixa-dropzone.is-dragover {
  border-color: #0d6efd;
  background: rgba(13, 110, 253, 0.08);
}

.baixa-dropzone > i {
  font-size: 1.75rem;
  color: #0d6efd;
}

.baixa-dropzone p {
  margin: 0.2rem 0 0;
  color: #64748b;
  font-size: 0.88rem;
}

.baixa-file-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  color: #334155;
  font-size: 0.9rem;
}

.baixa-textarea {
  font-size: 0.8rem;
  line-height: 1.35;
  min-height: 14rem;
}

.baixa-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.baixa-summary-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  background: #fff;
}

.baixa-summary-card strong {
  display: block;
  font-size: 1.35rem;
  color: #0f172a;
}

.baixa-summary-label {
  display: block;
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 0.2rem;
}

.baixa-summary-card.is-success strong {
  color: #198754;
}

.baixa-summary-card.is-danger strong {
  color: #dc3545;
}

.baixa-result-table code {
  font-size: 0.82rem;
}

@media (max-width: 768px) {
  .baixa-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

