﻿
body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f0f0;
    padding: 1rem;
}

.header {
    background-color: #E20A17;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: white;
    margin-bottom: 20px;
}

.logo {
    float: none;
    display: block;
    margin: 0;
    position: static;
    width: 70px;
    height: 70px;
    background: #FFFFFF url('../images/DaltonWeb.png') no-repeat center center;
    background-size: contain;
    flex-shrink: 0;
    margin-right: 15px;
}


.document-page {
    max-width: 8.5in;
    min-height: 11in;
    margin: 1rem auto;
    background-color: white;
    padding: 0;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border: 1px solid #ccc;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.second-page {
    min-height: auto;
}

.document-header {
    padding: 0.75rem 1in;
    background-image: linear-gradient(to right, #E20A17, #C8102E); /* Fondo rojo con degradado */
    color: white;
    flex-shrink: 0;
}

.document-header-page2 {
    padding: 0.5rem 1in;
    background-color: #e5e7eb;
    color: #1f2937;
    text-align: center;
    font-weight: bold;
    border-bottom: 1px solid #ccc;
    flex-shrink: 0;
}

.document-body {
    padding: 1in;
    padding-top: 0.5in;
    padding-bottom: 0.5in;
    flex-grow: 1;
}

.document-body-page2 {
    padding: 1in;
    flex-grow: 1;
}

/* Estilos generales para inputs ASP.NET */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
    border: 1px solid #9ca3af;
    padding: 0.3rem 0.5rem;
    border-radius: 0.25rem;
    width: 100%;
    font-size: 0.875rem;
    margin-top: 0.1rem;
    background-color: white;
}

.select-uniform {
    font-size: 0.8rem !important; /* o el tamaño que usan tus otros controles */
    font-family: inherit !important;
    padding: 0.3rem 0.5rem;
    border-radius: 0.25rem;
}

label {
    font-size: 0.8rem;
    color: #4b5563;
    display: block;
    margin-bottom: 0;
}

.tipo-persona-label {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    margin-right: 1rem;
}

    .tipo-persona-label input[type="radio"] {
        width: auto;
        margin-right: 0.3rem;
    }

.signature-box {
    border: 1px solid #9ca3af;
    height: 70px;
    margin-top: 0.25rem;
    border-radius: 0.25rem;
}

.section-title {
    font-weight: bold;
    background-color: #e5e7eb;
    padding: 0.4rem;
    text-align: center;
    margin-top: 0.8rem;
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
}

.radio-label {
    display: flex;
    align-items: center;
    margin-right: 1rem;
    font-size: 0.875rem;
}

    .radio-label input[type="radio"] {
        margin-right: 0.3rem;
        width: auto;
    }

.docs-list {
    font-size: 0.75rem;
    list-style-position: inside;
    padding-left: 0;
}

    .docs-list li {
        margin-bottom: 0.3rem;
        text-align: justify;
        line-height: 1.3;
    }

    .docs-list strong {
        font-weight: bold;
    }

.docs-column {
    border: 1px solid #d1d5db;
    padding: 0.75rem;
    border-radius: 0.375rem;
    height: 100%;
}

.text-xs {
    font-size: 0.7rem;
}

.mb-4 {
    margin-bottom: 0.75rem;
}

.mb-2 {
    margin-bottom: 0.25rem;
}

.mt-6 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 1rem;
}

.gap-4 {
    gap: 0.75rem;
}

.gap-6 {
    gap: 1rem;
}

.space-y-1 > * + * {
    margin-top: 0.2rem !important;
}

.space-y-2 > * + * {
    margin-top: 0.4rem !important;
}

@media print {
    *, *::before, *::after {
        box-sizing: border-box;
    }

    html {
        font-size: 9pt;
        line-height: 1.2;
    }

    body {
        background-color: white !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .document-page {
        box-shadow: none !important;
        border: none !important;
        max-width: 100% !important;
        width: 100% !important;
        min-height: auto !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        page-break-inside: avoid !important;
        overflow: visible !important;
    }

    .second-page {
        page-break-before: always !important;
    }

    .document-header, .document-header-page2 {
        background-image: none !important;
        background-color: #f3f4f6 !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        padding: 0.25rem 0.4in !important;
        border-bottom: 0.5pt solid #000 !important;
    }

        .document-header h1 {
            font-size: 12pt !important;
            font-weight: bold;
        }

    .document-body, .document-body-page2 {
        padding: 0.4in !important;
        padding-top: 0.3in !important;
        padding-bottom: 0.3in !important;
        flex-grow: 0 !important;
        height: auto !important;
    }

    .document-body-page2 {
        padding-top: 0.4in !important;
    }

    .no-print {
        display: none !important;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="url"],
    textarea,
    select {
        border-bottom: 0.5pt dotted #000 !important;
        border-top: none !important;
        border-left: none !important;
        border-right: none !important;
        border-radius: 0 !important;
        padding: 0.05rem 0 !important;
        background-color: transparent !important;
        font-size: 9pt !important;
        margin-top: 0 !important;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
    }

    label {
        font-size: 8pt !important;
        margin-bottom: 0 !important;
        line-height: 1.1 !important;
    }

    .signature-box {
        border: 0.5pt solid #000 !important;
        background-color: transparent !important;
        height: 50px !important;
        margin-top: 0.15rem !important;
    }

    .section-title {
        background-color: #f9fafb !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        padding: 0.15rem !important;
        font-size: 9pt !important;
        font-weight: bold;
        margin-top: 0.4rem !important;
        margin-bottom: 0.2rem !important;
        border: 0.5pt solid #ccc !important;
    }

    .border, .docs-column {
        border-color: #000 !important;
        border-width: 0.5pt !important;
    }

    .bg-gray-700 {
        background-color: #e5e7eb !important;
        color: #000 !important;
        padding: 0.1rem 0.2rem !important;
        font-size: 7pt !important;
        font-weight: normal !important;
        margin-bottom: 0.25rem !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    img.header-logo {
        max-width: 80px !important;
        height: auto !important;
        max-height: 35px !important;
        margin-right: 0.5rem !important;
    }

    .docs-list {
        font-size: 7.5pt !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.2;
    }

        .docs-list li {
            margin-bottom: 0.2rem !important;
        }

    .grid {
        page-break-inside: avoid !important;
    }

    .docs-column {
        padding: 0.25rem !important;
        page-break-inside: avoid !important;
        height: auto !important;
    }

    .mb-4 {
        margin-bottom: 0.3rem !important;
    }

    .mb-2 {
        margin-bottom: 0.1rem !important;
    }

    .mt-6 {
        margin-top: 0.5rem !important;
    }

    .mt-8 {
        margin-top: 0.5rem !important;
    }

    .pt-4 {
        padding-top: 0.5rem !important;
    }

    .gap-4 {
        gap: 0.3rem !important;
    }

    .gap-6 {
        gap: 0.5rem !important;
    }

    .space-y-1 > * + * {
        margin-top: 0.1rem !important;
    }

    .space-y-2 > * + * {
        margin-top: 0.2rem !important;
    }

    .text-xs {
        font-size: 7.5pt !important;
    }

    .text-lg {
        font-size: 10pt !important;
    }

    .text-xl {
        font-size: 12pt !important;
    }

    .text-xs.border.p-3 {
        padding: 0.25rem !important;
        margin-bottom: 0.4rem !important;
    }

    .grid.grid-cols-2.gap-4.text-xs {
        gap: 0.5rem !important;
    }

        .grid.grid-cols-2.gap-4.text-xs > div {
            padding: 0.15rem !important;
        }

        .grid.grid-cols-2.gap-4.text-xs p {
            font-size: 7pt !important;
            margin-bottom: 0.1rem !important;
        }

    .radio-label {
        font-size: 8pt !important;
        margin-right: 0.5rem !important;
    }

        .radio-label input[type="radio"] {
            margin-right: 0.2rem !important;
        }
}
