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;
}

/*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;
   }
}

/*Para añadir separación entre columnas cuando terminan o empiezan con elementos que no tienen margenes, como los botones o imagenes*/
.space-bottom
{
    padding-bottom: 10px;
}

.space-top
{
    padding-top: 10px;
}
.no-space-bottom
{
    padding-bottom: 0px;
}

.no-space-top
{
    padding-top: 0px;
}
.no-margin-bottom
{
    margin-bottom: 0px;
}

.no-margin-top
{
    margin-top: 0px;
}

.hr-condensed
{
	margin-top: 5px;
	margin-bottom: 5px;
}



/*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;
}

/*Separacion entre .btn-toolbar*/
.btn-toolbar
{
    margin-right: 20px;
}

/*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;
    }
}


/* Corregimos fallos de bootstrap*/
.panel-group .panel-heading + .panel-collapse > .table,
.panel-group .panel-heading + .panel-collapse > .table-responsive
{
    border-top: 1px solid #ddd;
}

.panel > .panel-collapse > .table,
.panel > .panel-collapse > .table-responsive > .table
{
    margin-bottom: 0;
    border: 0;
}

.panel > .panel-collapse > .table-bordered > thead > tr > th:first-child,
.panel > .panel-collapse > .table-bordered > thead > tr > td:first-child,
.panel > .panel-collapse > .table-bordered > tbody > tr > th:first-child,
.panel > .panel-collapse > .table-bordered > tbody > tr > td:first-child,
.panel > .panel-collapse > .table-bordered > tfoot > tr > th:first-child,
.panel > .panel-collapse > .table-bordered > tfoot > tr > td:first-child,
.panel > .panel-collapse > .table-responsive > .table-bordered > thead > tr > th:first-child,
.panel > .panel-collapse > .table-responsive > .table-bordered > thead > tr > td:first-child,
.panel > .panel-collapse > .table-responsive > .table-bordered > tbody > tr > th:first-child,
.panel > .panel-collapse > .table-responsive > .table-bordered > tbody > tr > td:first-child,
.panel > .panel-collapse > .table-responsive > .table-bordered > tfoot > tr > th:first-child,
.panel > .panel-collapse > .table-responsive > .table-bordered > tfoot > tr > td:first-child
{
    border-left: 0;
}

.panel > .panel-collapse > .table-bordered > thead > tr > th:last-child,
.panel > .panel-collapse > .table-bordered > thead > tr > td:last-child,
.panel > .panel-collapse > .table-bordered > tbody > tr > th:last-child,
.panel > .panel-collapse > .table-bordered > tbody > tr > td:last-child,
.panel > .panel-collapse > .table-bordered > tfoot > tr > th:last-child,
.panel > .panel-collapse > .table-bordered > tfoot > tr > td:last-child,
.panel > .panel-collapse > .table-responsive > .table-bordered > thead > tr > th:last-child,
.panel > .panel-collapse > .table-responsive > .table-bordered > thead > tr > td:last-child,
.panel > .panel-collapse > .table-responsive > .table-bordered > tbody > tr > th:last-child,
.panel > .panel-collapse > .table-responsive > .table-bordered > tbody > tr > td:last-child,
.panel > .panel-collapse > .table-responsive > .table-bordered > tfoot > tr > th:last-child,
.panel > .panel-collapse > .table-responsive > .table-bordered > tfoot > tr > td:last-child
{
    border-right: 0;
}

.panel > .panel-collapse > .table-bordered > tbody > tr:last-child > th,
.panel > .panel-collapse > .table-bordered > tbody > tr:last-child > td,
.panel > .panel-collapse > .table-bordered > tfoot > tr:last-child > th,
.panel > .panel-collapse > .table-bordered > tfoot > tr:last-child > td .panel > .panel-collapse > .table-responsive > .table-bordered > tbody > tr:last-child > th,
.panel > .panel-collapse > .table-responsive > .table-bordered > tbody > tr:last-child > td,
.panel > .panel-collapse > .table-responsive > .table-bordered > tfoot > tr:last-child > th,
.panel > .panel-collapse > .table-responsive > .table-bordered > tfoot > tr:last-child > td
{
    border-bottom: 0;
}

@media screen and (max-width: 767px)
{
    .panel > .panel-collapse > .table-responsive
    {
        margin-bottom: 0;
        border: 0;
    }
}


/*Ajustes para el movil*/
@media only screen and (max-width: 767px)
{

    /* Force table to not be like tables anymore */
    .table-stack, .table-stack-1, .table-stack-2, .table-stack-3, .table-stack-4, .table-stack-5, .table-stack-6,
    /* thead, tbody, tfoot */
    .table-stack > *, .table-stack-1 > *, .table-stack-2 > *, .table-stack-3 > *, .table-stack-4 > *, .table-stack-5 > *, .table-stack-6 > *,
    /* tr */
    .table-stack > * > *, .table-stack-1 > * > *, .table-stack-2 > * > *, .table-stack-3 > * > *, .table-stack-4 > * > *, .table-stack-5 > * > *, .table-stack-6 > * > *,
    /* th, td */
    .table-stack > * > * > *, .table-stack-1 > * > * > *, .table-stack-2 > * > * > *, .table-stack-3 > * > * > *,
    .table-stack-4 > * > * > *, .table-stack-5 > * > * > *, .table-stack-6 > * > * > *
    {
        display: block !important;
    }

        /* Hide table headers (but not display: none !important;, for accessibility) */
        .table-stack > thead > tr, .table-stack-1 > thead > tr, .table-stack-2 > thead > tr, .table-stack-3 > thead > tr,
        .table-stack-4 > thead > tr, .table-stack-5 > thead > tr, .table-stack-6 > thead > tr
        {
            position: absolute !important;
            top: -9999px !important;
            left: -9999px !important;
        }

        .table-stack tr > td:last-child, table-stack-1 tr > td:last-child, .table-stack-2 tr > td:last-child, .table-stack-3 tr > td:last-child,
        .table-stack-4 tr > td:last-child, .table-stack-5 tr > td:last-child, .table-stack-6 tr > td:last-child
        {
            border-bottom: 5px solid #ddd !important;
        }

        .table-stack > tbody:last-child, .table-stack-1 > tbody:last-child > tr:last-child > td:last-child, .table-stack-2 > tbody:last-child > tr:last-child > td:last-child,
        .table-stack-3 > tbody:last-child > tr:last-child > td:last-child, .table-stack-4 > tbody:last-child > tr:last-child > td:last-child,
        .table-stack-5 > tbody:last-child > tr:last-child > td:last-child, .table-stack-6 > tbody:last-child > tr:last-child > td:last-child
        {
            border-bottom-width: 0px !important;
        }

        .table-stack > * > * > td, .table-stack-1 > * > * > td, .table-stack-2 > * > * > td, .table-stack-3 > * > * > td,
        .table-stack-4 > * > * > td, .table-stack-5 > * > * > td, .table-stack-6 > * > * > td
        {
            /* Behave  like a "row" */
            border: none !important;
            border-bottom: 1px solid #ddd !important;
            position: relative !important;
            white-space: normal !important;
            /*text-align:left !important;*/
            min-height: 37px !important;
        }

            .table-stack-6 > * > * > td[data-title]:before,
            .td-stack-6[data-title]:before
            {
                width: 50% !important;
            }

            .table-stack-5 > * > * > td[data-title]:before,
            .td-stack-5[data-title]:before
            {
                width: 41.66666667% !important;
            }

            .table-stack-4 > * > * > td[data-title]:before,
            .td-stack-4[data-title]:before
            {
                width: 33.33333333% !important;
            }

            .table-stack-3 > * > * > td[data-title]:before,
            .td-stack-3[data-title]:before
            {
                width: 25% !important;
            }

            .table-stack-2 > * > * > td[data-title]:before,
            .td-stack-2[data-title]:before
            {
                width: 16.66666667% !important;
            }

            .table-stack-1 > * > * > td[data-title]:before,
            .td-stack-1[data-title]:before
            {
                width: 8.33333333% !important;
            }

            .table-stack > * > * > td:before,
            .table-stack-1 > * > * > td:before, .table-stack-2 > * > * > td:before, .table-stack-3 > * > * > td:before,
            .table-stack-4 > * > * > td:before, .table-stack-5 > * > * > td:before, .table-stack-6 > * > * > td:before
            {
                display: inline-block;
                margin-bottom: 5px;
                text-align: left !important;
                float: left;
                font-weight: bold !important;
                /* Label the data */
                content: attr(data-title) !important;
            }


    /*Autocomplete con todo el ancho de pantalla*/
    .ui-autocomplete
    {
        left: 15px !important;
        right: 15px !important;
        width: auto !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;
}