/* ==================== Variáveis de Cores ==================== */
:root {
  --primary-dark: #1e1b4b;
  --primary-darker: #0f0d24;
  --primary-light: #312e81;
  --primary-hover: #3730a3;
  --accent-yellow: #fbbf24;
  --accent-green: #22c55e;
  --accent-red: #ef4444;
  --accent-orange: #f97316;
  --accent-purple: #8b5cf6;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

/* ==================== Reset e Base ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  min-height: 100vh;
}


html, body {
  overflow-x: hidden;
  touch-action: manipulation;
}

input, select, textarea {
  font-size: 16px !important;
}
/* ==================== Layout Principal ==================== */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ==================== Sidebar ==================== */
.sidebar {
  width: 250px;
  background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary-darker) 100%);
  color: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-logo-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-logo-icon i {
  font-size: 1.25rem;
  color: var(--accent-yellow);
}

.sidebar-logo-text h1 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.sidebar-logo-text span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0;
  overflow-y: auto;
}

.nav-item {
  padding: 0.25rem 0.75rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.nav-link.active {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.nav-link i {
  width: 20px;
  font-size: 1.125rem;
}

/* ==================== Main Content ==================== */
.main-content {
  flex: 1;
  margin-left: 250px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==================== Header ==================== */
.main-header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.header-left p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.notification-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background-color: var(--bg-light);
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.notification-btn:hover {
  background-color: var(--border-color);
  color: var(--text-dark);
}

.notification-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background-color: var(--accent-yellow);
  border-radius: 50%;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.user-menu:hover {
  background-color: var(--bg-light);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.user-info {
  text-align: right;
}

.user-info .name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
}

.user-info .role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==================== Page Content ==================== */
.page-content {
  flex: 1;
  padding: 1.5rem;
}

/* ==================== Cards ==================== */
.stat-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
}

.stat-card-content h3 {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.stat-card-content .value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
}

.stat-card-content .subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.stat-card-content .trend {
  font-size: 0.75rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.stat-card-content .trend.positive {
  color: var(--accent-green);
}

.stat-card-content .trend.negative {
  color: var(--accent-red);
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.stat-card-icon.yellow {
  background-color: #fef3c7;
  color: var(--accent-yellow);
}

.stat-card-icon.purple {
  background-color: #ede9fe;
  color: var(--accent-purple);
}

.stat-card-icon.green {
  background-color: #dcfce7;
  color: var(--accent-green);
}

.stat-card-icon.red {
  background-color: #fee2e2;
  color: var(--accent-red);
}

.stat-card-icon.orange {
  background-color: #ffedd5;
  color: var(--accent-orange);
}

/* ==================== Content Cards ==================== */
.content-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.content-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.content-card-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.content-card-title h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.content-card-title p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}

.content-card-title i {
  font-size: 1.25rem;
  color: var(--text-muted);
}

.content-card-body {
  padding: 0;
}

/* ==================== Tables ==================== */
.table-responsive {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead th {
  padding: 0.875rem 1.5rem;
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.data-table tbody td {
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background-color: var(--bg-light);
}

/* ==================== List Items ==================== */
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s ease;
}

.list-item:last-child {
  border-bottom: none;
}

.list-item:hover {
  background-color: var(--bg-light);
}

.list-item-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.list-item-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.list-item-avatar.purple {
  background-color: #ede9fe;
  color: var(--accent-purple);
}

.list-item-avatar.yellow {
  background-color: #fef3c7;
  color: var(--accent-yellow);
}

.list-item-avatar.red {
  background-color: #fee2e2;
  color: var(--accent-red);
}

.list-item-info h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.list-item-info p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}

.list-item-right {
  text-align: right;
}

.list-item-right .value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-dark);
}

.list-item-right .meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

/* ==================== Badges ==================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
}

.badge-success {
  background-color: #dcfce7;
  color: #166534;
}

.badge-warning {
  background-color: #fef3c7;
  color: #92400e;
}

.badge-danger {
  background-color: #fee2e2;
  color: #991b1b;
}

.badge-info {
  background-color: #e0e7ff;
  color: #3730a3;
}

.badge-purple {
  background-color: #ede9fe;
  color: #6d28d9;
}

/* ==================== Buttons ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent-green);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #16a34a;
  color: #ffffff;
}

.btn-secondary {
  background-color: var(--bg-light);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--border-color);
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-sm);
  background-color: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.btn-icon.danger:hover {
  background-color: #fee2e2;
  color: var(--accent-red);
}

/* ==================== Paginação ==================== */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
}

.pagination-info {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.pagination-info strong {
  color: var(--text-dark);
  font-weight: 600;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagination-size {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.pagination-size select {
  padding: 0.375rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--card-bg, #fff);
  color: var(--text-dark);
  font-size: 0.875rem;
  cursor: pointer;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--card-bg, #fff);
  color: var(--text-dark);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled):not(.active) {
  background-color: var(--bg-light);
  border-color: var(--primary-color, #4f46e5);
}

.page-btn.active {
  background-color: var(--primary-color, #4f46e5);
  border-color: var(--primary-color, #4f46e5);
  color: #fff;
  cursor: default;
}

.page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.page-ellipsis {
  min-width: 24px;
  text-align: center;
  color: var(--text-muted);
  user-select: none;
}

@media (max-width: 576px) {
  .pagination-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }

  .pagination-controls {
    justify-content: center;
  }
}

/* ==================== Search ==================== */
.search-box {
  position: relative;
  max-width: 400px;
  flex: 1;
}

.search-box input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  font-size: 0.875rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background-color: var(--bg-white);
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 3px rgba(30, 27, 75, 0.1);
}

.search-box input::placeholder {
  color: var(--text-light);
}

.search-box i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}

/* ==================== Forms ==================== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-white);
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 3px rgba(30, 27, 75, 0.1);
}

.form-control::placeholder {
  color: var(--text-light);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.25em 1.25em;
  padding-right: 2.5rem;
}

/* ==================== Modals ==================== */
.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* ==================== Action Bar ==================== */
.action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.action-bar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

/* ==================== Empty State ==================== */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
}

.empty-state i {
  font-size: 3rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.empty-state h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.empty-state p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ==================== Loading ==================== */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary-dark);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==================== Mobile Toggle ==================== */
.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
  color: var(--text-dark);
  cursor: pointer;
}

.sidebar-close {
  display: none;
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border: none;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: #ffffff;
  cursor: pointer;
}

/* ==================== Login Page ==================== */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-darker) 100%);
  padding: 1.5rem;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background-color: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.login-logo i {
  font-size: 1.75rem;
  color: var(--accent-yellow);
}

.login-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.login-header p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.login-form .form-group {
  margin-bottom: 1.5rem;
}

.login-form .btn-primary {
  width: 100%;
  padding: 0.875rem;
  background-color: var(--primary-dark);
}

.login-form .btn-primary:hover {
  background-color: var(--primary-hover);
}

.login-alert {
  padding: 0.875rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.login-alert.error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ==================== Responsive ==================== */
@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .main-content {
    margin-left: 0;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .sidebar-overlay.active {
    display: block;
  }
}

@media (max-width: 768px) {
  .page-content {
    padding: 1rem;
  }

  .action-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .action-bar-left {
    flex-direction: column;
  }

  .search-box {
    max-width: 100%;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-card-content .value {
    font-size: 1.5rem;
  }

  .header-left h2 {
    font-size: 1.25rem;
  }

  .user-info {
    display: none;
  }

  .data-table thead th,
  .data-table tbody td {
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 576px) {
  .login-card {
    padding: 1.5rem;
  }

  .main-header {
    padding: 1rem;
  }

  .content-card-header {
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* ==================== Otimizacao Mobile (<= 767px) ==================== */
@media (max-width: 767px) {
  /* --- Espacamento geral --- */
  .page-content {
    padding: 1rem;
    /* espaco para o botao fixo no rodape */
    padding-bottom: 5.5rem;
  }

  /* --- Action bar: busca e filtro empilhados, 100% de largura --- */
  .action-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .action-bar-left {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
  }

  .action-bar-left .search-box,
  .action-bar-left .search-box-wrapper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  /* select de status e selects em geral ocupam 100% (sobrescreve width inline) */
  .action-bar-left select,
  .action-bar-left .form-select {
    width: 100% !important;
    min-width: 0 !important;
  }

  .cliente-filter-badge {
    max-width: 100% !important;
  }

  /* --- Botao principal de acao fixo no rodape --- */
  .action-bar > .btn-primary {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 500;
    margin: 0;
    width: 100%;
    height: 56px;
    border-radius: 0;
    font-size: 1rem;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
  }

  /* --- Tabelas viram cards empilhados --- */
  .table-responsive {
    overflow-x: visible;
  }

  .data-table,
  .data-table tbody {
    display: block;
    width: 100%;
  }

  .data-table thead {
    display: none;
  }

  .data-table tbody tr {
    display: block;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 1rem;
    margin-bottom: 0.875rem;
  }

  .data-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .data-table tbody tr:hover {
    background-color: var(--bg-white);
  }

  .data-table tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
    border: none;
    border-bottom: 1px solid var(--border-color);
    text-align: right;
    font-size: 0.9375rem;
    color: var(--text-dark);
  }

  .data-table tbody td:last-child {
    border-bottom: none;
  }

  /* Rotulo da coluna (ex.: "Cliente:") gerado via data-label */
  .data-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: left;
    white-space: nowrap;
  }

  /* Valor em destaque, maior e legivel */
  .data-table tbody td[data-label="Valor"],
  .data-table tbody td[data-label="Total"] {
    font-size: 1.125rem;
    font-weight: 700;
  }

  /* Conteudo com avatar (cliente/descricao) alinhado a direita */
  .data-table tbody td .d-flex {
    justify-content: flex-end;
  }

  /* Celulas de spinner e empty-state ocupam o card inteiro */
  .data-table tbody td[colspan] {
    display: block;
    text-align: center;
    border-bottom: none;
  }

  .data-table tbody td[colspan]::before {
    content: none;
  }

  /* Linha de spinner/empty nao deve parecer um card de dados */
  .data-table tbody tr:has(td[colspan]) {
    border: none;
    box-shadow: none;
    background-color: transparent;
    padding: 0;
  }

  /* --- Celula de acoes: botoes em linha, alvos de toque de 44px --- */
  .data-table tbody td.cell-actions {
    justify-content: flex-end;
    gap: 0.5rem;
    padding-top: 0.75rem;
    flex-wrap: wrap;
  }

  .data-table tbody td.cell-actions::before {
    margin-right: auto;
    align-self: center;
  }

  .data-table .btn-icon {
    width: 44px;
    height: 44px;
    font-size: 1.125rem;
    border: 1px solid var(--border-color);
  }

  /* Botoes de acao genericos com altura minima de toque */
  .btn {
    min-height: 44px;
  }
}
