<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>GESTIÓN DE LAS CONDICIONES OPERATIVAS - DIAGNOSTIKA</title>
    
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: Arial, sans-serif;
            color: #333;
            background-color: #fff;
            line-height: 1.6;
        }
        
        .container {
            max-width: 100%;
            margin: 0;
            padding: 20px;
        }
        
        .header {
            border-bottom: 3px solid #667eea;
            padding-bottom: 15px;
            margin-bottom: 30px;
        }
        
        .header h1 {
            font-size: 24px;
            color: #1f2937;
            margin-bottom: 5px;
        }
        
        .header p {
            font-size: 14px;
            color: #6b7280;
        }
        
        .chart-title {
            font-size: 18px;
            font-weight: 600;
            color: #1f2937;
            margin: 25px 0 15px 0;
        }
        
        .chart-section {
            background-color: #f9fafb;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 20px;
        }
        
        table {
            width: 100%;
            border-collapse: collapse;
            font-size: 12px;
        }
        
        table th {
            background-color: #f3f4f6;
            border: 1px solid #d1d5db;
            padding: 10px;
            text-align: left;
            font-weight: 600;
            color: #374151;
        }
        
        table td {
            border: 1px solid #e5e7eb;
            padding: 10px;
        }
        
        .section-name {
            font-weight: 500;
            color: #1f2937;
            min-width: 120px;
        }
        
        .bar-cell {
            width: 20%;
        }
        
        .bar-container {
            width: 100%;
            height: 25px;
            background-color: #f0f0f0;
            border-radius: 3px;
            overflow: hidden;
            position: relative;
        }
        
        .bar {
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 11px;
        }
        
        .bar-red {
            background-color: #ef4444;
        }
        
        .bar-orange {
            background-color: #f97316;
        }
        
        .bar-green {
            background-color: #10b981;
        }
        
        .footer {
            margin-top: 40px;
            padding-top: 15px;
            border-top: 1px solid #e5e7eb;
            font-size: 11px;
            color: #6b7280;
            text-align: center;
        }
        
        @media print {
            body {
                background-color: white;
            }
            .container {
                padding: 10px;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>GESTIÓN DE LAS CONDICIONES OPERATIVAS</h1>
            <p>COMPROMISO DE GESTIÓN ESCOLAR 1</p>
        </div>
        
        <div class="chart-section">
            <h2 class="chart-title">Consolidación por Secciones</h2>
            
            {!! $chart !!}
        </div>
        
        <div class="footer">
            <p>Reporte generado por DIAGNOSTIKA - {{ now()->format('d/m/Y H:i') }}</p>
        </div>
    </div>
</body>
</html>
