/* Vynuceni svetleho rezimu (i pri systemovem dark mode na mobilu) */
html {
    color-scheme: light only;
}

body {
    background-color: #ffffff;
    color: #111827;
}

@media (prefers-color-scheme: dark) {
    html {
        color-scheme: light only !important;
    }

    body,
    body .min-h-screen,
    body nav,
    body header,
    body main,
    .scan-app,
    .ridic-app,
    .vozickar-app,
    .pk-app,
    .prob-app,
    .planovani-app,
    .monter-app {
        background-color: #ffffff !important;
        color: #111827 !important;
    }

    body.technik-body,
    body .technik-app {
        background-color: #f0f0f0 !important;
        color: #000000 !important;
    }

    /* Jen horní lišta Technika zůstává šedá (ne <header> uvnitř karty návštěvy) */
    body .technik-app .tech-header {
        background-color: #59595b !important;
        color: #ffffff !important;
        border-bottom-color: #ee1d23 !important;
        border-color: #ee1d23 !important;
    }

    body .technik-app .tech-title,
    body .technik-app .tech-subtitle,
    body .technik-app .tech-home,
    body .technik-app .tech-net,
    body .technik-app .tech-header-action {
        color: #ffffff !important;
    }

    body .technik-app .tech-home:active,
    body .technik-app .tech-header-action:active,
    body .technik-app .tech-header-action:disabled {
        background-color: #ee1d23 !important;
        border-color: #ee1d23 !important;
        color: #ffffff !important;
    }

    /* Zbytek obsahu — bila + cerna */
    body .technik-app .tech-home-nav,
    body .technik-app .tech-visit-card,
    body .technik-app .tech-visit-detail,
    body .technik-app .tech-visit-detail-head,
    body .technik-app .tech-day-chip,
    body .technik-app .tech-kat-card,
    body .technik-app .tech-pdf-row,
    body .technik-app .tech-protokol-box,
    body .technik-app .tech-summary-box,
    body .technik-app .tech-summary-upload,
    body .technik-app .tech-accordion-item,
    body .technik-app .tech-pending-list li {
        background-color: #ffffff !important;
        color: #000000 !important;
        border-color: #d0d0d1 !important;
    }

    body .technik-app .tech-home-nav-label,
    body .technik-app .tech-home-nav-link,
    body .technik-app .tech-visit-card h4,
    body .technik-app .tech-visit-card p,
    body .technik-app .tech-visit-detail h3,
    body .technik-app .tech-visit-detail-head h3,
    body .technik-app .tech-visit-zakazka-id,
    body .technik-app .tech-visit-katalog-link,
    body .technik-app .tech-visit-meta,
    body .technik-app .tech-day-chip .dow,
    body .technik-app .tech-day-chip .dom,
    body .technik-app .tech-kat-card-title,
    body .technik-app .tech-kat-card-count,
    body .technik-app .tech-pdf-name,
    body .technik-app .tech-pdf-file,
    body .technik-app .tech-form-group label,
    body .technik-app .tech-input,
    body .technik-app .tech-hint,
    body .technik-app .tech-section-title,
    body .technik-app .tech-screen-toolbar h2 {
        color: #000000 !important;
    }

    body .technik-app .tech-visit-card p,
    body .technik-app .tech-visit-meta,
    body .technik-app .tech-day-chip .dow,
    body .technik-app .tech-kat-card-count,
    body .technik-app .tech-pdf-file,
    body .technik-app .tech-hint {
        color: #59595b !important;
    }

    body .technik-app .tech-day-chip.selected,
    body .technik-app .tech-day-chip.selected .dow,
    body .technik-app .tech-day-chip.selected .dom {
        background-color: #ee1d23 !important;
        border-color: #ee1d23 !important;
        color: #ffffff !important;
    }

    body .technik-app .tech-visit-detail {
        border-top-color: #d0d0d1 !important;
        box-shadow: none !important;
    }

    body .technik-app .tech-btn-call {
        background-color: #16a34a !important;
        border-color: #15803d !important;
        color: #ffffff !important;
    }

    body .technik-app .tech-btn-primary {
        background-color: #ee1d23 !important;
        color: #ffffff !important;
        border-color: #c9181e !important;
    }

    body nav,
    body header {
        border-color: #e5e7eb !important;
    }

    body .text-gray-900,
    body .text-gray-800 { color: #111827 !important; }
    body .text-gray-700 { color: #374151 !important; }
    body .text-gray-600 { color: #4b5563 !important; }
    body .text-gray-500 { color: #6b7280 !important; }
    body .text-gray-400 { color: #9ca3af !important; }
    body .text-gray-300,
    body .text-gray-200 { color: #374151 !important; }
    body .text-white { color: #111827 !important; }

    body .technik-app .tech-title,
    body .technik-app .tech-subtitle,
    body .technik-app .tech-home,
    body .technik-app .tech-net,
    body .technik-app .tech-header-action {
        color: #ffffff !important;
    }

    body .bg-white,
    body .bg-gray-50,
    body .bg-gray-100 { background-color: #ffffff !important; }

    body .bg-gray-700,
    body .bg-gray-800,
    body .bg-gray-900,
    html.dark body .bg-gray-900,
    html.dark .min-h-screen {
        background-color: #ffffff !important;
    }

    body .border-gray-100,
    body .border-gray-200,
    body .border-gray-700,
    body .border-gray-600 {
        border-color: #e5e7eb !important;
    }

    body .hover\:bg-gray-700:hover,
    body .dark\:hover\:bg-gray-700:hover {
        background-color: #f3f4f6 !important;
    }
}
