/* SCROLLBAR CUSTOM*/
*::-webkit-scrollbar {
    width: 6px; /* width of the entire scrollbar */
    height: 6px;
}

*::-webkit-scrollbar-track {
    background: #cecece; /* color of the tracking area */
}

*::-webkit-scrollbar-thumb {
    background-color: #606060; /* color of the scroll thumb */
    border-radius: 20px; /* roundness of the scroll thumb */
    /*border: 3px solid orange; !* creates padding around scroll thumb *!*/
}

a.disabled {
    pointer-events: none;
    cursor: default;
    color: #8a8d91;
}

.hidden {
    display: none !important;
}

form .d-flex .form-group {
    margin: 5px;
}

#containerBody {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    flex-direction: column;
    margin: auto;
    padding: 10px;
}

#menuBar {
    background-image: linear-gradient(to left, #cecece, #676767);
    border-right: solid grey 1px;
    overflow: auto;
}

.greyBtn {
    background-image: linear-gradient(to right, #cecece, #ffffff);
    font-weight: 400;
    color: #212529;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s;
    margin: 0.5rem;
    display: block;
}

.greyBtn:hover {
    background-image: linear-gradient(to right, #efefef, #ffffff);
    color: #212529;
    font-weight: 600;
    text-decoration: none;
}

#content {
    background-size: cover;
    width: 100%;
    height: 100%;
    overflow: auto;
}

.viewTitle {
    width: fit-content;
    margin: auto;
    padding: 7px;
    border: solid lightgray 1px;
    border-radius: 5px;
    background-color: #f5f5f5;
    margin-top: 5px;
    margin-bottom: 5px;
}

.listBox {
    display: flex;
    flex-wrap: wrap;
    max-width: 60%;
}

.box {
    background-color: #f5f5f5;
    margin: 5px;
    padding: 14px;
    border: lightgrey solid 1px;
    border-radius: 5px;
    font-size: larger;
    width: 200px;
    color: black;
}

.box:hover {
    color: black;
    text-decoration: none;
    border-color: black;
}

#sidePanel {
    height: 100%;
    position: fixed;
    z-index: 1;
    top: 0;
    right: 0;
    background-color: #fff;
    overflow-x: hidden;
    padding-top: 60px;
    padding: 30px;
    border: solid 1px #000000;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    visibility: hidden;
}

#sidePanel.sidePanelOpen {
    width: 60%;
    visibility: visible;
}

#sidePanel.sidePanelOpen.sidePanelExtended {
    width: 70%;
}

#sidePanelIframe {
    overflow: auto;
    width: 100%;
    height: 98%;
    border: none;
}

#minorWorksList div {
    border: solid grey 1px;
    margin: 2px;
    background-color: #f1f1f1;
    padding: 5px;
    border-radius: 5px;
}
#minorWorksList div:hover {
    cursor: pointer;
    background-color: white;
}

#majorWorkList div button {
    justify-self: flex-end;
    margin-left: auto;
}
#majorWorkList div {
    border: solid grey 1px;
    margin: 2px;
    background-color: #f1f1f1;
    padding: 5px;
    border-radius: 5px;
}
#majorWorkList div:hover {
    cursor: pointer;
    background-color: white;
}

#majorWorkList div button {
    justify-self: flex-end;
    margin-left: auto;
}
.messageList > div {
    margin-bottom: 1rem;
}
.receivedMessage {
    width: fit-content;
    padding: 8px 12px;
    border-radius: 10px;
    border-top-left-radius: 0px;
    color: #050505;
    font-size: 0.9375rem;
    background-color: #e4e6eb;
}
.sentMessageContainer {
    display: flex;
    justify-content: flex-end;
}
.sentMessage {
    background-color: cornflowerblue;
    padding: 8px 12px;
    border-radius: 10px;
    color: white;
    border-top-right-radius: 0;
    z-index: 2;
    font-size: 0.9375rem;
}
.sentMessage,
.receivedMessage,
.sentMessageRepliedTo,
.receivedMessageRepliedTo {
    max-width: 350px;
    word-break: break-word;
}
.sentMessageRepliedTo {
    background-color: #f0f2f5;
    padding: 8px 12px;
    border-radius: 10px;
    padding-bottom: 20px;
    margin-bottom: -15px;
    z-index: 0;
    color: #65676b;
    font-size: 0.8125rem;
    width: fit-content;
    align-self: flex-end;
}
.receivedMessageRepliedTo {
    background-color: #f0f2f5;
    padding: 8px 12px;
    border-radius: 10px;
    padding-bottom: 20px;
    margin-bottom: -15px;
    z-index: 0;
    color: #65676b;
    width: fit-content;
    align-self: flex-start;
    font-size: 0.8125rem;
}
.sentMessageRepliedTo p,
.receivedMessageRepliedTo p {
    margin-bottom: 0;
}
.imageRepliedTo {
    width: 50px;
    border-radius: 4px;
    cursor: pointer;
}
.sentMessageInfos {
    font-style: italic;
    display: flex;
    justify-content: flex-end;
    font-size: 0.75rem;
    color: #8a8d91;
}
.receivedMessageInfos {
    font-style: italic;
    display: flex;
    justify-content: flex-start;
    font-size: 0.75rem;
    color: #8a8d91;
}
.messageList {
    flex-basis: 0px;
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
}
.messagerie {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    position: relative;
}
#responsePreviewContainer {
    background-color: white;
    border-radius: 4px;
    margin: 5px;
}
#responsePreviewContainer > div {
    padding: 10px 15px;
    width: 80%;
}
#responseOriginAuthor {
    font-size: 18px;
}
#responseOriginMessage {
    width: 500px;
    word-break: break-word;
    margin: 0;
    font-size: 14px;
    color: #6e6e6e;
}
.sentImage {
    max-width: 200px !important;
    border-radius: 10px;
    border-top-right-radius: 0;
    cursor: pointer;
}
.sentImageDiv {
    display: flex;
    justify-content: flex-end;
    width: fit-content;
    z-index: 1;
}
.sentMessageContainer2 {
    display: flex;
    flex-direction: column;
    max-width: 70%;
}
.sentMessageTagInfos {
    display: flex;
    width: fit-content;
    align-items: center;
    padding: 0 10px;
    border-radius: 15px;
    border: 1px solid #8a8d91;
    font-size: 0.65rem;
    font-weight: 600;
    margin-left: auto;
    margin-top: 2px;
    color: #8a8d91;
}
.receivedMessageTagInfos {
    display: flex;
    width: fit-content;
    align-items: center;
    padding: 0 10px;
    border-radius: 15px;
    border: 1px solid #8a8d91;
    font-weight: 600;
    margin-top: 2px;
    font-size: 0.65rem;
    color: #8a8d91;
}
.whoReplied {
    margin: 0;
    font-size: 0.75rem;
    color: #8a8d91;
}
.whoReplied .fa-reply {
    margin-right: 5px;
}
.receivedImage {
    max-width: 200px !important;
    border-radius: 10px;
    border-top-left-radius: 0;
    cursor: pointer;
}
.sentImage:hover,
.receivedImage:hover {
    opacity: 0.7;
    filter: alpha(opacity=70);
}
#imagePreview {
    width: 100%;
}
#messageInput {
    width: 80%;
}
.messageResponseButton,
.messageDeleteButton {
    display: none;
    margin-left: 15px;
    border-radius: 50%;
}
.receivedMessageContainer:hover .messageResponseButton {
    display: block;
}
.dayTimeClockFirstRow td {
    border-top-color: black;
}

.dayTimeClockLastRow td {
    border-bottom-color: black;
}

.redPastelBg {
    background-color: #f39797 !important;
}

.greenPastelBg {
    background-color: #a6e4b5 !important;
}

.sortByRole {
    display: flex;
    list-style-type: none;
}

.sortByRole li {
    margin: 0 10px;
}
.panelLoader {
    background-color: white;
    position: absolute;
    top: 30px;
    left: 30px;
    right: 30px;
    bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.messageLoader {
    background-color: transparent;
    position: absolute;
    top: -25%;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.removeDayTimeClock {
    margin-bottom: 1rem;
    margin-left: auto;
    display: block;
}
.resetFilterButton {
    align-self: flex-end;
    margin-right: 80px;
}
.ouvrageCloture {
    background-color: #c5c1c1 !important;
    font-style: italic;
}
.constructionSiteCloture {
    background-color: grey !important;
    font-style: italic;
}
.sticky-head > th {
    position: sticky;
    top: 0;
}
.second-sticky-head > th {
    position: sticky;
    top: 22px;
}

.divCheckReception {
    border-top: solid black 1px;
    padding: 5px;
    align-items: center;
}

.divCheckReception > div {
    display: flex;
}

.divCheckReceptionText > div {
    width: 60%;
}

.divCheckReception > div > .form-group {
    margin: 10px;
}

.divCheckReceptionText > div > .form-group:nth-child(2) {
    width: 70%;
}
.form-control.form-control-sm.dropdown-toggle {
    min-height: 100%;
}

#loaderListingWork {
    position: absolute;
    left: 14%;
    bottom: 15px;
}

.messageDeleteButton {
    display: none;
    margin-right: 15px;
    border-radius: 50%;
    align-self: center;
}

.sentMessageContainer:hover .messageDeleteButton {
    display: block;
}

.receivedMessageContainer:hover .messageDeleteButton {
    display: block;
}

.requiredError {
    margin-left: 5px;
    position: relative;
    top: -5px;
}

td.center {
    text-align: center;
    vertical-align: middle;
}

.rfs {
    font-size: calc(8px + (14 - 8) * ((100vw - 1200px) / (2100 - 1200)));
}

.rfs.btnConstructionSite {
    text-align: left !important;
    font-size: calc(10px + (14 - 10) * ((100vw - 1200px) / (2100 - 1200)));
}

#constructionSites {
    overflow-y: auto;
    max-height: 30rem;
    height: 100%;
}

table.admin-users input[type='checkbox'] {
    width: 2rem;
    height: 2rem;
    margin: 0 auto;
}

table.admin-users td {
    vertical-align: middle !important;
}

.card-rounded {
    border-radius: 15px;
    border: 1px solid rgb(190, 190, 190);
    background-color: #f8f9fa;
}

.card-top-radius {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    background-color: rgba(0,0,0,.12);
    border-bottom: 1px solid rgb(190, 190, 190);
}

.card-bottom-radius {
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    background-color: #f8f9fa;
}

.bg-grey {
    background-color: rgba(0,0,0,.12);
}

.phase.clotured {
    background-color: #d3d3d3;
}

.phase.clotured a {
    text-decoration: none;
    color: #3e444a
}
