/* Force scrollbars to avoid horizontal centering jumps */
html {
  overflow-y: scroll;
}

.row {
    margin-left: auto;
    margin-right: auto;
}

.hidden {
    visibility: hidden;
}

.float-right {
    float: right;
}

.float-left {
    float: left;
}

.display-none {
    display: none;
}

form .required {
    font-weight: bold;
}

.libki-message {
    z-index:  999999;
    position: absolute;
    width: 50%;
}

.table-row-toolbar {
    display: none;
    z-index: 9999;
    float: left;
}

.table-toolbar {
    margin-left: 10px;
    margin-right: 10px;
}

/* 'Group' headers for grouping results in DataTables */
td.group {
    background-color: #d1cfd0 !important;
    border-bottom: 2px solid #A19B9E;
    border-top: 2px solid #A19B9E;
    text-align: left;
    font-weight: bold;
}

#breadcrumbs {
    padding-top: 0px;
    padding-bottom: 5px;
    margin-bottom: 0px;
}

.dataTables_wrapper div.row:first-of-type {
    margin-top: 15px;
}

.dataTables_wrapper div.row:last-of-type {
    margin-top: 40px;
}

.dataTables_filter {
    margin-left: 15px;
}

.libki-refresh-counter {
    width: 3em;
}

table {
    width: 100% !important;
}

.hullabaloo {
    width: 500px !important;
}

.libki-toolbar-btn {
    background-color: white;
}

/*
 *
 * INLIBRO
 *
 */
.imagette, .imagette > img {
    height: 6em;
    width: auto;
}
.imagette > img {
    object-fit: fill;
}

/*
 *
 * /administration/surveillance/
 *
 */

.surveillance-main {
    margin: 20px 20px 20px 20px;
}

.admin-link {
    font-weight: 1.2em;
}

.surveillance-main--poste {
    display: inline-block;
    width: auto;
    margin: 20px 20px 20px 20px;
}

.surveillance-main--image-title {
    word-wrap: break-word;
    margin-top: 8px;
    margin-bottom: 8px;
    text-align: center;
}

a.surveillance-main--image-holder {
    display: inline-block;
    width: 380px;
    border: thick double #2ECC40;
}

div.surveillance-main--image-holder {
    display: inline-block;
    width: 380px;
    border: solid #FF4136;
    cursor: not-allowed;
}

.surveillance-main--image {
    object-fit: fill;
    width: 100%;
    height: 100%
}

/*
 *
 * /administration/surveillance/<id>
 *
 */

.large-margin-lr {
    margin-left: auto;
    margin-right: auto;
    max-width: 1600px;
}

.small-margin-lr {
    margin-left: 20px;
    margin-right: 20px;
}

.small-margin-tb {
    margin-top: 20px;
    margin-bottom: 20px;
}

.medium-margin-tb {
    margin-top: 32px;
    margin-bottom: 40px;
}

.ta-center {
    text-align: center;
    display: inline-block;
}

td.ta-center {
    display: table-cell;
}

.bold {
    font-weight: bold;
}

.table th.ta-center, .table td.ta-center {
    text-align: center;
}

.surveillance-show {
    margin: 20px 20px 20px 20px;
}

.surveillance-show--image-title {
    word-wrap: break-word;
    margin-top: 8px;
    margin-bottom: 8px;
    text-align: center;
}

.surveillance-show--image-holder {
    text-align: center;
}

.surveillance-show--image-holder > img {
    object-fit: contain;
    max-width: 100%;
    max-height: auto;
}

.surveillance-show--user-action {
    display: block;
    margin: 40px 20px 20px 20px;
}

.surveillance-show--user-action > form {
    display: inline-block;
    margin: 4px 4px 4px 4px;
}

.surveillance-show--hyperliens {
    text-align: center;
    display: block;
    font-size: 1.23em;
}

.history-list {
    width: 100%; /* border-sizing est à border-box à cause de Bootstrap */
    padding: 2%;
}

.history-list #js-captures {
    list-style-type: none;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    width: 100%;
}

.history-image {
    max-width: 30%;
    padding: 10px;
}

.surveillance-show--history-title {
    padding-top: 0.61em;
    text-align: center;
    display: block;
}

#surveillance-history-table .list-group-item:not([disabled]) {
    cursor: pointer;
}

#surveillance-history-table .list-group-item[disabled] {
    color: #CCCCCC;
}

/* Modification pour la nouvelle icône de SécureAccès */
.navbar-brand > img {
    max-width: 220px;
}

/* Pour éviter d'avoir un menu empilé avec une taille < 992px */
#navbarLanguageDropdownMenu {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

#navbarLanguageDropdownMenu > .fas.fa-globe {
    margin-right: .5em;
}

#navbarLanguageDropdownMenu::after {
    margin-left: .35em;
}

#navbarSupportedContent {
    flex-grow: 1;
}

#navbarSupportedContent .navbar-nav {
    flex-grow: 0.4;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
}

#breadcrumbs {
    justify-content: flex-start;
}

@media (min-width: 992px) {
    #navbarSupportedContent .navbar-nav {
        justify-content: flex-end;
    }
}

/* Rond qui indique qu'on enregistre */
.clignotant {
    animation: clignotement 2s cubic-bezier(.5, 0, 1, 1) infinite alternate;
}

@keyframes clignotement {
    from { opacity: 1; border-width: initial; }
    to { opacity: 0; border-width: 0px; }
}

.removed {
    display: none;
}

.tabs-lang {
    margin-bottom: .25em;
}

.language-tabs > .active {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
}

.language-tabs > .active > input-group-prepend {
    flex: 0 1 100%;
}

.input-group .input-group-prepend > .input-group-text {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.hidden {
    display: none;
}