
html,body{
    height: 100%;
}

body {
    
    font-family: 'Open Sans',sans-serif;
    font-size: 1em;
    color: #465032;
}

/** Structure */

a {
    color:#465032;
}

a:hover {
    color: #414042;
}

h1{
    text-align: center;
    font-size: 2rem;
}
h2{
    text-align: center;
    font-size:1.35rem;
    padding-top: 10px;
}

h3 {
    font-size: 1.2em;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    color: #414042;
    border-bottom: 1px solid #ccc;
    padding: 5px 0;
}

h4 {
    font-size: 1em;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    color: #414042;
    border-bottom: 1px solid #ccc;
    padding: 5px 0;
}

#header {
    padding: 20px;
    background: #f6f6f6;
    color: #465032;
}
.persons {
    position: absolute;
    right: 12px;
    top: 25px;
}
.boxlogin
{ 
width: 300px;
border: 1px solid #ccc;
position: relative;
margin: 20px auto;
text-align: center;
}
 .boxlogin img {
    width: 100%
 }

#wrapper{
    min-height:100%;
    margin: 0 auto -64px;
}

#content {
    background: #fff;
    padding: 40px 20px 64px;

}

#footer {
    background: #f6f6f6;
    color: #465032;
    padding: 20px;
    text-align: center;
}

/* Links */
#header a {
    color: #414042;
}

#header a.logout {
    color: #de3838;
    background: none;
    padding: 0 10px;
}

#header a.logout:hover {
    color: #000;
    background: none;
}

form {
    margin: 15px 4px 30px;
}

form label { 
    text-align: left; 
}

form input, form select {
    border: 1px solid gray;
    padding: 4px;
}


form br {clear: left;}

.btn-primary {
 background-color: #6a7d45;  
 border: 0;
 border-radius: 0px;
}

.btn-primary.desactive,
.btn-primary.disabled, .btn-primary:disabled,
.btn-primary:not(:disabled):not(.disabled).active, .btn-primary:not(:disabled):not(.disabled):active, .show > .btn-primary.dropdown-toggle,
.btn-primary:not(:disabled):not(.disabled).active:focus, .btn-primary:not(:disabled):not(.disabled):active:focus, .show > .btn-primary.dropdown-toggle:focus,
.btn-primary.desactive:hover {
    background-color: #96ac6c;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-primary:hover{
     background-color: #5d703d;  
 }

.btn-secondary {
    border: 1px dashed #6a7d45;
    color: #6a7d45;
    background: none;
 }

.btn-secondary:focus, .btn-secondary:hover, .btn-secondary:active,
.btn-secondary:not(:disabled):not(.disabled).active, .btn-secondary:not(:disabled):not(.disabled):active, .show > .btn-secondary.dropdown-toggle,
.btn-secondary:not(:disabled):not(.disabled).active:focus, .btn-secondary:not(:disabled):not(.disabled):active:focus, .show > .btn-secondary.dropdown-toggle:focus { 
     background: none;
     border: 1px solid #6a7d45;
     color: #6a7d45;
 }

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
   background-color: #6a7d45;
}

.btn-add{
    background: #007bff;
    position: fixed;
    bottom: 70px;
    right: 50px;
    border-radius: 50%;
   
}

.btn-add a i {
     font-size: 35px;
     border-radius: 55%;
     padding: 20px;
     color: #fff;
}

a:not([href]):not([tabindex]) {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}
.col-form-label{
    margin: 9px 0 0 9px;
}

#ajoutFiche .col-form-label {
    margin: 11px 0 0 0px;
}

.block {
    margin-left: 20%;
    margin-right: 20%;
}

.currenttempsinter {
    font-size: 1.1em;
}

.btn-light {
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    color: #495057 !important;
}

.bootstrap-select:not([class*="col-"]):not([class*="form-control"]):not(.input-group-btn) {
    width: 100% !important;
}

#dropdownMenuAjout:after {
    border: 0;
    margin: 0;
}

/* Gestion des plannings */
.day,
.team {
    width: 20%;
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0,0,0,.125);
    margin-bottom: 2.5rem
}

.agenda-content .nothing {
    margin-bottom: 2.5rem;
}

.day:not(:first-child),
.team:not(:first-child) {
    border-left: none;
}

    .task    .timer {
    font-size: .8em;
    font-weight: 700;
    letter-spacing: .1em;
}

.task .timer i {
    font-size: 1.2em;
}

.day-header,
.team-header {
    padding: .75rem 1.25rem;
    margin-bottom: 0;
    background-color: rgba(0,0,0,.03);
    border-bottom: 1px solid rgba(0,0,0,.125);
    color: #70757a;
    text-align: center;
}

.day-header span {
    display: block;
    text-align: center;
}

.team-header .small {
    display: block;
}

.day-header span.text {
    text-transform: uppercase;
    font-size: .65em;
    font-weight: 700;
    letter-spacing: .05em;
}

.day-header span.number {
    font-size: 1.5em;
}

.day-body,
.team-body {
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 1.25rem;
}

.task {
    position: relative;
    padding: .25rem .5rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(0,0,0,.1);
    color: rgba(0,0,0,.75);
    background-color: #d1ecf1;
    min-height: 80px;
    overflow: hidden;
}

.task a {
    color: rgba(0,0,0,.75);
}

.task-header {
    border-bottom: 1px solid rgba(0,0,0,.1);
    padding: .25rem;
    margin-bottom: .75rem;
    cursor: pointer;
    font-size: .9em;
}

.task-body {
    font-size: .875em;
    display: none;
}

.navigation a {
    color: #007bff !important; 
}

.navigation a:hover {
    cursor: pointer;
    color: #000 !important;
}

@media(max-width: 575px) {
    .day,
    .team {
        width: 100% !important;
        border: 1px solid rgba(0,0,0,.125) !important;
    }

    .carousel-item {
        border: 1px solid rgba(0,0,0,.125) !important;
    }

    .carousel-nav {
        text-align: center;
        margin-bottom: 2.5rem;
    }

    .carousel-control-next, 
    .carousel-control-prev {
        position: relative;
        display: inline-block;
        opacity: 1;
    }   

    .carousel-control-next, .carousel-control-prev {
        color: #007bff !important; 
    }

    .carousel-control-next .material-icons, 
    .carousel-control-prev .material-icons {
        font-size: 2em;
    }
}

.pagin {
    color: #414042;
}

.pagin .btn {
    font-size: 1.5em;
}

/* Paramétrage */ 
#parametrage .form-control[readonly] {
    background: #fff;
}

.validAddPresta {
    border: none;
    background: none;
    cursor: pointer;
}

.changeMonth {
    cursor: pointer;
}
.changeMonth .ui-datepicker-inline {
    position: absolute;
    z-index: 1;
}

.conges:nth-child(odd),
.saisonniers:nth-child(odd),
.vehiculesManquants:nth-child(odd),
.absences:nth-child(odd) {
    background: #f4f4f4;
}


/* Toggle */
.toggle-checkbox.toggleEmailState
{
    position: relative;
    width: 100%;
    min-height: 100%;
    z-index: 3;
    opacity: 0;
    cursor: pointer;
}

.toggle-wrapper
{
    position: relative;
    display: inline-block;
    width: 55px;
    height: 28px;
    margin: 0;
    cursor: pointer;
    border-radius: 34px;
    background-color: #ccc;
    transition: background-color .4s;
}

.toggle-wrapper:has(.toggle-checkbox:checked)
{
    background-color: rgba(0, 123, 255, .8);
}

.toggle-switch
{
    position: absolute;
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    top: 4px;
    left: 4px;
    background-color: #fff;
    transition: background-color .4s, transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.toggle-wrapper:has(.toggle-checkbox:checked) .toggle-switch
{
    transform: translateX(27px);
}


/* Popup ajout E-mail */
body::before
{
    content: "";
    position: fixed;
    background: rgba(0,0,0,.75);
    backdrop-filter: blur(2px);
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    transition: all ease 0.6s;
    opacity: 0;
    visibility: hidden;
}

body:has(.edition-modal.modal-visible)::before
{
    z-index: 1;
    opacity: 1;
    visibility: visible;
}

.btn-add.modal-opener
{
    cursor: pointer;
}

.btn-add.modal-opener i
{
    font-size: 35px;
    border-radius: 55%;
    padding: 20px;
    color: #fff;
}

.edition-modal
{
    border-radius: 10px;
    padding: 50px 80px;
    background-color: #fff;
    box-shadow: 0 0 30px rgba(0,0,0,.3);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translateY(100vh) translateX(-50%);
    opacity: 0;
    transition: opacity ease 0.6s, transform ease 0.4s;
    z-index: 2;
}

.edition-modal.modal-visible
{
    transform: translateY(calc(50vh - 300px)) translateX(-50%);
    opacity: 1;
}

.edition-modal .modal-content
{
    background-color: #fff;
    border: none;
    border-radius: 0;
    gap: 30px;
}

.edition-modal .modal-content h2
{
    padding: 0;
    margin: 0;
    font-weight: 700;
}

#newEmailInput
{
    border: 2px solid gray;
    padding: 4px 8px;
}

.modal-actions
{
    display: flex;
    flex-direction: row-reverse;
    gap: 15px;
}

.modal-actions button
{
    border: none;
    border-radius: 50px;
    padding: 8px 30px 10px;
    background: #007bff;
    color: #fff;
    transition: all ease 0.3s;
}

.modal-actions button:hover
{
    transform: scale(0.9);
}



   .description {
       display: -webkit-box;
       text-align: center;
       -webkit-line-clamp: 2;
       /* 2 lines max */
       -webkit-box-orient: vertical;
       overflow: hidden;
       text-overflow: ellipsis;
       max-width: 300px;
       /* adjust as needed */
   }

   /* Button style */
   .show-more-btn {
       background: none;
       border: none;
       color: blue;
       cursor: pointer;
       padding: 10px;
       margin-top: 5px;
       font-size: 0.9em;
   }