/**
 * Estética profesional de expediente legal HIF (notarial / carta).
 * Carga al FINAL de la cascada para ganar a Inter/Jakarta/IBM Plex.
 */
@import url('https://fonts.googleapis.com/css2?family=Tinos:ital,wght@0,400;0,700;1,400;1,700&display=swap');

body.hif-app .hif-expediente-root,
body.hif-app .hif-expediente-root *,
body.hif-app .main-content .hif-expediente-root,
body.hif-app .main-content .hif-expediente-root *,
body.hif-app .content-wrapper .hif-expediente-root,
body.hif-app .content-wrapper .hif-expediente-root *,
.hif-expediente-root,
.hif-expediente-root * {
    font-family: "Tinos", "Times New Roman", Times, "Liberation Serif", "DejaVu Serif", Cambria, Georgia, serif !important;
    -webkit-font-smoothing: auto !important;
    text-rendering: optimizeLegibility !important;
}

body.hif-app .hif-expediente-root,
.hif-expediente-root {
    --hif-exp-doc-title-font: 13pt !important;
    --hif-exp-title-font: 10pt !important;
    --hif-exp-section-font: 9pt !important;
    --hif-exp-label-font: 7pt !important;
    --hif-exp-body-font: 10pt !important;
    --hif-exp-value-font: 10.25pt !important;
    --hif-exp-legal-font: 9.25pt !important;
    --hif-exp-ink: #0a0a0a !important;
    --hif-muted: #4a4a4a !important;
    font-size: 10pt !important;
    line-height: 1.32 !important;
    color: #0a0a0a !important;
    letter-spacing: 0 !important;
    background: #ececec !important;
}

/* Página: hoja limpia, sombra suave solo en pantalla */
body.hif-app .hif-expediente-root .hif-page,
.hif-expediente-root .hif-page {
    border: 0 !important;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08) !important;
    padding: 0.48in 0.5in !important;
    background: #fff !important;
}

/* Membrete */
body.hif-app .hif-expediente-root .hif-masthead-top,
.hif-expediente-root .hif-masthead-top {
    border-bottom: 1.5pt solid #000 !important;
    margin-bottom: 2px !important;
}

body.hif-app .hif-expediente-root .hif-masthead-org-name,
.hif-expediente-root .hif-masthead-org-name {
    font-size: 9.5pt !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.035em !important;
    line-height: 1.25 !important;
}

body.hif-app .hif-expediente-root .hif-masthead-org-line,
.hif-expediente-root .hif-masthead-org-line {
    font-size: 7.25pt !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    color: #333 !important;
    letter-spacing: 0.01em !important;
}

body.hif-app .hif-expediente-root .hif-ref-badge,
.hif-expediente-root .hif-ref-badge {
    border: 1px solid #000 !important;
    background: #fff !important;
    color: #000 !important;
    font-size: 7.75pt !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    padding: 6px 9px !important;
    text-align: center !important;
}

/* Título del documento: doble filete elegante (sin caja pesada) */
body.hif-app .hif-expediente-root .hif-masthead-titlebar,
.hif-expediente-root .hif-masthead-titlebar {
    margin: 12px 0 10px !important;
    padding: 8px 4px !important;
    border: 0 !important;
    border-top: 1.75pt solid #000 !important;
    border-bottom: 1.75pt solid #000 !important;
    background: transparent !important;
    text-align: center !important;
}

body.hif-app .hif-expediente-root .hif-masthead-doc-title,
.hif-expediente-root .hif-masthead-doc-title {
    font-size: 13pt !important;
    font-weight: 700 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    line-height: 1.2 !important;
    color: #000 !important;
}

body.hif-app .hif-expediente-root .hif-masthead-doc-subtitle,
.hif-expediente-root .hif-masthead-doc-subtitle {
    font-size: 8.5pt !important;
    font-weight: 400 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    color: #333 !important;
    margin-top: 3px !important;
}

/* Meta strip refinada */
body.hif-app .hif-expediente-root .hif-meta-strip,
.hif-expediente-root .hif-meta-strip {
    border: 1px solid #000 !important;
    margin-top: 0 !important;
    margin-bottom: 8px !important;
}

body.hif-app .hif-expediente-root .hif-meta-item,
.hif-expediente-root .hif-meta-item {
    padding: 5px 8px !important;
}

body.hif-app .hif-expediente-root .hif-meta-label,
body.hif-app .hif-expediente-root .hif-kpi-label,
body.hif-app .hif-expediente-root .hif-field-label,
.hif-expediente-root .hif-meta-label,
.hif-expediente-root .hif-kpi-label,
.hif-expediente-root .hif-field-label {
    font-size: 7pt !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #555 !important;
    line-height: 1.2 !important;
    margin-bottom: 3px !important;
}

body.hif-app .hif-expediente-root .hif-meta-value,
body.hif-app .hif-expediente-root .hif-field-value,
body.hif-app .hif-expediente-root .hif-kpi-value,
body.hif-app .hif-expediente-root .hif-sign-name,
body.hif-app .hif-expediente-root .hif-committee-signature-name,
.hif-expediente-root .hif-meta-value,
.hif-expediente-root .hif-field-value,
.hif-expediente-root .hif-kpi-value,
.hif-expediente-root .hif-sign-name,
.hif-expediente-root .hif-committee-signature-name {
    font-family: "Tinos", "Times New Roman", Times, serif !important;
    font-size: 10.25pt !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #000 !important;
    line-height: 1.32 !important;
    letter-spacing: 0.01em !important;
}

body.hif-app .hif-expediente-root .hif-kpi-value,
.hif-expediente-root .hif-kpi-value {
    font-size: 11.5pt !important;
    letter-spacing: 0.02em !important;
}

/* KPI: franja única elegante */
body.hif-app .hif-expediente-root .hif-kpi-strip,
.hif-expediente-root .hif-kpi-strip {
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    margin: 0 0 12px !important;
    width: 100% !important;
}

body.hif-app .hif-expediente-root .hif-kpi,
.hif-expediente-root .hif-kpi {
    border: 1px solid #000 !important;
    padding: 7px 8px !important;
    background: #fff !important;
    box-shadow: none !important;
}

/* Secciones: encabezado con filete inferior (menos “caja app”) */
body.hif-app .hif-expediente-root .hif-section,
.hif-expediente-root .hif-section {
    margin-bottom: 12px !important;
}

body.hif-app .hif-expediente-root .hif-section-head,
.hif-expediente-root .hif-section-head {
    display: flex !important;
    align-items: baseline !important;
    gap: 8px !important;
    padding: 5px 0 4px !important;
    border: 0 !important;
    border-bottom: 1.5pt solid #000 !important;
    background: transparent !important;
    color: #000 !important;
    font-size: 9.25pt !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

body.hif-app .hif-expediente-root .hif-section-num,
.hif-expediente-root .hif-section-num {
    min-width: auto !important;
    height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #000 !important;
    font-size: 9.25pt !important;
    font-weight: 700 !important;
}

body.hif-app .hif-expediente-root .hif-section-title,
.hif-expediente-root .hif-section-title {
    font-size: 9.25pt !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

/* Campos: grilla limpia */
body.hif-app .hif-expediente-root table.hif-field-grid,
.hif-expediente-root table.hif-field-grid {
    border: 1px solid #000 !important;
    border-top: 0 !important;
}

body.hif-app .hif-expediente-root table.hif-field-grid td.hif-field,
.hif-expediente-root table.hif-field-grid td.hif-field {
    padding: 5px 8px 6px !important;
    border-color: #000 !important;
    background: #fff !important;
}

/* Documentación / jurada */
body.hif-app .hif-expediente-root .hif-doc-req-banner,
.hif-expediente-root .hif-doc-req-banner {
    border: 1px solid #000 !important;
    padding: 10px 12px !important;
    background: #fff !important;
    margin: 10px 0 !important;
}

body.hif-app .hif-expediente-root .hif-jurada-main-title,
body.hif-app .hif-expediente-root .hif-doc-req-title,
body.hif-app .hif-expediente-root .hif-affidavit-title,
body.hif-app .hif-expediente-root .hif-signatures-panel-title,
.hif-expediente-root .hif-jurada-main-title,
.hif-expediente-root .hif-doc-req-title,
.hif-expediente-root .hif-affidavit-title,
.hif-expediente-root .hif-signatures-panel-title {
    font-size: 10.5pt !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    text-align: center !important;
    margin: 0 0 8px !important;
}

body.hif-app .hif-expediente-root .hif-doc-req-sub,
.hif-expediente-root .hif-doc-req-sub {
    font-size: 8pt !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    text-align: center !important;
    letter-spacing: 0.03em !important;
    color: #333 !important;
    margin: 0 0 8px !important;
}

body.hif-app .hif-expediente-root .hif-jurada-body,
body.hif-app .hif-expediente-root .hif-jurada-body p,
body.hif-app .hif-expediente-root .hif-affidavit-text,
body.hif-app .hif-expediente-root .hif-resolution-card,
body.hif-app .hif-expediente-root .hif-doc-req-list,
body.hif-app .hif-expediente-root .hif-info-table td,
.hif-expediente-root .hif-jurada-body,
.hif-expediente-root .hif-jurada-body p,
.hif-expediente-root .hif-affidavit-text,
.hif-expediente-root .hif-resolution-card,
.hif-expediente-root .hif-doc-req-list,
.hif-expediente-root .hif-info-table td {
    font-size: 9.25pt !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    text-align: justify !important;
    text-transform: uppercase !important;
    color: #000 !important;
}

body.hif-app .hif-expediente-root .hif-doc-req-list li,
.hif-expediente-root .hif-doc-req-list li {
    font-weight: 400 !important;
    margin-bottom: 3px !important;
}

/* Firmas */
body.hif-app .hif-expediente-root .hif-sign-f,
.hif-expediente-root .hif-sign-f {
    display: none !important;
}

body.hif-app .hif-expediente-root .hif-signatures-panel,
.hif-expediente-root .hif-signatures-panel {
    border: 1px solid #000 !important;
    padding: 14px 12px 10px !important;
    background: #fff !important;
}

body.hif-app .hif-expediente-root .hif-sign-space,
.hif-expediente-root .hif-sign-space {
    min-height: 1.05in !important;
    height: 1.05in !important;
    border: 0 !important;
    background: transparent !important;
}

body.hif-app .hif-expediente-root .hif-sign-name,
.hif-expediente-root .hif-sign-name {
    border-top: 0 !important;
    padding-top: 0 !important;
    text-align: center !important;
    font-size: 9.5pt !important;
}

@media print {
    body.hif-app .hif-expediente-root,
    .hif-expediente-root {
        background: #fff !important;
        padding: 0 !important;
    }
    body.hif-app .hif-expediente-root .hif-page,
    .hif-expediente-root .hif-page {
        box-shadow: none !important;
        border: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    .hif-expediente-root,
    .hif-expediente-root *,
    body.hif-app .hif-expediente-root,
    body.hif-app .hif-expediente-root * {
        font-family: "Tinos", "Times New Roman", Times, "Liberation Serif", serif !important;
        color: #000 !important;
    }
}
