/* Estilos extraídos de templates/Default/base.html.twig */

.custom-file-upload2 {
    display: none;
}

.custom-file-upload {
    border: 1px solid #ccc;
    display: inline-block;

    cursor: pointer;
}

.selectMultiple {
    height: auto !important;
    vertical-align: top;
}

select[multiple]:focus,
select[multiple]:active {
    height: auto;
}

.top-padding {
    padding-left: 0px !important;
    padding-right: 0px !important;
}

.rc-button1 {
    margin-top: 18px !important;
}

.rc-button2 {
    margin-top: 0px !important;
}

.rc-integer {
    text-align: right !important;
}

.rc-min-height-550 {
    min-height: 550px;
}

.rc-height-0 {
    height: 0px;
}

/* ---------------------------------------------------------------
   Estilos extraídos de templates/Default/top.html.twig
   --------------------------------------------------------------- */

/* .cover ya tiene class="cover"; se extraen las propiedades estáticas.
   El background-image dinámico (variable Twig) queda como style inline. */
.cover {
    background-size: 100% auto;
    background-repeat: no-repeat;
}

/* Primer <ul> del toolbar: float izquierdo */
.toolbar-icons-left {
    float: left !important;
}

/* Items de texto blanco dentro de la toolbar */
.toolbar-item {
    color: white;
}

/* ---------------------------------------------------------------
   Estilos extraídos de templates/bundles/ThemeAplicativoBundle/Default/footer.html.twig
   --------------------------------------------------------------- */

.rc-width-70 {
    width: 70%;
}

.rc-width-30 {
    width: 30%;
}
.rc-visibility-hidden {
    visibility: hidden;
}
#dialog-message-info,
.submenu {
    display: none;
}
.rc-white{
    color:white
}

.rc-top-stg {
    background-size: 100% auto;
    background-repeat: no-repeat;
}

.rc-top-stg img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===============================================================
   Estilos para jQuery blockUI (CSP compliant)
   =============================================================== */
.blockUI {
    border: none;
    margin: 0;
    padding: 0;
}
.blockUI.blockOverlay {
    background-color: #000;
    opacity: 0.6;
    cursor: wait;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    position: fixed;
}
.blockElement .blockUI.blockOverlay {
    position: absolute;
}
.blockUI.blockPage {
    position: fixed;
    z-index: 1010;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #000;
    background-color: #fff;
    border: 3px solid #aaa;
    padding: 15px;
    cursor: wait;
    width: 30%;
    max-width: 450px;
    box-sizing: border-box;
}
.blockUI.blockElement {
    position: absolute;
    z-index: 1010;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #000;
    background-color: #fff;
    border: 3px solid #aaa;
    padding: 15px;
    cursor: wait;
    width: 30%;
    box-sizing: border-box;
}
.blockUI.growlUI {
    width: 350px;
    top: 10px;
    right: 10px;
    left: auto;
    border: none;
    padding: 5px;
    opacity: 0.8;
    cursor: default;
    color: #fff;
    background-color: #000;
    border-radius: 10px;
    position: fixed;
    z-index: 1010;
}
.block-relative {
    position: relative !important;
}
.rc-uppercase {
    text-transform: uppercase;
}

/* ===============================================================
   Estilos para modal de error (error-handler.js) - CSP compliant
   =============================================================== */
#errorOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    visibility: hidden;
}
#errorOverlay.visible {
    visibility: visible;
}
#errorDialog {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    width: 90%;
    max-width: 950px;
    max-height: 85%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
    color: #212529;
}
#errorDialogHeader {
    background-color: #f8d7da;
    border-bottom: 1px solid #f5c6cb;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#errorDialogHeader h2 {
    margin: 0;
    font-size: 1.15em;
    color: #721c24;
    font-family: inherit;
    font-weight: bold;
}
#errorContent {
    white-space: pre-wrap;
    word-break: break-all;
    font-size: 0.88em;
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 15px;
    margin: 0;
    overflow-y: auto;
    flex: 1;
    line-height: 1.45;
}
#errorDialogFooter {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 10px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
#errorDialogFooter button {
    padding: 6px 16px;
    border: 1px solid #ced4da;
    background: #ffffff;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
}
#errorDialogFooter button:hover {
    background: #e9ecef;
}
#errorDialogFooter button.btn-primary {
    background: #007bff;
    color: #ffffff;
    border-color: #007bff;
}
#errorDialogFooter button.btn-primary:hover {
    background: #0069d9;
}

/* ---------------------------------------------------------------
   Estilos extraídos de knout/RcDigital/extSolicita/tpl (ExtSolicitudActaIngreso)
   --------------------------------------------------------------- */
.rc-ext-solicita-font-4em {
    font-size: 4em!important;
}
.rc-ext-solicita-height-3em {
    height: 3em!important;
}
.rc-ext-solicita-row-sm {
    font-size: 1.5em;
}
.rc-ext-solicita-row-md {
    font-size: 2em!important;
}
.rc-ext-solicita-row-lg {
    font-size: 2.4em!important;
}
.rc-ext-solicita-no-margin {
    margin: 0px!important;
}
.rc-ext-solicita-text-center {
    text-align: center;
}
.rc-ext-solicita-text-bold {
    font-weight: bold;
}
.rc-ext-solicita-action-box {
    width: 50%;
}
.rc-ext-solicita-action-left {
    float: left;
    width: 40%;
}
.rc-ext-solicita-action-right {
    float: right;
    width: 40%;
}
.rc-ext-solicita-action-right-30 {
    float: right;
    width: 30%;
}
.rc-ext-solicita-pointer {
    cursor: pointer;
}

/* --- Clases knout (versión clásica) para reemplazo de inline styles --- */
.knout_old_icon_alert {
    float: left;
    margin-right: .3em;
}

.knout_old_w1000 {
    width: 1000px;
}

.knout_old_label_bold12 {
    font-weight: bold;
    font-size: 12px;
}

.knout_old_h500_overflow {
    height: 500px;
    overflow: auto;
}

.knout_old_h500_min500_overflow {
    height: 500px;
    min-height: 500px;
    overflow: auto;
}

.knout_old_min_h500 {
    min-height: 500px;
}

.knout_old_h350_overflow {
    height: 350px;
    overflow: auto;
}

.knout_old_h850_overflow {
    height: 850px;
    overflow: auto;
}

.knout_old_w6p {
    width: 6% !important;
}

.knout_old_w6p_ml10 {
    width: 6% !important;
    margin-left: 10px !important;
}

.knout_old_w4p {
    width: 4% !important;
}

.knout_old_w20 {
    width: 20px;
}

.knout_old_w28 {
    width: 28px;
}

.knout_old_w63p {
    width: 63%;
}

.knout_old_w50p_float_left {
    width: 50%;
    float: left;
}

.knout_old_w50p_float_right {
    width: 50%;
    float: right;
}

.knout_old_m5_p10 {
    margin: 5px;
    padding: 10px;
}

.knout_old_display_none {
    display: none;
}

.knout_old_float_right {
    float: right;
}

.knout_old_float_left {
    float: left;
}

.knout_old_bg_red {
    background-color: red;
}

.knout_old_visibility_hidden {
    visibility: hidden;
}

.knout_old_img_border {
    border: 1px solid #000000;
}

.knout_old_marginal_bloque {
    overflow-y: scroll;
    width: 105mm;
}

.knout_old_h126 {
    height: 126px;
}

.knout_old_max_h300_overflow {
    max-height: 300px;
    overflow-y: scroll;
}

.knout_old_color_white_imp {
    color: #FFF !important;
}

.knout_old_embed_pdf {
    min-height: 200px !important;
}

.knout_old_h19 {
    height: 19px;
}

.knout_old_panel_scroll_rel {
    display: block;
    overflow-y: scroll;
    position: relative;
}

.knout_old_pointer {
    cursor: pointer;
}

.knout_old_p0 {
    padding: 0em !important;
}

.knout_old_w100p_h100p {
    width: 100%;
    height: 100%;
}

.knout_old_h300 {
    height: 300px;
}

.knout_old_hoja_err {
    background-color: red;
    height: 125mm;
    width: 105mm;
}

.knout_old_fs16 {
    font-size: 16px;
}

.knout_old_txt_red16 {
    color: red;
    font-size: 16px !important;
}

.knout_old_w8p {
    width: 8% !important;
}

.knout_old_bold {
    font-weight: bold;
}

.knout_old_text_right {
    text-align: right;
}

.knout_old_m0 {
    margin: 0px;
}

.knout_old_w3p {
    width: 3% !important;
}

.knout_old_w95p {
    width: 95%;
}

.knout_old_m_0_5_10 {
    margin: 0px 5px 10px !important;
}

.knout_old_pos_rel_scroll {
    position: relative;
    overflow: scroll;
}

.knout_old_w500 {
    width: 500px;
}

.knout_old_w35p_left {
    width: 35%;
    float: left;
}

.knout_old_h700_overflow {
    height: 700px;
    overflow: auto;
}

.knout_old_w100p {
    width: 100%;
}

.knout_old_w65p_right {
    width: 65%;
    float: right;
}

.knout_old_overflow_auto {
    overflow: auto;
}

.knout_old_h150 {
    height: 150px;
}

.knout_old_h370 {
    height: 370px;
}

.knout_old_w4p_ml8 {
    width: 4% !important;
    margin-left: 8px;
}

.knout_old_w100p_left {
    width: 100%;
    float: left;
}

.knout_old_h400_scroll {
    height: 400px !important;
    overflow-y: scroll !important;
}

.knout_old_w54p_left {
    width: 54%;
    float: left;
}

.knout_old_w36p_left {
    width: 36%;
    float: left;
}

.knout_old_pl4 {
    padding-left: 4px;
}

/* --- Estilos para visor PDF.js --- */
.rc-pdf-container,
.rc-validafirma-embed-pdf,
.knout_old_embed_pdf,
.kb-h-200 {
    min-height: 200px;
    max-height: 650px;
    overflow-y: auto;
    width: 100%;
    border: 1px solid #ccc;
    background-color: #525659;
    padding: 10px 0;
    box-sizing: border-box;
    border-radius: 4px;
}

.rc-pdf-page-wrapper {
    margin: 10px auto;
    text-align: center;
}

.rc-pdf-page-canvas {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    border-radius: 4px;
    background-color: #ffffff;
    display: block;
    margin: 0 auto;
    max-width: 95%;
    height: auto;
}

.rc-pdf-loading {
    padding: 20px;
    text-align: center;
    color: #ffffff;
}

.rc-pdf-error {
    color: #d9534f;
    padding: 20px;
    text-align: center;
    background-color: #ffffff;
    margin: 10px auto;
    width: 80%;
    border-radius: 4px;
}