﻿
/*** ===================================================== NEW STYLE ELEMENTES ===================================================== ***/
/* Last Update: 20/08/2025 => Bootstrap upgrade to V5*/

:root {
    --bv-reference-rgb: 0, 4,158;
    --bv-reference-hex: #00049E;
    --bv-primary-rgb: 44, 50,255;
    --bv-primary-hex: #2C32FF;
    --bv-secondary-rgb: 185, 186,255;
    --bv-secondary-hex: #B9BAFF;
    --bv-dark-secondary-rgb: 145, 133, 190;
    --bv-dark-secondary-hex: #9185BE;
}

.bg-reference {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bv-reference-rgb), var(--bs-bg-opacity)) !important;
}

.bg-primary {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bv-primary-rgb), var(--bs-bg-opacity)) !important;
}

.bv-btn-reference {
    color: #fff;
    background-color: var(--bv-reference-hex);
    border: 0px;
    font-weight: bold;
}

.btn-bv-reference {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--bv-reference-hex);
    --bs-btn-border-color: var(--bv-reference-hex);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--bv-primary-hex);
    --bs-btn-hover-border-color: var(--bv-primary-hex);
    --bs-btn-focus-shadow-rgb: none;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--bv-primary-hex);
    --bs-btn-active-border-color: var(--bv-primary-hex);
    --bs-btn-active-shadow: none;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--bv-reference-hex);
    --bs-btn-disabled-border-color: var(--bv-reference-hex);
}

.bv-btn-primary {
    color: #fff;
    background-color: var(--bv-primary-hex);
    border: 0px;
    font-weight: bold;
}

.bv-bg-nav {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bv-secondary-rgb), var(--bs-bg-opacity)) !important;
    border-bottom: 10px solid var(--bv-primary-hex);
}

.text-reference {
    --bs-text-opacity: 1;
    color: rgba(var(--bv-reference-rgb), var(--bs-text-opacity)) !important;
}


#filterAccordion div h2 button {
    background-color: var(--bv-secondary-hex);
}


/*------ Custom Tables ------*/
table {
    margin-top: 0.75em;
}

.gradient-style th {
    font-weight: normal;
    background: var(--bv-primary-hex);
    color: var(--bv-secondary-hex);
}

.gradient-style th,
.gradient-style th {
    padding: 1.2rem 0.5rem 0.4rem 0.5rem;
}

/* Tablecolumn widths*/
.tb-col-1 {
    width: 5%;
}

.tb-col-2 {
    width: 10%;
}

.tb-col-3 {
    width: 15%;
}

.tb-col-4 {
    width: 20%;
}

.tb-col-5 {
    width: 25%;
}


/* Limit checbox size to actual size */
table tr td input.check-box {
    width: 25px;
}

dl dd input.check-box {
    width: 25px;
}

/* JSON Editor styles*/
#jsoneditor input[type="checkbox"] {
    width: 25px;
}




/* Estilos para el modal a pantalla casi completa */
.modal-dialog.modal-xl {
    height: calc(100vh - 60px); /* 30px de espacio arriba y abajo */
    margin: 30px auto;
    display: flex;
    flex-direction: column;
}

.modal-xl .modal-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modal-xl .modal-body {
    flex: 1;
    padding: 0;
    overflow: hidden; /* Evita scroll en el modal-body */
    position: relative;
}

/* Contenedor del JSONEditor con altura fija */
#jsoneditor-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

#jsoneditor {
    width: 100%;
    height: 100%;
}

/* Asegurarse que jsoneditor tenga la altura correcta */
#jsoneditor-container .jsoneditor {
    height: 100% !important;
}

/* Ajustes para el modal header y footer */
.modal-xl .modal-header,
.modal-xl .modal-footer {
    flex-shrink: 0; /* Evita que el header/footer se reduzcan */
}

.chosen-container-active {
    margin-top: -0.2rem !important;
}

/* Ajustes a select multiple*/
div.col-md-6 .chosen-container-multi .chosen-choices {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 8px;
    width: 100%;
    height: auto !important;
    border: 1px solid #dee2e6;
    background-color: #fff;
    background-image: linear-gradient(0deg, #fff, #fff);
    border-radius: 10px;
    font-family: var(--bs-body-font-family) !important;
    box-shadow: none;
    margin-top: 0.5rem !important;
}

    div.col-md-6 .chosen-container-multi .chosen-choices li.search-choice {
        position: relative;
        margin: 0px 3px;
        padding: 8px 25px 8px 8px;
        border: 1px solid #dee2e6;
        max-width: 100%;
        border-radius: 5px;
        background-color: #ffffff;
        background-image: linear-gradient(0deg, #fff, #fff);
        background-size: 100% 19px;
        background-clip: padding-box;
        color: #000;
        line-height: 13px;
        cursor: default;
        font-family: var(--bs-body-font-family) !important;
        box-shadow: none;
    }

        div.col-md-6 .chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
            position: absolute;
            top: 10px;
            right: 5px;
            display: block;
            width: 12px;
            height: 12px;
            background: url('chosen-sprite.png') -42px 1px no-repeat;
            font-size: 1px;
            font-family: var(--bs-body-font-family) !important;
            box-shadow: none;
        }

div.col-md-6 .chosen-container .chosen-results {
    color: #000000;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0 4px 4px 0;
    padding: 0 0 0 4px;
    max-height: 240px;
    -webkit-overflow-scrolling: touch;
}

div.col-md-6 .chosen-container .chosen-drop {
    position: absolute;
    top: 85%;
    z-index: 1010;
    width: 100%;
    border: 1px solid #dee2e6;
    border-top: 0;
    border-radius: 0px 0px 5px 5px;
    background: #fff;
    box-shadow: none;
}

div.col-md-6 .chosen-container .chosen-results li.highlighted {
    background-color: #706F6F;
    background-image: none;
    color: #fff;
}
/*** ===================================================== OLD STYLE ELEMENTES ===================================================== ***/
/* Previous From: 20/08/2025*/

/* Set padding to keep content from hitting the edges */
.body {
    padding-left: 5px;
    padding-right: 2px;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
textarea {
    //max-width: 280px;
    //width:100%;
}

a {
    font-weight: 500;
    text-decoration: none;
    padding: 0;
    font-weight: bold;
    color: var(--bv-reference-hex);
}

a:hover {
    color: #1E1E1E;
}

/* forms */
fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

    fieldset legend {
        display: none;
    }

    fieldset ol {
        padding: 0;
        list-style: none;
    }

        fieldset ol li {
            padding-bottom: 5px;
        }

label {
    display: block;
    font-size: .8em;
    font-weight: 600;
}

input, textarea {
    border: 1px solid #B9BAFF;
    background: #fff;
    color: #333;
    font-size: .8em;
    margin: 5px 0 6px 0;
    padding: 5px;
    width: 300px;
}

textarea {
    font-family: inherit;
    width: 450px;
}

    input:focus, textarea:focus {
        border: 1px solid #2C32FF;
    }

input[type="submit"],
input[type="button"],
button {
    cursor: pointer;
    width: auto;
}

td input[type="submit"],
td input[type="button"],
td button {
   font-size: 1em;
   padding: 4px;
   margin-right: 4px;
}

/* styles for validation helpers */
.field-validation-error {
    color: #b94a48;
}

.field-validation-valid {
    display: none;
}

input.input-validation-error {
    border: 1px solid #b94a48;
}

.validation-summary-errors {
    color: #b94a48;
}

.validation-summary-valid {
    display: none;
}


label {
    display: block;
}

/* tables
----------------------------------------------------------*/

th {
    font-size: .9em;
    text-align: left;
    border: none 0px;
    padding-left: 0;
}

    th a {
        display: block;
        position: relative;
        font-weight: bold;
    }

        th a:link, th a:visited, th a:active, th a:hover {
            color: #F1F1F1;
            font-weight: 500;
            text-decoration: none;
            padding: 0;
            font-weight: bold;
        }

        th a:hover {
            font-weight: 500;
            color: #1E1E1E;
            font-weight: bold;
        }

    th.asc a, th.desc a {
        margin-right: .75em;
    }

    th.asc a:after, th.desc a:after {
        display: block;
        position: absolute;
        right: 0em;
        top: 0;
        font-size: 0.9em;
    }

    th.asc a:after {
        content: '▲';
    }

    th.desc a:after {
        content: '▼';
    }

td {
    padding: 0.25em 2em 0.25em 0em;
    border: 0 none;
}

tr.pager td {
    padding: 0 0.25em 0 0;
}


.index-table {
    /*cellspacing*/
    border-collapse: collapse; 
    border-spacing: 0px 0px;
    /*align (center)
    margin: 0 auto;*/
}

.index-table th, td{
    /*cellpadding*/
    padding: 0px 0px;
    /*valign*/
    vertical-align: top;
}

.gradient-style {
    /*font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif;
	font-size: 12px;
	margin: 45px;
	width: 480px;*/
    text-align: left;
    border-collapse: collapse;
    font-size: 0.75rem;
}
.gradient-style td {
    padding: 3px 8px;
    border-bottom: 1px solid #00049F;
    color: #1e1e1e;
    border-top: 1px solid #fff;
    background: #ffffff;
}
.gradient-style tfoot tr td
{
	background: #e8edff;
	/*font-size: 12px;*/
	color: #99c;
}
.gradient-style tbody tr:hover td
{
    background: #B9BAFF;
    color: #1e1e1e;
}
/* Us style  */
.navbar-inverse {
    background-color: #B9BAFF;
    border-bottom: 10px solid #2C32FF;
}

.navbar-inverse .navbar-brand {
    color: #00049F;
}

.navbar-inverse .navbar-brand:hover,
.navbar-inverse .navbar-brand:focus {
    color: #1E1E1E;
    background-color: transparent;
}

.navbar-inverse .navbar-nav > li > a {
    color: #00049F;
}

.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
    color: #1E1E1E;
    background-color: transparent;
}

.navbar-inverse .navbar-nav > .open > a,
.navbar-inverse .navbar-nav > .open > a:hover,
.navbar-inverse .navbar-nav > .open > a:focus {
    color: #00049F;
    background-color: #B9BAFF;
}
