/* Calculadora de Horas Trabalhadas - Prefixo calc-ht- */

.calc-ht-container {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  max-width: 1000px !important;
  margin: 0 auto !important;
  padding: 16px !important;
}

.calc-ht-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 24px !important;
  align-items: start !important;
}

/* Cards */
.calc-ht-card {
  background: #ffffff !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  border: 1px solid #e5e7eb !important;
  overflow: hidden !important;
}

.calc-ht-card-header {
  padding: 16px 20px !important;
  border-bottom: 1px solid #e5e7eb !important;
  background: #fafafa !important;
}

.calc-ht-card-header h3 {
  margin: 0 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #3b3b3b !important;
}

.calc-ht-card-content {
  padding: 20px !important;
}

/* Cenários */
.calc-ht-cenarios {
  margin-bottom: 20px !important;
}

.calc-ht-cenarios-label {
  display: block !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #6b7280 !important;
  margin-bottom: 8px !important;
}

.calc-ht-cenarios-btns {
  display: flex !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.calc-ht-cenario-btn {
  padding: 6px 12px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #374151 !important;
  background: #f3f4f6 !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
}

.calc-ht-cenario-btn:hover {
  background: #fee2e2 !important;
  border-color: #fe3e6d !important;
  color: #fe3e6d !important;
}

.calc-ht-cenario-btn.active {
  background: #fe3e6d !important;
  border-color: #fe3e6d !important;
  color: #ffffff !important;
}

/* Seções */
.calc-ht-section {
  margin-bottom: 20px !important;
  padding: 16px !important;
  background: #fafafa !important;
  border-radius: 8px !important;
  border: 1px solid #e5e7eb !important;
}

.calc-ht-section h4 {
  margin: 0 0 12px 0 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #3b3b3b !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.calc-ht-section-icon {
  width: 20px !important;
  height: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  border-radius: 4px !important;
  background: #e5e7eb !important;
  color: #6b7280 !important;
}

.calc-ht-icon-add {
  background: #dcfce7 !important;
  color: #16a34a !important;
}

/* Grid de Configurações */
.calc-ht-config-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
}

/* Grid de Registro */
.calc-ht-registro-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
}

.calc-ht-obs-group {
  margin-bottom: 12px !important;
}

/* Input Groups */
.calc-ht-input-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.calc-ht-input-group label {
  font-size: 11px !important;
  font-weight: 500 !important;
  color: #6b7280 !important;
}

.calc-ht-input-wrapper {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
}

.calc-ht-input {
  width: 100% !important;
  height: 36px !important;
  padding: 0 12px !important;
  font-size: 14px !important;
  color: #1f2937 !important;
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  border-radius: 6px !important;
  transition: all 0.2s !important;
  box-sizing: border-box !important;
}

.calc-ht-input:focus {
  outline: none !important;
  border-color: #fe3e6d !important;
  box-shadow: 0 0 0 3px rgba(254, 62, 109, 0.1) !important;
}

.calc-ht-input-wrapper .calc-ht-input {
  padding-left: 32px !important;
}

.calc-ht-suffix-wrapper .calc-ht-input {
  padding-left: 12px !important;
  padding-right: 32px !important;
}

.calc-ht-input-prefix {
  position: absolute !important;
  left: 12px !important;
  font-size: 14px !important;
  color: #6b7280 !important;
  pointer-events: none !important;
}

.calc-ht-input-suffix {
  position: absolute !important;
  right: 12px !important;
  font-size: 14px !important;
  color: #6b7280 !important;
  pointer-events: none !important;
}

.calc-ht-textarea {
  width: 100% !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
  color: #1f2937 !important;
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  border-radius: 6px !important;
  resize: vertical !important;
  font-family: inherit !important;
  box-sizing: border-box !important;
}

.calc-ht-textarea:focus {
  outline: none !important;
  border-color: #fe3e6d !important;
  box-shadow: 0 0 0 3px rgba(254, 62, 109, 0.1) !important;
}

/* Botão Adicionar */
.calc-ht-btn-adicionar {
  width: 100% !important;
  padding: 10px 16px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  background: #fe3e6d !important;
  border: none !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: all 0.2s !important;
}

.calc-ht-btn-adicionar:hover {
  background: #e5366a !important;
}

/* Botões de Ação */
.calc-ht-actions {
  display: flex !important;
  gap: 8px !important;
  margin-top: 16px !important;
}

.calc-ht-btn-secondary {
  flex: 1 !important;
  padding: 8px 12px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #374151 !important;
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: all 0.2s !important;
}

.calc-ht-btn-secondary:hover {
  background: #f3f4f6 !important;
  border-color: #9ca3af !important;
}

.calc-ht-btn-whatsapp {
  flex: 1 !important;
  padding: 8px 12px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #ffffff !important;
  background: #25d366 !important;
  border: none !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: all 0.2s !important;
}

.calc-ht-btn-whatsapp:hover {
  background: #20bd5a !important;
}

/* Resumo */
.calc-ht-resumo {
  margin-bottom: 20px !important;
}

.calc-ht-resumo-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
}

.calc-ht-resumo-item {
  padding: 12px !important;
  background: #f9fafb !important;
  border-radius: 8px !important;
  text-align: center !important;
}

.calc-ht-resumo-label {
  display: block !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  color: #6b7280 !important;
  margin-bottom: 4px !important;
}

.calc-ht-resumo-valor {
  display: block !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #1f2937 !important;
}

.calc-ht-destaque-rosa {
  color: #fe3e6d !important;
}

/* Registros */
.calc-ht-registros {
  margin-bottom: 20px !important;
}

.calc-ht-registros h4 {
  margin: 0 0 12px 0 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #3b3b3b !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.calc-ht-registros-lista {
  max-height: 240px !important;
  overflow-y: auto !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  background: #fafafa !important;
}

.calc-ht-registros-vazio {
  padding: 32px 16px !important;
  text-align: center !important;
  color: #9ca3af !important;
}

.calc-ht-registros-vazio svg {
  margin-bottom: 8px !important;
  opacity: 0.5 !important;
}

.calc-ht-registros-vazio p {
  margin: 0 0 4px 0 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.calc-ht-registros-vazio span {
  font-size: 12px !important;
}

.calc-ht-registro-item {
  padding: 12px !important;
  border-bottom: 1px solid #e5e7eb !important;
  background: #ffffff !important;
}

.calc-ht-registro-item:last-child {
  border-bottom: none !important;
}

.calc-ht-registro-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 8px !important;
}

.calc-ht-registro-data {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #1f2937 !important;
}

.calc-ht-btn-remover {
  padding: 4px 8px !important;
  font-size: 11px !important;
  color: #ef4444 !important;
  background: #fef2f2 !important;
  border: none !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
}

.calc-ht-btn-remover:hover {
  background: #fee2e2 !important;
  color: #dc2626 !important;
}

.calc-ht-registro-detalhes {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px !important;
  font-size: 11px !important;
  color: #6b7280 !important;
}

.calc-ht-registro-detalhe {
  display: flex !important;
  flex-direction: column !important;
}

.calc-ht-registro-detalhe span:first-child {
  color: #9ca3af !important;
  font-size: 10px !important;
}

.calc-ht-registro-detalhe span:last-child {
  color: #1f2937 !important;
  font-weight: 500 !important;
}

.calc-ht-registro-detalhe.calc-ht-extras span:last-child {
  color: #fe3e6d !important;
}

.calc-ht-registro-obs {
  margin-top: 8px !important;
  font-size: 11px !important;
  font-style: italic !important;
  color: #9ca3af !important;
}

/* Resultado Principal */
.calc-ht-resultado-principal {
  padding: 20px !important;
  background: #fff7f8 !important;
  border: 1px solid #fecdd3 !important;
  border-radius: 12px !important;
  text-align: center !important;
  margin-bottom: 16px !important;
}

.calc-ht-resultado-label {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #6b7280 !important;
  margin-bottom: 4px !important;
}

.calc-ht-resultado-valor {
  font-size: 32px !important;
  font-weight: 700 !important;
  color: #047857 !important;
  margin-bottom: 4px !important;
}

.calc-ht-resultado-info {
  font-size: 12px !important;
  color: #fe3e6d !important;
}

/* Dica */
.calc-ht-dica {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  padding: 12px !important;
  background: #f0f9ff !important;
  border: 1px solid #bae6fd !important;
  border-radius: 8px !important;
}

.calc-ht-dica svg {
  flex-shrink: 0 !important;
  color: #0284c7 !important;
  margin-top: 2px !important;
}

.calc-ht-dica p {
  margin: 0 !important;
  font-size: 12px !important;
  color: #0369a1 !important;
  line-height: 1.4 !important;
}

.calc-ht-dica strong {
  color: #075985 !important;
}

/* Responsivo */
@media (max-width: 800px) {
  .calc-ht-grid {
    grid-template-columns: 1fr !important;
  }

  .calc-ht-config-grid,
  .calc-ht-registro-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .calc-ht-resumo-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .calc-ht-registro-detalhes {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 500px) {
  .calc-ht-container {
    padding: 8px !important;
  }

  .calc-ht-config-grid,
  .calc-ht-registro-grid {
    grid-template-columns: 1fr !important;
  }

  .calc-ht-actions {
    flex-direction: column !important;
  }

  .calc-ht-cenarios-btns {
    flex-direction: column !important;
  }

  .calc-ht-registro-detalhes {
    grid-template-columns: 1fr !important;
  }

  .calc-ht-resultado-valor {
    font-size: 28px !important;
  }
}
