@import url('https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap');

@media print {
    @page {
        size: A3 landscape;
        margin: 0;
    }

    @page {
        size: A3 portrait;
        margin: 0;
    }

    body, html {
        font-size: 14px;
        margin: 0px;
        padding: 10px;
    }

    * {
        page-break-before: auto;
        page-break-after: auto;
    }

    #print-area {
        width: 100%;
        page-break-inside: avoid;
    }

    #print-area .th-filters,
    #print-area #btn-apply-filters,
    #print-area #btn-print
    {
        display: none;
    }
}


html, body {
    background: #F5F5F5 !important;
    font-family: 'Roboto', sans-serif;
    height: 100%;
    min-height: 100%;
}

#content {
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 2px 1px rgba(181, 181, 181, 0.4);
}

.container-header {
    background: #0099DD;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/****************** Sidebar ****************/

.wrapper {
    display: flex;
    align-items: stretch;
    height: auto;
    min-height: calc(100% - 126px);
    position: relative;
}

#sidebar {
    min-width: 250px;
    max-width: 250px;
}

/* Shrinking the sidebar from 250px to 80px and center aligining its content*/
#sidebar.active {
    min-width: 80px;
    max-width: 80px;
    text-align: center;
}

#sidebar {
    min-width: 250px;
    max-width: 250px;
    height: auto;
}

a[data-toggle="collapse"] {
    position: relative;
}

.dropdown-toggle::after {
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

/* Toggling the sidebar header content, hide the big heading [h3] and showing the small heading [strong] and vice versa*/
/*#sidebar .sidebar-header strong {*/
/*    display: none;*/
/*}*/

/*#sidebar.active .sidebar-header h3 {*/
/*    display: none;*/
/*}*/

/*#sidebar.active .sidebar-header strong {*/
/*    display: block;*/
/*}*/

#sidebar ul li a {
    text-align: left;
}

#sidebar.active ul li a {
    padding: 20px 10px;
    text-align: center;
    font-size: 0.85em;
}

#sidebar.active ul li a i {
    margin-right: 0;
    display: block;
    font-size: 1.8em;
    margin-bottom: 5px;
}

/* Same dropdown links padding*/
#sidebar.active ul ul a {
    padding: 10px !important;
}

/* Changing the arrow position to bottom center position,
   translateX(50%) works with right: 50%
   to accurately  center the arrow */
#sidebar.active .dropdown-toggle::after {
    top: auto;
    bottom: 10px;
    right: 50%;
    -webkit-transform: translateX(50%);
    -ms-transform: translateX(50%);
    transform: translateX(50%);
}

@media (max-width: 768px) {
    /* 80px and its content aligned to centre. Pushing it off the screen with the
       negative left margin
    */
    #sidebar.active {
        min-width: 80px;
        max-width: 80px;
        text-align: center;
        margin-left: -80px !important;
    }

    /* Reappearing the sidebar on toggle button click */
    #sidebar {
        margin-left: 0;
    }

    /* Toggling the sidebar header content,
       hide the big heading [h3] and showing the small heading [strong] and vice versa
    */
    #sidebar .sidebar-header strong {
        display: none;
    }

    #sidebar.active .sidebar-header h3 {
        display: none;
    }

    #sidebar.active .sidebar-header strong {
        display: block;
    }

    /* Downsize the navigation links font size */
    #sidebar.active ul li a {
        padding: 20px 10px;
        font-size: 0.85em;
    }

    #sidebar.active ul li a i {
        margin-right: 0;
        display: block;
        font-size: 1.8em;
        margin-bottom: 5px;
    }

    /* Adjust the dropdown links padding*/
    #sidebar.active ul ul a {
        padding: 10px !important;
    }

    /* Changing the arrow position to bottom center position,
      translateX(50%) works with right: 50%
      to accurately  center the arrow */
    .dropdown-toggle::after {
        -webkit-transform: translateX(50%);
        -ms-transform: translateX(50%);
        transform: translateX(50%);
    }
}

/*
    ADDITIONAL DEMO STYLE, NOT IMPORTANT TO MAKE THINGS WORK BUT TO MAKE IT A BIT NICER :)
*/

body {
    font-family: 'Roboto', sans-serif;
    background: #fafafa;
}

p {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    line-height: 1.7em;
    color: black;
}

a, a:hover, a:focus {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
}

#sidebar {
    /* don't forget to add all the previously mentioned styles here too */
    background: #34495D;
    color: #fff;
    transition: all 0.3s;
}

#sidebar .sidebar-header {
    padding: 20px;
    background: #34495D;
}

#sidebar ul.components {
    padding: 20px 0;
}

#sidebar ul p {
    color: #fff;
    padding: 10px;
}

#sidebar ul li a {
    padding: 10px;
    font-size: 1.1em;
    display: block;
}

#sidebar ul li a:hover {
    color: #7386D5;
    background: #fff;
}

#sidebar ul li.active > a, a[aria-expanded="true"] {
    color: #fff;
    background: #01a8dd;
}

ul ul a {
    font-size: 0.9em !important;
    padding-left: 30px !important;
    background: #01a8dd;
}

/****************** Color de texto ****************/

.color-white {
    color: #F5F5F5;
}

.color-blue-dark-2{
    color: #202C39;
}

.color-blue-dark {
    color: #23475E;
}

.color-blue {
    color: #3598D3;
}

.color-gray {
    color: gray;
}

.color-red {
    color: #e74c3c;
}

.color-red-medium {
    color: red !important;
}

.color-green {
    color: #51A451;
}

.color-black {
    color: #000000;
}

/****************** Color de fondo ****************/

.bg-green {
    background-color: #51A451;
}

.bg-blue-light-1{
    background-color: #2EA5D9;
}

.bg-blue-dark-1{
    background-color: #34495D;
}

.footer {
    background: #222F3E;
    color: #FFFFFF;
}

/********************* shadow text ***************/
.text-shadow{
    text-shadow: 0px 6px 6px #00000065;
}

/******************** Image background ****************/
.bg-image-login{
    background-image: url("../img/login.png");
    background-size: cover;
    background-repeat: no-repeat;
}

.bg-image-welcome{
    background-image: url("../img/bienvenido.png");
    background-size: cover;
    background-repeat: no-repeat;
}

.bg-image-header{
    background-image: url("../img/header.jpg");
    background-size: cover;
    background-repeat: no-repeat;
}

.text-decoration-underline{
    text-decoration: underline;
}

/**************************************/
/* Button                             */

.btn-light {
    color: #0099DD !important;
    font-weight: bold;
}

/**************************************/
/* Tables */

.table > thead > tr:nth-child(1) > th {
    padding-bottom: 0;
}

.table > thead > tr:nth-child(2) > th {
    border-top: none;
    padding-top: 0;
}

.table > thead > tr:only-child > th {
    padding: 12px 8px 8px;
}

.table > thead > tr > th {
    background: white;
    color: black;

    border-bottom: solid 0.15em #DDDFE0;
    /*border-top: solid 1px #aec6d4;*/
}

.table > thead > tr > th .form-control {
    height: 32px;
    padding: 4px 16px 4px;
}

.table > tbody > tr > td {
    vertical-align: middle;
    font-size: 0.95rem;
}

.table-compat > thead > tr > th {
    padding: 8px !important;
}

.table-responsive > .table-striped > thead > tr,
.table-responsive > .table-striped > tbody > tr{
    background-color: white;
    border-bottom: solid 0.15em #DDDFE0 !important;
    color: #01A8DD;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #F5F5F5;
    border-bottom: solid 0.15em #01A8DD !important;
    color: #23475E;
}

/*******************************************/
/* Autocomplete*/

.autocomplete-suggestions {
    background: #f6f6f6;
    padding: 4px;
}

.autocomplete-suggestions .autocomplete-suggestion {
    cursor: pointer;
    padding: 8px;
}

.autocomplete-suggestions .autocomplete-suggestion:hover {
    background: #01A8DD;
    color: #FFFFFF;
}

/*******************************************/
/* Paginator */

.pagination {
    margin-left: 1rem;
}

.popover{
    max-width: 100%; /* Max Width of the popover (depending on the container!) */
}

/*******************************************/
/* Modal */

.modal-header {
    background: #0099DD;
    color: white;
    font-weight: bold;
}

.instructions {
    height: 10px;
    width: 10px;
    margin-top: 4px;
}
/*******************************************/
/* Bootstrap data grid */
#container-data-grid table th,
#container-data-grid table td {
    padding: 8px 4px !important;
}

/*******************************************/
/* Data grid filters */

.th-filters {
    padding-top: 12px !important;
}

.td-statuses > img {
    height: 25px;
}

.modal-lg.modified {
    max-width: 75% !important;
}


/*******************************************/
/* Data grid filters */

.container-login .card {
    border-radius: 0;
    border: none;

    -webkit-box-shadow: 0 0 5px 0 rgba(0,0,0,0.75);
    -moz-box-shadow: 0 0 5px 0 rgba(0,0,0,0.75);
    box-shadow: 0 0 5px 0 rgba(0,0,0,0.75);
}

.print-pagination .pagination {
    padding-top: 8px;
    color: white;
}

.print-pagination .pagination > li {
    margin-right: 4px;
}

.print-pagination .pagination > li.active > span {
    text-decoration: underline;
    font-weight: bold;
}


/***********************************/
/* Switch for classification       */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: hsl(0, 0%, 60%);
    -webkit-transition: .4s;
    transition: .4s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 13px;
    width: 13px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}
input:checked + .slider {
    background-color: hsl(207, 90%, 54%);
}
input:focus + .slider {
    box-shadow: 0 0 1px hsl(207, 90%, 54%);
}
input:checked + .slider:before {
    -webkit-transform: translateX(19px);
    -ms-transform: translateX(19px);
    transform: translateX(19px);
}
.slider.round {
    border-radius: 40px;
}
.slider.round:before {
    border-radius: 50%;
}

/********** heights *********/
.min-h-contain-login{
    min-height: calc(100vh - 49px);
}

/*********** opacity **********/
.opacity-7{
    opacity: 0.7;
}

/************ alerts ***********/
.swal-modal.title-blue-dark div.swal-title{
    color: #23475E;
}

.swal-icon--success {
    border-color: #2EA5D9;
}
.swal-icon--success__line {
    background-color: white;
    z-index: 3;
}
.swal-icon--success__ring{
    background-color: #2EA5D9;
    border-color: hsla(198, 79%, 52%);
}

.swal-modal{
    padding: 1rem;
}