body {
    background-color: var(--light-gray); 
}
label:focus {
    outline: #000 2px solid;
}
button:hover {
    background-color: #99aef5;
}

li {
    list-style-position: inside;
}



h2 {
    font-size: 2.4em;
}


section {
    border-radius: 8px;
    /* box-shadow: 1px 1px 8px #00000040; */
    padding: 1em;
    background-color: #fff;
}

hr {
    margin: 5em ;
    opacity: .33;
    height: 2px;
    background-color: #151515;
    border-radius: 8px;
}


/* ... TABLE ... */
:root {
    --table-color: #333; 
}
.styled-table {
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.9em;
    font-family: sans-serif;
    width: 100%; 
    min-width: 400px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}
.styled-table thead tr {
    background-color: var(--table-color);
    color: #ffffff;
    text-align: left;
}
.styled-table th,
.styled-table td {
    padding: 12px 15px;
    max-width: 724px;
    overflow: auto;
}
.styled-table tbody tr {
    border-bottom: 1px solid #dddddd;
}

.styled-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.styled-table tbody tr:last-of-type {
    border-bottom: 2px solid var(--table-color);
}
.styled-table tbody tr.active-row {
    font-weight: bold;
    color: var(--table-color);
}

.styled-table img.miniature {
    filter: drop-shadow(2px 2px 2px #00000033); 
    border-radius: 8px;
}

.styled-table .list-order {
    font-size: 1.2em; 
    font-weight: 900;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


button.disabled {
    cursor: not-allowed;
    opacity: .2; 
}








.styled-table .name .cell-content {
    display: flex;
    align-items: center;
}
.styled-table .name textarea {
    width: 100%;
}



.variante th {
    text-align: left;
    text-transform: uppercase;
}
.variante tbody tr, .variante tbody tr:nth-of-type(even) {
    background-color: #626262;
    color: #fff;
}



.styled-table .image-cell {
    text-align: center;
}
.styled-table .image-cell img {
    display: block;
    margin: auto;
}
.styled-table .image-cell button {
    font-size: 12px;
    display: flex;
    align-items: center;
    margin: auto;
    margin-top: 12px;
}
.styled-table .image-cell input {
    display: none;
}





/* Switcher button */
.switcher-btn {
    padding: 0; 
    position: relative;
    top: -16px;
    display: flex;
}
.switcher-btn:hover {
    background-color: transparent;
}
.switcher-btn .switcher-background {
    width: 54px;
    height: 32px;
    background-color: #FFD0D0;
    border-radius: 100px;
    position: absolute;
    /* box-shadow: inset 1px 1px 12px #adadad; */
}
.switcher-btn.active .switcher-background {
    background-color: #83E58D;
}
.switcher-btn .switcher-top {
    height: 26px;
    width: 26px;
    background-color: #f5f5f5;
    border-radius: 100px;
    position: absolute;
    justify-self: flex-end;
    margin-left: 3px;
    margin-top: 3px; 
    transition: all linear 120ms;
    box-shadow: 1px 1px 2px #bdbdbd;
}
.switcher-btn.active .switcher-top {
    transform: translateX(22px);
    background-color: #158226;
}


.delete-btn {
    display: flex;
    align-items: center;
}






/* FORM ADD DOCUMENT */
.container {
    margin-top: 2em; 
}
.form-add-document {

}

#label-file, #label-image {
    width: 320px;
    height: 120px;
    text-align: center;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-radius: 8px;
    background: #F2F0E8;
    box-shadow: 2px 2px 8px #00000055;
    cursor: pointer;
    font-weight: bold;
    margin: 1em; 
    padding-left: 1em;
}
#label-image {
    height: 60px; 
    background-color: #fff;
}
#label-image span.text {
    /* font-weight: normal; */
    text-align: left;
    font-size: .8em;
    margin-left: 6px;
    line-height: 1.6;
}
#label-image span.text em {
    font-weight: normal;
}

#label-file input, #label-image input {
    display: none;
}

.button-like {
    float: right;
    border: solid 1px #262626;
    display: block;
    padding: 1em 2em;
    border-radius: 120px;
}
#name {
    height: 38px;
    width: 362px;
    background: #f6f6f6;
    border-bottom: #dddddd solid 4px;
    border-radius: 4px; 
}
#submit {
    width: 100%; 
    float: right;
    border: solid 1px #262626;
    background-color: #262626;
    color: #fff; 
    display: block;
    padding: 1em 2em;
    border-radius: 120px;
    cursor: pointer;
    font-size: 16px; 
}

.image-preview {
    width: 120px; 
    height: 170px; 
    border-radius: 8px;
    border: #262626 2px dashed; 
    margin: 1em; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-style: italic;
    color: #444;
    float:right;
}












#occupied-size {
    background-color: #f6f6f6;
    border-radius: 6px;
    padding: 1em; 
}


.occupied-size__content {
    display: flex; 
    flex-wrap: wrap;
    align-items: center;
}

.visual-hint {
    width: 34px; 
    height: 86px; 
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}
.total {
    position: absolute;
    background-color: #CCCCCC; 
    width: 100%;
    height: 100%;
}
.total span {
    position: absolute;
    bottom: 0;
    color: #fff;
    width: 100%;
    display: inline-block;
    text-align: center;
}
.occupied {
    width: 100%;
    height: 0%; 
    background-color: #5F5F5F;
    bottom: 0;
    position: absolute; 
    transition: height ease 480ms;
}

.text-part {
    width: calc(100% - 34px - 16px); 
    margin-left: 16px; 
    line-height: 1.6;
}





.bottom-bar {
    display: flex; 
    justify-content: flex-end;
}
.bottom-bar .add-document-btn {
    background-color: #d9d9d9;
    padding: 16px;
    font-size: 1.25em;
    font-weight: bold;
    transition: all ease 180ms; 
    margin-bottom: 1em;
    margin-left: 1em; 
}
.bottom-bar .add-document-btn:hover {
    box-shadow: 4px 4px 16px #00000025;
}
.bottom-bar .add-document-btn.--secondary-btn {
    background-color: transparent;
    border: solid 2px #d9d9d9; 
    font-weight: 300;
    font-style: italic;
}





/*  ------------------------
ACTIVITIES 
-------------------------- */
.add-style, .removed-style {
    background-color: #fffdf4;
    border-radius: 120px;
    padding: 4px 12px; 
    font-weight: bold;
}
.add-style {
    color: #43A047; 
}
.removed-style {
    color: #C62828; 
}







.fadein {
    animation: fadein 680ms both;
}
@keyframes fadein {
    from {
        opacity: 0
    }
    to {
        opacity: 1;
    }
}
















/* =============================================================
CUSTOM HOMEPAGE 
============================================================== */
.custom-homepage-admin .section-heading {
    background-color: #212121;
    color: #fff; 
    border-radius: 4px; 
    box-shadow: 0 0.2rem 1rem #bdc1c899;
    padding: 1rem;
}


.custom-homepage-admin .separator {
    width: 60%; 
    height: 2px;
    margin: 4em auto; 
    background-color: #c1c1c1;
    border-radius: 16px;
}

.custom-homepage-admin .explications {
    display: flex; 
    justify-content: center;
    align-items: center;
    padding: 1em;
    background-color: var(--light-gray);
    color: #707070;
    border-radius: 8px;
    max-width: 890px;
    margin: 2em auto;
}

.custom-homepage-admin .empty-state {
    font-style: italic; 
    margin: 1em; 
}

/* NEWS */ 
.custom-homepage-news-form {
    margin: 2em 0; 
}
.single-news-form, .static-link-news-form {
    /* border-radius: 4px; */
    background-color: #ffffff;
    padding: 1em;
    margin: 1em 0;
    border: solid 2px #e3e3e3;
    box-shadow: 1px 1px 24px #00000029;
}

.static-link-news-form {
    background-color: #ff000024; 
}

.config-part {
    display: flex;
    gap: 18px;
}
.config-part label {
    font-weight: bold;
    margin-top: 2em;
    display: inline-block;
}
.config-part input {
    background-color: var(--light-gray);
}

.add-news-button {
    width: 100%;
    height: 64px;
    background-color: transparent;
    color: black;
    border: dashed 2px #212121;
    border-radius: 4px;
}
.add-news-button:hover {
    color: #282828; 
    background-color: #d1deff;
}




.img-part {
    width: 180px;

}

.img-part .default-empty-image {
    text-align: center;
    font-style: italic;
    border: dashed gray 2px;
    border-radius: 8px; 
    width: 96%; 
    padding: 2em;
    margin-bottom: 1em;
}
.img-part input[type="file"] {
    margin-top: 2em;
    padding: 6px;
    line-height: 2;
    display: inline-block;
}

.string-part {
    width: 80%; 
}

.string-part input {
    padding: 1em;
}


.cta-part {
    display: flex;
    justify-content: flex-end;
    margin: 1em 0; 
}
.cta-part button {
    background-color: #D9D9D9;
    border-radius: 4px;
    padding:1em 2em;
    margin-left: 1em; 
    font-weight: bold;
}
.cta-part button.btn--main {
    color: #fff; 
    background-color: #282828;
    box-shadow: 1px 1px 4px #535353;
    transform: scaleX(1); 
}

.cta-part button.btn--main.inactive {
    transform: scaleX(0); 
    transform-origin: right;
}

.img-part img {
    width: 96%;
    border-radius: 8px;
    box-shadow: 2px 2px 8px #00000042;
}

/* FEEDS */ 
.custom-homepage-feeds-form {
    background-color: #f1f1f1; 
    padding: 1em; 
}

.custom-homepage-admin .feed-input {
    display: flex; 
    margin: 1em 0; 
}

.custom-homepage-admin .feed-input input {
    background-color: #fff;
    padding: 1em;
    margin-left: 1em;
}




.custom-homepage-static-links-form {
    margin-bottom: 2em;
}