/*
 * Base structure
 */

/* Move down content because we have a fixed navbar that is 50px tall */
body {
    padding-top: 50px;
}


/*
 * Global add-ons
 */

.sub-header {
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/*
 * Top navigation
 * Hide default border to remove 1px line.
 */
.navbar-fixed-top {
    border: 0;
}

/*
 * Sidebar
 */

/* Hide for mobile, show later */
.sidebar {
    display: none;
}
@media (min-width: 768px) {
    .sidebar {
        position: fixed;
        top: 51px;
        bottom: 0;
        left: 0;
        z-index: 1000;
        display: block;
        padding: 20px;
        overflow-x: hidden;
        overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
        background-color: #f5f5f5;
        border-right: 1px solid #eee;
    }
}

/* Sidebar navigation */
.nav-sidebar {
    margin-right: -21px; /* 20px padding + 1px border */
    margin-bottom: 20px;
    margin-left: -20px;
}
.nav-sidebar > li > a {
    padding-right: 20px;
    padding-left: 20px;
}
.nav-sidebar > .active > a,
.nav-sidebar > .active > a:hover,
.nav-sidebar > .active > a:focus {
    color: #fff;
    background-color: #428bca;
}


/*
 * Main content
 */

.main {
    padding: 20px;
}

@media (min-width: 768px) {
    .main {
        padding-right: 40px;
        padding-left: 40px;
    }
}

.main .page-header {
    margin: 10px 0 20px 0;
}

.main .page-header h1 {
    margin: 0;
}


/*
 * Placeholder dashboard ideas
 */

.placeholders {
    margin-bottom: 30px;
    text-align: center;
}
.placeholders h4 {
    margin-bottom: 0;
}
.placeholder {
    margin-bottom: 20px;
}
.placeholder img {
    display: inline-block;
    border-radius: 50%;
}

.erreurs {
    padding: 2px 4px;
    color: #C7254E;
}

.dt-table {padding-top: 8px;}

a[target] span {
    padding:0 13px 0 0;
    background: transparent url(lien-externe.gif) no-repeat scroll right top;
}


/*
 * hauteur max modal
 */
.modal-dialog.modal-max-height {
    /* 80% of window height */
    height: 80%;
}

.modal-max-height .modal-content {
    height: 100%;
}

.modal-max-height .modal-body {
    /* 100% = dialog height, 120px = header + footer */
    max-height: calc(100% - 120px);
    overflow-y: scroll;
}


/*
 * loader ajax
 */
#chargement {
    display: none;
    position: fixed;
    width: 40px;
    height: 40px;
    top: 50%;
    left: 50%;
    transform: translateY(-50%);
    z-index: 99999;
}

.spinner {
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 100%;
    -webkit-animation: scaleout 1.0s infinite ease-in-out;
    animation: scaleout 1.0s infinite ease-in-out;
}

@-webkit-keyframes scaleout {
    0% { -webkit-transform: scale(0.0) }
    100% {
        -webkit-transform: scale(1.0);
        opacity: 0;
    }
}

@keyframes scaleout {
    0% {
        transform: scale(0.0);
        -webkit-transform: scale(0.0);
    } 100% {
          transform: scale(1.0);
          -webkit-transform: scale(1.0);
          opacity: 0;
      }
}

/*
 * statut (messages)
 */
.statut {
    padding: 5px;
}

.icon-refresh-animate {
    animation-name: rotateThis;
    animation-duration: .5s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

@keyframes rotateThis {
    from { transform: scale( 1 ) rotate( 0deg ); }
    to { transform: scale( 1 ) rotate( 360deg ); }
}

@media print {

    body {
        font: 9pt/1.4 Arial,sans-serif;
        padding-top: 0!important;
    }

    .sidebar {
        display: none;
    }

    .container, .container-fluid, .row {
        width: 100%;
        max-width: none;
        min-width: 0;
        margin: 0;
        padding: 0;
    }

    .main {
        padding: 0;
    }

    [class*="col-"] {
        float: none;
        width: auto;
        margin: 0;
        padding: 0;
        position: static;
        min-height: 0;
    }

}

/*
 * nav (tbord)
 */
#tbord-resume #nav-tbord-resume a,
#tbord-ca #nav-tbord-ca a,
#tbord-ca-sites #nav-tbord-ca-sites a,
#tbord-ca-lots #nav-tbord-ca-lots a
{
    color: #FFF;
    background-color: #428BCA;
}

button[disabled] {
    pointer-events: none;
    opacity: 0.5;
}
