/* Reset CSS */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            -webkit-text-size-adjust: 100%;
        }

        html, body {
            overflow-x: hidden;
            max-width: 100%;
        }

        body {
            font-family: Arial, sans-serif;
/*            background-color: #f4f4f4;    */
            background-color: #000000;
            color: #333;
        }

        header {
            background: linear-gradient(90deg, #000000 25%, #ff0000 100%);
            color: white;
            padding: 35px 0;
            text-align: center;
            position: relative;
            max-width: 100%;
        }

        nav {
            display: flex;
            justify-content: Right;
            margin-top: 10px;
        }

        nav a {
            color: white;
            padding: 10px 20px;
            text-decoration: none;
            text-transform: uppercase;
            font-weight: bold;
            margin: 0 15px;
        }

        nav a:hover {
            /* background-color: #006f8f; */
            background-color: #fe4401;
            border-radius: 5px;
        }

        /* Logotipo no cabeçalho */
        .logo {
            position: absolute;
            left: 20px;
            top: 5px;
            width: 250px; /* Ajuste o tamanho conforme necessário */
        }

        .hero-section {
            background-image: url('Images/background0.png');
            background-size: cover;
            background-position: center;
			filter: grayscale(100%);
            color: white;
			margin: 0;
            text-align: center;
            padding: 100px;
            max-width: 100%;
            overflow-x: hidden;
        }

        .hero-section h2 {
            color: white;
            font-size: 3rem;
            margin-bottom: 20px;
            text-shadow: 
                -2px -2px 0 #ff0000,
                2px -2px 0 #ff0000,
                -2px 2px 0 #ff0000,
                2px 2px 0 #ff0000,
                -1px -1px 0 #ff0000,
                1px -1px 0 #ff0000,
                -1px 1px 0 #ff0000,
                1px 1px 0 #ff0000;
        }

        .hero-section p {
            font-size: 1.5rem;
            margin-bottom: 20px;
            text-shadow: 
                -2px -2px 0 #ff0000,
                2px -2px 0 #ff0000,
                -2px 2px 0 #ff0000,
                2px 2px 0 #ff0000,
                -1px -1px 0 #ff0000,
                1px -1px 0 #ff0000,
                -1px 1px 0 #ff0000,
                1px 1px 0 #ff0000;
        }

        .services {
            display: flex;
            justify-content: space-evenly;
            padding: 20px 10px;
            background-color: #000000;
            flex-wrap: wrap;
            max-width: 100%;
        }

        .service-item {
            background-color: #000;
            filter: grayscale(100%);
			color: white;
            border-radius: 100px;
            text-align: center;
            width: 25%;
            min-width: 0;
            transition: transform 0.3s ease;
        }

        .service-item:hover {
            filter: grayscale(0%);
            transform: translateY(-5px);
        }

        .service-item img {
			width: 195px;
            max-width: 100%;
            height: 195px;
			border-radius: 50%;
            margin-bottom: 5px;
        }

        .footer {
            background: linear-gradient(90deg, #ff0000 25%, #000000 100%);
            color: white;
            text-align: center;
            padding: 15px;
            position: relative;
            bottom: 0;
            width: 100%;
        }

        .footer a {
            color: #ff9800;
            text-decoration: none;
            font-weight: bold;
        }

        .footer a:hover {
            text-decoration: underline;
        }
		
		.footer p {
            font-size: 1rem;			
            line-height: 1;
            margin: 0px;
		}

        /* Responsividade */
        @media (max-width: 992px) {
            .service-item {
                width: 45%;
                margin-bottom: 15px;
            }
        }

        @media (max-width: 768px) {
            header {
                padding: 16px 12px 20px;
                text-align: center;
                display: flex;
                flex-direction: column;
                align-items: center;
            }

            /* Logo: ver também o 2.º bloco mobile — order fica no <a> pai (flex item do header) */
            .logo {
                position: relative;
                left: auto;
                top: auto;
                display: block;
                width: auto;
                max-width: min(220px, 72vw);
                height: auto;
                margin: 0 auto 14px;
            }

            .hero-section {
                padding: 48px 16px;
            }

            .hero-section h2 {
                font-size: clamp(1.4rem, 7vw, 2.2rem);
                line-height: 1.2;
            }

            .hero-section p {
                font-size: clamp(0.95rem, 4vw, 1.2rem);
                line-height: 1.35;
            }

            .services {
                flex-direction: column;
                align-items: center;
                padding: 16px 12px;
            }

            .service-item {
                width: min(100%, 360px);
                max-width: 100%;
                margin-bottom: 20px;
            }

            /* Páginas com .content em flex (About, Support, etc.): uma coluna */
            .content {
                flex-direction: column;
                padding: 20px 16px;
                gap: 24px;
                margin: 12px auto;
                width: calc(100% - 24px);
                max-width: 100%;
                box-sizing: border-box;
            }

            .content img {
                max-width: 100%;
                width: 100%;
                height: auto;
            }

            .text {
                max-width: 100%;
                min-width: 0;
            }

            .separator {
                padding: 24px 12px;
            }

            .contact-container {
                flex-direction: column;
                margin: 24px auto;
                padding: 20px 16px;
                width: calc(100% - 24px);
                max-width: 100%;
                box-sizing: border-box;
                gap: 24px;
            }

            .contact-form input,
            .contact-form textarea {
                width: 100%;
                max-width: 100%;
                box-sizing: border-box;
            }

            .container {
                width: calc(100% - 24px);
                max-width: 100%;
                margin-left: auto;
                margin-right: auto;
                box-sizing: border-box;
                padding: 20px 16px;
            }
        }
		
		.menu-container {
            position: relative;
            display: inline-block;
        }

        .menu-button {
            /* padding: 10px 20px;
            cursor: pointer;*/
            background-color: transparent;
            border: none;
            border-radius: 5px;
            font-size: 1rem;
			color: white;
            padding: 10px 10px;
            text-decoration: none;
            text-transform: uppercase;
            font-weight: bold;
            margin: 0 10px;
            cursor: pointer;
        }

        .menu-button:hover {
            background-color: #fe4401;
		}


        .menu {
            position: absolute;
            background-color: white;
            border: 1px solid #ccc;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
            border-radius: 5px;
            min-width: 220px;
            padding: 10px;
            z-index: 1000;
            display: none;
        }

        .menu a {
            display: block;
            text-decoration: none;
            color: #333;
            border-radius: 3px;
            padding: 10px 10px;
            text-transform: uppercase;
            font-weight: bold;
            margin: 0 15px;
        }

        .menu a:hover {
            background-color: #fe4401;
            color: white;
            border-radius: 5px;
        }

        /* Development → links to development.html + flyout with the 4 tools from that page */
        .menu-item-has-sub {
            position: relative;
            margin: 0 15px;
        }

        .menu-item-has-sub > .menu-item-parent {
            display: block;
            text-decoration: none;
            color: #333;
            border-radius: 3px;
            padding: 10px 10px;
            text-transform: uppercase;
            font-weight: bold;
            margin: 0;
        }

        .menu-item-has-sub > .menu-item-parent:hover {
            background-color: #fe4401;
            color: white;
            border-radius: 5px;
        }

        .menu-sub {
            display: none;
            position: absolute;
            right: 100%;
            left: auto;
            top: 0;
            margin-right: 6px;
            margin-left: 0;
            background-color: white;
            border: 1px solid #ccc;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
            border-radius: 5px;
            min-width: 220px;
            padding: 10px;
            z-index: 1001;
        }

        .menu-sub a {
            display: block;
            text-decoration: none;
            color: #333;
            border-radius: 3px;
            padding: 10px 10px;
            text-transform: uppercase;
            font-weight: bold;
            margin: 0 8px;
        }

        .menu-sub a:hover {
            background-color: #fe4401;
            color: white;
            border-radius: 5px;
        }

        .menu-item-has-sub:hover .menu-sub,
        .menu-item-has-sub:focus-within .menu-sub {
            display: block;
        }

        .menu-container:focus-within .menu {
            display: block;
        }

        .menu-container:focus-within .menu-button {
            outline: none; /* remove o outline padrão do foco */
        }

        /* Mobile header: deve vir DEPOIS das regras do .menu acima, senão o desktop sobrescreve */
        @media (max-width: 768px) {
            header {
                padding: 12px 10px 16px;
                display: flex;
                flex-direction: column;
                align-items: center;
            }

            /* No header só nav e o link do logo são flex items; order no <img class="logo"> era ignorado. */
            header > a:has(img.logo) {
                order: -1;
                display: block;
                width: 100%;
                text-align: center;
                margin: 0 0 8px;
            }

            .logo {
                position: relative !important;
                left: auto !important;
                top: auto !important;
                display: block;
                width: auto !important;
                max-width: min(200px, 68vw);
                height: auto;
                margin: 0 auto;
            }

            header > nav {
                order: 0;
                width: 100%;
                max-width: 100%;
                flex-direction: column;
                align-items: stretch;
                justify-content: flex-start;
                flex-wrap: nowrap;
                gap: 8px;
                margin-top: 0;
                padding: 0 2px;
                box-sizing: border-box;
            }

            nav > a {
                margin: 0 !important;
                padding: 12px 14px;
                font-size: 0.82rem;
                text-align: center;
                border-radius: 8px;
                border: 1px solid rgba(255, 255, 255, 0.22);
                box-sizing: border-box;
                line-height: 1.25;
            }

            .menu-container {
                width: 100%;
                max-width: 100%;
                margin: 0 !important;
                display: block;
                box-sizing: border-box;
            }

            .menu-button {
                width: 100%;
                margin: 0 !important;
                padding: 12px 14px;
                font-size: 0.82rem;
                box-sizing: border-box;
                border-radius: 8px;
                border: 1px solid rgba(255, 255, 255, 0.28);
                text-align: center;
            }

            .menu {
                position: relative !important;
                left: 0 !important;
                right: auto !important;
                top: auto !important;
                width: 100% !important;
                max-width: 100% !important;
                min-width: 0 !important;
                margin: 8px 0 0 !important;
                padding: 8px 6px;
                box-sizing: border-box;
            }

            .menu a {
                margin: 6px 4px !important;
                padding: 10px 10px;
                font-size: 0.78rem;
            }

            .menu-item-has-sub {
                margin: 6px 4px !important;
            }

            .menu-sub {
                position: static !important;
                right: auto !important;
                left: auto !important;
                top: auto !important;
                margin: 8px 0 0 6px !important;
                margin-right: 0 !important;
                min-width: 0 !important;
                width: auto;
                padding: 6px 0 6px 10px;
                border-left: 3px solid #fe4401;
                box-shadow: none;
                border-top: 0;
                border-right: 0;
                border-bottom: 0;
                background: rgba(0, 0, 0, 0.06);
                border-radius: 0 6px 6px 0;
            }

            .menu-sub a {
                margin: 4px 6px !important;
                font-size: 0.75rem;
            }
        }
		
        .container {
            max-width: 800px;
            margin: 40px auto;
            background: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }
		
        .container h1, h2 {
            color: #ff0000;
        }

        .content {
            display: flex;
            max-width: 1100px;
            width: 100%;
            margin: 20px auto;
            background: white;
            border-radius: 10px;
			padding: 40px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            align-items: right;
            gap: 40px;
            align-items: center;
            min-width: 0;
			
/*            flex-direction: row-reverse;*/
        }

        .content img {
            border-radius: 10px;
            max-width: 50%;
        }
		
		.separator{
			padding: 60px;
		}

        .text {
            max-width: 60%;
        }

        .text p {
            font-size: 1.1rem;
            line-height: 1.2;
            margin-bottom: 10px;
        }

        .contact-container {
            display: flex;
            justify-content: space-between;
            gap: 40px;
            max-width: 1100px;
            margin: 50px auto;
            padding: 30px;
            background: white;
            border-radius: 10px;
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
        }

        .contact-info, .contact-form-container {
            flex: 1;
            min-width: 0;
        }

        .contact-info h3 {
            font-size: 1.6rem;
            color: red;
            margin-bottom: 10px;
        }

        .contact-info p {
            font-size: 1rem;
            line-height: 1.3;
            margin-bottom: 8px;
        }

        .contact-phone-link {
            color: inherit;
            font-weight: 600;
            text-decoration: none;
        }

        .contact-phone-link:hover {
            text-decoration: underline;
        }

        .contact-phone-icons {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            margin-left: 8px;
            font-size: 1.1rem;
        }

        .contact-phone-icons a {
            color: #128c7e;
            text-decoration: none;
            transition: transform 0.2s ease, color 0.2s ease;
        }

        .contact-phone-icons a:first-child {
            color: #444;
        }

        .contact-phone-icons a:hover {
            transform: translateY(-1px);
            color: #0d6f63;
        }

        .contact-form input, .contact-form textarea {
            width: 90%;
            padding: 12px;
            margin: 12px 0px;
            border: 1px solid #ccc;
            border-radius: 5px;
        }

        .contact-form button {
            background-color: #ff9800;
            color: white;
            padding: 12px 25px;
            border: none;
            border-radius: 5px;
            font-size: 1.1rem;
            cursor: pointer;
        }

        .contact-form button:hover {
            background-color: #e68900;
        }

        .contact-info .cnzo-maps {
            width: 100%;
            max-width: 100%;
            margin-top: 16px;
            display: block;
        }

        /* ===== Digital Menu Page ===== */
        .content.digital-menu-page {
            flex-direction: column;
            align-items: stretch;
        }

        .content.digital-menu-page .text {
            max-width: 100%;
        }

        .menu-logos-prompt {
            color: #ff0000;
            font-size: 1.2rem;
            font-weight: bold;
            text-align: center;
            margin: 8px 0 0;
            text-transform: uppercase;
        }

        .menu-logos-section {
            width: 100%;
        }

        .menu-logos {
            display: grid;
            grid-template-columns: repeat(3, minmax(140px, 1fr));
            gap: 18px;
            width: 100%;
            max-width: 840px;
            margin: 0 auto;
        }

        .logo-button {
            border: 4px solid #111;
            border-radius: 10px;
            background: #fff;
            cursor: pointer;
            padding: 10px;
            min-height: 140px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .logo-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
        }

        .logo-button img {
            max-width: 100%;
            max-height: 95px;
            object-fit: contain;
        }

        .video-modal {
            position: fixed;
            inset: 0;
            display: none;
            align-items: center;
            justify-content: center;
            background: rgba(0, 0, 0, 0.85);
            z-index: 9999;
            padding: 16px;
        }

        .video-modal.open {
            display: flex;
        }

        .video-modal-content {
            width: min(92vw, 980px);
            background: #000;
            border: 2px solid #fff;
            border-radius: 10px;
            position: relative;
            padding: 12px;
        }

        .video-modal-content.video-rotated {
            width: min(92vh, 980px);
            height: min(92vw, 552px);
            transform: rotate(90deg);
            transform-origin: center center;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .video-modal-content.video-rotated video {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .video-wrapper {
            position: relative;
            width: 100%;
        }

        .video-touch-blocker {
            position: absolute;
            inset: 0;
            cursor: pointer;
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            user-select: none;
        }

        .video-modal video {
            width: 100%;
            display: block;
            border-radius: 6px;
            cursor: pointer;
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            user-select: none;
        }

        .video-modal-close {
            position: absolute;
            top: -12px;
            right: -12px;
            width: 32px;
            height: 32px;
            border: none;
            border-radius: 50%;
            background: #fe4401;
            color: #fff;
            font-size: 20px;
            cursor: pointer;
            line-height: 1;
        }

        body.video-fullscreen,
        body.video-fullscreen * {
            cursor: none !important;
        }

        .video-modal-content:fullscreen,
        .video-modal-content:fullscreen *,
        .video-modal-content:-webkit-full-screen,
        .video-modal-content:-webkit-full-screen *,
        .video-modal-content:-ms-fullscreen,
        .video-modal-content:-ms-fullscreen *,
        .video-modal-content:-moz-full-screen,
        .video-modal-content:-moz-full-screen * {
            cursor: none !important;
        }

        body.video-fullscreen .video-modal-close {
            display: none !important;
        }

        body.video-fullscreen .video-modal-content {
            border: none;
            border-radius: 0;
            padding: 0;
        }

        body.video-fullscreen .video-modal-content video {
            border-radius: 0;
            cursor: none;
        }

        /* ===== Service Report ===== */
        body.report-page {
            padding-left: clamp(12px, 4vw, 24px);
            padding-right: clamp(12px, 4vw, 24px);
            box-sizing: border-box;
        }

        main.report-main {
            display: block;
            padding-bottom: 2rem;
        }

        .report-container {
            max-width: 920px;
            width: 100%;
            margin: clamp(20px, 4vw, 36px) auto;
            padding: clamp(20px, 4vw, 32px);
            background: white;
            border-radius: 10px;
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
            box-sizing: border-box;
            border-top: 4px solid #ff0000;
        }

        .report-container h1 {
            color: #ff0000;
            margin-bottom: 8px;
            text-align: center;
            font-size: clamp(1.5rem, 4vw, 1.85rem);
        }

        .report-intro {
            text-align: center;
            color: #555;
            font-size: 0.95rem;
            line-height: 1.5;
            margin: 0 auto 24px;
            max-width: 36em;
        }

        .report-intro a {
            color: #c00;
            font-weight: 600;
        }

        .report-intro a:hover {
            text-decoration: underline;
        }

        .report-header-contact {
            text-align: center;
            font-size: 0.88rem;
            line-height: 1.45;
            color: #444;
            margin: 0 auto 20px;
            max-width: 38em;
            padding: 12px 14px;
            background: #f7f7f7;
            border: 1px solid #ddd;
            border-radius: 8px;
        }

        .report-header-contact a {
            color: #c00;
            font-weight: 600;
        }

        .report-date-hint {
            font-weight: normal;
            color: #666;
            font-size: 0.85rem;
        }

        .report-form {
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
        }

        .report-form label {
            display: block;
            font-weight: bold;
            margin-bottom: 6px;
            color: #222;
        }

        .report-form-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            column-gap: clamp(16px, 3vw, 28px);
            row-gap: 0;
            align-items: start;
        }

        .report-form .report-field {
            min-width: 0;
        }

        .report-form .report-field label {
            margin-top: 16px;
        }

        .report-form > .report-row-triple {
            grid-column: 1 / -1;
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: clamp(12px, 2vw, 20px);
            align-items: start;
        }

        .report-form > .report-row-triple .report-field > label {
            margin-top: 0;
        }

        .report-form .report-span-2 {
            grid-column: 1 / -1;
        }

        .report-form .report-span-2 > label {
            margin-top: 20px;
        }

        .report-form input[type="text"],
        .report-form input[type="date"],
        .report-form input[type="number"],
        .report-form textarea {
            width: 100%;
            max-width: 100%;
            padding: 12px 14px;
            border: 1px solid #ccc;
            border-radius: 5px;
            font-size: 1rem;
            box-sizing: border-box;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

        .report-form input[type="text"]:focus-visible,
        .report-form input[type="date"]:focus-visible,
        .report-form input[type="number"]:focus-visible,
        .report-form textarea:focus-visible {
            outline: none;
            border-color: #fe4401;
            box-shadow: 0 0 0 3px rgba(254, 68, 1, 0.2);
        }

        .report-form input[type="text"],
        .report-form textarea.uppercase-input {
            text-transform: uppercase;
        }

        .report-form textarea {
            min-height: 100px;
            resize: vertical;
        }

        .report-form textarea.report-field-compact {
            min-height: 88px;
        }

        @media (max-width: 700px) {
            .report-form-grid {
                grid-template-columns: 1fr;
            }

            .report-form > .report-row-triple {
                grid-template-columns: 1fr;
            }

            .report-form > .report-row-triple .report-field:not(:first-child) > label {
                margin-top: 16px;
            }

            .report-form .report-span-2 > label {
                margin-top: 16px;
            }
        }

        .report-form button {
            padding: 14px 16px;
            font-size: 1.05rem;
            background: linear-gradient(90deg, #000000 25%, #ff0000 100%);
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-weight: bold;
            box-sizing: border-box;
        }

        .report-form button:focus-visible {
            outline: none;
            box-shadow: 0 0 0 3px rgba(254, 68, 1, 0.45);
        }

        .report-form .form-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-top: 28px;
        }

        .report-form .form-actions button {
            flex: 1;
            min-width: 120px;
        }

        .report-form button[type="button"].btn-clear {
            background: #444;
            color: white;
        }

        .report-form button[type="button"].btn-clear:hover {
            background: #222;
        }

        @media (max-width: 480px) {
            .report-form .form-actions {
                flex-direction: column;
            }

            .report-form .form-actions button {
                flex: none;
                width: 100%;
            }
        }

        .report-form button[type="button"].btn-preview {
            background: linear-gradient(90deg, #000000 25%, #ff0000 100%);
            color: #fff;
            border: 2px solid #ff0000;
        }

        .report-form button[type="button"].btn-preview:hover {
            background: linear-gradient(90deg, #1a1a1a 25%, #ff3333 100%);
            opacity: 1;
        }

        /* ----- Report preview popup (mirrors PDF structure) ----- */
        .report-preview-modal {
            position: fixed;
            inset: 0;
            z-index: 200000;
            display: none;
            align-items: center;
            justify-content: center;
            padding: clamp(12px, 3vw, 24px);
            box-sizing: border-box;
        }

        .report-preview-modal.is-open {
            display: flex;
        }

        .report-preview-backdrop {
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.55);
            cursor: pointer;
        }

        /* Dialog dimensions ≈ US Letter (8.5″ × 11″); width matches paper, height fits viewport */
        .report-preview-dialog {
            position: relative;
            z-index: 1;
            width: 8.5in;
            max-width: calc(100vw - clamp(24px, 6vw, 48px));
            max-height: calc(100vh - clamp(24px, 6vw, 48px));
            display: flex;
            flex-direction: column;
            background: #e9e9e9;
            border-radius: 12px;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
            overflow: hidden;
        }

        .report-preview-toolbar {
            flex: 0 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 12px 16px;
            background: #1a1a1a;
            color: #fff;
        }

        .report-preview-toolbar-actions {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .report-preview-toolbar h2 {
            margin: 0;
            font-size: 1.05rem;
            font-weight: 700;
        }

        .report-preview-print {
            padding: 8px 16px;
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
            border: 1px solid #888;
            border-radius: 6px;
            background: #fff;
            color: #111;
        }

        .report-preview-print:hover {
            background: #eee;
        }

        .report-preview-close {
            padding: 8px 16px;
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
            border: 1px solid #666;
            border-radius: 6px;
            background: #333;
            color: #fff;
        }

        .report-preview-close:hover {
            background: #444;
        }

        /* No horizontal padding here: on screen it narrowed the “page” vs print (body padding → 0 in print),
           which changed column widths and line breaks relative to Windows print preview. */
        .report-preview-body {
            flex: 1 1 auto;
            overflow-y: auto;
            padding: clamp(12px, 2.5vh, 20px) 0;
            -webkit-overflow-scrolling: touch;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        /* Inner margins — horizontal slightly tighter than vertical; same in @media print */
        .report-preview-doc {
            background: #fff;
            border-radius: 8px;
            align-self: stretch;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
            padding: 12mm 8mm;
            box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
            min-height: min(11in, calc(100vh - clamp(120px, 18vh, 180px)));
        }

        .report-preview-letterhead {
            border: 1px solid #444;
            border-radius: 8px;
            padding: 12px 12px 14px;
            margin-bottom: 4px;
        }

        .report-preview-head-row {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-start;
            gap: 14px 20px;
        }

        .report-preview-logo-frame {
            flex: 0 0 auto;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #000;
            border: 2px solid #000;
            border-radius: 6px;
            box-sizing: border-box;
            padding: 12px 8px;
            min-width: calc(200px + 16px);
            min-height: calc(64px + 24px);
            -webkit-print-color-adjust: exact;
            print-color-adjust: exact;
        }

        .report-preview-logo {
            display: block;
            max-height: 64px;
            max-width: 200px;
            width: auto;
            height: auto;
            object-fit: contain;
        }

        .report-preview-head-text {
            flex: 1 1 220px;
            min-width: 0;
        }

        .report-preview-title-main {
            font-size: 1.48rem;
            font-weight: 800;
            color: #181818;
            line-height: 1.15;
            margin: 0 0 6px;
        }

        .report-preview-head-meta {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-start;
            justify-content: space-between;
            gap: 8px 16px;
        }

        .report-preview-sub {
            font-size: 0.84rem;
            color: #5a5a5a;
            margin: 0;
        }

        .report-preview-date {
            font-size: 0.875rem;
            font-weight: 500;
            color: #222;
            margin: 0;
            text-align: right;
            flex: 0 0 auto;
        }

        .report-preview-contact {
            font-size: 0.76rem;
            line-height: 1.45;
            color: #555;
            margin-top: 12px;
        }

        /* Keep each address / phone / mail segment unbroken (print often splits on “.” inside e-mail). */
        .report-preview-nowrap-chunk {
            white-space: nowrap;
        }

        .report-preview-contact-gap {
            white-space: normal;
        }

        .report-preview-hr {
            border: 0;
            border-top: 1px solid #ccc;
            margin: 16px 0 18px;
        }

        .report-preview-section {
            border: 1px solid #444;
            border-radius: 8px;
            padding: 10px 12px 12px;
            margin-bottom: 14px;
        }

        .report-preview-section:last-of-type {
            margin-bottom: 0;
        }

        .report-preview-sec-title {
            margin: 0 0 10px;
            font-size: 0.65rem;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            font-weight: 700;
            color: #333;
        }

        .report-preview-sec-title span {
            display: inline-block;
            padding-bottom: 4px;
            border-bottom: 2px solid #c00;
        }

        .report-preview-cols {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px 16px;
        }

        @media screen and (max-width: 560px) {
            .report-preview-cols {
                grid-template-columns: 1fr;
            }
        }

        .report-preview-cols .lbl {
            display: block;
            font-size: 0.7rem;
            color: #666;
            margin-bottom: 4px;
        }

        .report-preview-cols .val {
            display: block;
            font-size: 0.92rem;
            font-weight: 700;
            color: #202020;
        }

        .report-preview-body-text {
            margin: 0;
            font-size: 0.9rem;
            line-height: 1.5;
            color: #222;
            white-space: pre-wrap;
            word-break: break-word;
        }

        .report-preview-foot {
            margin-top: 20px;
            padding-top: 14px;
            border-top: 1px solid #ddd;
            font-size: 0.66rem;
            color: #666;
            text-align: center;
            line-height: 1.5;
        }

        @media print {
            @page {
                size: letter;
                margin: 0;
            }

            html:has(body.report-page) {
                overflow: visible !important;
                max-width: none !important;
            }

            body.report-page {
                background: #fff !important;
                overflow: visible !important;
                max-width: none !important;
            }

            body.report-page header,
            body.report-page main.report-main,
            body.report-page footer.footer {
                display: none !important;
            }

            .report-preview-modal {
                position: static !important;
                display: block !important;
                padding: 0 !important;
                inset: auto !important;
            }

            .report-preview-backdrop {
                display: none !important;
            }

            .report-preview-toolbar {
                display: none !important;
            }

            /* Match us Letter column (~8.5in) like the popup; centre so extra printable width stays blank. */
            .report-preview-dialog {
                max-height: none !important;
                width: 100% !important;
                max-width: 8.5in !important;
                margin-left: auto !important;
                margin-right: auto !important;
                box-shadow: none !important;
                background: #fff !important;
                overflow: visible !important;
            }

            .report-preview-body {
                padding: 0 !important;
                overflow: visible !important;
                display: block !important;
            }

            .report-preview-doc {
                box-shadow: none !important;
                padding: 12mm 8mm !important;
                min-height: 0 !important;
            }

            .report-preview-section-client .report-preview-body-text {
                word-break: normal !important;
                overflow-wrap: normal !important;
            }
        }