/* app.css - OptiKeur Applicatie Styling & Print Definities */

/* ==========================================================================
   1. ENTERPRISE TYPOGRAFIE & SYSTEM FONT STACK (0 KB / 0 ms LATENCY)
   ========================================================================== */
:root {
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

html {
    font-family: var(--font-sans);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* Typografische verfijning conform modern-web-guidance (deliberate wrapping) */
h1, h2, h3, .text-balance {
    text-wrap: balance;
    letter-spacing: -0.02em;
}

.text-pretty, .hero-lead {
    text-wrap: pretty;
}

/* Tabular numbers voor inspectiemeetwaarden, datums, valuta en tellers */
.tabular-nums, .numeric-data, table td, .metric-number {
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   2. 2026 SAAS ELEVATION TOKENS & GLASMORFISME
   ========================================================================== */
.elevation-card {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 2px 6px 0 rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.85);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.elevation-card:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.06);
    border-color: rgba(203, 213, 225, 1);
}

.glass-nav {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Zorg voor strakke first-view pasvorm en natuurlijke scrolldoorloop naar footer */
@media (min-width: 1024px) {
    .first-view-container {
        min-height: calc(100vh - 120px);
    }
}

/* Custom scrollbar voor strakke formulieren en kolommen */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ==========================================================================
   3. STICKY TABELHEADERS MET TRANSLUCENTIE (AUDIT-REGISTER & MACHINEPARK)
   ========================================================================== */
.table-sticky-container {
    max-height: clamp(380px, 68vh, 850px);
    overflow: auto;
}

.table-sticky-header th {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: rgba(248, 250, 252, 0.96);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Print-specifieke optimalisaties */
@media print {
    header, nav, footer, #authHeaderActions, #offlineIndicator, #protocolWarning {
        display: none !important;
    }
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    .tab-main-container {
        max-width: 100% !important;
        padding: 0 !important;
    }
}
