/* SPDX-License-Identifier: AGPL-3.0-or-later */

body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #f0f4f5;
            color: #333;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            margin: 0;
            padding: 20px;
            box-sizing: border-box;
        }
        .main-wrapper {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
        }
        .logo-container {
            background-color: transparent;
            padding: 10px;
            margin-bottom: 15px;
            text-align: center;
        }
        .logo-container img {
            max-width: 260px;
            height: auto;
        }
        .container {
            background-color: #fff;
            padding: 30px;
            border-radius: 12px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.08);
            max-width: 550px;
            width: 100%;
        }
        .language-selector {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 8px;
            margin-bottom: 18px;
        }
        .language-selector label {
            margin-bottom: 0;
            font-size: 12px;
            color: #7f8c8d;
        }
        .language-selector select {
            width: auto;
            min-width: 110px;
            padding: 7px 9px;
            font-size: 13px;
        }
        .project-field {
            margin-bottom: 20px;
        }
        .project-field label {
            font-size: 12px;
            color: #7f8c8d;
        }
        .print-control-value {
            display: none;
        }
        .view-topbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 14px;
        }
        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
            color: #55acb9;
            text-decoration: none;
            font-weight: 600;
            cursor: pointer;
            background: none;
            border: none;
            padding: 0;
            font-family: inherit;
        }
        .back-link:hover {
            text-decoration: underline;
        }
        .print-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
            color: #55acb9;
            text-decoration: none;
            font-weight: 600;
            cursor: pointer;
            background: #f1fafc;
            border: 1px solid #cde7ea;
            border-radius: 6px;
            padding: 6px 10px;
            font-family: inherit;
            transition: background-color 0.2s, border-color 0.2s;
        }
        .print-btn:hover {
            background-color: #55acb9;
            color: #fff;
            border-color: #55acb9;
        }
        .print-btn svg {
            width: 14px;
            height: 14px;
        }
        h2 {
            text-align: center;
            color: #2c3e50;
            margin-bottom: 10px;
            font-size: 24px;
            border-bottom: 3px solid #55acb9;
            padding-bottom: 12px;
            margin-top: 0;
            font-weight: 600;
        }
        .subtitle {
            text-align: center;
            color: #7f8c8d;
            font-size: 14px;
            margin: 15px 0 25px 0;
        }
        .section-title {
            font-size: 13px;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: #7f8c8d;
            margin: 20px 0 12px 0;
            font-weight: bold;
            border-bottom: 1px solid #eee;
            padding-bottom: 5px;
        }
        .section-title.flush-top {
            margin-top: 0;
        }
        .is-hidden {
            display: none;
        }
        .report-options {
            margin: 16px 0 22px;
            padding: 14px;
            background-color: #f8fafb;
            border: 1px solid #e2e7e9;
            border-radius: 8px;
        }
        .report-options-title {
            font-size: 13px;
            font-weight: 700;
            color: #2c3e50;
            margin-bottom: 4px;
        }
        .report-options-description {
            font-size: 12px;
            color: #7f8c8d;
            line-height: 1.4;
            margin-bottom: 10px;
        }
        .report-options-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px 12px;
        }
        .report-option {
            display: flex;
            align-items: flex-start;
            gap: 7px;
            margin: 0;
            font-size: 12px;
            line-height: 1.3;
            color: #4a5a6c;
            font-weight: 500;
        }
        .report-option input {
            width: auto;
            margin-top: 1px;
            flex-shrink: 0;
        }
        .input-group {
            margin-bottom: 15px;
        }
        label {
            display: block;
            margin-bottom: 6px;
            font-weight: 600;
            color: #4a5a6c;
            font-size: 14px;
        }
        input, select {
            width: 100%;
            padding: 11px;
            border: 1px solid #ccc;
            border-radius: 6px;
            box-sizing: border-box;
            font-size: 15px;
            background-color: #fff;
            transition: border-color 0.2s;
        }
        input:focus, select:focus {
            border-color: #55acb9;
            outline: none;
        }
        input:disabled {
            background-color: #f7f9fa;
            color: #7f8c8d;
            border-color: #e2e7e9;
        }
        .row {
            display: flex;
            gap: 15px;
        }
        .row .input-group {
            flex: 1;
        }
        .results {
            margin-top: 25px;
            padding-top: 20px;
            border-top: 2px dashed #e2e7e9;
        }
        .result-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin-bottom: 15px;
        }
        .result-card {
            background: #f8fafb;
            padding: 12px;
            border-radius: 6px;
            border-left: 4px solid #bdc3c7;
        }
        .result-card.primary {
            border-left-color: #55acb9;
            background-color: #f1fafc;
        }
        .result-card .label {
            font-size: 12px;
            color: #7f8c8d;
            margin-bottom: 4px;
        }
        .result-card .value {
            font-size: 18px;
            font-weight: bold;
            color: #2c3e50;
        }
        .result-card.primary .value {
            color: #2c7a87;
        }
        .result-card.full {
            grid-column: 1 / -1;
        }
        .lens-match {
            margin-top: 15px;
        }
        .lens-match .label {
            font-size: 12px;
            color: #7f8c8d;
            margin-bottom: 8px;
        }
        .lens-badge {
            display: inline-block;
            padding: 7px 12px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 600;
            margin: 0 6px 6px 0;
        }
        .lens-badge.ok {
            background-color: #e3f6ec;
            color: #1e8a5b;
            border: 1px solid #b7e6cd;
        }
        .lens-badge.no {
            background-color: #f9f9f9;
            color: #aab2b6;
            border: 1px solid #eceeee;
        }
        .lens-badge.none-msg {
            background-color: #fdecec;
            color: #c0392b;
            border: 1px solid #f6cccc;
        }
        .footer {
            margin-top: 25px;
            font-size: 12px;
            color: #95a5a6;
            text-align: center;
        }
        .trademark-notice {
            margin-top: 6px;
            line-height: 1.4;
        }

        /* Home menu */
        .menu {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
        .menu-card {
            display: flex;
            align-items: center;
            gap: 16px;
            background: #f8fafb;
            border: 1px solid #eceeee;
            border-left: 4px solid #bdc3c7;
            border-radius: 8px;
            padding: 18px;
            text-decoration: none;
            color: inherit;
            transition: border-color 0.2s, background-color 0.2s, transform 0.15s;
            cursor: pointer;
            text-align: left;
            width: 100%;
            font-family: inherit;
        }
        .menu-card:hover {
            border-left-color: #55acb9;
            background-color: #f1fafc;
            transform: translateY(-2px);
        }
        .menu-icon {
            flex-shrink: 0;
            width: 46px;
            height: 46px;
            border-radius: 50%;
            background-color: #e3f1f3;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #2c7a87;
        }
        .menu-card:hover .menu-icon {
            background-color: #55acb9;
            color: #fff;
        }
        .menu-icon svg {
            width: 24px;
            height: 24px;
        }
        .menu-text .menu-title {
            font-size: 16px;
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 4px;
        }
        .menu-text .menu-desc {
            font-size: 13px;
            color: #7f8c8d;
            line-height: 1.4;
        }
        .menu-arrow {
            margin-left: auto;
            color: #bdc3c7;
            font-size: 20px;
            flex-shrink: 0;
        }
        .menu-card:hover .menu-arrow {
            color: #55acb9;
        }

        /* View management */
        .view {
            display: none;
        }
        .view.active {
            display: block;
        }

        /* BDM / ADM toggle */
        .toggle-group {
            display: flex;
            border: 1px solid #ccc;
            border-radius: 6px;
            overflow: hidden;
            margin-bottom: 15px;
        }
        .toggle-btn {
            flex: 1;
            padding: 10px;
            text-align: center;
            background: #fff;
            color: #4a5a6c;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            border: none;
            font-family: inherit;
            transition: background-color 0.2s, color 0.2s;
        }
        .toggle-btn + .toggle-btn {
            border-left: 1px solid #ccc;
        }
        .toggle-btn.active {
            background-color: #55acb9;
            color: #fff;
        }
        .hint {
            font-size: 12px;
            color: #95a5a6;
            margin-top: -8px;
            margin-bottom: 15px;
            line-height: 1.4;
        }
        .note {
            margin-top: 15px;
            padding: 12px 14px;
            border-radius: 8px;
            background-color: #fdecec;
            border: 1px solid #f6cccc;
            color: #c0392b;
            font-size: 13px;
            line-height: 1.5;
        }

        /* Print report header, hidden on screen */
        .print-header {
            display: none;
        }

        /* ===== Print ===== */
        @page {
            size: A4;
            margin: 12mm;
        }
        @media print {
            *,
            *::before,
            *::after {
                box-sizing: border-box;
            }
            .print-field-hidden {
                display: none !important;
            }
            html,
            body {
                background: #fff;
                padding: 0;
                display: block;
                width: 100%;
                max-width: 100%;
                margin: 0;
                overflow: visible;
            }
            .logo-container,
            .back-link,
            .print-btn,
            .language-selector,
            .project-field,
            .report-options,
            .footer {
                display: none !important;
            }
            .view {
                display: none !important;
            }
            .view.active {
                display: block !important;
            }
            .view-topbar {
                margin-bottom: 6px;
            }
            h2 {
                text-align: left;
                border-bottom: 1px solid #55acb9;
                font-size: 18px;
                margin-bottom: 14px;
                padding-bottom: 8px;
            }
            .container {
                box-shadow: none;
                border-radius: 0;
                width: 100%;
                max-width: 100%;
                padding: 0;
                overflow: visible;
            }
            .main-wrapper {
                width: 100%;
                max-width: 100%;
                display: block;
            }
            .print-header {
                display: flex;
                align-items: center;
                gap: 14px;
                margin-bottom: 16px;
                padding-bottom: 14px;
                border-bottom: 2px solid #55acb9;
            }
            .print-header img {
                flex: 0 0 auto;
                max-width: 120px;
                height: auto;
            }
            .print-header-text {
                min-width: 0;
                max-width: 100%;
            }
            .print-header .print-header-text .print-title {
                font-size: 14px;
                text-transform: uppercase;
                letter-spacing: 1px;
                color: #2c3e50;
                font-weight: bold;
                overflow-wrap: anywhere;
            }
            .print-header .print-header-text .print-project-name {
                font-size: 12px;
                color: #2c3e50;
                margin-top: 4px;
                font-weight: 700;
            }
            .print-header .print-header-text .print-date {
                font-size: 12px;
                color: #95a5a6;
                margin-top: 3px;
            }
            .section-title {
                margin: 14px 0 6px;
                padding-bottom: 4px;
                border-bottom: 1px solid #d7e4e7;
                color: #2c3e50;
                letter-spacing: 0.4px;
                font-size: 11px;
            }
            .row {
                display: block;
            }
            .input-group {
                display: grid;
                grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
                column-gap: 8px;
                align-items: center;
                margin-bottom: 0;
                padding: 5px 0;
                border-bottom: 1px solid #edf1f2;
                break-inside: avoid;
                width: 100%;
                max-width: 100%;
            }
            label {
                margin-bottom: 0;
                color: #4a5a6c;
                font-size: 11px;
                font-weight: 700;
                min-width: 0;
                overflow-wrap: anywhere;
            }
            .toggle-btn {
                display: none !important;
            }
            .toggle-btn.active {
                background-color: #eaf5f7 !important;
                color: #2c3e50 !important;
                font-weight: 800;
            }
            .toggle-group {
                display: block;
                border: none;
                margin-bottom: 0;
            }
            .toggle-group .print-control-value {
                text-align: left;
                padding: 5px 0;
                border-bottom: 1px solid #edf1f2;
                font-weight: 700;
            }
            input, select {
                display: none !important;
            }
            .print-control-value {
                display: block;
                color: #000;
                font-size: 11px;
                line-height: 1.35;
                text-align: right;
                min-width: 0;
                max-width: 100%;
                overflow-wrap: anywhere;
                word-break: break-word;
            }
            .hint {
                margin: 4px 0 8px;
                font-size: 11px;
                color: #4a5a6c;
            }
            .results {
                margin-top: 14px;
                padding-top: 0;
                border-top: none;
            }
            .result-grid {
                grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
                gap: 6px;
                margin-bottom: 6px;
                width: 100%;
                max-width: 100%;
            }
            .result-card {
                padding: 8px 9px;
                border: 1px solid #d7e4e7;
                border-left: 3px solid #55acb9;
                border-radius: 4px;
                background: #fff !important;
                break-inside: avoid;
                min-width: 0;
                max-width: 100%;
                overflow: hidden;
            }
            .result-card .label,
            .lens-match .label {
                font-size: 10px;
                color: #4a5a6c;
                overflow-wrap: anywhere;
            }
            .result-card .value {
                font-size: 14px;
                color: #000;
                overflow-wrap: anywhere;
                word-break: break-word;
            }
            .lens-match {
                margin-top: 8px;
                break-inside: avoid;
                max-width: 100%;
                overflow: hidden;
            }
            .lens-badge {
                max-width: 100%;
                border-radius: 4px;
                padding: 4px 7px;
                font-size: 10px;
                margin: 0 4px 4px 0;
                white-space: normal;
                overflow-wrap: anywhere;
            }
            .result-card,
            .lens-badge,
            .note {
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
            }
        }
