/* === MÓDULO DE COTIZACIONES === */

/* El módulo de Cotizaciones reutiliza casi en su totalidad las clases de ordenes.css */
/* Aquí definimos solo las clases específicas y sobreescrituras necesarias */

.cot-header {
  border-left-color: #84cc16 !important; /* Verde lima para diferenciar de OS (Amarillo) */
}

.cot-header-info h2 {
  color: #84cc16 !important;
}

.cot-header-info .numero-cot {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
  font-family: 'Courier New', monospace;
  background: rgba(132, 204, 22, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  display: inline-block;
}

.cot-panel {
  background: #141414;
  border: 1px solid #2a2a2a;
  padding: 1.25rem;
  border-radius: 6px;
  position: relative;
}

.cot-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #84cc16;
  border-radius: 6px 6px 0 0;
}

.cot-panel h4 {
  color: #84cc16;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #2a2a2a;
  font-weight: 600;
}

.cot-badge-validez {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  background: rgba(255, 215, 0, 0.1);
  color: #FFD700;
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
}

/* Tabla unificada de cotización */
.tabla-cotizacion th:nth-child(1), .tabla-cotizacion td:nth-child(1) { width: 60px; text-align: center; } /* Cantidad */
.tabla-cotizacion th:nth-child(2), .tabla-cotizacion td:nth-child(2) { width: auto; } /* Descripción */
.tabla-cotizacion th:nth-child(3), .tabla-cotizacion td:nth-child(3) { width: 120px; text-align: right; } /* Valor Unit */
.tabla-cotizacion th:nth-child(4), .tabla-cotizacion td:nth-child(4) { width: 120px; text-align: right; } /* Total */
.tabla-cotizacion th:nth-child(5), .tabla-cotizacion td:nth-child(5) { width: 40px; text-align: center; } /* Acciones */

.tabla-cotizacion input[type="text"] {
  text-align: left;
}

/* Totales en cotización */
.cot-totales {
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  border: 2px solid #84cc16;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
}

.cot-totales::before {
  content: 'RESUMEN COTIZACIÓN';
  position: absolute;
  top: -10px;
  left: 1rem;
  background: #84cc16;
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.25rem 0.75rem;
  border-radius: 3px;
}

/* Lista de cotizaciones */
.cotizaciones-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.cotizacion-card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
  border-left: 3px solid transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cotizacion-card:hover {
  border-color: #84cc16;
  border-left-color: #84cc16;
  background: #1f1f1f;
}

.cot-info-main {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cot-card-num {
  font-weight: 700;
  color: #84cc16;
  font-size: 1.1rem;
  font-family: 'Courier New', monospace;
}

.cot-card-cliente {
  color: #fff;
  font-size: 0.9rem;
}

.cot-card-moto {
  color: #888;
  font-size: 0.8rem;
}

.cot-info-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.cot-card-total {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Courier New', monospace;
}

.cot-card-fecha {
  color: #666;
  font-size: 0.75rem;
}
