table[id]:has([data-key="options"]):has(.wide) {

    td,
    th {
        white-space: nowrap;

        &.wide {
            width: 100%;
        }
    }
}

html {
    scroll-behavior: smooth;
}

[data-hidden="true"] {
    display: none !important;
}

acronym.form-acronym {
    border-bottom: 1px dotted #ccc;
    cursor: help;
}

.margin-top {
    margin-top: 2em;
}

.margin-left {
    margin-left: 2em;
}

.wrapper-small {
    /*width: 97%;*/
    margin: 0 auto;
    /*	overflow: hidden;*/
}

.wrapper-small .row {
    margin-left: 0;
    margin-right: 0;
}

.navbar-right>li>a.active {
    opacity: 0.5;
}

.navbar-right>li>a:hover.active {
    opacity: 1;
}

.custom_panel {
    height: auto;
    -webkit-transition: height 0.5s ease;
    transition: height 0.5s ease;
    font-size: 1em;
    ;
}

.custom_panel_closed {
    height: 0;
    overflow: hidden;
    padding-top: 15px;
    position: relative;
}

.custom_panel_closed:before {
    content: 'Voir les pages';
    position: absolute;
    top: 0;
    font-size: 1em;
    text-decoration: underline;
}

.custom_panel_closed:hover:before {
    text-decoration: none;
    cursor: pointer;
}

.alert a {
    text-decoration: underline;
}

.alert a:hover {
    text-decoration: none;
}

.alert.sticky {
    position: fixed;
    bottom: 0;
    width: 100%;
}

.alert.fixed {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 1000;
    margin: 0;
}

.alert-list {
    direction: rtl;
    max-height: 4em;
    overflow: hidden;
    overflow-y: auto;
    overflow-x: hidden;
}

.alert-list LI {
    direction: ltr;
    text-align: left;
    padding-left: 1em;
}

.transparent {
    opacity: 0;
}

.ghost {
    display: none;
}

.dimmed {
    opacity: 0.5;
}

.etat-en-attente,
.ligne-en-attente .dropdown-toggle {
    background-color: orange;
    color: white;
    font-weight: bold;
}

.etat-expedie,
.ligne-expedie .dropdown-toggle {
    background-color: green;
    font-weight: bold;
    color: white;
}

.etat-erreur,
.ligne-erreur .dropdown-toggle {
    background-color: red;
    color: white;
    font-weight: bold;
}

.etat-produit-indisponible,
.ligne-produit-indisponible .dropdown-toggle {
    background-color: purple;
    color: white;
    font-weight: bold;
}

.etat-taille-indisponible,
.ligne-taille-indisponible .dropdown-toggle {
    background-color: violet;
    color: white;
    font-weight: bold;
}

.etat-annule,
.ligne-annule .dropdown-toggle {
    background-color: #ccc;
    color: white;
}

.modal-iframe .modal-body {
    padding: 0;
    height: 100%;
}

.modal-iframe .modal-body IFRAME {
    height: 98%;
    width: 98%;
    margin: 1%;
}

.modal-iframe .modal-close {
    position: absolute;
    left: -25px;
    background: white;
    border-radius: 5px;
    width: 20px;
    height: 20px;
    text-align: center;
}

.modal-iframe .modal-close .close {
    float: none;
}

.actions-message {
    font-size: small;
    font-style: italic;
}

.uppercase {
    text-transform: uppercase;
    font-size: smaller;
}

.inline {
    display: inline-block;
}

.entite-logo-image {
    max-width: 100%;
}

.entite-logo {
    margin: 2em;
}

body div .text-danger {
    color: red;
    font-weight: bolder;
}

a.text-danger {
    font-weight: 100;
}

body div .texte-success {
    color: green;
}

.small-image {
    width: 50px;
    margin: 1em;
}

body.page-gris {
    background: #333;
    color: white;
}

body.page-gris .row {
    color: #333;
}

@media (orientation: landscape) {
    body.page-gris .wrapper-small {
        width: 70%;
        min-width: 800px;
    }
}

@media (max-width: 1000px) {
    body.page-gris .wrapper-small {
        width: 100%;
    }
}

.navbar-brand {
    padding: 10px;
}

.navbar-brand IMG {
    height: 30px;
}

.navbar-logos {
    float: left;
    padding: 15px;
}

.navbar-logos IMG {
    margin-right: 15px;
    height: 20px;
}

body .login-panel {
    margin-top: 2%;
}

/*
a, .pagination > li > a, .pagination > li > span {
	color:#987523;
}
a:hover, .pagination > li > a:hover, .pagination > li > span:hover, .pagination > li > a:focus, .pagination > li > span:focus {
	color:#af8728;
}

.pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover, .pagination > .active > span:hover, .pagination > .active > a:focus, .pagination > .active > span:focus{
	background-color: #987523;
	border-color: #af8728;
	}*/

.nowrap {
    white-space: nowrap;
}

td hr {
    margin: 0;
    margin-top: 1em;
    border: 0;
    border-top: 1px solid #ccc;
}

.btn-icon:before {
    display: inline-block;
    font: normal normal normal 14px/1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin-right: 0.5em;
}

.margin-bottom {
    margin-bottom: 0.5em;
}

.grey {
    color: #999;
}

blockquote footer:before,
blockquote small:before,
blockquote .small:before {
    content: "";
}

.panel.selected,
.panel.selected span {
    color: #333;
    border-color: #e0e0e0;
}

.panel.selected .panel-heading {
    background: #eee;
}

a.panel,
a.panel span {
    display: block;
}

.panel-body {
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.panel.panel-closed .panel-heading:after {
    content: '\25B6';
}

.panel.panel-closed .panel-heading {
    cursor: pointer;
}

.panel.panel-closed .panel-heading:hover {
    background-color: white;
}

.panel.panel-closed .panel-body {
    height: 0px;
    overflow: hidden;
    padding: 0;
}

body .input-daterange .form-control {
    border: none;
}

.big {
    font-size: 20px;
}

.sticked-to-top {
    position: fixed;
    top: 0;
    height: 100%;
    overflow-x: hidden;
}

.sticked-to-top .stick-when-out-wrapper {
    height: 100%;
    overflow-y: auto;
}

.transition-height {
    -webkit-transition: height .5s ease;
    transition: height .5s ease;
}

body.wait {
    cursor: wait;
}

.visible {
    display: block;
}

.hidden {
    display: none;
}

.page-papier #wrapper {
    background: white;
    max-width: 800px;
    margin: 2em auto;
    padding: 2em;
    -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.editable {
    outline: none;
}

.editable-title {
    margin: 0.5em 0 1em 0;
    border-bottom: 1px solid #dbdbdb;
    font-size: 3em;
    font-weight: bold;
}

.editable-text {
    margin: 0 0 0 0;
    padding: 0 0 20px 0;
    border-bottom: 1px solid #dbdbdb;
    font-size: 1.2em;
}

.editable-count {
    font-size: xx-small;
    text-align: right;
    margin-bottom: 20px;
    margin-top: 5px;
}

body.saving.medium-editor #wrapper {
    -webkit-box-shadow: 0 0 8px rgba(255, 0, 0, 0.5);
    -moz-box-shadow: 0 0 8px rgba(255, 0, 0, 0.5);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

body.saved.medium-editor #wrapper {
    -webkit-box-shadow: 0 0 4px rgba(0, 255, 0, 0.2);
    -moz-box-shadow: 0 0 4px rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.2);
}

.medium-editor.saving button .floppy {
    color: tomato;
}

.medium-editor.saved button .floppy {
    color: green;
}

.btn-toolbar+.btn-toolbar {
    margin-top: 15px;
}

.page-dropzone {
    padding: 3% 10%;
}

.dropdown-menu a .link-image {
    width: 40px;
    margin-right: 1em;
}

.lien-relancer {
    display: none;
}

.en-erreur .lien-relancer {
    display: inline-block;
}

.en-erreur td {
    background: #ff2f00 !important;
    color: white !important;
}

.lien-valider {
    display: none;
}

.action-requise .lien-valider {
    display: block;
}

.action-requise .lien-editer {
    display: none !important;
}

.action-requise td {
    background: #333 !important;
    color: #ccc !important;
}

.suspendu td {
    background: yellow !important;
    color: black !important;
}

.terminated td {
    background: red !important;
    color: white !important;
}

.smaller {
    font-size: 11px;
}

body .small-form,
body .small-form label {
    font-family: sans-serif;
    font-size: 11px;
}

body .black {
    color: black;
}

/*.col-lg-6 .col-lg-6:nth-child(1) {
	padding-left: 0;
}
.col-lg-6 .col-lg-6:nth-child(2) {
	padding-right: 0;
	}*/

.pieces-jointe {
    overflow: hidden;
}

.piece-jointe {
    display: block;
    float: left;
    width: 30%;
    margin-right: 1.5%;
    height: 0;
    padding-bottom: 50%;
    position: relative;
}

.piece-jointe:nth-child(3n+3) {
    margin-right: 0;
}

.piece-jointe-image {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    background: no-repeat center center #ccc;
    background-size: cover;
}

.piece-jointe-desc {
    display: block;
    position: absolute;
    top: 60%;
    left: 0;
    width: 100%;
    background: white;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
    line-height: 12px;
}

body div.modified .form-control:not(.bootstrap-select),
body div.modified .form-control.bootstrap-select .btn {
    border: 1px solid red;
}

.bloc-kiosque {
    background: black;
    color: white;
    padding: 15px;
    margin: 15px;
}

.fake-link {
    cursor: pointer;
}

.fixed-button {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 99999;
}

.label-file {
    display: inline-block;
}

input[type="file"].input-file {
    display: none;
}

.msg-file {
    display: block;
    font-size: 12px;
}

.file-item {
    width: 32px;
    height: 32px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    border-radius: 3px;
    display: inline-block;
    margin-top: 5px;
    margin-right: 5px;
    position: relative;
}

.file-item-icon {
    background-size: contain;
}

.file-item button {
    display: block;
    position: absolute;
    bottom: -5px;
    left: -5px;
    border: 0;
    color: white;
    padding: 0;
    margin: 0;
    background: red;
    line-height: 15px;
    font-size: 10px;
    font-family: monospace;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    z-index: 2;
    outline: 0;
}

.file-item a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.border-top {
    border-top: 1px solid #e7e7e7;
}

ul.nav li.selected {
    text-decoration: none;
    background-color: #eee;
}

table tr td .form-group {
    margin-bottom: 0;
}

button.no-caption:before,
input.no-caption:before {
    margin: 0;
}

.table-striped-manuel tr.even td {
    background-color: #efefef;
}

.table-striped-manuel th {
    position: relative;
    overflow: hidden;
}

.table-striped-manuel .form-control[disabled],
.table-striped-manuel .form-control[readonly],
.table-striped-manuel fieldset[disabled] .form-control {
    cursor: default;
    background-color: white;
    opacity: 1;
    outline: none;
}

/*.table-striped-manuel tr.alt-first td{
	border-top:1px solid red;
	border-left:1px solid red;
	border-right:1px solid red;
}
.table-striped-manuel tr.alt-first td{
	border-top:1px solid red;
}
.table-striped-manuel tr.alt-last td{
	border-bottom:1px solid red;
	border-left:1px solid red;
	border-right:1px solid red;
	}*/

.truncate {
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    float: left;
}

.fake-select {
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fake-select .caret {
    position: absolute;
    top: 50%;
    right: 12px;
    margin-top: -2px;
    vertical-align: middle;
}

.form-control.form-couleur {
    outline: none;
}

.bouton-valider-fixed {
    position: fixed;
    bottom: 15px;
    right: 15px;
}

.mail_valide_1 {
    color: green;
}

fieldset.fieldset {
    padding: 1em;
    margin: 0 2px;
    border: 1px solid #c0c0c0;
    border-radius: 5px;
}

fieldset.fieldset legend {
    padding: 0 0.5em;
    width: initial;
    border: none;
    font-size: smaller;
}

[type="date"].form-control {
    padding: 0 6px;
}


.login-page .alert {
    width: 100%;
}

@media (min-width: 1000px) {
    .login-page .alert {
        position: fixed;
        top: .5em;
        right: 1em;
        max-width: 300px;
        width: 100%;
    }
}

.colorselect {
    position: relative;
}


.colorselect input[type="color"] {
    position: absolute;
    top: 0;
    right: 0;
    width: 3em;
    height: 100%;
    border: 0;
    padding: 0;
    margin: 0;
}

.modale>div {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 100000000;
    transform: translate(-50%, -50%);
    overflow: visible;
    background: white;
    padding: 2em;
    border-radius: 15px;
}

.modale {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100000000;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.nav .nav>li:has([hidden-if-empty][count="0"]) {
    display: none !important;
}

.nav-tabs-auto {
    font-size: 80%;
    display: flex;
    white-space: nowrap;
    overflow: hidden;

    &:hover {
        overflow-x: auto;
    }

    li:not(:has(.badge)) {
        display: none;
    }
}