body { 
    margin:0;
}
/* classes utiles */
.color-warning {
    color: var(--color-warning);
}

.border-top {
    border-top: 1px solid #dee2e6 !important;
}
.border-bottom {
    border-bottom: 1px solid #dee2e6 !important;
}
.border-left {
    border-left: 1px solid #dee2e6 !important;
}
.border-right {
    border-right: 1px solid #dee2e6 !important;
}

[data-filtre] input {
    display: none;
}
[data-filtre] input:checked + .btn-cartouche {
    background-color: var(--color-primary);
}

.btn-cartouche {
    border-radius: 4px;
    background-color: var(--color-gray-5);
    color: var(--color-blank);
    padding: 1px 6px 2px 6px;
    text-transform: uppercase;
    white-space: nowrap;
}

.btn-select {
    border-radius: 4px;
    color: var(--color-primary);
    background-color: var(--color-gray-5);
    padding: 4px 4px;
    white-space: nowrap;
    border: 1px solid var(--color-gray-5);
    height: 1.5em;
}

.btn-select:focus {
    height: 7em;   
    position: absolute;
}



.sfw-form input[type="text"].form-small {
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
    font-size: 12px;
}

/* tools */
#toolbarrow {
    display: flex;
    justify-content: space-between;
}

#toolbar {
}

#toolbar [data-toggle-state="show"] {
    font-family: var(--ff-bold-secondary)
}
#tooladmin {
    hyphens: none;
    word-break: keep-all;
}
[data-toggle-content] {
    display: none;
}
[data-toggle-content].show {
    display: block;
}

#live-search {
    border: 1px solid var(--color-gray-5);
    border-radius: 3px;
    padding: 2px;
    flex-grow: 2;
}

/* cropper */
#cropper-main {
    display: flex;
    gap: 1rem;
    height: 95vh;
    overflow: hidden;
}
#cropper-imagecontainer {
    width: calc(100% - 4rem);
    position: relative;
}
#cropper-image {
    width:100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain:
}
#cropper-tools {
    width: 4rem;
    word-break: break-all;
}

.cropper-icon {
    background-color: #eee;
    border-radius: 4px;
    padding: 7px 0;
    cursor: pointer;
    text-align: center;
    width: 34px;
    box-sizing: border-box;
    line-height: 0;
}
.cropper-icon img { 
    width: 22px;
    height: auto;
}

/* tool filter */
.filter-item {
    min-width: 12em;
}
.filter-header {
    background-color: var(--color-gray-10) !important;
    border-radius: 3px 3px 0 0;

    background-image:url("../images/toggle-off.svg");
    background-repeat: no-repeat;
    background-position: right 1em center;
    color: var(--color-gray-30);
}

.filter-header::after {

}

.filter-header[data-active="true"] {
    background-color: var(--color-gray-10) !important;
    background-image:url("../images/toggle-on.svg");
    color: var(--color-gray-90);


}
.filter-header[data-active="false"] + .filter-body {
    opacity:0.5
}

.filter-body {
    height: 7em;
    overflow-y: scroll;
    border-radius: 0 0 3px 3px;
}

.filter-body > div, #filter-container > div {
    cursor: pointer;
    margin-bottom:1px;
}

#filter-container > div {
    margin-top: 1em;
    cursor: pointer;
}

#filter-container > div:not(#removefilter) {
    padding-right: 2em !important;
    border: solid 2px var(--color-ok);
    background-image: url("../images/x-circle.svg");
    background-repeat: no-repeat;
    background-position: right 0.3em center;
    color: var(--color-gray-90);
    background-blend-mode: lighten;
}

#filter-container > div:hover {
    background-image: url("../images/x-circle-fill.svg") !important;
}

#filter-container [data-check="idle"]{
    border: solid 2px var(--color-warning) !important;
    color: var(--color-warning) !important;
}

.filter-body span {
    display:none;
}

.filter-body [data-check="true"]{
    background-color: var(--color-gray-10)
}

#nofilter:not(:first-child) {
    display:none;
}

#removefilter:first-child {
    display:none;
}
#removefilter { 
    background-color: var(--color-notok) !important;
    color: #fff;
}


/* drag  */
.draggingitems .item {
    cursor: move;
    border: 1px solid var(--color-gray-5);
    background-color: #fff;
}

.item.sortable-chosen {
    background-color: var(--color-gray-5);
    opacity: 0.7;
    animation: glowing 1.5s ease-in infinite;
}

@keyframes glowing {
    0% {
        opacity: 0.7;
    }
    50% {
        opacity: 0.2;
    }
    100% {
        opacity: 0.7;
    }
}

@media print {
    @page  {
        margin: 13mm 8mm;

    }
    #main-frame {
        display: block;
        height: auto;
    }
    main .mosaique-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr !important;
    }
    .print-none {
        display: none !important;
    }
    article.item {
        page-break-inside: avoid;
        break-inside: avoid;
    }
}