/* ========================================
   Reports — jen to, co je specificke pro stranku Reporty.
   Panel, seznam sablon, historie, pilulky a tlacitka jsou z monitoring-page.css (mp-*),
   pravidla: Views/MonitoringPanel/JEDNOTNOST.docs.md (M11).
   Kopie souboru je v GpsBoss.Web.Components/wwwroot/css — menit obe.
   ======================================== */

/* Hvezdicka oblibene sablony */
.rpt-fav .material-icons { color: #c4c4c4; }
.rpt-fav.is-fav .material-icons,
.rpt-fav:hover .material-icons { color: #ffa000; }

/* Prubeh generovani */
.rpt-progress { animation: rpt-pulse 1.5s ease-in-out infinite; }
.rpt-progress-line {
    display: flex;
    align-items: center;
    gap: 10px;
}
.rpt-progress-line .spinner-border { color: var(--brand-primary); }

@keyframes rpt-pulse {
    0%, 100% { box-shadow: var(--mp-shadow); }
    50% { box-shadow: 0 0 0 2px var(--brand-primary), var(--mp-shadow); }
}

/* Loading Spinner */
.spinner-border-sm {
    width: 14px;
    height: 14px;
    border-width: 2px;
}

/* ── Okna generovani / rychleho reportu / rozvrhu ──────────────────── */
.rpt-modal-adhoc { max-width: 800px; }

.rpt-vehicle-group + .rpt-vehicle-group { margin-top: 4px; }

.rpt-vehicle-group-head {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--mp-group-bg);
    font-size: 12px;
    color: var(--mp-group-text);
}

.rpt-vehicle-group-head .form-check-input { margin: 0; }

.rpt-expand {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #64748b;
    cursor: pointer;
}

.rpt-expand .material-icons { font-size: 18px; }

.rpt-vehicle-items { padding-left: 16px; }

/* Vyber sloupcu: mp-check-list jako mrizka */
.rpt-column-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2px;
    max-height: 240px;
}

/* Nahled reportu: velke okno s iframe */
.rpt-modal-preview { max-width: 95vw; width: 95vw; }
.rpt-modal-preview .modal-content { height: 85vh; }
.rpt-preview-body { overflow: hidden; flex: 1; }
.rpt-preview-frame { width: 100%; height: 100%; border: none; }
.rpt-preview-backdrop { z-index: 1055; }

@media (max-width: 576px) {
    .rpt-column-grid { grid-template-columns: minmax(0, 1fr); }
    .rpt-modal-preview { width: auto; }
}
