/* public/cliente/painel/styles.css */

/* Reset e variáveis */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #17e1a8;
  --primary-dark: #14c594;
  --primary-light: rgba(23, 225, 168, 0.1);
  --secondary-color: #6c757d;
  --danger-color: #ff4b5c;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --text-color: #333333;
  --text-muted: #6c757d;
  --border-color: #e9ecef;
  --bg-light: #f8f9fa;
  --card-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  --border-radius: 8px;
}

/* ✅ NOVO: Botão Premium "Gerar Orçamento" */
.step-actions {
  padding-top: 5px;
}

.btn-continue {
  /* Layout e Dimensões */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  min-width: 200px;

  /* Typography */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;

  /* Cores e Background */
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;

  /* Visual Effects */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(23, 225, 168, 0.3);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Estados */
  position: relative;
  overflow: hidden;
}

.btn-continue:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(23, 225, 168, 0.4);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.btn-continue:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(23, 225, 168, 0.3);
  transition: all 0.1s ease;
}

.btn-continue:focus {
  outline: 3px solid rgba(23, 225, 168, 0.3);
  outline-offset: 2px;
}

.btn-continue:disabled {
  opacity: 0.6;
  transform: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  cursor: not-allowed;
  background: var(--secondary-color);
}

.btn-continue i {
  font-size: 18px;
  opacity: 0.9;
  transition: transform 0.3s ease;
}

.btn-continue:hover i {
  transform: scale(1.1);
}

/* Efeito de brilho sutil */
.btn-continue::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-continue:hover::before {
  left: 100%;
}

/* Responsividade */
@media (max-width: 768px) {
  .btn-continue {
    padding: 14px 24px;
    min-width: 180px;
    font-size: 15px;
  }

  .btn-continue i {
    font-size: 16px;
  }
}

/* ✅ NOVO: Label Premium para Input Documento */
label[for="cpfCnpjInput"] {
  display: block;
  margin-bottom: 8px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
  letter-spacing: 0.02em;
}

/* ✅ NOVO: Input Premium "Documento" */
.form-input, #cpfCnpjInput {
  /* Layout e Dimensões */
  width: 100%;
  padding: 16px 20px;
  min-height: 56px;

  /* Typography */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-color);

  /* Background Premium */
  background: linear-gradient(145deg, #ffffff 0%, #f8fffe 100%);
  border: 2px solid rgba(233, 236, 239, 0.8);

  /* Visual Effects */
  border-radius: 12px;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);

  /* Estados */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

/* Placeholder styling */
.form-input::placeholder, #cpfCnpjInput::placeholder {
  color: #a0a8b0;
  font-weight: 400;
  opacity: 1;
}

/* Estado Hover */
.form-input:hover:not(:focus), #cpfCnpjInput:hover:not(:focus) {
  border-color: rgba(23, 225, 168, 0.3);
  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

/* Estado Focus - Gradiente na borda */
.form-input:focus, #cpfCnpjInput:focus {
  outline: none;
  border: 2px solid transparent;
  background:
    linear-gradient(145deg, #ffffff 0%, #f8fffe 100%) padding-box,
    linear-gradient(135deg, var(--primary-color), var(--primary-dark)) border-box;
  box-shadow:
    0 4px 12px rgba(23, 225, 168, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

/* Estado Filled (quando tem valor) */
.form-input:not(:placeholder-shown), #cpfCnpjInput:not(:placeholder-shown) {
  background: linear-gradient(145deg, #f9fffd 0%, #f0fef9 100%);
  border-color: rgba(23, 225, 168, 0.2);
}

/* Estado Disabled */
.form-input:disabled, #cpfCnpjInput:disabled {
  background: #f8f9fa;
  color: #6c757d;
  border-color: #e9ecef;
  cursor: not-allowed;
  transform: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Estilo para input com máscara de documento */
.form-input[data-mask], #cpfCnpjInput[data-mask] {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  letter-spacing: 0.5px;
}

/* Responsividade */
@media (max-width: 768px) {
  .form-input, #cpfCnpjInput {
    padding: 14px 16px;
    min-height: 52px;
    font-size: 16px; /* Evita zoom automático no iOS */
  }

  .form-input[data-mask], #cpfCnpjInput[data-mask] {
    letter-spacing: 0.3px;
  }
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 14px;
  color: var(--text-color);
  background-color: var(--bg-light);
  line-height: 1.6;
}

/* ✅ CORREÇÃO: Classes CSS para controle de visibilidade das abas */
.tab-hidden {
  display: none !important;
}

.tab-visible {
  display: flex !important;
}

/* ✅ NOVO: Auth Loading Screen */
.auth-loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e7eb 100%);
  padding: 20px;
}

.auth-loading-content {
  text-align: center;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 3rem 2rem;
  max-width: 400px;
  width: 100%;
}

.auth-loading-logo img {
  max-width: 180px;
  height: auto;
  margin-bottom: 2rem;
}

.auth-loading-spinner {
  margin: 1.5rem 0;
}

.auth-loading-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Login Container */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e7eb 100%);
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 450px;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 2.5rem;
  text-align: center;
}

.login-logo img {
  max-width: 180px;
  height: auto;
  margin-bottom: 1.5rem;
}

.login-card h2 {
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 1.75rem;
}

.login-error {
  background-color: rgba(255, 75, 92, 0.1);
  color: var(--danger-color);
  padding: 0.75rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.login-form {
  text-align: left;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(23, 225, 168, 0.2);
  outline: none;
}

.login-btn,
.submit-review-btn {
  width: 100%;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.login-btn:hover,
.submit-review-btn:hover {
  background-color: var(--primary-dark);
}

.login-btn:disabled,
.submit-review-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Dashboard Container */
.dashboard-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Dashboard Header */
.dashboard-header {
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-logo {
  height: 50px;
  width: auto;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-name {
  color: var(--text-muted);
  font-weight: 500;
}

.logout-btn {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logout-btn:hover {
  background-color: #5a6268;
}

/* Dashboard Navigation */
.dashboard-nav {
  background-color: white;
  border-bottom: 1px solid var(--border-color);
  padding: 0 2rem;
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  flex-wrap: wrap;
  justify-content: space-around;
}

.nav-tab {
  background: none;
  border: none;
  padding: 1rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.nav-tab:hover {
  color: var(--primary-color);
}

.nav-tab.active {
  color: var(--primary-color);
  font-weight: 600;
}

.nav-tab.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
}

/* Dashboard Content */
.dashboard-content {
  flex: 1;
  padding: 2rem;
  background-color: var(--bg-light);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Info Cards */
.info-card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.info-card h3 {
  margin-bottom: 1rem;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-item label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.info-item span {
  color: var(--text-color);
}

.highlight {
  color: var(--primary-color);
  font-weight: 600;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-nome-limpo {
  background-color: rgba(40, 167, 69, 0.1);
  color: var(--success-color);
}

/* ============= NOVOS ESTILOS PARA RESUMOS DETALHADOS ============= */

/* Containers de resumo */
.resume-container {
  min-height: 120px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: #6c757d;
  text-align: center;
}

.empty-state i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #adb5bd;
}

.empty-state p {
  margin: 0;
  font-size: 0.9rem;
}

/* Items de resumo */
.resume-item {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
}

.resume-item:hover {
  border-color: #17e1a8;
  box-shadow: 0 2px 8px rgba(23, 225, 168, 0.1);
}

.resume-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.resume-item-title {
  font-weight: 600;
  color: #333;
  font-size: 1rem;
}

.resume-item-status {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-paid {
  background: #d4edda;
  color: #155724;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-overdue {
  background: #f8d7da;
  color: #721c24;
}

.status-received {
  background: #d1ecf1;
  color: #0c5460;
}

.resume-item-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
  font-size: 0.9rem;
}

.resume-detail {
  display: flex;
  justify-content: space-between;
}

.resume-detail-label {
  color: #6c757d;
  font-weight: 500;
}

.resume-detail-value {
  font-weight: 600;
  color: #333;
}

/* Container de informações do contrato */
.contract-info-container {
  min-height: 120px;
}

.contract-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.contract-info-item {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 0.75rem;
}

.contract-info-label {
  font-size: 0.8rem;
  color: #6c757d;
  margin-bottom: 0.25rem;
  display: block;
}

.contract-info-value {
  font-weight: 600;
  color: #333;
}

.contract-link {
  color: #17e1a8;
  text-decoration: none;
  font-weight: 500;
}

.contract-link:hover {
  text-decoration: underline;
}

.date-highlight {
  color: #17e1a8;
  font-weight: 600;
}

.guarantee-active {
  color: #28a745;
  font-weight: 600;
}

.guarantee-inactive {
  color: #6c757d;
}

/* Responsividade para resumos */
@media (max-width: 768px) {
  .resume-item-details {
    grid-template-columns: 1fr;
  }
  
  .contract-info-grid {
    grid-template-columns: 1fr;
  }
  
  .resume-item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Timeline */
.timeline-container {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
}

.timeline-container h3 {
  margin-bottom: 1rem;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.timeline-deadlines {
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.deadline-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.deadline-label {
  font-weight: 500;
  color: var(--text-muted);
}

.deadline-date {
  color: var(--text-color);
}

/*.timeline-list {
  position: relative;
  padding-left: 2rem;
}*/

.timeline-list::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
}

.timeline-dot {
  position: absolute;
  left: -26px;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: white;
  border: 2px solid var(--primary-color);
}

.timeline-content {
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 1rem;
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.timeline-description {
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.timeline-status {
  font-size: 0.85rem;
  color: var(--primary-color);
  font-weight: 500;
}

/* Payments */
.payments-section {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
}

.payments-section h3 {
  margin-bottom: 1rem;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== SERVICE CONTAINERS ===== */
.service-container {
  margin-bottom: 1.5rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease;
}

.service-container:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.service-container-light {
  background: #f8f9fa;
}

.service-container-dark {
  background: #e9ecef;
}

.service-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(108, 117, 125, 0.2);
  background: rgba(255, 255, 255, 0.5);
}

.service-title-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-title {
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-title i {
  color: var(--primary-color);
  font-size: 1rem;
}

.service-subtitle {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(108, 117, 125, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
}

.service-payments {
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.payments-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.payment-card {
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 1rem;
  text-align: center;
  border-left: 4px solid transparent;
}

.payment-card.pago {
  border-left-color: var(--success-color);
}

.payment-card.agendado {
  border-left-color: var(--info-color);
}

.payment-card.atrasado {
  border-left-color: var(--danger-color);
}

.payment-number {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.payment-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.payment-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.payment-status {
  font-size: 0.85rem;
  font-weight: 500;
}

.payment-status.pago {
  color: var(--success-color);
}

.payment-status.agendado {
  color: var(--info-color);
}

.payment-status.atrasado {
  color: var(--danger-color);
}

/* Card Payments Section */
#cardPaymentsContainer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

#cardPaymentsContainer h4 {
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#cardPaymentsContainer h4 i {
  color: var(--primary-color);
}

#cardPaymentsGrid {
  display: flex;
  flex-direction: row;
  gap: 50px;
}

/* Card Payment specific styles */
.payment-card.card-payment {
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 1rem;
  text-align: center;
  border-left: 4px solid var(--warning-color);
  margin-bottom: 0.5rem;
  max-width: 500px;
}

.payment-card.card-payment:hover {
  background-color: var(--bg-hover);
  transform: translateY(-1px);
  transition: all 0.2s ease;
}

.payment-card.card-payment .payment-description {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  padding: 0.75rem;
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.payment-card.card-payment .payment-installments {
  font-size: 0.85rem;
  color: var(--info-color);
  font-weight: 500;
  margin-top: 0.5rem;
}

.payment-card.card-payment .payment-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.payment-card.card-payment .payment-actions .btn {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.2s ease;
}

.payment-card.card-payment .payment-actions .btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: 1px solid var(--primary-color);
}

.payment-card.card-payment .payment-actions .btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.payment-card.card-payment .payment-actions .btn-success {
  background-color: var(--success-color);
  color: white;
  border: 1px solid var(--success-color);
}

.payment-card.card-payment .payment-actions .btn-success:hover {
  opacity: 0.9;
}

.payment-card.card-payment .payment-actions .btn-secondary {
  background-color: var(--bg-light);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.payment-card.card-payment .payment-actions .btn-secondary:hover {
  background-color: var(--bg-hover);
}

/* Status specific colors for card payments */
.payment-card.card-payment.ativo {
  border-left-color: var(--success-color);
}

.payment-card.card-payment.pendente {
  border-left-color: var(--warning-color);
}

.payment-card.card-payment.cancelado {
  border-left-color: var(--danger-color);
}

/* Review Section */
.review-section {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
}

.review-section h3 {
  margin-bottom: 1rem;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.review-form {
  max-width: 600px;
  margin: 0 auto;
}

.rating-stars {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.star {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.star:hover,
.star.active {
  color: #ffc107 !important;
}

.review-disclaimer {
  background-color: rgba(23, 162, 184, 0.1);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin: 1rem 0;
}

.review-disclaimer small {
  color: var(--info-color);
  line-height: 1.5;
}

.submit-review-btn {
  margin: 0 auto;
  max-width: 300px;
}

/* ===== FASE 2.5: SERVICE-BASED EVALUATION STYLES ===== */
.service-evaluation-info {
  background: linear-gradient(135deg, var(--primary-light), rgba(23, 162, 184, 0.1));
  border: 1px solid var(--primary-color);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.service-evaluation-info h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-evaluation-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.4;
}

/* Enhanced service type dropdown */
#serviceType {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  width: 100%;
  min-height: 50px;
}

#serviceType:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
}

#serviceType option {
  padding: 0.5rem;
  font-size: 0.95rem;
}

/* Service dropdown with service info */
.service-option-info {
  background: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
}

.service-option-info .service-name {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.service-option-info .service-details {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Review form enhancements for service context */
.review-form .form-group label {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.review-form .form-group label i {
  color: var(--primary-color);
}

/* Service completion indicator */
.service-completed-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--success-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.service-completed-badge i {
  font-size: 1rem;
}

.review-submitted {
  text-align: center;
  padding: 3rem;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
}

.review-submitted i {
  font-size: 3rem;
  color: var(--success-color);
  margin-bottom: 1rem;
}

/* Responsividade */
@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .dashboard-nav {
    padding: 0 1rem;
    gap: 1rem;
  }

  .dashboard-content {
    padding: 1rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .payments-grid {
    grid-template-columns: 1fr;
  }

  /* ===== SERVICE CONTAINERS RESPONSIVO ===== */
  .service-container {
    margin-bottom: 1rem;
  }

  .service-header {
    padding: 0.75rem 1rem;
  }

  .service-title-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .service-title {
    font-size: 1rem;
  }

  .service-payments {
    padding: 0.75rem;
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}
/* Adicionar ao final do styles.css */

/* Melhorias para o sistema de estrelas */
.rating-stars {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  justify-content: center;
}

.star {
  background: none;
  border: none;
  font-size: 2rem;
  color: #ddd;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0.25rem;
  border-radius: 4px;
}

.star:hover,
.star.active {
  color: #ffc107 !important;
  transform: scale(1.1);
}

.star:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.review-section { 
  display: block; 
}

.review-form {
  max-width: 600px;
  margin: 0 auto;
}

/* Melhorar responsividade dos botões das estrelas */
@media (max-width: 768px) {
  .star {
    font-size: 1.5rem;
    padding: 0.5rem;
  }

  .rating-stars {
    gap: 0.25rem;
  }
}

/* ===== SERVICES TAB STYLES ===== */
.service-hero {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
}

.service-welcome h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.service-intro {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.cta-text {
  font-size: 1.1rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: var(--border-radius);
  margin: 0;
}

.service-how-it-works {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  margin-bottom: 2rem;
}

.service-how-it-works h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.service-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-step {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-light);
}

.step-number {
  font-size: 1.5rem;
  font-weight: 700;
  min-width: 2rem;
  text-align: center;
}

.step-content h4 {
  color: var(--text-color);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.step-content p {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.step-note {
  font-size: 0.9rem;
  color: var(--info-color);
  font-weight: 500;
}

.step-highlight {
  background: var(--primary-light);
  padding: 0.75rem;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-color);
  font-weight: 500;
}

.service-action {
  text-align: center;
  padding: 2rem;
}

/* ✅ NOVO: Estilos para botões dinâmicos de timeline */
.step-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.step-action-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(23, 225, 168, 0.3);
}

.step-action-btn:active {
  transform: translateY(0);
}

.step-action-btn i {
  font-size: 0.85rem;
}

.service-action-step {
  text-align: center;
}

.service-cta-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.service-cta-btn:hover {
  background: var(--primary-dark);
}

.service-cta-btn i {
  font-size: 1.2rem;
}

/* ===== DOCUMENTS TAB STYLES ===== */
.documents-container {
  padding: 1rem;
}

.documents-header {
  text-align: center;
  margin-bottom: 2rem;
}

.documents-header h3 {
  font-size: 1.5rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.documents-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

.documents-loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

.documents-empty {
  text-align: center;
  padding: 3rem;
}

.empty-state i {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.empty-state h4 {
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-muted);
}

/* ✅ NOVO: Estilos para botões do empty state */
.empty-state-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.empty-state-btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 0.9rem;
}

.empty-state-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.empty-state-btn.btn-secondary {
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
}

.empty-state-btn.btn-secondary:hover:not(:disabled) {
  background-color: #5a6268;
  transform: translateY(-1px);
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.document-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
  transition: transform 0.2s ease;
}

.document-card:hover {
  transform: translateY(-2px);
}

.document-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.document-icon {
  font-size: 2rem;
  color: var(--primary-color);
}

.document-info h4 {
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.document-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.document-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.document-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  background: white;
  color: var(--text-color);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.document-btn:hover {
  background: var(--bg-light);
}

.document-btn.primary {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.document-btn.primary:hover {
  background: var(--primary-dark);
}

/* ✅ NOVO: Estilos para botão de aprovação de orçamento */
.document-btn.approve {
  background: var(--success-color);
  color: white;
  border-color: var(--success-color);
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.document-btn.approve:hover {
  background: #218838;
  border-color: #1e7e34;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.document-btn.approve::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.document-btn.approve:hover::before {
  left: 100%;
}

/* ✅ NOVO: Seção de aprovação de orçamento */
.document-approve-section {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border: 2px solid var(--success-color);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.document-approve-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #28a745, #20c997, #17a2b8, #6f42c1, #e83e8c, #fd7e14, #ffc107, #28a745);
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.approve-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.approve-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.approve-header i {
  font-size: 3rem;
  color: var(--success-color);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.approve-header h4 {
  color: #155724;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.approve-header p {
  color: #155724;
  font-size: 1rem;
  margin: 0;
  max-width: 400px;
  line-height: 1.5;
}

.approve-budget-btn {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
  position: relative;
  overflow: hidden;
}

.approve-budget-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
  background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
}

.approve-budget-btn:active {
  transform: translateY(0);
}

.approve-budget-btn i {
  font-size: 1.2rem;
}

.approve-budget-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.approve-budget-btn:hover::before {
  left: 100%;
}

/* ✅ NOVO: Modal de confirmação de contrato */
.contract-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.contract-modal-content {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { 
    transform: translateY(-50px);
    opacity: 0;
  }
  to { 
    transform: translateY(0);
    opacity: 1;
  }
}

.contract-modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.contract-modal-header h3 {
  color: var(--primary-color);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.contract-modal-header p {
  color: #6c757d;
  font-size: 1rem;
  margin: 0;
  line-height: 1.5;
}

.contract-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contract-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contract-form-group label {
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contract-form-group input,
.contract-form-group select {
  padding: 0.75rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.contract-form-group input:focus,
.contract-form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(23, 225, 168, 0.1);
}

.contract-form-group.required label::after {
  content: ' *';
  color: #dc3545;
  font-weight: 700;
}

.contract-form-group input.error {
  border-color: #dc3545;
  background: #f8d7da;
}

.contract-form-group .error-message {
  color: #dc3545;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.contract-form-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

.contract-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contract-btn-secondary {
  background: #6c757d;
  color: white;
}

.contract-btn-secondary:hover {
  background: #5a6268;
}

.contract-btn-primary {
  background: var(--primary-color);
  color: white;
  position: relative;
  overflow: hidden;
}

.contract-btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(23, 225, 168, 0.3);
}

.contract-btn-primary:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

.contract-btn-primary .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ✅ NOVO: Responsividade para modal de contrato */
@media (max-width: 768px) {
  .contract-modal-content {
    padding: 1.5rem;
    width: 95%;
  }
  
  .contract-modal-header h3 {
    font-size: 1.5rem;
  }
  
  .contract-form-buttons {
    flex-direction: column;
  }
  
  .contract-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ✅ NOVO: Estilos para documento de orçamento */
.document-card.budget-document {
  border: 2px solid var(--warning-color);
  background: linear-gradient(135deg, #fff8e1 0%, #ffffff 100%);
}

.document-card.budget-document .document-icon {
  color: var(--warning-color);
  font-size: 2.2rem;
}

.document-badge {
  background: var(--warning-color);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.25rem;
  display: inline-block;
}

/* ===== REPORTS SECTION STYLES ===== */
.reports-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.payments-header,
.reports-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.payments-section h3,
.reports-section h3 {
  font-size: 1.3rem;
  color: var(--text-color);
  margin: 0 0 1.5rem 0;
}

.refresh-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.refresh-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

.refresh-btn:active {
  transform: scale(0.95);
}

.refresh-btn i {
  transition: transform 0.3s ease;
}

.refresh-btn:hover i {
  transform: rotate(180deg);
}

/* ✅ REMOVIDO: CSS do botão manual de sync - substituído por auto-sync */

.reports-subtitle p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.reports-loading {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}

.reports-empty {
  text-align: center;
  padding: 2rem;
}

.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.report-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
  border-left: 4px solid var(--primary-color);
}

.report-card.pending {
  border-left-color: var(--warning-color);
}

.report-card.paid {
  border-left-color: var(--success-color);
}

.report-card.failed {
  border-left-color: var(--danger-color);
}

.report-card.overdue {
  border-left-color: var(--danger-color);
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.report-type {
  font-weight: 600;
  color: var(--text-color);
}

.report-status {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
}

.report-status.pending {
  background: var(--warning-color);
  color: white;
}

.report-status.paid {
  background: var(--success-color);
  color: white;
}

.report-status.failed {
  background: var(--danger-color);
  color: white;
}

.report-status.overdue {
  background: var(--danger-color);
  color: white;
}

.report-details {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.report-amount {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 0.5rem;
}

/* ===== REPORT SELECTION MODAL STYLES ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: var(--border-radius);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
}

.modal-header h2 {
  color: var(--text-color);
  margin: 0;
  font-size: 1.5rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.5rem;
  border-radius: var(--border-radius);
}

.modal-close:hover {
  background: var(--bg-light);
}

.modal-body {
  padding: 1.5rem;
}

.modal-description {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.report-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.report-option {
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.report-option:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.report-option[data-report="biros"] {
  border-color: var(--primary-color);
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.report-price {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.4rem;
}

.report-price .valor-principal {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.report-price p:not(.valor-principal) {
  font-size: 1.2rem;
  margin: 0.25rem 0;
}

/* ========================================
   PAYMENT ACCORDION - Design Moderno
   ======================================== */

/* Container do accordion de pagamentos */
.payment-accordion {
  margin-top: 1rem;
  border-radius: 12px;
  overflow: hidden;
}

/* Preço principal em destaque */
.payment-main-price {
  text-align: center;
  padding: 1rem 0;
}

.payment-main-price .price-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
}

.payment-main-price .price-label {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.25rem;
}

/* Preço com promoção */
.payment-main-price.has-promo .price-original {
  font-size: 1.1rem;
  color: #999;
  text-decoration: line-through;
  display: block;
  margin-bottom: 0.25rem;
}

.payment-main-price.has-promo .price-value {
  color: #28a745;
}

.payment-main-price .price-savings {
  display: inline-block;
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Botão toggle do accordion - Dourado elegante */
.payment-accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #ffffff, #f4c430);
  border: 1px solid #daa520;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: #5a4a00;
  box-shadow: 0 2px 8px rgba(218, 165, 32, 0.3);
  transition: all 0.3s ease;
}

.payment-accordion-toggle:hover {
  background: linear-gradient(135deg, #ffdf00, #ffffff);
  color: #3d3200;
  box-shadow: 0 4px 12px rgba(218, 165, 32, 0.4);
transform: translateY(-1px);
}

.payment-accordion-toggle i {
  transition: transform 0.3s ease;
}

.payment-accordion-toggle.active i {
  transform: rotate(180deg);
}

/* Lista de métodos de pagamento */
.payment-methods-list {
  display: none;
  padding: 1rem 0;
  animation: slideDown 0.3s ease;
}

.payment-methods-list.show {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card individual de método de pagamento */
.payment-method-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.payment-method-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--payment-color, var(--primary-color));
  border-radius: 4px 0 0 4px;
}

.payment-method-card:hover {
  border-color: var(--payment-color, var(--primary-color));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateX(4px);
}

.payment-method-card:last-child {
  margin-bottom: 0;
}

/* Ícone do método */
.payment-method-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--payment-color, var(--primary-color)), var(--payment-color-dark, #0056b3));
  color: white;
  border-radius: 10px;
  font-size: 1.1rem;
}

/* Conteúdo do método */
.payment-method-content {
  flex: 1;
  min-width: 0;
}

.payment-method-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--payment-color, var(--primary-color));
  margin-bottom: 0.25rem;
}

.payment-method-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.15rem;
}

.payment-method-detail {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.4;
}

/* Separador entre grupos */
.payment-group-separator {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
  color: #999;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.payment-group-separator::before,
.payment-group-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #dee2e6, transparent);
}

/* Cores padrão para métodos de pagamento */
.payment-method-card[data-method="pix"] {
  --payment-color: #32BCAD;
  --payment-color-dark: #26968a;
}

.payment-method-card[data-method="cartao"],
.payment-method-card[data-method="credito"] {
  --payment-color: #5C6BC0;
  --payment-color-dark: #3F51B5;
}

.payment-method-card[data-method="boleto"] {
  --payment-color: #FF7043;
  --payment-color-dark: #E64A19;
}

.payment-method-card[data-method="combo"],
.payment-method-card[data-method="cartao-boleto"] {
  --payment-color: #AB47BC;
  --payment-color-dark: #8E24AA;
}

.payment-method-card[data-method="outro"] {
  --payment-color: #78909C;
  --payment-color-dark: #546E7A;
}

/* Card destacado */
.payment-method-card.featured {
  background: linear-gradient(135deg, #fff9e6, #fff3cd);
  border-color: #ffc107;
}

.payment-method-card.featured::before {
  background: linear-gradient(180deg, #ffc107, #ff9800);
}

.payment-method-card.featured::after {
  content: '\f005';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  color: #ffc107;
  font-size: 0.75rem;
}

/* Responsivo - Mobile */
@media (max-width: 768px) {
  .payment-main-price .price-value {
    font-size: 1.75rem;
  }

  .payment-method-card {
    padding: 0.875rem;
    gap: 0.75rem;
  }

  .payment-method-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .payment-method-name {
    font-size: 0.9rem;
  }

  .payment-method-value {
    font-size: 1rem;
  }
}

.report-badge {
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

/* ✅ NOVOS: Estilos globais para badges personalizados */
.report-badge.outline {
  background: transparent !important;
  border: 2px solid !important;
}

.report-badge.gradient {
  background: linear-gradient(45deg, var(--primary-color), #0056b3) !important;
  border: none !important;
}

.report-badge.default {
  border: none;
}

.report-badge.advanced {
  background: var(--info-color);
}

.report-badge.test {
  background: #ff9800;
  color: white;
}

.report-option h4 {
  font-size: 1.3rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.report-description {
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.report-features {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}

.report-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.report-features i {
  color: var(--success-color);
  font-size: 0.9rem;
}

.report-btn {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.report-btn-primary {
  background: var(--primary-color);
  color: white;
}

.report-btn-primary:hover {
  background: var(--primary-dark);
}

.report-btn-secondary {
  background: var(--info-color);
  color: white;
}

.report-btn-secondary:hover {
  background: #138496;
}

.report-btn-test {
  background: #ff9800;
  color: white;
}

.report-btn-test:hover {
  background: #f57c00;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-light);
}

.modal-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
  text-align: center;
}

.modal-note i {
  color: var(--info-color);
  margin-right: 0.5rem;
}

/* ===== SERVICE CARDS STYLES ===== */
.services-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.75rem 1.5rem;
  background: linear-gradient(135deg, rgba(23, 225, 168, 0.05) 0%, rgba(20, 197, 148, 0.02) 100%);
  border: 1px solid rgba(23, 225, 168, 0.1);
  border-radius: 14px;
  position: relative;
}

.services-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  border-radius: 0 0 4px 4px;
}

.services-header h2 {
  color: var(--text-color);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.services-subtitle {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto;
}

/* =============================================
   LAYOUT DINÂMICO COM CSS VARIABLES
   Configurado via Admin Settings → Layout
============================================= */
:root {
  /* Desktop - Grid Compacto com Magnification (estilo dock do macOS) */
  --services-desktop-columns: 6;
  --services-desktop-gap: 1rem;
  --services-desktop-min-width: 150px;
  --services-desktop-magnification-enabled: 1;
  --services-desktop-magnification-scale: 1.1;

  /* Tablet - Orientação Adaptativa */
  --services-tablet-portrait-columns: 1;
  --services-tablet-landscape-columns: 4;
  --services-tablet-gap: 1rem;
  --services-tablet-magnification-enabled: 1;
  --services-tablet-magnification-scale: 1.1;

  /* Mobile - Grid Simples */
  --services-mobile-columns: 1;
  --services-mobile-gap: 0.75rem;
}

.service-cards {
  display: grid;
  /* ✅ NOVO: Usar CSS variables para layout dinâmico configurável via admin */
  grid-template-columns: repeat(var(--services-desktop-columns), minmax(var(--services-desktop-min-width), 1fr));
  gap: var(--services-desktop-gap);
  margin-bottom: 2rem;
}

.service-card {
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  background: white;
}

.service-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
}

/* =============================================
   COMPACT MODE DESKTOP - IGUAL MOBILE
   Ativado via Settings quando desktop.compactMode.enabled = true
   Usa EXATAMENTE o mesmo sistema de toggle do mobile
============================================= */
@media (min-width: 1025px) {
  /* ✅ CORREÇÃO: Ocultar estrutura mobile no desktop por padrão */
  .service-header-mobile {
    display: none;
  }

  .btn-toggle-mobile {
    display: none;
  }

  .service-content-mobile {
    display: block; /* Sempre visível no desktop normal */
  }

  /* ✅ COMPACT MODE ATIVADO: Mostrar estrutura mobile */
  body[data-desktop-compact="true"] .service-header-mobile {
    display: flex;
  }

  body[data-desktop-compact="true"] .btn-toggle-mobile {
    display: flex;
  }

  /* Conteúdo recolhido por padrão (IGUAL MOBILE) */
  body[data-desktop-compact="true"] .service-content-mobile {
    display: none;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
    padding-top: 1rem;
  }

  /* ✅ CORREÇÃO: Grid com cards independentes no compact mode */
  body[data-desktop-compact="true"] .service-cards {
    align-items: start;
  }

  /* ✅ CORREÇÃO: Card compacto por padrão, só expande quando tem classe .expanded */
  body[data-desktop-compact="true"] .service-card {
    overflow: hidden;
  }

  body[data-desktop-compact="true"] .service-card.expanded .service-content-mobile {
    display: block;
  }

  /* ✅ DESKTOP NORMAL: Ajustes de espaçamento */
  .service-card {
    padding: 1.5rem;
  }

  .service-header-mobile h4 {
    margin-bottom: 1rem;
  }

  /* Magnification Effect (estilo dock do macOS) - Desktop apenas */
  .service-card:hover {
    transform: scale(var(--services-desktop-magnification-scale, 1)) translateY(-4px);
    z-index: 20;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
  }

  /* Desabilitar magnification se configurado */
  body[data-magnification-disabled="true"] .service-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
  }
}

/*.service-card[data-service="limpa-nome"] {
  border-color: var(--primary-color);
}*/

.service-card .report-header {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.service-card .report-badge {
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  transition: all 0.3s ease;
}

/* ✅ NOVOS: Estilos personalizados para badges */
.service-card .report-badge.outline {
  background: transparent !important;
  border: 2px solid !important;
}

.service-card .report-badge.gradient {
  background: linear-gradient(45deg, var(--primary-color), #0056b3) !important;
  border: none !important;
}

.service-card .report-badge.default {
  border: none;
}

.credit-badge {
  background: var(--info-color) !important;
}

.debt-badge {
  background: var(--warning-color) !important;
  color: var(--text-color) !important;
}

.detran-badge {
  background: #673ab7 !important;
}

.service-card h4 {
  font-size: 1.3rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.service-card .report-description {
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.service-card .report-features {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}

.service-card .report-features li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.service-card .report-features i {
  color: var(--success-color);
  font-size: 0.9rem;
}

.service-btn-disabled {
  background: var(--secondary-color) !important;
  color: white !important;
  cursor: not-allowed !important;
}

.service-btn-disabled:hover {
  background: var(--secondary-color) !important;
  transform: none !important;
}

/* Step by Step Modal Styles */
.step-modal {
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
}

/* ✅ Hero Section "Como funciona?" - Elegante */
.service-hero-modal {
  background: linear-gradient(135deg, rgba(23, 225, 168, 0.06) 0%, rgba(20, 197, 148, 0.03) 100%);
  border: 1px solid rgba(23, 225, 168, 0.15);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.service-hero-modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark), var(--primary-color));
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 200% 0; }
  50% { background-position: 0% 0; }
}

.service-hero-modal::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(23, 225, 168, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.service-welcome {
  position: relative;
  z-index: 1;
}

.service-hero-modal h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-color);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.service-hero-modal h3 i {
  color: var(--primary-color);
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(23, 225, 168, 0.15), rgba(23, 225, 168, 0.05));
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-intro {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.service-intro strong {
  color: var(--text-color);
  font-weight: 600;
}

/* ✅ Bloco de Atenção/Garantias estilizado */
.service-guarantee-wrapper {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.08) 0%, rgba(255, 152, 0, 0.05) 100%);
  border: 1px solid rgba(255, 193, 7, 0.25);
  border-left: 4px solid var(--warning-color);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  position: relative;
  overflow: hidden;
}

.service-guarantee-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle at top right, rgba(255, 193, 7, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.service-guarantee-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: #e6a700;
  font-weight: 600;
  font-size: 1.1rem;
}

.service-guarantee-header i {
  font-size: 1.25rem;
  color: var(--warning-color);
}

.service-guarantee {
  color: var(--text-muted);
  line-height: 1.6;
  font-style: normal;
  margin: 0;
}

/* ✅ Seção "As etapas do seu processo" - Elegante */
.service-how-it-works {
  margin-top: 0.5rem;
}

.service-how-it-works h4 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-color);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.service-how-it-works h4 i {
  color: var(--primary-color);
  font-size: 1.1rem;
}

.service-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-step {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--bg-light) 0%, rgba(248, 249, 250, 0.5) 100%);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  position: relative;
  transition: all 0.2s ease;
}

.service-step:hover {
  border-color: rgba(23, 225, 168, 0.3);
  box-shadow: 0 4px 12px rgba(23, 225, 168, 0.08);
  transform: translateY(-1px);
}

.service-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
  border-radius: 12px 0 0 12px;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(23, 225, 168, 0.12), rgba(23, 225, 168, 0.05));
  border-radius: 12px;
  flex-shrink: 0;
}

.step-number i {
  font-size: 1.25rem;
  color: var(--primary-color);
}

.step-content {
  flex: 1;
  min-width: 0;
}

.step-content h5 {
  color: var(--text-color);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.step-content p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.step-content p strong {
  color: var(--text-color);
  font-weight: 600;
}

.step-note {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.05));
  border: 1px solid rgba(255, 193, 7, 0.2);
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ✅ Step List - Lista elegante com ícones */
.step-list {
  list-style: none;
  padding-left: 0;
  margin: 0.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.step-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
  padding: 0.4rem 0.5rem;
  line-height: 1.55;
  font-size: 0.93rem;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.step-list li:hover {
  background: rgba(23, 225, 168, 0.04);
}

.step-list li i {
  color: var(--primary-color);
  font-size: 13px;
  margin-top: 4px;
  flex-shrink: 0;
  min-width: 16px;
  opacity: 0.85;
}

/* ✅ NOVO: Consistência para listas com ícones FontAwesome */
.service-features ul {
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0;
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-muted);
  padding: 0.25rem 0;
  line-height: 1.5;
}

.service-features li i {
  color: var(--primary-color);
  font-size: 14px;
  margin-top: 2px;
  flex-shrink: 0;
  min-width: 14px;
}

/* ✅ Lista de garantias/liminares estilizada */
.guarantee-list {
  list-style: none;
  padding-left: 0;
  margin: 0.75rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.guarantee-list li {
  color: var(--text-muted);
  padding: 0.6rem 0.75rem 0.6rem 2rem;
  position: relative;
  line-height: 1.55;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.guarantee-list li:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(2px);
}

.guarantee-list li::before {
  content: "⚠";
  position: absolute;
  left: 0.6rem;
  top: 0.6rem;
  font-size: 0.85rem;
  opacity: 0.7;
}

.guarantee-list li strong {
  color: var(--text-color);
  font-weight: 600;
}

/* Variante para lista dentro de steps (usar bullet simples) */
.step-content .guarantee-list li::before {
  content: "→";
  color: var(--primary-color);
  font-weight: bold;
  opacity: 1;
}

.step-content .guarantee-list li {
  background: transparent;
  padding: 0.35rem 0 0.35rem 1.5rem;
  border-radius: 0;
}

.step-content .guarantee-list li:hover {
  background: transparent;
  transform: none;
}

.step-highlight {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
  border: 1px solid rgba(40, 167, 69, 0.2);
  border-left: 4px solid var(--success-color);
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-weight: 500;
  color: var(--text-color);
  font-size: 0.95rem;
  line-height: 1.5;
}

.service-action {
  text-align: center;
  margin: 2rem 0;
}

.service-action-step {
  text-align: center;
}

.service-cta-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.service-cta-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.service-cta-modal {
  text-align: center;
  background: var(--primary-light);
  padding: 1rem;
  border-radius: var(--border-radius);
}

.service-cta-modal .cta-text {
  color: var(--text-color);
  font-weight: 500;
  margin: 0;
}

/* ===== RESPONSIVE STYLES ===== */

/* =============================================
   TABLET LAYOUT - Igual Mobile (sem compact, sem magnification)
============================================= */
/* Tablet Portrait (em pé) - 1 coluna como mobile */
@media (max-width: 1024px) and (min-width: 769px) and (orientation: portrait) {
  .service-cards {
    grid-template-columns: repeat(var(--services-tablet-portrait-columns), 1fr);
    gap: var(--services-tablet-gap);
  }
}

/* Tablet Landscape (deitado) - 4 colunas */
@media (max-width: 1024px) and (min-width: 769px) and (orientation: landscape) {
  .service-cards {
    grid-template-columns: repeat(var(--services-tablet-landscape-columns), 1fr);
    gap: var(--services-tablet-gap);
  }
}

/* =============================================
   MOBILE LAYOUT - Configurável via Admin
============================================= */
@media (max-width: 768px) {

  .step-content h5 {
    text-align: center;
  }
  .service-hero {
    padding: 1.5rem;
  }

  .service-welcome h2 {
    font-size: 1.5rem;
  }

  .service-step {
    flex-direction: column;
    gap: 0.5rem;
  }

  .step-number {
    font-size: 1.2rem;
  }

  .report-options {
    grid-template-columns: 1fr;
  }

  /* ✅ Layout mobile dinâmico configurável */
  .service-cards {
    grid-template-columns: repeat(var(--services-mobile-columns), 1fr);
    gap: var(--services-mobile-gap);
  }

  .service-hero-modal {
    padding: 1.25rem;
    border-radius: 12px;
  }

  .service-hero-modal h3 {
    font-size: 1.15rem;
  }

  .service-hero-modal h3 i {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }

  .service-guarantee-wrapper {
    padding: 1rem 1.15rem;
    border-radius: 10px;
  }

  .service-guarantee-header {
    font-size: 1rem;
  }

  .guarantee-list li {
    padding: 0.5rem 0.6rem 0.5rem 1.75rem;
    font-size: 0.9rem;
  }

  .service-step {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 10px;
  }

  .step-number {
    width: 38px;
    height: 38px;
    align-self: anchor-center;
  }

  .step-number i {
    font-size: 1.1rem;
  }

  .step-modal {
    margin: 1rem;
    max-height: 95vh;
  }

  .documents-grid {
    grid-template-columns: 1fr;
  }

  .reports-grid {
    grid-template-columns: 1fr;
  }

  .modal-content {
    margin: 1rem;
    max-width: none;
  }
}

/* ===== ESTILOS ADICIONAIS PARA RELATÓRIOS ASAAS ===== */
.error-message {
  text-align: center;
  padding: 2rem;
  color: var(--danger-color);
  background: rgba(255, 75, 92, 0.1);
  border-radius: var(--border-radius);
  margin: 1rem 0;
}

.error-message i {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.pending-message,
.processing-message {
  text-align: center;
  padding: 1rem;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.pending-message {
  background: rgba(255, 193, 7, 0.1);
  color: var(--warning-color);
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.processing-message {
  background: rgba(23, 162, 184, 0.1);
  color: var(--info-color);
  border: 1px solid rgba(23, 162, 184, 0.3);
}

.report-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.report-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.report-details p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.report-details strong {
  color: var(--text-color);
}

.report-actions {
  margin-top: 1rem;
  text-align: center;
}

.payment-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  text-decoration: none;
}

.payment-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.payment-btn i {
  font-size: 1rem;
}

/* Botão de pagamento pendente (aguardando link) */
.payment-btn-pending {
  background: #6c757d !important;
  cursor: not-allowed !important;
  opacity: 0.7;
}

.payment-btn-pending:hover {
  transform: none !important;
  background: #6c757d !important;
}

.payment-pending-text {
  display: block;
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-style: italic;
  text-align: center;
}

/* Animação de loading para relatórios */
.reports-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem;
  color: var(--text-muted);
}

.reports-loading .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(23, 225, 168, 0.3);
  border-top-color: var(--primary-color);
}

/* Melhorias no grid de relatórios */
.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .reports-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== REVIEW CONDITIONAL MESSAGE STYLES ===== */
.review-not-available {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 2rem;
  text-align: center;
  margin: 1rem 0;
}

.review-not-available .info-message {
  max-width: 500px;
  margin: 0 auto;
}

.review-not-available .fas {
  font-size: 3rem;
  color: var(--info-color);
  margin-bottom: 1rem;
}

.review-not-available h3 {
  color: var(--text-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.review-not-available p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.review-not-available .note {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--secondary-color);
}

/* ===== ENHANCED TIMELINE WITH DOTS/STEPS ===== */
.timeline-steps {
  position: relative;
  margin: 2rem 0;
  padding-left: 1rem;
}

.timeline-steps::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1.5rem;
  width: 2px;
  background: linear-gradient(to bottom, 
    var(--success-color) 0%, 
    var(--success-color) var(--progress-percent, 30%), 
    var(--border-color) var(--progress-percent, 30%), 
    var(--border-color) 100%);
}

.timeline-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  min-height: 60px;
}

.timeline-dot-enhanced {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 2;
  margin-right: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.timeline-dot-enhanced.completed {
  background: var(--success-color);
  color: white;
  border: 3px solid var(--success-color);
}

.timeline-dot-enhanced.current {
  background: var(--primary-color);
  color: white;
  border: 3px solid var(--primary-color);
  animation: pulse 2s infinite;
  box-shadow: 0 0 0 0 rgba(23, 225, 168, 0.7);
}

.timeline-dot-enhanced.upcoming {
  background: var(--bg-light);
  color: var(--text-muted);
  border: 3px solid var(--border-color);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(23, 225, 168, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(23, 225, 168, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(23, 225, 168, 0);
  }
}

.timeline-step-content {
  flex: 1;
  padding-top: 0.5rem;
}

.timeline-step-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.timeline-step-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.timeline-step.completed .timeline-step-title {
  color: var(--success-color);
}

.timeline-step.current .timeline-step-title {
  color: var(--primary-color);
  font-weight: 700;
}

.timeline-separator {
  margin: 3rem 0 2rem 0;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
}

.timeline-separator h4 {
  color: var(--text-color);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.timeline-activity {
  opacity: 0.85;
  margin-bottom: 1rem;
}

.timeline-activity .timeline-dot.small {
  width: 12px;
  height: 12px;
  background: var(--secondary-color);
}

.timeline-metadata {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: var(--bg-light);
  border-radius: 4px;
}

/* ✅ NOVOS ESTILOS: Divisórias de serviços e melhorias visuais */

/* Divisória de serviços */
.service-divider {
  margin: 2rem 0 1.5rem 0;
}

.divider-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.divider-info {
  flex-shrink: 0;
}

.service-title {
  color: var(--text-color);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-title i {
  color: var(--primary-color);
}

.service-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0.25rem 0 0 0;
}

.divider-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), transparent);
  border-radius: 1px;
}

/* Destaque para desconto */
.payment-discount {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  border: 2px solid #ffc107;
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-bottom: 1rem;
  text-align: center;
}

.discount-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--warning-color);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.discount-badge i {
  font-size: 1.1rem;
}

.discount-info {
  margin: 0.5rem 0 0 0;
  color: #856404;
  font-weight: 500;
  font-size: 0.9rem;
}

/* ✅ NOVO: Desconto desabilitado quando pago */
.payment-discount.disabled {
  opacity: 0.6;
  background: linear-gradient(135deg, #e9ecef, #dee2e6);
  border-color: #6c757d;
}

.payment-discount.disabled .discount-badge {
  background: #6c757d;
  box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.payment-discount.disabled .discount-info {
  color: #495057;
}

/* Botão de comprovante */
.payment-receipt {
  padding: 1rem;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: var(--border-radius);
  margin-top: 1rem;
  text-align: center;
}

.receipt-btn {
  background: var(--success-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 0.9rem;
}

.receipt-btn:hover {
  background: #1e7e34;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Status vencido - destaque vermelho */
.payment-card.overdue {
  border-left: 5px solid var(--danger-color);
  background: linear-gradient(135deg, #fff5f5, #ffe6e6);
}

.payment-status.overdue {
  background: var(--danger-color);
  color: white;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(255, 75, 92, 0.3);
}

.payment-message.overdue {
  background: #f8d7da;
  border: 2px solid var(--danger-color);
  color: #721c24;
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-top: 1rem;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
}

.status-message-overdue {
  background: var(--danger-color);
  color: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  margin: 1rem 0;
  box-shadow: 0 4px 15px rgba(255, 75, 92, 0.4);
  border: 3px solid #dc3545;
}

/* Status recebido - destaque verde */
.payment-card.received {
  border-left: 5px solid var(--success-color);
  background: linear-gradient(135deg, #f8fff8, #e6ffe6);
}

.payment-status.received {
  background: var(--success-color);
  color: white;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.payment-message.received {
  background: #d4edda;
  border: 2px solid var(--success-color);
  color: #155724;
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-top: 1rem;
  font-weight: 600;
  text-align: center;
}

/* Espaçamento entre report cards */
.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem; /* ✅ AUMENTADO: Mais espaçamento entre cards */
  margin-top: 1rem;
}

.reports-grid .report-card {
  margin-bottom: 1rem; /* ✅ ADICIONADO: Espaçamento adicional */
}

/* Melhorias gerais */
.payment-card {
  margin-bottom: 1.5rem; /* ✅ AUMENTADO: Mais espaçamento entre pagamentos */
  transition: all 0.3s ease;
}

.payment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ===== ESTILOS PARA TIMELINE DE SERVIÇOS ===== */
.timeline-section-title {
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-section-title .refresh-btn {
  position: absolute;
  top: 0;
  right: 0;
}

.timeline-section-title h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.timeline-section-title p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.service-timeline-container {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  margin-bottom: 2rem;
  overflow: hidden;
}

.service-timeline-container.light {
  border-left: 4px solid var(--primary-color);
}

.service-timeline-container.dark {
  border-left: 4px solid var(--info-color);
}

.service-timeline-header {
  background: var(--bg-light);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.service-info h4 {
  margin: 0;
  color: var(--text-color);
  font-size: 1.1rem;
}

.service-info h4 i {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

/* ✅ CORREÇÃO 2: Meta informações do serviço */
.service-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.service-amount {
  font-weight: 600;
  color: var(--success-color);
  font-size: 1rem;
}

.service-document {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.3rem 0.6rem;
  background: rgba(var(--primary-color-rgb), 0.1);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid rgba(var(--primary-color-rgb), 0.2);
}

.service-document i {
  color: var(--primary-color);
  font-size: 0.8rem;
}

.service-status-badge {
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-status-badge.generating {
  background: rgba(255, 193, 7, 0.2);
  color: #856404;
}

.service-status-badge.approving {
  background: rgba(23, 162, 184, 0.2);
  color: #0c5460;
}

/* ✅ REMOVIDO: CSS hardcoded dos 6 status - agora usa status dinâmicos do servicesconfigs */

/* ✅ NOVO: Estilos para a nova seção de detalhes do serviço - EXPANSIVA */
.service-details-section {
  margin: 1rem 0;
  padding: 0;
  background: rgba(248, 249, 250, 0.8);
  border-radius: 8px;
  border-left: 4px solid rgba(var(--primary-color-rgb), 0.6);
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 0;
  max-height: 0;
}

.service-details-section.expanded {
  padding: 1rem;
  opacity: 1;
  max-height: 5000px;
}

/* ✅ NOVO: Botão de expansão */
.expand-service-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  color: rgba(var(--primary-color-rgb), 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.expand-service-btn:hover {
  background: rgba(var(--primary-color-rgb), 0.1);
  transform: scale(1.1);
}

.expand-service-btn i {
  transition: transform 0.3s ease;
  font-size: 0.9rem;
}

/* ✅ ATUALIZADO: Header responsivo (mobile + desktop) */
.service-header-mobile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(var(--primary-color-rgb), 0.05);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: 1px solid rgba(var(--primary-color-rgb), 0.1);
}

/* ✅ SIMPLIFICADO: Desktop support - apenas funcionalidade */
@media (min-width: 769px) {
  .service-header-mobile {
    padding: 1.2rem;
  }
}

.service-header-mobile:hover {
  background: rgba(var(--primary-color-rgb), 0.08);
}

.service-header-mobile .service-info {
  flex: 1;
}

.service-header-mobile h4 {
  margin: 0 0 0.5rem 0;
  color: rgba(var(--primary-color-rgb), 0.9);
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-header-mobile .service-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
}

/* ✅ ATUALIZADO: Botão toggle responsivo (mobile + desktop) */
.btn-toggle-mobile {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  color: rgba(var(--primary-color-rgb), 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

/* ✅ SIMPLIFICADO: Desktop support - apenas funcionalidade */
@media (min-width: 769px) {
  .btn-toggle-mobile {
    width: 44px;
    height: 44px;
    padding: 0.8rem;
  }
}

.btn-toggle-mobile:hover {
  background: rgba(var(--primary-color-rgb), 0.1);
  color: rgba(var(--primary-color-rgb), 1);
}

.btn-toggle-mobile i {
  transition: transform 0.3s ease;
  font-size: 1rem;
}

/* ✅ NOVO: Botão toggle andamento com estilo bonito dos serviços */
.btn-toggle-andamento {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-toggle-andamento:hover {
  background-color: var(--primary-color);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.btn-toggle-andamento:active {
  transform: scale(0.95);
}

.btn-toggle-andamento i {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

/* ✅ NOVO: Desktop support para btn-toggle-andamento - SEM display: none */
@media (min-width: 769px) {
  .btn-toggle-andamento {
    width: 44px;
    height: 44px;
    padding: 0.8rem;
  }
}

/* ✅ NOVO: Service timeline section dentro da expansão */
.service-timeline-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(var(--primary-color-rgb), 0.1);
}

.service-timeline-section h5 {
  margin: 0 0 1.5rem 0;
  color: rgba(var(--primary-color-rgb), 0.8);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.service-timeline-section .service-timeline-steps {
  margin: 0;
}

.service-timeline-section .step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.service-timeline-section .step-header h6 {
  margin: 0;
  color: #333;
  font-weight: 600;
  font-size: 1.1rem;
}

.service-timeline-section .step-date {
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
}

.service-timeline-section .step-action-btn,
.service-timeline-step .step-action-btn {
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--primary-color) !important;
  color: white !important;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  opacity: 1 !important;
  visibility: visible !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-timeline-section .step-action-btn:hover,
.service-timeline-step .step-action-btn:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.service-timeline-section .no-steps {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 2rem;
}

.service-details-content .detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.service-details-content .detail-item:last-child {
  border-bottom: none;
}

.service-details-content .detail-item label {
  font-weight: 600;
  color: #495057;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-details-content .detail-item label i {
  color: rgba(var(--primary-color-rgb), 0.8);
}

.service-details-content .budget-section {
  flex-direction: column;
  align-items: flex-start;
}

.service-details-content .budget-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.5rem;
}

.service-details-content .budget-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.service-details-content .budget-label {
  font-weight: 500;
  color: #6c757d;
  font-size: 0.9rem;
}

.service-details-content .budget-value {
  font-weight: 600;
  color: #495057;
}

.service-details-content .budget-value.success {
  color: #28a745;
}

.service-details-content .budget-value.red {
  color: #ff6363;
}

.service-details-content .payment-method {
  font-weight: 500;
  color: #495057;
  background: rgba(var(--primary-color-rgb), 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.service-details-content .status-active {
  color: #28a745;
  font-weight: 600;
}

.service-details-content .status-inactive {
  color: #dc3545;
  font-weight: 600;
}

/* ✅ NOVO: Estilos para agrupamento por customer */
.customer-section {
  margin-bottom: 2rem;
  border: 1px solid rgba(var(--primary-color-rgb), 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.customer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.1), rgba(var(--primary-color-rgb), 0.05));
  border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.1);
}

.customer-info h3.customer-name {
  margin: 0;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.customer-info .customer-document {
  font-size: 0.9rem;
  color: black;
  margin-top: 0.3rem;
  font-weight: 500;
}

.customer-stats {
  background: rgba(var(--primary-color-rgb), 0.1);
  border-radius: 20px;
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
}

.customer-categories {
  padding: 1.5rem;
}

.document-category {
  margin-bottom: 1.5rem;
}

.document-category:last-child {
  margin-bottom: 0;
}

.service-status-badge.completed {
  background: rgba(40, 167, 69, 0.2);
  color: #155724;
}

.service-timeline-steps {
  padding: 2rem 1.5rem;
}

.service-timeline-step {
  display: flex;
  align-items: flex-start;
  position: relative;
  padding-bottom: 1.5rem;
}

.service-timeline-step:last-child {
  padding-bottom: 0;
}

.service-timeline-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
  font-size: 1rem;
}

.service-timeline-dot.completed {
  background: var(--success-color);
  color: white;
}

.service-timeline-dot.current {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 0 0 4px rgba(23, 225, 168, 0.3);
}

.service-timeline-dot.upcoming {
  background: var(--border-color);
  color: var(--text-muted);
}

.service-timeline-content {
  flex: 1;
  min-width: 0;
}

.service-timeline-title {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service-timeline-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.service-timeline-timestamp {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-style: italic;
}

.timeline-action-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.timeline-action-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.service-timeline-connector {
  position: absolute;
  left: 19px;
  top: 40px;
  width: 2px;
  height: 30px;
  background: var(--border-color);
}

.service-timeline-connector.completed {
  background: var(--success-color);
}

/* ===== ESTILOS PARA AGRUPAMENTO DE CLIENTES/DOCUMENTOS ===== */
.customer-section {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  margin-bottom: 2rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.customer-section:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.customer-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.customer-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    transparent 30%, 
    rgba(255, 255, 255, 0.1) 50%, 
    transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.customer-header:hover::before {
  opacity: 1;
}

.customer-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.customer-info h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.customer-info h3 i {
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem;
  border-radius: 50%;
}

.customer-document-type {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.customer-document-type i {
  font-size: 1rem;
}

.customer-categories {
  padding: 1.5rem;
  background: var(--bg-light);
}

.category-section {
  margin-bottom: 2rem;
}

.category-section:last-child {
  margin-bottom: 0;
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}

.category-header h4 {
  margin: 0;
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.category-header i {
  color: var(--primary-color);
  font-size: 1.2rem;
  background: var(--primary-light);
  padding: 0.5rem;
  border-radius: 50%;
}

.category-count {
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

.category-documents {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.customer-document-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.customer-document-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-color);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.customer-document-card:hover::before {
  opacity: 1;
}

.customer-document-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(23, 225, 168, 0.15);
  transform: translateY(-2px);
}

.customer-document-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.customer-document-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  background: var(--primary-light);
  padding: 0.5rem;
  border-radius: 8px;
  flex-shrink: 0;
}

.customer-document-info h5 {
  margin: 0 0 0.25rem 0;
  color: var(--text-color);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
}

.customer-document-info p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.3;
}

.customer-document-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.customer-document-btn {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border-color);
  background: white;
  color: var(--text-color);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.customer-document-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

.customer-document-btn.primary {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.customer-document-btn.primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.customer-empty-category {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  background: white;
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius);
  margin-top: 1rem;
}

.customer-empty-category i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.customer-empty-category h5 {
  margin: 0 0 0.5rem 0;
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 600;
}

.customer-empty-category p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Responsive design para agrupamento de clientes */
@media (max-width: 768px) {
  .customer-info {
    align-items: flex-start;
    gap: 1rem;
  }
  
  .customer-info h3 {
    font-size: 1.1rem;
  }
  
  .customer-document-type {
    align-self: flex-start;
  }
  
  .category-documents {
    grid-template-columns: 1fr;
  }
  
  .customer-document-actions {
    justify-content: center;
  }
  
  .customer-document-btn {
    flex: 1;
    justify-content: center;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .customer-section {
    margin-bottom: 1.5rem;
  }
  
  .customer-header {
    padding: 1rem;
  }
  
  .customer-categories {
    padding: 1rem;
  }
  
  .category-section {
    margin-bottom: 1.5rem;
  }
  
  .customer-document-card {
    padding: 0.75rem;
  }
  
  .customer-document-header {
    gap: 0.5rem;
  }
  
  .customer-document-icon {
    font-size: 1.2rem;
    padding: 0.4rem;
  }
  
  .customer-document-actions {
    gap: 0.25rem;
  }
}

/* ===== ESTILOS PARA MODAL DE DADOS CONTRATUAIS ===== */
.contract-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.contract-modal .modal-content {
  background: white;
  border-radius: var(--border-radius);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contract-modal .modal-header {
  background: var(--primary-color);
  color: white;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contract-modal .modal-header h2 {
  margin: 0;
  font-size: 1.3rem;
}

.contract-modal .modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.contract-modal .modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.contract-modal .modal-body {
  padding: 2rem;
}

.modal-description {
  color: var(--text-muted);
  margin-bottom: 2rem;
  text-align: center;
  font-size: 0.95rem;
}

.contract-form .form-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.contract-form .form-section h3 {
  margin: 0 0 1.5rem 0;
  color: var(--primary-color);
  font-size: 1.1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.contract-form .form-section h3 i {
  margin-right: 0.5rem;
}

.contract-form .form-group {
  margin-bottom: 1.5rem;
}

.contract-form .form-group:last-child {
  margin-bottom: 0;
}

.contract-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

.contract-form input,
.contract-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
}

.contract-form input:focus,
.contract-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(23, 225, 168, 0.1);
}

.contract-form textarea {
  resize: vertical;
  min-height: 80px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.btn-secondary {
  background: var(--secondary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #5a6268;
}

.btn-primary {
  /* Layout e Dimensões */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;

  /* Typography */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;

  /* Cores e Background */
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;

  /* Visual Effects */
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(23, 225, 168, 0.25);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(23, 225, 168, 0.35);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(23, 225, 168, 0.3);
  transition: all 0.1s ease;
}

.btn-primary:focus {
  outline: 2px solid rgba(23, 225, 168, 0.3);
  outline-offset: 2px;
}

.btn-primary:disabled {
  opacity: 0.6;
  transform: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  cursor: not-allowed;
  background: var(--secondary-color);
}

/* Spinner dentro do botão */
.btn-primary .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsividade */
@media (max-width: 768px) {
  
  .service-timeline-section .step-header {
    flex-direction: column;
    align-items: unset;
  }

  .divider-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .divider-line {
    width: 100%;
    height: 1px;
  }
  
  .discount-badge {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
  
  .service-timeline-header {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  
  /* ✅ CORREÇÃO 2: Responsividade mobile para meta informações */
  .service-meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.8rem;
    width: 100%;
    margin-top: 0.8rem;
  }
  
  .service-document {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
  }
  
  .service-timeline-title {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .contract-modal .modal-content {
    margin: 10px;
    max-height: calc(100vh - 20px);
  }
  
  .contract-modal .modal-body {
    padding: 1.5rem;
  }
  
  .form-actions {
    flex-direction: column;
  }
}

/* ====================== MODAL ORÇAMENTO MODELOSDOCS ====================== */

/* Modal overlay para orçamento */
.budget-modelosdocs-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
  animation: modalFadeIn 0.3s ease;
}

/* Conteúdo principal do modal */
.budget-modal-content {
  background: white;
  border-radius: 20px;
  width: 95%;
  max-width: 1400px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  animation: modalSlideUp 0.4s ease;
  overflow: hidden;
}

/* Header do modal */
.budget-modal-header {
  background: linear-gradient(135deg, #17E1A8 0%, #05B17F 100%);
  color: white;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 20px 20px 0 0;
}

.budget-header-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.budget-header-content h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.budget-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.budget-modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 18px;
}

.budget-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Corpo do modal em 2 colunas */
.budget-modal-body {
  flex: 1;
  overflow: auto;
  max-width: 100%;
  max-height: 100%;
}

/* Seção de preview (coluna esquerda) */
.budget-preview-section {
  flex: 1;
  background: #f8f9fa;
  border-right: 1px solid #e9ecef;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.budget-preview-section h3 {
  padding: 20px 30px;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  gap: 10px;
}

.budget-preview-container {
  flex: 1;
  overflow: auto;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.budget-preview-frame {
  width: 100%;
  max-width: none;
  min-height: 80vh;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.budget-preview-header {
  background: #17E1A8;
  color: white;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
}

.preview-controls {
  display: flex;
  gap: 8px;
}

.preview-controls button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preview-controls button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.budget-preview-content {
  overflow: auto;
  transform-origin: top left;
  transition: transform 0.2s ease;
}

.budget-preview-actions {
  padding: 15px 20px;
  border-top: 1px solid #e9ecef;
  display: flex;
  gap: 12px;
}

.btn-preview, .btn-download {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.btn-preview {
  background: #6c757d;
  color: white;
}

.btn-preview:hover {
  background: #5a6268;
  transform: translateY(-2px);
}

.btn-download {
  background: #17E1A8;
  color: white;
}

.btn-download:hover {
  background: #14c594;
  transform: translateY(-2px);
}

/* Seção de configuração (coluna direita) */
.budget-config-section {
  flex: 0 0 400px;
  background: white;
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.budget-config-section h3 {
  padding: 20px 30px;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  gap: 10px;
}

.budget-client-data,
.budget-service-data,
.budget-commercial-data {
  padding: 20px 30px;
  border-bottom: 1px solid #f1f3f4;
}

.budget-client-data h4,
.budget-service-data h4,
.budget-commercial-data h4 {
  margin: 0 0 15px 0;
  font-size: 16px;
  font-weight: 600;
  color: #495057;
}

.budget-config-section .form-group {
  margin-bottom: 15px;
}

.budget-config-section .form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #495057;
  font-size: 14px;
}

.budget-config-section .form-group input,
.budget-config-section .form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: white;
}

.budget-config-section .form-group input:focus,
.budget-config-section .form-group textarea:focus {
  outline: none;
  border-color: #17E1A8;
  box-shadow: 0 0 0 3px rgba(23, 225, 168, 0.1);
}

.budget-config-section .form-group input[readonly] {
  background: #f8f9fa;
  color: #6c757d;
}

/* Footer do modal */
.budget-modal-footer {
  padding: 20px 30px;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: #f8f9fa;
}

.budget-modal-footer button {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.budget-modal-footer .btn-secondary {
  background: #6c757d;
  color: white;
}

.budget-modal-footer .btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-2px);
}

.btn-regenerate {
  background: #ffc107;
  color: #212529;
}

.btn-regenerate:hover {
  background: #e0a800;
  transform: translateY(-2px);
}

.budget-modal-footer .btn-primary {
  background: linear-gradient(135deg, #17E1A8 0%, #05B17F 100%);
  color: white;
}

.budget-modal-footer .btn-primary:hover {
  background: linear-gradient(135deg, #14c594 0%, #048966 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(23, 225, 168, 0.3);
}

.budget-modal-footer .btn-primary.btn-disabled,
.budget-modal-footer .btn-primary:disabled {
  background: #95a5a6 !important;
  color: #7f8c8d !important;
  cursor: not-allowed !important;
  opacity: 0.5 !important;
  transform: none !important;
  box-shadow: none !important;
  pointer-events: none;
}

.budget-modal-footer .btn-primary.btn-disabled:hover,
.budget-modal-footer .btn-primary:disabled:hover {
  background: #95a5a6 !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Estados de loading e erro */
.budget-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #6c757d;
}

.budget-loading i {
  font-size: 32px;
  margin-bottom: 16px;
  color: #17E1A8;
}

.budget-loading p {
  font-size: 16px;
  font-weight: 500;
}

.budget-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #dc3545;
  text-align: center;
}

.budget-error i {
  font-size: 32px;
  margin-bottom: 16px;
}

.budget-error p {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.budget-error small {
  font-size: 14px;
  color: #6c757d;
}

/* Animações */
@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsividade para mobile */
@media (max-width: 768px) {
  .budget-modal-content {
    width: 100%;
    height: 100vh;
    border-radius: 0;
    max-width: none;
  }
  
  .budget-modal-body {
    flex-direction: column;
  }
  
  .budget-preview-section {
    flex: 0 0 50%;
    border-right: none;
    border-bottom: 1px solid #e9ecef;
  }
  
  .budget-config-section {
    flex: 1;
  }
  
  .budget-modal-header {
    padding: 15px 20px;
    border-radius: 0;
  }
  
  .budget-header-content h2 {
    font-size: 20px;
  }
  
  .budget-modal-footer {
    padding: 15px 20px;
    flex-wrap: wrap;
  }
  
  .budget-modal-footer button {
    flex: 1;
  }
  
  .budget-modal-footer button .btn-secondary {
    justify-content: center;
  }
  /* Budget Preview Responsividade */
  .budget-preview-frame {
    border-radius: 0;
    min-height: 90vh;
  }
  
  .budget-preview-container {
    padding: 10px;
  }

  .service-how-it-works {
    padding: 0;
  }
}

/* Media Query para dispositivos muito pequenos */
@media (max-width: 480px) {
  .budget-preview-frame {
    min-height: 95vh;
    border-radius: 0;
  }
  
  .budget-preview-container {
    padding: 5px;
  }
  
  .budget-preview-header {
    padding: 10px;
    font-size: 14px;
  }
}

/* ✅ NOVO: Estilos para spinner do botão "Aprovar Orçamento" */
.btn-spinner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-spinner i.fa-spinner {
  animation: spin 1s linear infinite;
  font-size: 14px;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Melhorar transição do botão durante loading */
#approveBudgetBtn {
  transition: all 0.3s ease;
  position: relative;
  min-width: 160px; /* Evitar resize durante spinner */
}

#approveBudgetBtn:disabled {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  cursor: not-allowed !important;
}

#approveBtnContent,
#approveBtnSpinner {
  transition: all 0.2s ease;
}

/* ✅ NOVO: Overlay de Loading para Aprovação de Orçamento */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-out;
}

.loading-content {
  text-align: center;
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 300px;
  animation: slideUp 0.4s ease-out;
}

.loading-logo {
  width: 120px;
  height: auto;
  margin-bottom: 20px;
  animation: logoPulse 2s ease-in-out infinite;
}

.loading-text {
  color: var(--text-color);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 25px;
  line-height: 1.4;
}

.loading-spinner-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.loading-spinner-dots span {
  width: 12px;
  height: 12px;
  background: var(--primary-color);
  border-radius: 50%;
  animation: dotsBounce 1.4s ease-in-out infinite both;
}

.loading-spinner-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.loading-spinner-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

.loading-spinner-dots span:nth-child(3) {
  animation-delay: 0s;
}

/* Animações */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes logoPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

@keyframes dotsBounce {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* Responsividade do overlay */
@media (max-width: 480px) {
  .loading-content {
    margin: 20px;
    padding: 30px 20px;
    max-width: calc(100% - 40px);
  }

  .loading-logo {
    width: 100px;
  }

  .loading-text {
    font-size: 16px;
  }
}

/* ====================== SERVICE CARDS EXPANSIVOS (MOBILE/DESKTOP) ====================== */

/* Header Mobile com Nome + Botão Toggle */
.service-header-mobile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
}

.service-header-mobile h4 {
  margin: 0;
  flex: 1;
  font-size: 1.25rem;
  color: var(--text-color);
}

/* Botão Toggle para Mobile */
.btn-toggle-mobile {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-toggle-mobile:hover {
  background-color: var(--primary-color);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.btn-toggle-mobile:active {
  transform: scale(0.95);
}

/* Ícone do chevron com transição suave */
.btn-toggle-mobile i {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

/* Conteúdo expansivo */
.service-content-mobile {
  transition: all 0.3s ease;
  opacity: 1;
  transform: translateY(0);
}

/* Animação de slide down */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====================== RESPONSIVIDADE ====================== */

/* Mobile: Cards expansivos (≤768px) */
@media (max-width: 768px) {
  .service-header-mobile {
    display: flex;
  }

  .btn-toggle-mobile {
    display: flex;
  }

  /* Conteúdo recolhido por padrão no mobile */
  .service-content-mobile {
    display: none;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
    padding-top: 1rem;
  }

  /* Service card ajustes para mobile */
  .service-card {
    margin-bottom: 1rem;
    padding: 1rem;
  }

  /* Report header menor no mobile */
  .service-card .report-header {
    margin-bottom: 0.75rem;
  }

  /* Ajuste do título no mobile */
  .service-header-mobile h4 {
    font-size: 1.1rem;
    line-height: 1.3;
  }

  /* Botão toggle maior no touch */
  .btn-toggle-mobile {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }
}

/* ❌ REMOVIDO: Seção duplicada que conflitava com compact mode
   A lógica de desktop está implementada corretamente em @media (min-width: 1025px)
   na linha 2549 com suporte a compact mode via body[data-desktop-compact] */

/* Tablet: Comportamento híbrido (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .service-card {
    padding: 1.25rem;
  }

  .service-header-mobile h4 {
    font-size: 1.2rem;
  }
}

/* Dark mode support */
[data-theme="dark"] .btn-toggle-mobile {
  border-color: #4299e1;
  color: #4299e1;
}

[data-theme="dark"] .btn-toggle-mobile:hover {
  background-color: #4299e1;
  color: white;
}

/* ✅ NOVO: Dark mode support para btn-toggle-andamento */
[data-theme="dark"] .btn-toggle-andamento {
  border-color: #4299e1;
  color: #4299e1;
}

[data-theme="dark"] .btn-toggle-andamento:hover {
  background-color: #4299e1;
  color: white;
}

[data-theme="dark"] .service-content-mobile {
  border-color: #4a5568;
}

/* Acessibilidade */
.btn-toggle-mobile:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Reduzir movimento para usuários com preferência */
@media (prefers-reduced-motion: reduce) {
  .btn-toggle-mobile,
  .service-content-mobile {
    transition: none;
  }

  @keyframes slideDown {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

/* =====================================================
   ✅ SISTEMA DE AVALIAÇÕES - Reviews
   ===================================================== */

/* Botão "Ver Avaliações" */
.reviews-btn {
  margin-top: 10px;
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.reviews-btn:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.reviews-btn:active {
  transform: translateY(0);
}

.reviews-btn i {
  font-size: 16px;
}

/* Contador de reviews */
.reviews-count {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  font-size: 12px;
  opacity: 0.9;
}

.reviews-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.reviews-count-badge small {
  font-size: 11px;
}

/* Modal de Reviews */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.reviews-modal {
  background: white;
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.reviews-modal .modal-header {
  padding: 24px 30px;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.reviews-modal .modal-header h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviews-modal .modal-header i {
  color: #ffd700;
}

.modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.reviews-modal .modal-body {
  padding: 30px;
  overflow-y: auto;
  flex: 1;
}

/* Estatísticas de Reviews */
.reviews-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: var(--border-radius);
  border: 2px solid rgba(102, 126, 234, 0.2);
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 15px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
}

.stat-item i {
  font-size: 28px;
  color: #667eea;
  margin-bottom: 8px;
}

.stat-value {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-color);
  margin: 8px 0 4px;
}

.stat-label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Lista de Reviews */
.reviews-list {
  display: grid;
  gap: 20px;
}

/* Card de Review Individual */
.review-card {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px;
  transition: all 0.3s ease;
}

.review-card:hover {
  border-color: #667eea;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
  transform: translateY(-2px);
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.author-info strong {
  font-size: 16px;
  color: var(--text-color);
}

.review-location {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.review-rating {
  font-size: 20px;
  color: #ffd700;
  letter-spacing: 2px;
}

/* Corpo do Review */
.review-body {
  margin-bottom: 15px;
}

.review-comment {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-color);
  font-style: italic;
  padding: 15px;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  border-left: 4px solid #667eea;
  position: relative;
}

.review-comment::before {
  content: '"';
  font-size: 48px;
  color: rgba(102, 126, 234, 0.2);
  position: absolute;
  top: -10px;
  left: 10px;
  font-family: Georgia, serif;
}

/* Rodapé do Review */
.review-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

.review-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 12px;
  background: var(--bg-light);
  border-radius: 20px;
}

.review-meta i {
  color: #667eea;
  font-size: 14px;
}

/* Empty State */
.empty-reviews {
  text-align: center;
  padding: 60px 20px;
}

.empty-reviews i {
  font-size: 64px;
  color: #667eea;
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-reviews p {
  font-size: 16px;
  color: var(--text-muted);
  margin: 10px 0;
}

.empty-reviews p:first-of-type {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
}

/* Responsividade */
@media (max-width: 768px) {
  .reviews-modal {
    max-width: 100%;
    max-height: 95vh;
    border-radius: 16px 16px 0 0;
  }

  .reviews-modal .modal-header {
    padding: 20px;
  }

  .reviews-modal .modal-header h2 {
    font-size: 20px;
  }

  .reviews-modal .modal-body {
    padding: 20px;
  }

  .reviews-stats {
    flex-direction: column;
    gap: 15px;
  }

  .review-card {
    padding: 15px;
  }

  .review-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .review-footer {
    flex-direction: column;
    gap: 10px;
  }

  .review-meta {
    width: 100%;
    justify-content: center;
  }
}

/* Animação de Loading no Contador */
.reviews-count .fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ============================================ */
/* 📋 MODAL DE DOSSIÊ */
/* ============================================ */

.dossie-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.dossie-modal-container {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dossie-modal-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.dossie-modal-header h3 {
  font-size: 24px;
  color: var(--text-color);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dossie-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}

.dossie-close-btn:hover {
  background: var(--bg-light);
  color: var(--text-color);
}

.dossie-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex-grow: 1;
}

.dossie-description {
  background: var(--primary-light);
  border-left: 4px solid var(--primary-color);
  padding: 16px;
  border-radius: 4px;
  margin-bottom: 24px;
  display: flex;
  gap: 12px;
}

.dossie-description i {
  color: var(--primary-color);
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.dossie-description p {
  margin: 0;
  color: var(--text-color);
  line-height: 1.6;
}

.dossie-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-light);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 24px;
}

.dossie-badge i {
  color: var(--primary-color);
}

.dossie-section {
  margin-bottom: 32px;
}

.dossie-section:last-child {
  margin-bottom: 0;
}

.dossie-section h4 {
  font-size: 18px;
  color: var(--text-color);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
}

.dossie-section h4 i {
  color: var(--primary-color);
}

.dossie-fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.dossie-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dossie-field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 4px;
}

.required-star {
  color: var(--danger-color);
  font-size: 16px;
}

.dossie-input,
.dossie-textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
  background: white;
}

.dossie-input:focus,
.dossie-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.dossie-input::placeholder,
.dossie-textarea::placeholder {
  color: var(--text-muted);
}

.dossie-help-text {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.dossie-upload-area {
  margin-bottom: 24px;
  padding: 20px;
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  background: var(--bg-light);
  transition: all 0.2s;
}

.dossie-upload-area:hover {
  border-color: var(--primary-color);
  background: var(--primary-light);
}

.dossie-upload-area label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}

.dossie-upload-info {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.dossie-upload-info span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dossie-upload-zone {
  background: white;
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.dossie-upload-zone:hover {
  border-color: var(--primary-color);
  background: var(--primary-light);
}

.dossie-upload-zone i {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.dossie-upload-zone p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.dossie-files-preview {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dossie-file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  transition: all 0.2s;
}

.dossie-file-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(23, 225, 168, 0.1);
}

.dossie-file-item i {
  color: var(--primary-color);
  font-size: 20px;
}

.dossie-file-item span {
  flex-grow: 1;
  font-size: 14px;
  color: var(--text-color);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-remove-file {
  background: none;
  border: none;
  color: var(--danger-color);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-remove-file:hover {
  background: rgba(255, 75, 92, 0.1);
}

.dossie-modal-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-shrink: 0;
  background: var(--bg-light);
}

.dossie-modal-footer button {
  padding: 12px 24px;
  border-radius: 6px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-secondary {
  background: white;
  color: var(--text-color);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-light);
  border-color: var(--text-color);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(23, 225, 168, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(23, 225, 168, 0.4);
}

/* Responsivo */
@media (max-width: 768px) {
  .dossie-modal-container {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .dossie-fields-grid {
    grid-template-columns: 1fr;
  }

  .dossie-modal-footer {
    flex-direction: column;
  }

  .dossie-modal-footer button {
    width: 100%;
    justify-content: center;
  }

  .dossie-upload-zone {
    padding: 24px;
  }

  .dossie-upload-zone i {
    font-size: 36px;
  }
}

/* =============================================
   DOSSIÊ - GRUPOS COLETIVOS (REPETÍVEIS)
============================================= */
.dossie-grupo-coletivo {
  margin-bottom: 24px;
  padding: 20px;
  background: #f8f9fa;
  border: 2px solid #17E1A8;
  border-radius: 8px;
}

.dossie-coletivo-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dossie-coletivo-title i {
  color: #17E1A8;
}

.dossie-coletivo-instancia {
  margin-bottom: 16px;
  padding: 16px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 6px;
}

.dossie-coletivo-instancia:last-child {
  margin-bottom: 12px;
}

.dossie-coletivo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.dossie-coletivo-header span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
}

.btn-remove-instancia {
  padding: 6px 12px;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background 0.2s;
}

.btn-remove-instancia:hover {
  background: #c82333;
}

.btn-add-instancia {
  width: 100%;
  padding: 12px;
  background: #17E1A8;
  color: white;
  border: 2px dashed #17E1A8;
  background: transparent;
  color: #17E1A8;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-add-instancia:hover {
  background: #17E1A8;
  color: white;
}

/* =============================================
   DOSSIÊ - CHECKBOX E RADIO
============================================= */
.dossie-checkbox-group,
.dossie-radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dossie-checkbox-label,
.dossie-radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #f8f9fa;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  color: var(--text-color);
}

.dossie-checkbox-label:hover,
.dossie-radio-label:hover {
  background: #e9ecef;
  border-color: #17E1A8;
}

.dossie-checkbox-label input[type="checkbox"],
.dossie-radio-label input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #17E1A8;
}

.dossie-checkbox-label input[type="checkbox"]:checked + *,
.dossie-radio-label input[type="radio"]:checked + * {
  font-weight: 600;
  color: #17E1A8;
}

/* =============================================
   DOSSIÊ - LINK EXTERNO
============================================= */
.dossie-link-externo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 12px;
  background: linear-gradient(135deg, #17E1A8, #15C793);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(23, 225, 168, 0.2);
}

.dossie-link-externo:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(23, 225, 168, 0.3);
  background: linear-gradient(135deg, #15C793, #17E1A8);
}

.dossie-link-externo i {
  font-size: 12px;
}

/* =============================================
   COMPACT GRID WITH CLICK-TO-EXPAND
   Cards colapsados mostram apenas badge + título
   Click para expandir/colapsar individual
============================================= */
/* Toda lógica de compact/expand está nas classes .service-card e .service-card.active acima */
/* JavaScript adiciona/remove classe .active ao clicar no card */

/* =============================================
   STRIPE & SCHEDULED STATUS STYLES
   Estilos para pagamentos Stripe e parcelas agendadas
============================================= */

/* Status agendado - destaque azul escuro (parcelamento sob demanda) */
.payment-card.scheduled {
  border-left: 5px solid #6c757d;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  opacity: 0.85;
}

.payment-status.scheduled {
  background: #6c757d;
  color: white;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: var(--border-radius);
  font-size: 0.85rem;
}

.payment-message.scheduled {
  background: #e9ecef;
  border: 1px solid #6c757d;
  color: #495057;
  padding: 0.75rem;
  border-radius: var(--border-radius);
  margin-top: 0.75rem;
  font-size: 0.85rem;
  text-align: center;
  font-style: italic;
}

/* Status cancelado - destaque cinza escuro */
.payment-card.canceled {
  border-left: 5px solid #495057;
  background: linear-gradient(135deg, #f1f1f1, #e0e0e0);
  opacity: 0.7;
}

.payment-status.canceled {
  background: #495057;
  color: white;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: var(--border-radius);
  font-size: 0.85rem;
  text-decoration: line-through;
}

.payment-message.canceled {
  background: #e0e0e0;
  border: 1px solid #495057;
  color: #495057;
  padding: 0.75rem;
  border-radius: var(--border-radius);
  margin-top: 0.75rem;
  font-size: 0.85rem;
  text-align: center;
}

/* Stripe branded button style */
.payment-btn.stripe-btn {
  background: linear-gradient(135deg, #635BFF, #8B85FF);
  border: none;
  box-shadow: 0 4px 12px rgba(99, 91, 255, 0.3);
}

.payment-btn.stripe-btn:hover {
  background: linear-gradient(135deg, #5851ea, #7B75F5);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 91, 255, 0.4);
}

/* Font Awesome Stripe icon fallback */
.fa-stripe::before {
  content: "\f429";
}
