:root{
    --bgcolor:#f8f9fa;
    --elevation-3:0 5px 10px rgba(0,0,0,.1);
}
.separate-containers .inside-article:has(.mi-root) {
    background: none;
}
.entry-content>.mi-root {
    min-height: calc(100vh - 800px);
}
.mi-root form>.row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 15px;
    margin-bottom: 15px;
}

.mi-root form>.row>label {
    flex: 0 1 130px;
}
.mi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0 15px;
    background: var(--base-2,#FFF);
    /* margin: -40px -40px 0; */
    /* padding: 15px; */
    /* position: sticky; */
    /* top: 180px; */
    /* z-index: 10; */
    margin-bottom: 30px;
}

.mi-top>h2 {
    font-size: 26px;
    font-weight: bold;
    margin: 0;
}
.mi-root .table-list {
    display: flex;
    flex-direction: column;
}

.mi-root .table-list>* {
    display: flex;
    flex-wrap: wrap;
}

.mi-root .table-list>*>* {
    flex: 1;
    padding: 15px 10px;
}

.mi-root .table-list>*>*.size-xs {
    flex-basis: 30px;
    flex-grow: 0;
}
.mi-root .table-list>*>*.size-s {
    flex-basis: 50px;
    flex-grow: 0;
}
.mi-root .table-list>*>*.size-m {
    flex-basis: 150px;
    flex-grow: 0;
}
.mi-root .table-list>*>*.size-l {
    flex-basis: 250px;
    flex-grow: 0;
}
.mi-root .table-list>*>*.size-xl {
    flex-basis: 320px;
    flex-grow: 0;
}
.mi-root .table-list>.table-header {
    font-size: 20px;
    background: var(--accent);
    font-weight: 600;
    color: #FFF;
}

.mi-root .table-list>.table-row:nth-child(2n-1) {
    background: #F1F1F1;
}

.mi-root .table-list>.table-row {
    cursor: pointer;
}

.mi-root .table-list>.table-row:hover {
    background: var(--contrast-3);
}
.mi-top>.links {
    display: flex;
    align-items: center;
    gap: 10px 20px;
    flex-wrap: wrap;
}

.mi-top>.links>a {
    position: relative;
}

.mi-top>.links>a:not(:last-child):after {
    content: "";
    position: absolute;
    left: 100%;
    margin-left: 10px;
    width: 1px;
    top: 4px;
    bottom: 4px;
    background: #000;
}

.mi-top>.links>a.logout {
    color: #bf0404;
}
.dossier-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.dossier-container>.dossier-descriptif-container {
    flex: 1 1 380px;
    zoom: 0.7;
    background: #fff;
    box-shadow: 0 5px 10px #00000022;
    padding: 60px;
    box-sizing: border-box;
}
.dossier-container>.dossier-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.bloc-infos {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.bloc-infos>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border: solid 1Px;
    padding: 15px;
    gap: 5px;
    flex: 1 1 200px;
}

.bloc-infos>div>label {
    font-weight: bold;
    font-size: .9em;
}

.bloc-infos>div>span {
    font-size: 1.1em;
}
.bloc-infos>div>span>small {
    display: block;
}
.dossier-container>.dossier-side .table-header {font-size: 14px;}
.mi-root .alert-success {
    border-left: solid 4px #248b2d;
    padding-left: 15px;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: bold;
    color: #248b2d;
    padding-top: 5px;
    padding-bottom: 5px;
}
.mi-root .alert-warning {
    border-left: solid 4px #ff877f;
    padding-left: 15px;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: bold;
    color: #ff877f;
    padding-top: 5px;
    padding-bottom: 5px;
}
.mi-root .alert-warning:before{
    content:"";
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
    background:url(../img/warning.svg) no-repeat center/contain;
    margin-top: -8px;
}
.dossier-container>.dossier-side>div>h4 {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--accent);
}
.proposition-container .bloc-infos {
    font-size: 16px;
}

.proposition-container .bloc-infos>div {
    flex-basis: 140px;
}
.proposition-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.proposition-container>.download:not(.downloaded)~.proposition-actions {
    display: none;
}

.proposition-container>.download.downloaded+p {
    display: none;
}
.wnd>.box textarea {
    width: 100%;
    resize: vertical;
    display: block;
    max-width: 100%;
    height: 130px;
    /* min-width: 600px; */
}
.files-list {
    height: 250px;
    /* overflow: auto; */
    background: #f1f1f1;
    /* padding: 15px; */
    display: flex;
    flex-direction: column;
}
.files-list>.file-actions>a {
    cursor: pointer;
}
.files-list>.file-actions {
    padding: 10px;
    display: flex;
    justify-content: center;
}

.files-list>.file-items {
    flex: 1;
    overflow: hidden auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
}

.files-list>.file-items>.file-item {
    display: flex;
    position: relative;
    align-items: center;
    background: #c8d7df;
    border-radius: 8px;
    padding: 4px 10px;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.files-list>.file-items>.file-item>.actions {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    flex: 1 1 20px;
    justify-content: flex-end;
}

.files-list>.file-items>.file-item>.actions>button {
    position: relative;
    padding: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: var(--accent);
    background-size:80%;
    background-repeat: no-repeat;
    background-position: center;
}
.files-list>.file-items>.file-item>.actions>button.download{
    background-image: url(../img/download.svg);
}
.files-list>.file-items>.file-item>.actions>button.decline{
    background-image: url(../img/decline.svg);
}
.files-list>.file-items>.file-item>.actions>button.validate{
    background-image: url(../img/validate.svg);
}
.files-list>.file-items>.file-item>.actions>button.delete{
    background-image: url(../img/del.svg);
    background-size: 50%;
}
.files-list>.file-items>.file-item.is-uploading>.actions {
    opacity:0;
    pointer-events: none;
}
.files-list>.file-items>.file-item>.actions>button>span {
    position: absolute;
    right: 100%;
    pointer-events: none;
    background: #717174;
    font-size: 14px;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 5px;
    padding: 2px 4px;
    opacity: 0;
    transition: transform 0.2s, opacity 0.2s;
    transform-origin: 100% 50%;
    transform: translateY(-50%) scale(0.7);
}
.files-list>.file-items>.file-item:not([data-id-type-file='15'])>.actions>:is(.validate,.decline) {
    display: none;
}
.files-list>.file-items>.file-item:not([data-id-type-file='18'])>.actions>.delete {
    display: none;
}
.files-list>.file-items>.file-item>.name {
    font-weight: 600;
    flex: 1 1 200px;
}

.files-list>.file-items>.file-item>.size {
    flex: 1 1 60px;
    /* text-align: right; */
}

.files-list>.file-items>.file-item>.actions>button:hover>span {
    transform: scale(1) translateY(-50%);
    opacity: 1;
}
.files-list>.file-items>.file-item>.date {
    flex: 1 1 190px;
}


.files-list>.file-items>.file-item.is-uploading:before,
.files-list>.file-items>.file-item.is-uploading:after{
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width:100%;
    height: 4px;
    border-radius:4px;
    background: #979797;
}
.files-list>.file-items>.file-item.is-uploading:after{
    width:var(--progress,0%);
    background:var(--accent);
}
.confirmation-offre {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.confirmation-offre h3 {
    font-size: 19px;
    font-weight: bold;
    margin: 0;
}

.confirmation-offre .cgv {
    font-weight: bold;
    color: #d90000;
}
.dossier-progress {
    position: relative;
    font-weight: 400;
    margin-top: 10px;
}
.dossier-progress:not(:has([data-date])) {
    display: none;
}

.dossier-progress>.steps {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.dossier-progress>.steps>div {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 10px;
    margin-bottom: -11px;
    position: relative;
    z-index: 2;
}

.dossier-progress>.progress {
    position: relative;
    height: 8px;
    background: var(--ardoise);
    border-radius: 4px;
    overflow: hidden;
}

.dossier-progress>.progress:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--progress);
    background: var(--vert);
}

.dossier-progress>.steps>div:after {
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--ardoise);
}

.dossier-progress>.steps>div[data-date] {
    --ardoise: var(--vert);
}

.dossier-progress>.steps>div[data-date]:before {
    content: attr(data-date);
    opacity: .7;
    position: absolute;
}

.mi-root .table-list>*>.intitule {
    font-weight: bold;
}
.dossier-container>.dossier-side .exclam {
    width: 24px;
    height: 24px;
    background: url(../img/warning.svg) no-repeat center/contain;
    display: inline-block;
    vertical-align: middle;
    position: relative;
}
.files-list[data-type*="15"]>.file-actions {
    display: none;
}
.bat:has(.files-list[data-type*="15"]):not(:has(.file-item)){
    display: none;
}
.mi-root form .form-group {
    display: flex;
    flex-direction: column;
}

.mi-root form>.row>.form-group {
    flex: 1;
}

.mi-root form .form-group>label {
    font-weight: bold;
}
.mi-root form>h3 {
    font-weight: 700;
    margin-top: 50px;
    font-size: 24px;
}
.mi-root form>h3+h4 {
    margin-top: -20px;
    font-size: 16px;
    color: #666;
}

.mi-root table.contacts>thead {
    background: var(--accent);
    color: #fff;
}

.mi-root table.contacts input {
    width: 100%;
}

.mi-root .actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.mi-root .dossier-container>.dossier-side .blocs {display: flex;flex-direction: column;gap: 15px;}

.mi-root .dossier-container>.dossier-side .blocs>div>h4 {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.mi-root  .dossier-container>.dossier-side .blocs>div {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px #00000011;
    overflow: hidden;
}

.mi-root .dossier-container>.dossier-side .blocs>div>.files-list {
    margin: 0 -15px -15px;
}
@keyframes exclaming {
    0%, 70%{opacity:0;transform:scale(1)}
    71%{opacity:1;transform:scale(1)}
    100%{opacity:0;transform:scale(3)}
}
.mi-root .dossier-container>.dossier-side .exclam:before {
    content: "";
    position: absolute;
    inset: 0;
    background: url(../img/warning.svg) no-repeat center/contain;
    animation: exclaming 2s infinite linear;
}
@keyframes displayTableListChilds{
    0%{
        opacity:0;
        transform:translateY(30px)
    }
    100%{
        opacity:1;
        transform:translateY(0px)
    }
}
.mi-root .table-list>* {
    opacity: 0;
    animation: displayTableListChilds 0.4s forwards cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.mi-root .table-list>*:nth-child(2){animation-delay:.05s;}
.mi-root .table-list>*:nth-child(3){animation-delay:.1s;}
.mi-root .table-list>*:nth-child(4){animation-delay:.15s;}
.mi-root .table-list>*:nth-child(5){animation-delay:.2s;}
.mi-root .table-list>*:nth-child(6){animation-delay:.25s;}
.mi-root .table-list>*:nth-child(7){animation-delay:.3s;}
.mi-root .table-list>*:nth-child(8){animation-delay:.35s;}
.mi-root .table-list>*:nth-child(9){animation-delay:.4s;}

.mi-root .alert-warning>.button {
    background: var(--accent);
    cursor: pointer;
    padding: 6px 12px;
    font-weight: normal;
    font-size: 16px;
    margin-left: 10px;
}
.is-archived button:not(.download) {
    display: none;
}

.is-archived .files-list>.file-actions>a {
    display: none;
}