﻿@charset "UTF-8";

body {
    font-family: Arial,sans-serif;
    background: #f3f3f3;
    padding: 10px;
    font-size: 12px
}

.wrap {
    max-width: 850px;
    margin: auto;
    background: #fff;
    border: 1px solid #ccc;
    padding: 15px
}

header {
    text-align: center
}

    header img {
        max-height: 70px
    }

    header h1 {
        font-size: 13px;
        margin: 4px 0
    }

    header p {
        font-size: 11px;
        margin: 0
    }

.controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 10px 0
}

button {
    background: #1f6feb;
    color: #fff;
    border: 0;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11px
}

    button.remove {
        background: red;
        font-size: 10px;
        position: absolute;
        right: 8px;
        top: 8px
    }

.section {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed #ccc
}

    .section h2 {
        font-size: 12px;
        margin: 0 0 6px
    }

.requerente {
    border: 1px solid #ccc;
    padding: 8px;
    margin-bottom: 15px;
    position: relative
}

.field-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 8px
}

    .field-line label {
        font-weight: bold;
        margin-right: 4px;
        white-space: nowrap
    }

    .field-line input,
    .field-line select {
        border: none;
        border-bottom: 1px solid #000;
        background: transparent;
        padding: 2px 3px;
        margin-right: 8px;
        font-size: 11px;
        flex-grow: 1
    }

textarea {
    border: none;
    border-bottom: 1px solid #000;
    width: 100%;
    min-height: 60px;
    font-size: 11px
}

.conjuge {
    display: none;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dotted #aaa
}

.assinatura {
    text-align: center;
    margin-top: 35px
}

.wrap {
    width: 210mm;
}

@media print {
    .controls, button.remove {
        display: none
    }
}

@page {
    size: A4;
    margin: 5mm;
}

@media print {

    body {
        background: #fff;
        padding: 0;
        margin: 0;
        font-size: 11px;
    }

    /* Mant�m largura fixa como na tela */
    .wrap {
        width: 210mm;
        max-width: 210mm;
        margin: 0 auto;
        padding: 0;
        border: none;
        box-shadow: none;
    }


    /* Mant�m linhas e bordas vis�veis */
    input,
    select,
    textarea {
        border: none;
        border-bottom: 1px solid #000;
        background: transparent;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Evita quebra de assinaturas entre p�ginas */
    .assinatura {
        page-break-inside: avoid;
    }

    .requerente {
        page-break-inside: avoid;
    }
}



/* Prote��o anti-c�pia */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Permite digita��o normalmente */
input, textarea, select {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}



@media print {
    #printDateTime {
        display: block !important;
        position: fixed;
        bottom: 6mm;
        right: 6mm;
        font-size: 9px;
        color: #555;
        z-index: 9999;
    }
}

@media print {

    body::before {
        content: "Requerimento Oficial: " var(--empresa) attr(data-print);
        position: fixed;
        top: 0;
        left: 0;
        width: 5mm; /* tarja fina */
        height: 100%;
        background: #a8a8a8;
        color: rgba(182, 182, 182, 0.8);
        font-size: 10px;
        font-weight: bold;
        text-align: center;
        white-space: pre;
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        padding: 5mm 0;
        letter-spacing: 1px;
        z-index: 9999;
    }

    /* Empurra o conte�do levemente para a direita */
    .wrap {
        margin-left: 5mm;
    }
}


.requerimento-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.requerimento-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.requerimento-desc {
    font-size: 12.5px;
    color: #6b7280;
    line-height: 1.4;
}

.requerimento-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
