#cpage {
    max-width: none!important;
} 
#calendar {
    margin-top: 70px;
    padding: 5px 5px 20px 5px;
    /*min-width: 697px;*/
}
#plan-container {
    position: relative;
    margin: 20px 0 40px 0;
}
.plan-week {
    display: flex;
    vertical-align: top;
    width: 100%;
    overflow: hidden;
}

.nav {
    font-size: 36px;
    text-align: center;
}
.nav.top {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
}
#start-date {
    position: relative;
    z-index: 1000;
}
.plan-hours-content {
    position: relative;
}
.plan-hours-content div {
    display: block;
    position: absolute;
    font-size: 12px;
}
.plan-hours.left div { right: 0; text-align: right;}
.plan-hours.right div { left: 0; text-align: left;}
.plan-day {
    display: inline-block;
    flex-basis: 100%;
    border-right: 1px solid #0d181c;
}
.plan-day.n1 {
    border-left: 1px solid #0d181c;
    padding-left: 2px;;
}
.plan-day-content {
    display: block;
    position: relative;
}
.plan-day-content hr {
    position: absolute;
    width: 100%;
    margin: 0;
    color:  #0d181c;
    border-left: 0;
    border-right: 0;
    opacity: 0.5;
}
hr#chrono {
    color: #d81117;
    background-color: #d81117;
    height: 3px;
}
.plan-day-content div {
    display: block;
    position: absolute;
    width: 97%;
    left: 1%;
}
.slot {
    border-radius: 5px;
    opacity: 1;
    overflow: hidden;
}
.slot.previous {opacity: 0.5;}
.slot.a {background-color: #acd4dc;}
.slot.b {background-color: #a5d2ab;}
.slot.f {background-color: #009982;}
.slot.e {background-color: #ffc35c;}
.slot.n {
    background-color: #d19a85;
    color:#5300b7;
    text-align: center;
    border: 2px solid #d19a85;
}
.slot.d {
    background: none; 
    border: none; 
    z-index: 0;
}
.slot.a.multicol, .slot.b.multicol, .slot.f.multicol {
    width: 95%;
    height: 95%
}
i.multicol {
    font-size: 20px;
    margin: 0 !important;
}
.mv { 
    background-color: #d81117 !important;
}
.slot.mv .move {
    display: block; 
    position: absolute; 
    z-index: 1000;
    padding: 2px;;
    left: 0; 
    top: 0;
    color: #ebe7e3;
    background-color: #0d181c;
    font-size: 20px;
    font-weight: bold;
}
.slot.selected { background-color: #60b3d0; }
.slot:hover {cursor: pointer;}
.pastil {
    display: inline-block;
    border-radius: 12px;
    opacity: 1;
    padding: 1px 6px;
    color: #ebe7e3;
    background-color: #5300b7;
    border: none;
    line-height: 1.2em;
    margin-top: 1px;
    overflow: hidden;
}
.slot .pastil {
    max-width: 95%;
}
.pastil.c {
    color: #0d181c;
    text-decoration: line-through;
    background-color: #ebe7e3;
}
.pastil.plus {
    background-color: #ebe7e3;
}
.time.pastil {
    color: #60b3d0;
    background-color: #acd4dc;
}
.ui-draggable-handle { z-index: 900; }
.plan-day-title {
    line-height: 1em;
    text-align: center;
}
.plan-day-title.aaa {
    font-weight: bold;
    font-size: 16px;
}
.plan-day-title.d00 {
    font-size: 28px;
}
.plan-day-title.repeat {
    opacity: 0;
}
#slot-gen-content {
    padding: 0 10px;
}
#slot-gen-content i:hover {
    cursor: pointer;
}
#slot-gen-content i {
    margin: 0 10px;
}
#slot-gen-content input {
    background-color: white;
    border: 1px solid black;
    font-size: 16px;
}

.day-of-week, .exception-date {
    font-size: 18px;
    line-height: 0.8em;
    margin: 8px;
}
.day-of-week {
    display: inline-block;
}
span.day-of-week {
    display: inline-block;
    width: 120px;
    vertical-align: top;
}
span.on-off {
    display: inline-block;
    vertical-align: top;
    margin-left: 20px;
}
span.on-off i {
    font-size: 30px;
}
span.plages i, .exception-date i, i.exception-date {
    font-size: 20px;
}
span.plages {
    display: inline-block;
    vertical-align: top;
    margin-left: 20px;
}
span.plage {
    display: inline-block;
}
input.time {
    width: 54px;
    margin: 5px;
    font-size: 18px;
    border: 0;
}
input.number {
    width: 50px;
    margin: 5px;
    font-size: 18px;
    border: 0;
}
input.datepicker {
    width: 120px;
    font-size: 16px;
    margin: 5px;
    border: 0;
    text-align: center;
}
h2 {
    display: inline-block;
}
h3 {
    display: inline-block;
    font-size: 18px;
    margin: 20px 0 5px 0;
}
h4 {
    display: inline-block;
    font-size: 18px;
    margin: 0;
}
#sg-generation-content {
    padding: 0 10px;;
}
#plan-canvas {
    position: absolute;
}

/****************************************************************************/
/*                                  POPUPs                                  */
/****************************************************************************/

.user.plus input {
    width: 200px;
    margin-top: 3px;
}
input.busy {
    width: 240px;
    margin: 0!important;
}
.unvalid-slot, .valid-slot {
    display: inline-block;
    margin-top: 8px;
}
div.busy {
    padding: 1px;
    width: 85%;
    font-size: 16px;
    color: #5300b7;
}
.red {
    color: #d81117;
}
.action:hover {
    cursor: pointer;
    color: #d81117;
}
#create-user-popup div {
    text-align: right;
}
.popup input {
    margin: 10px 0 0 0;
    height: 18px;
    border: none;
    font-size: 16px;
}
.popup label {
    margin-right: 5px;
}
.input.align {
    width: 200px;
}
.popup .button {
    margin: 10px 0 0 10px;
}
.gender i {
    margin: 10px 5px 0 10px;
}
.gender .radio:hover {
    cursor: pointer;
}
.error {
    color: #d81117 !important;
}
.error input {
    border: 1px solid #d81117 !important;
}
.error-msg {
    color: #d81117;
    margin-top: 10px;
}
#user-popup {
    overflow: scroll;
}
textarea {
    width: 100%;
    height: 100%;
    font-size: 16px;
}
#user-content input.align {
    width: 240px;
}
#bk-content {
    margin-top: 15px;
}
#bk-edit-slot {
    font-size: 24px;
    margin-left: 30px;
}
.fa-window-close {
    position: absolute;
    right: 5px;
    top : 5px;
    font-size: 32px !important;
}
#slot-detail div {
    margin-top: 10px;
}
#infos-group {
    display: inline-block;
    padding: 10px;
    width: 320px;
    vertical-align: top;
}
#infos-group div {
    text-align: right;
    margin-top: 15px;
}
#memento-group {
    display: inline-block;
    padding: 10px;
    color: #d81117
}
#memento-group textarea {
    color: #d81117;
    border-color: #d81117;
}
#cam-popup i {
    font-size: 36px !important;
}
#cam-popup {
    text-align: center;
}
#cam-popup video{
    display: inline-block;
    max-width: 98%;
}
#cam-popup canvas {
    display: inline-block;
}
#pic-memo {
    margin: 5px 0;
}
#attachment-group i {
    font-size: 56px;
    display: inline-block;
    vertical-align: top;
    margin: 5px 5px 0 0;
}
.attachment {
    font-size: 10px;
    display: inline-block;
    text-align: center;
    margin: 5px 5px 0 0;
}
#attach-date {
    margin: 10px 0 5px 0;
}
#attachment-popup {
    text-align: center;
    font-size: 20px;
}
#attachment-popup img {
    width: 98%;
}
#attachment-popup textarea {
    margin-bottom: 10px;
    width: 98%;
}
#attachment-popup span.action {
    font-weight: bold;
    text-decoration: underline;
}
.rule {
    display: inline-block;
    font-size: 18px;
    line-height: 0.8em;
    margin: 10px 0;
}
.rule span {
    vertical-align: middle;
}
.rule input {
    font-size: 18px;
    vertical-align: middle;
    margin: 5px 0;
}
input[type="time"] {
    width: 70px;
}
input[type="number"] {
    width: 60px;
    text-align: center;
}
input[type="number"].money {
    width: 90px;
    text-align: center;
}
input.rule-desc {
    width: 350px;
}
.rule label {
    margin-left: 10px;
    vertical-align: middle;
}

#sg-services-content i {
    font-size: 20px;
}
#sld-location {
    max-width: 88vw;
}
.calpopup {
    position: absolute;
    font-size: 16px;
    min-width: 250px;
    border-radius: 10px;
    background-color: #ebe7e3;
    border: 1px solid #5300b7;
    box-shadow: 5px 5px 5px #9a81b9;
    color: #5300b7;
    padding: 10px;
    z-index: 910;
}
select, textarea, input {
    padding: 3px;
}
#create-user-popup input {
    margin: 3px 0 0 3px;
}
#create-user-popup .button {
    margin: 3px 0 0 3px;
}
.multicol {
    margin-bottom: 20px;
}
#staffname {
    width:250px;
}
#staffcolor {
    width: 200px !important;
    appearance: none;
    -webkit-appearance: none;
    padding: 5px;
    border-radius: 4px;
    background-image: linear-gradient(to right, red, orange, yellow, green, blue);
    background-size: 100% 100%;
    color: white;
}

#staffcolor option {
    padding: 5px;
    background-color: transparent;
    color: black;
}
.service {
    background-color: #ebe7e3;
    border: 1px solid #ccc;
    border-radius: 5px;
    width:fit-content;
    display: inline-block;
    padding: 10px;
    margin-left: 15px;
}
.assignement select {
    margin: 10px 0 0 20px;
}
.rule .itop {
    display: inline-block;
    vertical-align: top;
    padding-top: 22px;;
    width: 20px;
    line-height: 2em;
}