/*
 * Encapsulado en .consulta-php-skin para no pelear con normalize/main y Bootstrap.
 * Replica el panel / tabla del sitio ministerial (RichFaces).
 */
.consulta-php-skin {
    font-family: Arial, Helvetica, sans-serif;
}

/* --- Contenedor 85% (transparente, como el skin original) --- */
.consulta-php-skin .rf-p-shell {
    width: 85%;
    margin: 0 auto;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Cuerpo ancho tipo formBusqueda:j_idt18_body (contenedor 60% + br + centraraviso + tabla) */
.consulta-php-skin .consulta-rf-layout-body {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent !important;
    box-sizing: border-box;
}

.consulta-php-skin .consulta-rf-layout-body > .centraraviso {
    min-height: 0;
    overflow: visible;
}

.consulta-php-skin .table-responsive {
    width: 100%;
    margin: 0;
}

/* Bootstrap + rf-dt */
.consulta-php-skin table.rf-dt.table {
    width: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    max-width: none !important;
}

/* Panel Parámetros (formBusqueda:j_idt21) */
.consulta-php-skin #paramBusqueda.rf-p {
    width: 100%;
    max-width: 100%;
    border: 1px solid #cccccc;
    background-color: #f4f4f4;
    box-sizing: border-box;
}

.consulta-php-skin #paramBusqueda .rf-p-hdr {
    text-align: center;
    color: #ffffff;
    font-weight: bold;
    font-size: 13px;
    padding: 6px 10px;
    border-bottom: 1px solid #3d6499;
    background-image: linear-gradient(to bottom, #7ba0cd 0%, #5690c9 42%, #4a75b3 100%);
}

.consulta-php-skin #paramBusqueda .rf-p-b {
    padding: 12px 14px;
    background-color: #f4f4f4;
    color: #111111;
    font-size: 12px;
    line-height: 1.3;
}

.consulta-php-skin #paramBusqueda .tbl-opciones-consulta {
    width: 100%;
}

.consulta-php-skin #paramBusqueda .tbl-opciones-consulta td {
    vertical-align: middle;
    padding: 0 4px 0 0;
    font-size: 12px;
}

.consulta-php-skin #paramBusqueda .rf-p-b label {
    font-weight: bold;
    font-size: 12px;
}

.consulta-php-skin #paramBusqueda input[type="text"] {
    box-sizing: border-box;
    font-size: 12px;
}

.consulta-php-skin #paramBusqueda #cedula,
.consulta-php-skin #paramBusqueda .uppercase {
    padding: 2px 4px;
    height: auto;
    min-height: 22px;
    border: 1px solid #7f9db9;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

.consulta-php-skin #paramBusqueda .rf-p-b fieldset .capt-val-cell td {
    padding: 0;
}

.consulta-php-skin #paramBusqueda .rf-p-b fieldset table.capt-outer-tabla {
    border-collapse: collapse;
    border-spacing: 0;
}

.consulta-php-skin #paramBusqueda .rf-p-b fieldset .capt-inner-tabla {
    border-collapse: collapse;
    border-spacing: 0;
    margin: 0;
    padding: 0;
    width: 158px;
    max-width: 100%;
}

.consulta-php-skin #paramBusqueda .rf-p-b fieldset td.capt-btn-cell {
    padding: 0 !important;
    margin: 0;
}

.consulta-php-skin #paramBusqueda .rf-p-b fieldset tr.capt-filler-row td {
    padding: 0 !important;
    height: 0;
    line-height: 0;
    font-size: 0;
    overflow: hidden;
}

.consulta-php-skin #paramBusqueda .rf-p-b fieldset tr.capt-filler-row label {
    display: none;
}

.consulta-php-skin #paramBusqueda .rf-p-b fieldset {
    border: 1px solid #cccccc !important;
    margin: 5px 0 0 !important;
    padding: 4px 6px !important;
    background: #ffffff;
}

.consulta-php-skin #paramBusqueda .rf-p-b fieldset table {
    border-collapse: collapse;
}

.consulta-php-skin #paramBusqueda .rf-p-b fieldset td.capt-lbl-cell {
    padding: 0 4px 0 0;
    vertical-align: top;
    line-height: 1.15;
}

.consulta-php-skin #paramBusqueda .rf-p-b fieldset td.capt-val-cell {
    padding: 0;
    vertical-align: top;
    line-height: 1.15;
}

.consulta-php-skin #paramBusqueda .rf-p-b fieldset td.capt-input-row {
    padding-top: 2px !important;
    vertical-align: middle !important;
    white-space: nowrap;
}

.consulta-php-skin #paramBusqueda .rf-p-b fieldset tr:nth-child(2) .capt-lbl-cell {
    vertical-align: middle;
    padding-top: 0;
}

.consulta-php-skin #paramBusqueda .capt-inline {
    display: block;
    border: 0;
    vertical-align: top;
    margin: 0;
    padding: 0;
    width: 158px;
    height: 48px;
}

.consulta-php-skin #paramBusqueda .rf-p-b fieldset input[name="refresh_captcha"] {
    display: block;
    width: 158px;
    max-width: 100%;
    box-sizing: border-box;
    margin: 2px 0 0;
    padding: 1px 4px;
    min-height: 22px;
    font-size: 11px;
    line-height: 1.1;
}

.consulta-php-skin #paramBusqueda .rf-p-b fieldset input[name="consultar"] {
    margin-top: 0;
    margin-left: 2px;
    margin-right: 0;
}

.consulta-php-skin #paramBusqueda .input-registro {
    width: 160px;
    max-width: 48%;
    min-width: 100px;
    margin-right: 0;
    padding: 2px 3px;
    min-height: 22px;
    border: 1px solid #7f9db9;
    vertical-align: middle;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

.consulta-php-skin #paramBusqueda .capt-input-row input[type="submit"] {
    min-height: 22px;
    padding: 1px 8px;
}

.consulta-php-skin #paramBusqueda .rf-p-b > div[style*="162b78"] label,
.consulta-php-skin #paramBusqueda .rf-p-b > div[style*="162b78"] b {
    color: #162b78;
    font-weight: bold;
    font-size: 12px;
}


.consulta-php-skin #paramBusqueda input[type="submit"] {
    background-image: linear-gradient(to bottom, #7ba0cd 0%, #5690c9 45%, #4a75b3 100%);
    color: #ffffff !important;
    border: 1px solid #3d6499;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 0;
    margin-bottom: 0;
    margin-right: 0;
    border-radius: 2px;
    min-height: 22px;
    line-height: 1.2;
}

.consulta-php-skin #paramBusqueda input[type="submit"]:hover {
    filter: brightness(1.03);
}

.consulta-php-skin table.rf-dt {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #ffffff;
    border: 1px solid #bdbdbd;
    margin-top: 0;
    margin-bottom: 0;
}

.consulta-php-skin table.rf-dt > thead > tr > th.rf-dt-shdr-c,
.consulta-php-skin table.rf-dt thead th.rf-dt-shdr-c {
    background-image: linear-gradient(to bottom, #7ba0cd 0%, #5690c9 40%, #4a75b3 100%);
    color: #ffffff;
    font-weight: bold;
    font-size: 12px;
    padding: 6px 5px;
    border-right: 1px solid rgba(255, 255, 255, 0.45);
    border-bottom: 1px solid #2b5a9e;
    border-top: 1px solid #8badde;
    text-align: center;
    vertical-align: middle;
}

.consulta-php-skin table.rf-dt thead th.rf-dt-shdr-c:last-child {
    border-right: none;
}

.consulta-php-skin table.rf-dt tbody td.rf-dt-c {
    padding: 6px 5px;
    border: 1px solid #c0c0c0;
    background-color: #ffffff;
    color: #222222;
    font-size: 12px;
    vertical-align: middle;
}

.consulta-php-skin table.rf-dt tbody tr.rf-dt-nd td.rf-dt-nd-c {
    padding: 8px 6px;
    border: 1px solid #c0c0c0;
    background-color: #ffffff;
    color: #111111;
    font-size: 12px;
    text-align: left;
    vertical-align: middle;
}

.consulta-php-skin table.rf-dt tbody tr.rf-dt-r:nth-child(even) .rf-dt-c {
    background-color: #f7f8fa;
}

.consulta-php-skin table.rf-dt .rf-dt-ftr td,
.consulta-php-skin table.rf-dt tfoot td.rf-dt-ftr-c {
    background-color: #c8c8c8;
    background-image: linear-gradient(to bottom, #d8d8d8, #c0c0c0);
    padding: 6px 5px;
    text-align: center;
    border: 1px solid #a8a8a8;
}

.consulta-php-skin .rf-ds-btn {
    display: inline-block;
    min-width: 2.1em;
    padding: 2px 7px;
    margin: 0 2px;
    background-image: linear-gradient(to bottom, #7ba0cd 0%, #5690c9 50%, #4a75b3 100%);
    color: #ffffff !important;
    border: 1px solid #3d6499;
    border-radius: 1px;
    font-size: 11px;
    font-weight: bold;
    text-decoration: none !important;
    cursor: pointer;
    line-height: 1.25;
}

.consulta-php-skin .rf-ds-btn:hover {
    filter: brightness(1.03);
    color: #ffffff !important;
}

.consulta-php-skin .rf-ds-btn[disabled],
.consulta-php-skin span.rf-ds-dis {
    opacity: 0.5;
    filter: saturate(0.65);
    pointer-events: none;
    cursor: default;
}

.consulta-php-skin .table-responsive fieldset {
    border: 1px solid #a8a8a8 !important;
    padding: 6px 10px !important;
    margin: 0 !important;
    background: #fafafa;
}

.consulta-php-skin a.link-certificado-print {
    font-weight: bold;
    font-size: 11px;
    color: #0000ee;
}

/* Modal certificado */.cert-modal-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
}

.cert-modal-overlay.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-modal-dialog {
    background: #ffffff;
    border: 2px solid #a8a8a8;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    padding: 0;
    width: min(560px, 92vw);
}

.cert-modal-dialog .hdr {
    background: #4a7ec7;
    color: #fff;
    font-weight: bold;
    padding: 10px 14px;
    font-family: Arial, Helvetica, sans-serif;
    background-image: linear-gradient(to bottom, #6ca0dc 0%, #4a7ec7 50%, #3a6eb5 100%);
}

.cert-modal-dialog .body {
    padding: 18px;
    font-size: 14px;
    line-height: 1.55;
    font-family: Arial, Helvetica, sans-serif;
}

.cert-modal-dialog .foot {
    padding: 12px 18px;
    text-align: right;
    border-top: 1px solid #ddd;
}

.cert-modal-dialog button {
    background: #4a7ec7;
    border: 1px solid #2b5a9e;
    color: #fff;
    padding: 6px 14px;
    cursor: pointer;
    font-weight: bold;
    background-image: linear-gradient(to bottom, #6ca0dc 0%, #4a7ec7 50%, #3a6eb5 100%);
}

/* Errores de formulario sin “card” Bootstrap */
.consulta-php-skin .form-error-msg {
    margin: 4px auto 8px;
    max-width: 85%;
    padding: 5px 8px;
    border: 1px solid #c62828;
    background: #ffebee;
    color: #b71c1c;
    font-size: 11px;
    text-align: left;
}
