/* ==========================================================================
   SISTEMA DE DISEÑO "PREMIER NGA" v3.0 - (Formularios de Registro)
   ========================================================================== */
:root {
    --primary-dark: #1a2b4c;
    --primary: #0073ce;
    --primary-light: #3b82f6;
    --success: #10b981;
    --accent: #f97316;
    --bg-light: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: system-ui, -apple-system, sans-serif; }

body { background-color: var(--bg-light); color: var(--text-main); }

/* --- NAVEGACIÓN SUPERIOR --- */
.dash-header { background: var(--primary-dark); padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.logo { font-size: 1.5rem; font-weight: 800; color: white; display: flex; align-items: center; gap: 0.5rem; }
.logo span { color: var(--primary-light); font-weight: 400; }
.header-actions { display: flex; gap: 1rem; align-items: center; }
.btn-system-link { background: white; color: var(--primary-dark); border: none; padding: 0.5rem 1rem; border-radius: 8px; font-weight: 600; font-size: 0.875rem; text-decoration: none; transition: 0.2s; display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.btn-system-link:hover { background: var(--bg-light); }
.btn-logout { background: var(--accent); color: white; border: none; padding: 0.5rem 1rem; border-radius: 8px; font-weight: 600; font-size: 0.875rem; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 0.5rem; }
.btn-logout:hover { background: #ea580c; }

/* --- CONTENEDOR Y TARJETA PRINCIPAL --- */
.app-container { max-width: 1000px; margin: 2rem auto; padding: 0 1rem; }
.card { background: white; border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); border: 1px solid var(--border); overflow: hidden; position: relative; }

/* --- FORMULARIOS --- */
.order-form { padding: 2rem; }
.form-section { margin-bottom: 2.5rem; }
.form-section h3 { color: var(--primary-dark); font-size: 1.25rem; font-weight: 800; margin-bottom: 1.5rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--bg-light); }

.grid-form { display: grid; gap: 1.5rem; }
.grid-form.col-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-form.col-5 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.mt-2 { margin-top: 1rem; }
.full-width { grid-column: 1 / -1; }

.input-group label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--primary-dark); }
.req { color: var(--accent); }
.input-group small { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }

/* Inputs y Botón de Copiar */
.input-wrapper { position: relative; display: flex; align-items: center; }
.input-wrapper input { width: 100%; padding: 0.75rem; padding-right: 2.5rem; border: 1px solid var(--border); border-radius: 8px; outline: none; transition: 0.2s; font-size: 0.875rem; background: white; }
.input-wrapper input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(0, 115, 206, 0.2); }
.input-wrapper input:disabled { background: var(--bg-light); cursor: not-allowed; }
.total-input { font-weight: bold; color: var(--success); background-color: #f0fdf4 !important; }

.btn-copy { position: absolute; right: 0.5rem; background: transparent; border: none; color: var(--text-muted); cursor: pointer; padding: 0.25rem; border-radius: 4px; transition: 0.2s; }
.btn-copy:hover { color: var(--primary); background: var(--bg-light); }

/* --- RADIOS (STATUS DE VENTA) --- */
.radio-group { display: flex; gap: 1.5rem; margin-top: 0.5rem; }
.radio-label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.875rem; font-weight: 600; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: 8px; transition: 0.2s; }
.radio-label:hover { background: var(--bg-light); }
.radio-label input { accent-color: var(--primary); width: 1rem; height: 1rem; }
.status-processed { color: var(--success); border-color: #a7f3d0; background: #ecfdf5; }
.status-declined { color: #dc2626; border-color: #fecaca; background: #fef2f2; }

/* --- BOTÓN GUARDAR Y PANTALLA DE ÉXITO --- */
.form-footer { margin-top: 3rem; text-align: center; }
.btn-primary { background: var(--primary); color: white; border: none; padding: 1rem 2rem; border-radius: 8px; font-weight: 800; font-size: 1.1rem; cursor: pointer; transition: 0.2s; width: 100%; max-width: 400px; box-shadow: 0 4px 6px rgba(0, 115, 206, 0.2); }
.btn-primary:hover { background: #005bb5; transform: translateY(-2px); box-shadow: 0 6px 8px rgba(0, 115, 206, 0.3); }

.success-screen { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.95); display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 50; text-align: center; }
.success-icon { color: var(--success); width: 80px; height: 80px; margin-bottom: 1rem; animation: scaleIn 0.5s ease-out; }
.success-screen h2 { color: var(--primary-dark); font-size: 2rem; margin-bottom: 0.5rem; }
.success-screen p { color: var(--text-muted); font-size: 1rem; }
.hidden { display: none !important; }

@keyframes scaleIn { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.icon-sm { width: 1.2rem; height: 1.2rem; }