/* Gemeinsames Styling der Auswertungen (PowerBI-Nachbauten).
   Wird global in resources/views/layouts/app.blade.php eingebunden.
   Berichtsspezifische Abweichungen ggf. im jeweiligen View via @section('styles'). */

.ausw-wrap { max-width: 1400px; margin: 0 auto; }

.ausw-filter-card { border: 1px solid #e6e6e6; box-shadow: 0 1px 3px rgba(0, 0, 0, .04); }
.ausw-label { font-size: .8rem; font-weight: 600; color: #555; margin-bottom: .2rem; display: block; }

.ausw-kpi { border: 1px solid #e6e6e6; border-radius: .6rem; padding: 1rem 1.1rem; height: 100%; background: #fff; }
.ausw-kpi .kpi-label { font-size: .78rem; color: #6c757d; text-transform: uppercase; letter-spacing: .03em; }
.ausw-kpi .kpi-value { font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.ausw-kpi .kpi-hint { font-size: .72rem; color: #6c757d; line-height: 1.2; margin-top: .2rem; }

.ausw-card { border: 1px solid #e6e6e6; border-radius: .6rem; background: #fff; }
.ausw-card .card-header { background: #f8f9fa; font-weight: 600; border-bottom: 1px solid #eee; }

.ausw-table { font-size: .9rem; }
.ausw-table thead th { position: sticky; top: 0; background: #f1f3f5; z-index: 1; white-space: nowrap; }
.ausw-table td.num, .ausw-table th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ausw-table tfoot td { font-weight: 700; border-top: 2px solid #dee2e6; background: #fbfbfb; }

.ausw-scroll { max-height: 560px; overflow: auto; }
.ausw-chart-box { position: relative; height: 320px; }

.ausw-pos { color: #198754; }
.ausw-neg { color: #dc3545; }

/* Ergebnis-Container wÃ¤hrend AJAX ausgrauen (generisch fÃ¼r jeden Bericht). */
.ausw-loading { opacity: .45; transition: opacity .15s; }

/* Leiste "Gespeicherte Filter". */
.ausw-presets .ausw-label { align-self: center; }
.ausw-presets .ausw-preset-msg { min-height: 1em; }

/* Filternotiz: Kopfzeile. */
.ausw-preset-notiz-head { font-size: .8rem; font-weight: 600; color: #555; margin-bottom: .35rem; }

/* Filternotiz schwebend: per JS aktiviert (Klasse is-floating), wenn rechts neben dem
   Inhalt genug Platz ist; "left" wird von JS direkt an die rechte Inhaltskante gesetzt.
   Reicht der Platz nicht, bleibt sie inline und Ã¼berdeckt nie den Inhalt. */
.ausw-preset-notiz.is-floating {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    max-height: 70vh;
    overflow: auto;
    margin: 0 !important;
    padding: .85rem .9rem;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: .6rem;
    box-shadow: 0 .5rem 1.25rem rgba(0, 0, 0, .18);
    z-index: 1030;
}
