/* admin/busqueda/estilos_admin.css */
:root {
    --bg-body: #f3f4f6;
    --bg-card: #ffffff;
    --primary: #6366f1; /* Morado robusto */
    --primary-dark: #4f46e5;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --success: #10b981;
    --danger: #ef4444;
    --radius: 12px;
}

body { font-family: 'Segoe UI', Roboto, sans-serif; background: var(--bg-body); margin: 0; padding: 20px; color: var(--text-dark); }

/* --- LOGIN ESTILO TARJETA --- */
#login-view {
    max-width: 400px; margin: 80px auto; background: var(--bg-card);
    padding: 40px; border-radius: var(--radius);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); text-align: center;
}
#login-view h2 { color: var(--primary); margin-bottom: 25px; }
.form-control { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 1rem; box-sizing: border-box; transition: 0.3s; }
.form-control:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2); }
.btn-main { width: 100%; padding: 12px; background: var(--primary); color: white; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.3s; font-size: 1rem; }
.btn-main:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* --- DASHBOARD --- */
#dashboard-view { display: none; max-width: 1200px; margin: 0 auto; animation: fadeIn 0.4s ease; }
.top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.filters-card {
    background: var(--bg-card); padding: 20px; border-radius: var(--radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); display: flex; gap: 15px; flex-wrap: wrap; align-items: flex-end;
}
.filter-group { flex: 1; min-width: 150px; }
.filter-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-light); margin-bottom: 5px; }

/* TABLA PROFESIONAL */
.table-container { margin-top: 25px; background: var(--bg-card); border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
table { width: 100%; border-collapse: collapse; }
th { background: #f9fafb; padding: 15px; text-align: left; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-light); }
td { padding: 15px; border-bottom: 1px solid #f3f4f6; color: var(--text-dark); }
tr:last-child td { border-bottom: none; }
tr:hover { background: #f8fafc; }
.badge { padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }
.badge-tienda { background: #e0e7ff; color: #4338ca; }

/* --- MODAL DETALLE (ESTILO CALCULADORA) --- */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 100; justify-content: center; align-items: center; }
.ticket-wrapper { 
    background: #1e293b; /* Fondo oscuro original */
    width: 100%; max-width: 500px; max-height: 90vh; 
    border-radius: 16px; overflow-y: auto; padding: 20px; color: white;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

/* Replicando estilos de tu calculadora para el reporte */
.kpi-box { background: linear-gradient(135deg, #10b981 0%, #059669 100%); padding: 15px; border-radius: 12px; text-align: center; margin-bottom: 15px; }
.kpi-big { font-size: 2rem; font-weight: 800; margin-top: 5px; }
.grid-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 15px; }
.stat-card { background: rgba(255,255,255,0.1); padding: 10px; border-radius: 8px; text-align: center; border: 1px solid rgba(255,255,255,0.1); }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 15px; }
.mini-stat { background: rgba(255,255,255,0.05); padding: 5px; border-radius: 6px; text-align: center; font-size: 0.8rem; }
.mini-val { display: block; font-weight: bold; font-size: 0.95rem; margin-top: 2px; }
.history-section { background: #ffffff; color: #333; border-radius: 12px; padding: 10px; }
.hist-item { display: flex; justify-content: space-between; padding: 8px; border-bottom: 1px solid #eee; font-size: 0.9rem; }
.hist-header { background: #f3f4f6; padding: 8px; font-weight: bold; margin-top: 5px; border-radius: 4px; color: #555; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }