body
{
    padding-top: 50px;
    padding-bottom: 20px;
}

.text-bold
{
    font-weight: bold;
}


/*Para que cuando este vacio el dd deje espacio*/
dd
{
	min-height: 1em;
}

/*Corrige un problema con el zoom del navegador*/
.input-group-btn > .btn
{
    height: 34px;
}

.datetime-group
{
	font-size: 0px; /*Los espacios y tabulaciones ocupan espacio y hacen que el 50% no funcione*/
}
.datetime-group input
{
	display:inline-block; 
	width: 50%;
}
.datetime-group input:first-of-type
{
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.datetime-group input:last-of-type
{
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.hidden
{
	display: none;
}

/*Corrige los abbr para firefox y chrome que soportan underline dotted*/
@-moz-document url-prefix() 
{
	abbr[title], abbr[data-original-title] 
	{
   		border-bottom: none;
   	}
}
@media all and (-webkit-min-device-pixel-ratio:0)
{
	abbr[title], abbr[data-original-title] 
	{
   		border-bottom: none;
   }
}


.mt-0
{
	margin-top: 0;
}
.mt-1
{
	margin-top: 0.25rem;
}
.mt-2
{
	margin-top: 0.5rem;
}
.mt-3
{
	margin-top: 1rem;
}
.mt-4
{
	margin-top: 1.5rem;
}
.mt-5
{
	margin-top: 3rem;
}
.mt-auto
{
	margin-top: auto;
}
.pt-0
{
	padding-top: 0;
}
.pt-1
{
	padding-top: 0.25rem;
}
.pt-2
{
	padding-top: 0.5rem;
}
.pt-3
{
	padding-top: 1rem;
}
.pt-4
{
	padding-top: 1.5rem;
}
.pt-5
{
	padding-top: 3rem;
}
.pt-auto
{
	padding-top: auto;
}

.mb-0
{
	margin-bottom: 0;
}
.mb-1
{
	margin-bottom: 0.25rem;
}
.mb-2
{
	margin-bottom: 0.5rem;
}
.mb-3
{
	margin-bottom: 1rem;
}
.mb-4
{
	margin-bottom: 1.5rem;
}
.mb-5
{
	margin-bottom: 3rem;
}
.mb-auto
{
	margin-bottom: auto;
}
.pb-0
{
	padding-bottom: 0;
}
.pb-1
{
	padding-bottom: 0.25rem;
}
.pb-2
{
	padding-bottom: 0.5rem;
}
.pb-3
{
	padding-bottom: 1rem;
}
.pb-4
{
	padding-bottom: 1.5rem;
}
.pb-5
{
	padding-bottom: 3rem;
}
.pb-auto
{
	padding-bottom: auto;
}

.ml-0
{
	margin-left: 0;
}
.ml-1
{
	margin-left: 0.25rem;
}
.ml-2
{
	margin-left: 0.5rem;
}
.ml-3
{
	margin-left: 1rem;
}
.ml-4
{
	margin-left: 1.5rem;
}
.ml-5
{
	margin-left: 3rem;
}
.ml-auto
{
	margin-left: auto;
}
.pl-0
{
	padding-left: 0;
}
.pl-1
{
	padding-left: 0.25rem;
}
.pl-2
{
	padding-left: 0.5rem;
}
.pl-3
{
	padding-left: 1rem;
}
.pl-4
{
	padding-left: 1.5rem;
}
.pl-5
{
	padding-left: 3rem;
}
.pl-auto
{
	padding-left: auto;
}

.mr-0
{
	margin-right: 0;
}
.mr-1
{
	margin-right: 0.25rem;
}
.mr-2
{
	margin-right: 0.5rem;
}
.mr-3
{
	margin-right: 1rem;
}
.mr-4
{
	margin-right: 1.5rem;
}
.mr-5
{
	margin-right: 3rem;
}
.mr-auto
{
	margin-right: auto;
}
.pr-0
{
	padding-right: 0;
}
.pr-1
{
	padding-right: 0.25rem;
}
.pr-2
{
	padding-right: 0.5rem;
}
.pr-3
{
	padding-right: 1rem;
}
.pr-4
{
	padding-right: 1.5rem;
}
.pr-5
{
	padding-right: 3rem;
}
.pr-auto
{
	padding-right: auto;
}

.my-0
{
	margin-top: 0;
	margin-bottom: 0;
}
.my-1
{
	margin-top: 0.25rem;
	margin-bottom: 0.25rem;
}
.my-2
{
	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
}
.my-3
{
	margin-top: 1rem;
	margin-bottom: 1rem;
}
.my-4
{
	margin-top: 1.5rem;
	margin-bottom: 1.5rem;
}
.my-5
{
	margin-top: 3rem;
	margin-bottom: 3rem;
}
.my-auto
{
	margin-top: auto;
	margin-bottom: auto;
}
.py-0
{
	padding-top: 0;
	padding-bottom: 0;
}
.py-1
{
	padding-top: 0.25rem;
	padding-bottom: 0.25rem;
}
.py-2
{
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
}
.py-3
{
	padding-top: 1rem;
	padding-bottom: 1rem;
}
.py-4
{
	padding-top: 1.5rem;
	padding-bottom: 1.5rem;
}
.py-5
{
	padding-top: 3rem;
	padding-bottom: 3rem;
}
.py-auto
{
	padding-top: auto;
	padding-bottom: auto;
}


.mx-0
{
	margin-left: 0;
	margin-right: 0;
}
.mx-1
{
	margin-left: 0.25rem;
	margin-right: 0.25rem;
}
.mx-2
{
	margin-left: 0.5rem;
	margin-right: 0.5rem;
}
.mx-3
{
	margin-left: 1rem;
	margin-right: 1rem;
}
.mx-4
{
	margin-left: 1.5rem;
	margin-right: 1.5rem;
}
.mx-5
{
	margin-left: 3rem;
	margin-right: 3rem;
}
.mx-auto
{
	margin-left: auto;
	margin-right: auto;
}
.px-0
{
	padding-left: 0;
	padding-right: 0;
}
.px-1
{
	padding-left: 0.25rem;
	padding-right: 0.25rem;
}
.px-2
{
	padding-left: 0.5rem;
	padding-right: 0.5rem;
}
.px-3
{
	padding-left: 1rem;
	padding-right: 1rem;
}
.px-4
{
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}
.px-5
{
	padding-left: 3rem;
	padding-right: 3rem;
}
.px-auto
{
	padding-left: auto;
	padding-right: auto;
}
/*Incrementamos el contraste*/
.table-striped>tbody>tr:nth-of-type(odd) 
{
    background-color: #f6f6f6;
}
.table-hover>tbody>tr:hover 
{
    background-color: #f1f1f1;
}

/*Separacion para los botones que estan en un .btn-toolbar*/
.btn-toolbar > .btn, .btn-toolbar > .btn-group, .btn-toolbar > .input-group
{
    margin-top: 5px;
    margin-bottom: 5px;
}

/*Para poder centrar los botones*/
.btn-toolbar.text-center .btn
{
    float: none !important;
}


/*Separacion grupos con botones en los dialogos*/
.modal-footer .btn-group + .btn-group, .modal-footer .btn-group + .btn, .modal-footer .btn + .btn-group {
    margin-bottom: 0;
    margin-left: 5px;
}

.ui-autocomplete
{
	max-height: 200px; 
	overflow-y: scroll; 
	overflow-x: hidden;
}

/*Para checkbox y radio disabled (requiere un span despues del input)*/
input[type="checkbox"]:disabled ~ span, input[type="radio"]:disabled ~ span {
	color: #999;
  	cursor:not-allowed;
}

/* Carousel */
.carousel-caption
{
    z-index: 10 !important;
}

    .carousel-caption p
    {
        font-size: 20px;
        line-height: 1.4;
    }

/*Para los link de una tabla*/
.table-actions
{
    white-space: nowrap;
}

    .table-actions > a, .table-actions > span
    {
        display: inline-block;
        min-width: 30px;
        text-align: center;
        margin: 0px 2px;
    }

        .table-actions > a:first-child, .table-actions > span:first-child
        {
            margin-left: 0px;
        }

    .table-actions > .disabled
    {
        color: #ccc;
    }
/*Para que el datepicker no salga por debajo de otros elementos*/
.ui-datepicker
{
    /*z-index: 2000 !important;*/
}

/*Hace que no se corten los textos largos*/
.dl-horizontal dt
{
    white-space: normal;
}

@media (min-width: 768px)
{
    .carousel-caption
    {
        z-index: 10 !important;
    }

    #dropdown-usuario-texto
    {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 150px;
        float: left;
        display: inline-block;
        margin-right: 2px;
    }
}

@media print
{
    body
    {
        padding-top: 0;
    }
}


@media screen and (max-width: 767px)
{
    .panel > .panel-collapse > .table-responsive
    {
        margin-bottom: 0;
        border: 0;
    }
}

.col-xs-auto
{
	width: auto;	
}
@media (min-width: 768px) 
{
	.col-sm-auto
	{
		width: auto;	
	}
}
@media (min-width: 992px) 
{
	.col-md-auto
	{
		width: auto;	
	}
}
@media (min-width: 1200px) 
{
	.col-lg-auto
	{
		width: auto;	
	}
}

.table-stack > tbody > tr, .table-stack > tbody > tr > th, .table-stack > tbody > tr > td
{
	float: left;
}
.table-stack > tbody > tr > th, .table-stack > tbody > tr > td
{
	border: 0;
}
.table-stack tr
{
    border-top: 1px solid #ddd;
}
.table-stack tr:first-child
{
	border-top: 0;
}
/* Hide table headers (but not display: none !important;, for accessibility) */
.table-stack > thead
{
    position: absolute;
    top: -9999px;
    left: -9999px;
}
.table-stack > tbody > tr > th:before, .table-stack > tbody > tr > td:before,
.table-stack > tfoot > tr > th:before, .table-stack > tfoot > tr > td:before
{
    display: inline-block;
    margin-bottom: 5px;
    text-align: left;
    float: left;
    font-weight: bold;
    content: attr(data-title) !important;
    width: 100%;
}

@media (min-width: 768px) 
{
	.table-expand-sm > tbody > tr, .table-expand-sm > tbody > tr > th, .table-expand-sm > tbody > tr > td
	{
		float: none;
	}
	.table-expand-sm.table-bordered th, .table-expand-sm.table-bordered  td
	{
		border: 1px solid #ddd !important;
	}
	.table-expand-sm tr
	{
		border-top: 0;
	}
	.table-expand-sm > thead
	{
		position: initial;
		top: initial;
		left: initial;
	}
	.table-expand-sm > tbody > tr > th:before, .table-expand-sm > tbody > tr > td:before,
	.table-expand-sm > tfoot > tr > th:before, .table-expand-sm > tfoot > tr > td:before
	{
		display: none;
	}
	.table-expand-sm td[class*=col-]
	{
		width: initial;
	}
}

@media (min-width: 992px) 
{
	.table-expand-md
	{
		display: table;	
	}
	.table-expand-md > tbody
	{
		display: table-row-group;
	}
	.table-expand-md > tbody > tr
	{
		display: table-row;
	}
	.table-expand-md > tbody > tr, .table-expand-md > tbody > tr > th, .table-expand-md > tbody > tr > td
	{
		float: none;
	}
	.table-expand-md.table-bordered th, .table-expand-md.table-bordered  td
	{
		border: 1px solid #ddd !important;
	}
	.table-expand-md.table-bordered tr
	{
		border: inherit;
	}
	.table-expand-md > thead
	{
		position: initial;
		top: initial;
		left: initial;
	}
	.table-expand-md > tbody > tr > th:before, .table-expand-md > tbody > tr > td:before,
	.table-expand-md > tfoot > tr > th:before, .table-expand-md > tfoot > tr > td:before
	{
		display: none;
	}
	.table-expand-md td[class*=col-]
	{
		width: initial;
	}
}
@media (min-width: 1200px) 
{
	.table-expand-lg
	{
		display: table;	
	}
	.table-expand-lg > tbody
	{
		display: table-row-group;
	}
	.table-expand-lg > tbody > tr
	{
		display: table-row;
	}
	.table-expand-lg > tbody > tr, .table-expand-lg > tbody > tr > th, .table-expand-lg > tbody > tr > td
	{
		float: none;
	}
	.table-expand-lg.table-bordered th, .table-expand-lg.table-bordered  td
	{
		border: 1px solid #ddd !important;
	}
	.table-expand-lg.table-bordered tr
	{
		border: inherit;
	}
	.table-expand-lg > thead
	{
		position: initial;
		top: initial;
		left: initial;
	}
	.table-expand-lg > tbody > tr > th:before, .table-expand-lg > tbody > tr > td:before,
	.table-expand-lg > tfoot > tr > th:before, .table-expand-lg > tfoot > tr > td:before
	{
		display: none;
	}
	.table-expand-lg td[class*=col-]
	{
		width: initial;
	}
}


/* Corregimos fallos de bootstrap*/
.panel-group .panel-heading + .panel-collapse > .table,
.panel-group .panel-heading + .panel-collapse > .table-responsive
{
    border-top: 1px solid #ddd !important;
}

.panel-collapse > .table,
.panel-collapse > .table-responsive > .table
{
    margin-bottom: 0 !important;
    border: 0 !important;
}

.panel-collapse > .table-bordered > thead > tr > th:first-child,
.panel-collapse > .table-bordered > thead > tr > td:first-child,
.panel-collapse > .table-bordered > tbody > tr > th:first-child,
.panel-collapse > .table-bordered > tbody > tr > td:first-child,
.panel-collapse > .table-bordered > tfoot > tr > th:first-child,
.panel-collapse > .table-bordered > tfoot > tr > td:first-child,
.panel-collapse > .table-responsive > .table-bordered > thead > tr > th:first-child,
.panel-collapse > .table-responsive > .table-bordered > thead > tr > td:first-child,
.panel-collapse > .table-responsive > .table-bordered > tbody > tr > th:first-child,
.panel-collapse > .table-responsive > .table-bordered > tbody > tr > td:first-child,
.panel-collapse > .table-responsive > .table-bordered > tfoot > tr > th:first-child,
.panel-collapse > .table-responsive > .table-bordered > tfoot > tr > td:first-child
{
    border-left: 0 !important;
}

.panel-collapse > .table-bordered > thead > tr > th:last-child,
.panel-collapse > .table-bordered > thead > tr > td:last-child,
.panel-collapse > .table-bordered > tbody > tr > th:last-child,
.panel-collapse > .table-bordered > tbody > tr > td:last-child,
.panel-collapse > .table-bordered > tfoot > tr > th:last-child,
.panel-collapse > .table-bordered > tfoot > tr > td:last-child,
.panel-collapse > .table-responsive > .table-bordered > thead > tr > th:last-child,
.panel-collapse > .table-responsive > .table-bordered > thead > tr > td:last-child,
.panel-collapse > .table-responsive > .table-bordered > tbody > tr > th:last-child,
.panel-collapse > .table-responsive > .table-bordered > tbody > tr > td:last-child,
.panel-collapse > .table-responsive > .table-bordered > tfoot > tr > th:last-child,
.panel-collapse > .table-responsive > .table-bordered > tfoot > tr > td:last-child
{
    border-right: 0 !important;
}

.panel-collapse > .table-bordered > tbody > tr:last-child > th,
.panel-collapse > .table-bordered > tbody > tr:last-child > td,
.panel-collapse > .table-bordered > tfoot > tr:last-child > th,
.panel-collapse > .table-bordered > tfoot > tr:last-child > td .panel > .panel-collapse > .table-responsive > .table-bordered > tbody > tr:last-child > th,
.panel-collapse > .table-responsive > .table-bordered > tbody > tr:last-child > td,
.panel-collapse > .table-responsive > .table-bordered > tfoot > tr:last-child > th,
.panel-collapse > .table-responsive > .table-bordered > tfoot > tr:last-child > td
{
    border-bottom: 0 !important;
}

/*Autocomplete separador*/
.ui-menu-item > hr
{
    margin-top: 0;
    margin-bottom: 0;
    border: 0;
    border-top: 1px solid #cccccc;
}


/*Boton personalizado que combina default con primary activo*/
.btn-contrast
{
    color: #333;
    background-color: #fff;
    border-color: #ccc;
}

    .btn-contrast:focus,
    .btn-contrast.focus
    {
        color: #333;
        background-color: #e6e6e6;
        border-color: #8c8c8c;
    }

    .btn-contrast:hover
    {
        color: #333;
        background-color: #e6e6e6;
        border-color: #adadad;
    }

    .btn-contrast:active,
    .btn-contrast.active,
    .open > .dropdown-toggle.btn-contrast
    {
        color: #fff;
        background-color: #286090;
        border-color: #204d74;
    }

        .btn-contrast:active:hover,
        .btn-contrast.active:hover,
        .open > .dropdown-toggle.btn-contrast:hover,
        .btn-contrast:active:focus,
        .btn-contrast.active:focus,
        .open > .dropdown-toggle.btn-contrast:focus,
        .btn-contrast:active.focus,
        .btn-contrast.active.focus,
        .open > .dropdown-toggle.btn-contrast.focus
        {
            color: #fff;
            background-color: #204d74;
            border-color: #122b40;
        }

    .btn-contrast:active,
    .btn-contrast.active,
    .open > .dropdown-toggle.btn-contrast
    {
        background-image: none;
    }

    .btn-contrast.disabled,
    .btn-contrast[disabled],
    fieldset[disabled] .btn-contrast,
    .btn-contrast.disabled:hover,
    .btn-contrast[disabled]:hover,
    fieldset[disabled] .btn-contrast:hover,
    .btn-contrast.disabled:focus,
    .btn-contrast[disabled]:focus,
    fieldset[disabled] .btn-contrast:focus,
    .btn-contrast.disabled.focus,
    .btn-contrast[disabled].focus,
    fieldset[disabled] .btn-contrast.focus,
    .btn-contrast.disabled:active,
    .btn-contrast[disabled]:active,
    fieldset[disabled] .btn-contrast:active,
    .btn-contrast.disabled.active,
    .btn-contrast[disabled].active,
    fieldset[disabled] .btn-contrast.active
    {
        background-color: #fff;
        border-color: #ccc;
    }

    .btn-contrast .badge
    {
        color: #fff;
        background-color: #333;
    }

/*Link que tiene color de texto normal*/
a.no-color:link,
a.no-color:visited,
a.no-color:hover,
a.no-color:active
{
    color: inherit !important;
}


/*Para que ocupen todo el ancho en las tablas los input group*/
th > div.input-group, td > div.input-group
{
    width: 100%;
}

textarea
{
    max-width: 100%;
}

/*TiTaToggle traduccion*/
.checkbox-slider--a input + span:after
{
    content: "No";
}

.checkbox-slider--a input:checked + span:after
{
    content: "Sí";
}

/***Mensajes**************************************************************/
#msg
{
	display: none;
	position: fixed;
	top: 30px;
	left: 0;
	right: 0; 
	z-index: 5000;
}
#msg .panel-body > .close
{
	font-size: 40px;
}
#msg .panel-body
{
	padding: 5px;
}
#msg-content .alert
{
	margin-bottom: 5px;
}
#msg-content .alert:last-child
{
	margin-bottom: 0;
} 
.alert > ul
{
	padding-left: 10px;
}

/***Imagenes**************************************************************/
.img-autocomplete
{
    width: 20px;
}

.img-media
{
    max-width: 150px;
}

/***Datatables************************************************************/

/*Hace que la linea se pueda partir para que no estropee el diseño movil al no caber la linea*/
div.dataTables_wrapper div.dataTables_info
{
    white-space: normal;
}

/*Corregimos un fallo con los bordes cuando se usan rowspan*/
.table-bordered.dataTable
{
	border-right: 0px;
}
table.table-bordered.dataTable th:last-child, table.table-bordered.dataTable th:last-child, 
table.table-bordered.dataTable td:last-child, table.table-bordered.dataTable td:last-child 
{
    border-right-width: 1px;
}

/***Alerts************************************************************/
.vex-theme-default
{
	font-size: 16px;
}
.vex.vex-theme-default .vex-dialog-button
{
	text-transform: none;
}
.add-file:not(.hidden) + .file-ajax-show
{
 	margin-top: 10px;
}
.file-ajax-show
{
	margin-bottom: 10px;
}


/*A los figcaption de un form-group le damos el mismo estilo que las label*/
figure.form-group > figcaption, .form-group > figure > figcaption
{
    display: block; /*inline-block;*/
    max-width: 100%;
    margin-bottom: 5px;
    font-weight: bold;
}

[v-cloak] 
{ 
    display:none;
}

