/* Panel dashboard widgets (DashboardBanner + ModuleTiles) — registered as a Filament
   panel asset in AdminPanelProvider (->assets([Css::make('vlex-dashboard', …)])), so it
   loads on every panel page without a full custom theme. After editing, re-copy it into
   public/ with: php artisan filament:assets. */

/* The hero banner (mirrors the .NET dashboard jumbotron, Views/Home/Index.cshtml:8-13).
   16:5 aspect box — kept in sync with the FileUpload imageEditor crop ratio on the
   organization settings page, so the cropped region fills the banner exactly. */
.vlex-dashboard-banner {
    position: relative;
    aspect-ratio: 16 / 5;
    border-radius: 0.75rem;
    overflow: hidden;
}

.vlex-dashboard-banner-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The white "Dashboard / Welkom" card overlaid bottom-left (Index.cshtml:9-12). */
.vlex-dashboard-banner-card {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    max-width: 400px;
    background: #fff;
    padding: 1rem 1.75rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.vlex-dashboard-banner-card h1 {
    margin: 0;
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
}

.vlex-dashboard-banner-card p {
    margin: 0.25rem 0 0;
    color: #6b7280;
}

/* The module quick-link tiles (Views/Home/Index.cshtml:15-116): fixed 4 per row — the
   source's col-md-3 grid (row 1 = Planboard/Orders/Personeel/Machines, row 2 =
   Productiemeldingen/Rapporten). */
.vlex-module-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.vlex-module-tile-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Rows flagged as faulty — the .NET `class="danger"` row (Views/Orders/Index.cshtml:9;
   table.css:227-233 #f2dede): the orders list (OrderError present) and the ImportExport
   run-history (runs with errors). A plain Tailwind utility (bg-danger-50) is NOT in the
   compiled panel CSS, hence this explicit rule; !important beats the striped/hover row
   backgrounds. */
.fi-ta-row.vlex-row-danger,
.fi-ta-row.vlex-row-danger:hover {
    background-color: #f2dede !important;
}
.dark .fi-ta-row.vlex-row-danger,
.dark .fi-ta-row.vlex-row-danger:hover {
    background-color: rgba(220, 38, 38, 0.14) !important;
}
