/* ============================================================
   DASHBOARD-GERENCIAL.CSS - CF Obras
   Design moderno e profissional seguindo padrão do sistema
   ============================================================ */

:root {
  --primary: #667eea;
  --secondary: #764ba2;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #fbbf24;
  --info: #3b82f6;
  --bg-color: #f9fafb;
  --text-main: #1f2937;
  --border-color: #e5e7eb;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --card-hover-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background: #f9fafb;
  color: var(--text-main);
  line-height: 1.6;
}

/* ============================= */
/* HEADER                        */
/* ============================= */

#dashboard-header {
  background: linear-gradient(135deg, #667eea, #764ba2);
  padding: 25px 40px;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.header-left {
  flex: 1;
}

.titulo-principal {
  font-size: 32px;
  font-weight: 800;
  color: white;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitulo {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  margin: 5px 0 0 0;
  font-weight: 500;
}

.header-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

.seletor-obra-container {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.seletor-obra-container label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.seletor-obra-container label svg {
  opacity: 0.9;
}

.select-obra {
  padding: 12px 40px 12px 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 280px;
  appearance: none;
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg width="12" height="8" viewBox="0 0 12 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L6 6L11 1" stroke="%231f2937" stroke-width="2" stroke-linecap="round"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.select-obra:hover {
  background: white;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.select-obra:focus {
  outline: none;
  border-color: white;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.btn-atualizar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  color: white;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.btn-atualizar:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-atualizar:active {
  transform: translateY(0);
}

.btn-atualizar.loading {
  opacity: 0.7;
  cursor: wait;
}

.btn-atualizar.loading svg {
  animation: spin 1s linear infinite;
}

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

/* ============================= */
/* CONTAINER PRINCIPAL           */
/* ============================= */

.dashboard-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 40px 40px 80px;
}

/* ============================= */
/* GRID DE KPIs                  */
/* ============================= */

.kpis-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 colunas fixas em desktop */
  gap: 20px;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================= */
/* CARDS DOS KPIs                */
/* ============================= */

.kpi-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #f0f0f0;
  position: relative;
  overflow: hidden;
  animation: slideIn 0.5s ease-out backwards;
  min-height: 140px; /* Altura mínima para padronizar */
  height: 100%; /* Garante que todos tenham a mesma altura */
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.kpi-card:nth-child(1) { animation-delay: 0.05s; }
.kpi-card:nth-child(2) { animation-delay: 0.1s; }
.kpi-card:nth-child(3) { animation-delay: 0.15s; }
.kpi-card:nth-child(4) { animation-delay: 0.2s; }
.kpi-card:nth-child(5) { animation-delay: 0.25s; }
.kpi-card:nth-child(6) { animation-delay: 0.3s; }
.kpi-card:nth-child(7) { animation-delay: 0.35s; }
.kpi-card:nth-child(8) { animation-delay: 0.4s; }
.kpi-card:nth-child(9) { animation-delay: 0.45s; }
.kpi-card:nth-child(10) { animation-delay: 0.5s; }
.kpi-card:nth-child(11) { animation-delay: 0.55s; }
.kpi-card:nth-child(12) { animation-delay: 0.6s; }

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.kpi-card:hover::before {
  transform: translateX(100%);
}

.kpi-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow);
  border-color: rgba(102, 126, 234, 0.3);
}

.kpi-card:active {
  transform: translateY(-2px);
}

/* Card com alerta especial */
.kpi-card.kpi-alert {
  border-left: 4px solid var(--danger);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: var(--card-shadow);
  }
  50% {
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.2);
  }
}

.kpi-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.kpi-card:hover .kpi-icon {
  transform: scale(1.05) rotate(5deg);
}

.kpi-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kpi-titulo {
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.kpi-valor {
  font-size: 24px; /* Reduzido para evitar quebras */
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  word-break: keep-all; /* Evita quebra de palavras */
  white-space: nowrap; /* Evita quebra de linha */
  overflow: hidden;
  text-overflow: ellipsis; /* Adiciona ... se necessário */
}

.kpi-trend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
}

.kpi-trend.up {
  color: var(--success);
}

.kpi-trend.down {
  color: var(--info);
}

.kpi-trend.stable {
  color: #6b7280;
}

.kpi-trend.alert {
  color: var(--danger);
}

.trend-icon {
  font-size: 16px;
  font-weight: bold;
}

/* ============================= */
/* MODAIS                        */
/* ============================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  animation: fadeIn 0.3s forwards;
  padding: 20px;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.modal-card {
  background: white;
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-right: 6px solid var(--primary);
  overflow: hidden;
}

@keyframes slideUp {
  from {
    transform: translateY(50px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-header {
  padding: 25px 30px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.modal-header h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: white;
}

.btn-fechar-modal {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: white;
  line-height: 1;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s;
  font-weight: 300;
}

.btn-fechar-modal:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.modal-body {
  padding: 30px;
  overflow-y: auto;
  flex: 1;
}

/* ============================= */
/* CONTEÚDO DOS MODAIS           */
/* ============================= */

.modal-info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.info-card {
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #e5e7eb;
  transition: transform 0.2s ease;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.info-card-valor {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.info-card-label {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-section {
  margin-top: 30px;
}

.modal-section h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e5e7eb;
}

/* ============================= */
/* TABELAS                       */
/* ============================= */

.tabela-modal {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tabela-modal thead {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.tabela-modal th {
  padding: 14px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #e5e7eb;
}

.tabela-modal td {
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  color: #374151;
}

.tabela-modal tbody tr {
  transition: background 0.2s ease;
}

.tabela-modal tbody tr:hover {
  background: #f9fafb;
}

.tabela-modal tbody tr:last-child td {
  border-bottom: none;
}

/* ============================= */
/* BADGES                        */
/* ============================= */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #10b981;
}

.badge.warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fbbf24;
}

.badge.danger {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #ef4444;
}

.badge.info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #3b82f6;
}

/* ============================= */
/* NOTIFICAÇÕES                  */
/* ============================= */

.notificacao {
  position: fixed;
  top: 100px;
  right: 30px;
  background: white;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-left: 4px solid var(--success);
  z-index: 9999;
  display: none;
  animation: slideInRight 0.4s ease-out;
  max-width: 400px;
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.notificacao.show {
  display: block;
}

.notificacao.error {
  border-left-color: var(--danger);
}

.notificacao.warning {
  border-left-color: var(--warning);
}

/* ============================= */
/* LOADING STATE                 */
/* ============================= */

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(102, 126, 234, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s linear infinite;
}

/* ============================= */
/* EMPTY STATE                   */
/* ============================= */

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #9ca3af;
}

.empty-state svg {
  opacity: 0.3;
  margin-bottom: 20px;
}

.empty-state h3 {
  font-size: 20px;
  color: #6b7280;
  margin-bottom: 10px;
}

.empty-state p {
  font-size: 14px;
  color: #9ca3af;
}

/* ============================= */
/* RESPONSIVE                    */
/* ============================= */

/* Tablet - 2 colunas */
@media (max-width: 1200px) {
  .kpis-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile - 1 coluna */
@media (max-width: 768px) {
  #dashboard-header {
    padding: 20px;
  }

  .header-content {
    flex-direction: column;
    align-items: stretch;
  }

  .titulo-principal {
    font-size: 24px;
  }

  .subtitulo {
    font-size: 13px;
  }

  .header-actions {
    flex-direction: column;
  }

  .select-obra {
    min-width: 100%;
  }

  .dashboard-container {
    padding: 20px 20px 60px;
  }

  .kpis-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .kpi-card {
    padding: 20px;
  }

  .kpi-icon {
    width: 56px;
    height: 56px;
  }

  .kpi-valor {
    font-size: 24px; /* Menor ainda no mobile */
  }

  .modal-card {
    max-width: 95%;
    margin: 10px;
  }

  .modal-body {
    padding: 20px;
  }

  .modal-info-cards {
    grid-template-columns: 1fr;
  }

  .tabela-modal {
    font-size: 12px;
  }

  .tabela-modal th,
  .tabela-modal td {
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .kpi-card {
    flex-direction: column;
    text-align: center;
  }

  .kpi-icon {
    margin: 0 auto;
  }
}

/* ============================= */
/* UTILS                         */
/* ============================= */

.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}
/* ============================================================
   IMPORTAÇÃO SIENGE - CSS ADICIONAL
   Adicionar ao dashboard-gerencial.css
   ============================================================ */

/* ============================= */
/* BOTÃO E DROPDOWN IMPORTAÇÃO   */
/* ============================= */

.dropdown-importacao {
  position: relative;
  display: inline-block;
}

.btn-importar-sienge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-importar-sienge:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  min-width: 250px;
  padding: 8px;
  z-index: 1000;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropdown-item:not([disabled]):hover {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  color: var(--primary);
}

.dropdown-item[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.dropdown-item svg {
  flex-shrink: 0;
}

.dropdown-divider {
  margin: 8px 0;
  border: none;
  border-top: 1px solid #e5e7eb;
}

/* ============================= */
/* ETAPAS                        */
/* ============================= */

.etapas-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.etapa-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 12px;
  border-left: 4px solid #e5e7eb;
  transition: all 0.3s ease;
}

.etapa-ativa {
  background: linear-gradient(135deg, #f0f4ff, #e8f0ff);
  border-left-color: var(--primary);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.etapa-concluida {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border-left-color: var(--success);
}

.etapa-concluida .etapa-numero::after {
  content: '✓';
  font-size: 18px;
}

.etapa-numero {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 700;
  color: #9ca3af;
  flex-shrink: 0;
}

.etapa-ativa .etapa-numero {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.etapa-concluida .etapa-numero {
  background: var(--success);
  color: white;
}

.etapa-info h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  color: var(--text-main);
}

.etapa-info p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

/* ============================= */
/* ÁREA DE UPLOAD                */
/* ============================= */

.upload-area {
  margin: 30px 0;
  text-align: center;
}

.upload-area h4 {
  margin: 0 0 20px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.btn-upload {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.btn-upload:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.btn-upload:active {
  transform: translateY(-1px);
}

/* ============================= */
/* BARRA DE PROGRESSO            */
/* ============================= */

.progresso-container {
  margin-top: 30px;
}

.barra-progresso {
  width: 100%;
  height: 12px;
  background: #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.barra-preenchimento {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2, #10b981);
  background-size: 200% 100%;
  animation: progressGradient 2s linear infinite;
  transition: width 0.3s ease;
  border-radius: 6px;
}

@keyframes progressGradient {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.texto-progresso {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-align: center;
}

/* ============================= */
/* LOADING OVERLAY               */
/* ============================= */

.loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 10;
  border-radius: 16px;
}

.loading-overlay p {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
}

/* ============================= */
/* ANÁLISE - CARDS               */
/* ============================= */

.analise-resumo {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.analise-card {
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #e5e7eb;
}

.analise-card h4 {
  margin: 0 0 20px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  padding-bottom: 12px;
  border-bottom: 2px solid #e5e7eb;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-item .label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-item .valor {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.info-item .valor.destaque {
  font-size: 24px;
  color: var(--primary);
}

/* ============================= */
/* FILIAIS E OBRAS               */
/* ============================= */

.filiais-lista {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filial-item {
  background: white;
  border-radius: 10px;
  padding: 16px;
  border: 1px solid #e5e7eb;
}

.filial-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.filial-header strong {
  flex: 1;
  font-size: 16px;
  color: var(--text-main);
}

.obras-lista {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.obra-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #f9fafb;
  border-radius: 8px;
  font-size: 14px;
}

.obra-codigo {
  font-weight: 700;
  color: var(--primary);
  min-width: 50px;
}

.obra-nome {
  flex: 1;
  color: var(--text-main);
}

/* ============================= */
/* RESPONSIVE                    */
/* ============================= */

@media (max-width: 768px) {
  .dropdown-menu {
    right: auto;
    left: 0;
  }
  
  .etapas-container {
    gap: 10px;
  }
  
  .etapa-item {
    padding: 12px;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .btn-upload {
    padding: 14px 24px;
    font-size: 14px;
  }
}
