@font-face {
    font-family: "Continuum Medium";
    src: url('police/contm.ttf');
}

@font-face {
    font-family: "Continuum Light";
    src: url('police/contl.ttf');
}

@font-face {
    font-family: "Continuum Bold";
    src: url('police/contb.ttf');
}


/* ---------------------------------------------------
    VARIABLES CSS POUR LES COULEURS
----------------------------------------------------- */
:root {
    --brand-primary: #79146a;
    --brand-secondary: #842c75;
    --brand-accent: #9b5991;
    --brand-light: #a770a1;
    --brand-hover: #c19ec1;
    --text-white: #ffffff;


    --vaadin-user-color-1: #c765da;
    --vaadin-user-color-2:  #7e57c2;
    --vaadin-user-color-3:  #5c6bc0;
    --vaadin-user-color-4:  #42a5f5;
    --vaadin-user-color-5:  #26a69a;
    --vaadin-user-color-6:  #66bb6a;
    --vaadin-user-color-7:  #9ccc65;
    --vaadin-user-color-8:  #ffa726;
    --vaadin-user-color-9:  #ff7043;
    --vaadin-user-color-10: #8d6e63;
    --vaadin-user-color-11: #78909c;
    --vaadin-user-color-12: #e47c1b;
    --vaadin-user-color-13: #607d8b;
    --vaadin-user-color-14: #26c6da;
}

h1 {
    font-family: 'Continuum Medium', sans-serif;
}

body {
    font-family: 'Verdana', sans-serif;
}

.content-wrapper {
    background-image: url("../images/design/layout/fond-BIV-3000px.jpg");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: auto;
    background-position: center center;
}

.dark-mode .content-wrapper {
    background-image: url("../images/design/layout/dark-fond-BIV-3000px.jpg");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: auto;
    background-position: center center;
}

p {
    font-size: 1.1em;
    font-weight: 300;
    line-height: 1.7em;
}

a,
a:hover,
a:focus {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
}

.line {
    width: 100%;
    height: 1px;
    border-bottom: 1px dashed #ddd;
    margin: 40px 0;
}

.name {
    font-family: 'Continuum Medium', sans-serif;
    color: white;
    margin-bottom: 0%;
    text-align: center;
}

.scroll {
    max-height: 500px;
    overflow-y: auto;
}

.fc-datagrid-cell-main {
    white-space: pre-line;
}

label.required:after {
    content: " *";
    color: red;
    font-weight: lighter;
}

a.download {
    background: #fff;
    color: #7386D5;
}

a.article,
a.article:hover {
    background: #6d7fcc !important;
    color: #fff !important;
}

.gradient-1 {
    background: #79146a;
}

.gradient-2 {
    background: #842c75;
}

.gradient-3 {
    background: #8f4382;
}

.gradient-4 {
    background: #9b5991;
}

.gradient-5 {
    background: #a770a1;
}

.gradient-6 {
    background: #c19ec1;
}

.gradient-planning {
    background: #c093c0;
}

.gradient-service {
    background: #ad76ad;
}

/* ---------------------------------------------------
    CONTENT STYLE
----------------------------------------------------- */

.home {
    color: #d9d9d9;
}

#content {
    width: 100%;
    padding: 20px;
    min-height: 100vh;
    transition: all 0.3s;
}

.pagination {
    display: -ms-flexbox;
    flex-wrap: wrap;
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 0.25rem;
}

.rotate-round {
    transform: rotate(90deg);
}

.btn-primary {
    background-color: #a12d5f; /* Couleur intermédiaire */
    border-radius: 5px;
    border: inherit;
    color: white;
    padding: 10px 20px;
    white-space: normal;
}

@media all and (max-width: 30em) {
    .btn-primary {
        display: block;
        margin: 0.4em auto;
    }
}

.borderIMG {
    border-width: 1px;
    border-style: solid;
    border-color: #5c002d;
}

.borderBIV {
    border-width: 1px;
    border-style: solid;
    border-color: #5c002d;
}

.background-button {
    background: #a770a1;
}

.divInline {
    display: inline-table;
}

.input-group {
    display: inline;
}

.restrictImg img {
    max-width: 100%;
}

.list-group {
    /*border-width: 1px;
    border-style: solid;
    margin: 3px;*/
    border-color: #5c002d;
}

.largeSelect ul.dropdown-menu.inner {
    max-height: none !important;
    max-width: 10rem !important;
    min-width: 100% !important;
    overflow-y: auto;
}

.mail {
    text-align: left;
    display: inline-block;
    position: relative;
    width: 100%;
}

.hidden {
    visibility: hidden;
}

.shown {
    visibility: visible;
}

.hugeModal {
    max-width: 50% !important;
}


.hugeModalImage {
    max-width: 90%;
!important;
    max-height: 90%;
!important;
}

.modal-xxl {
    max-width: 70%;
!important;
    max-height: 70%;
!important;
}

.modal-large {
    max-width: 90%;
!important;
    max-height: 70%;
!important;
}

.cardDragula {
    padding: 20px;
    margin: 20px;
    text-align: center;
    cursor: pointer;
    background: #fbfbfb;
    border: solid 1px lightgrey;
}

.closeButton {
    float: right;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .5;
}

.closeButton:hover,
.closeButton:focus {
    color: #000;
    text-decoration: none;
    opacity: .75;
}

button.closeButton {
    padding: 0;
    background-color: transparent;
    border: 0;
    -webkit-appearance: none;
}

.modal-header .closeButton {
    padding: 1rem;
    margin: -1rem -1rem -1rem auto;
}

.fc-event-title-container{
    cursor: pointer;
}

#containerParentDragula {
    background: #fbfbfb;
    padding: 20px;
    margin: 20px;
    border: solid 1px lightgrey;
}

#progress-wrp {
    border: 1px solid #0099CC;
    padding: 1px;
    position: relative;
    height: 30px;
    border-radius: 3px;
    margin: 10px;
    text-align: left;
    background: #fff;
    box-shadow: inset 1px 3px 6px rgba(0, 0, 0, 0.12);
}

#progress-wrp .progress-bar {
    height: 100%;
    border-radius: 3px;
    background-color: #f39ac7;
    width: 0;
    box-shadow: inset 1px 1px 10px rgba(0, 0, 0, 0.11);
}

#progress-wrp .status {
    top: 3px;
    left: 50%;
    position: absolute;
    display: inline-block;
    color: #000000;
}

.fc-day-today {
    background-color: #F7DC6F !important;
}

html,
body,
.intro {
    height: 100%;
}

.card {
    border-radius: .5rem;
}

.mask-custom {
    background: rgba(24, 24, 16, .2);
    border-radius: 2em;
    backdrop-filter: blur(25px);
    border: 2px solid rgba(255, 255, 255, 0.05);
    background-clip: padding-box;
    box-shadow: 10px 10px 10px rgba(46, 54, 68, 0.03);
}

.noHour .fc-event-time {
    display: none;
}


.jumbotron{
    padding: 1rem;
}

.form-group:has(> .submitRight) {
    text-align: right;
}

.movementTable th{
    text-decoration: underline;
}

.movementTable,
td:first-child,
th:first-child {
    border-radius: 10px 0 0 10px;
}

.movementTable,
td:last-child,
th:last-child {
    border-radius: 0 10px 10px 0;
}


/* ---------------------------------------------------
    NAVBAR
----------------------------------------------------- */
.brand-link {
    display: inline-block;
    padding: 10px;
}

.brand-link .brand-image {
    max-height: 60px;
    background-color: var(--text-white);
    border-radius: 8px;
    padding: 5px;
}

.user-panel .info a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 150px;
    color: var(--text-white);
    transition: color 0.3s ease;
}

.user-panel .info a:hover {
    color: var(--brand-hover);
}

/* ---------------------------------------------------
    VARIABLES CSS POUR LES COULEURS
----------------------------------------------------- */
:root {
    --brand-primary: #79146a;
    --brand-secondary: #842c75;
    --brand-accent: #9b5991;
    --brand-light: #a770a1;
    --brand-hover: #c19ec1;
    --text-white: #ffffff;
}

.movementTitle {
    background-color: var(--brand-accent);
}

.movementSubTitle {
    background-color: var(--brand-hover);
}

.detailMovementUpdate {
    background-color: mediumseagreen;
}

.ts-dropdown {
    z-index: 10000000 !important;
}
/* ---------------------------------------------------
    NAVBAR
----------------------------------------------------- */
.brand-link {
    display: inline-block;
    padding: 10px;
}

.brand-link .brand-image {
    max-height: 60px;
    background-color: var(--text-white);
    border-radius: 8px; /* Ajout pour un design plus moderne */
    padding: 5px;
}

.user-panel .info a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 150px;
    color: var(--text-white);
    transition: color 0.3s ease;
}

.user-panel .info a:hover {
    color: var(--brand-hover);
}

.nav-pills .nav-link.active, .nav-pills .show>.nav-link{
    background-color: var(--brand-hover);
}

/* ---------------------------------------------------
    GRADIENTS
----------------------------------------------------- */
.gradient-1 {
    background: var(--brand-primary);
}

.gradient-2 {
    background: var(--brand-secondary);
}

.gradient-3 {
    background: var(--brand-accent);
}

.gradient-4 {
    background: var(--brand-light);
}

.gradient-5 {
    background: var(--brand-hover);
}

/* ---------------------------------------------------
    SIDEBAR STYLES
----------------------------------------------------- */
.main-sidebar {
    background: linear-gradient(to bottom, var(--brand-primary), var(--brand-accent));
    color: var(--text-white);
    border-right: 1px solid var(--brand-hover); /* Ajout d'une bordure pour un contraste */
}

.nav-sidebar .nav-item .nav-link {
    color: var(--text-white);
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 5px; /* Ajout d'angles arrondis */
    padding: 10px 15px;
}

.nav-sidebar .nav-item .nav-link:hover {
    background: var(--brand-accent);
    color: var(--text-white);
}

.nav-sidebar .nav-icon {
    color: var(--text-white);
    transition: color 0.3s ease;
}

.nav-sidebar .nav-item .nav-link.active {
    background: var(--brand-secondary);
    color: var(--text-white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Ajout d'une ombre moderne */
}

.menu-open > .nav-treeview {
    border: 2px solid var(--brand-hover);
    border-radius: 5px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.05); /* Fond légèrement transparent */
}

.nav-treeview.show {
    display: block;
    animation: fadeIn 0.3s ease; /* Animation lors de l'ouverture */
}

.menu-open > .nav-link {
    background: var(--brand-light);
}

/* Couleur blanche sur tout le texte */
.main-sidebar,
.main-sidebar .nav-sidebar .nav-link,
.main-sidebar .nav-sidebar .nav-link p,
.main-sidebar .nav-icon {
    color: var(--text-white) !important;
}

/* Animation et effet au survol */
.nav-sidebar .nav-link {
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-sidebar .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background: var(--text-white);
    transition: width 0.3s ease;
}

.nav-sidebar .nav-link:hover::after {
    width: 100%;
}

.nav-link .right {
    transition: transform 0.3s ease;
}

.menu-open .right {
    transform: rotate(-90deg);
}

/* ---------------------------------------------------
    ANIMATIONS
----------------------------------------------------- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ---------------------------------------------------
    MEDIAQUERIES
----------------------------------------------------- */

@media (max-width: 768px) {
    .content-wrapper {
        background-image: url("../images/design/layout/fond-mobile-2.jpg");
        background-repeat: no-repeat;
        background-position: center center;
    }

    .dark-mode .content-wrapper {
        background-image: url("../images/design/layout/dark-fond-mobile-2.jpg");
        background-repeat: no-repeat;
        background-position: center center;
    }

    .hugeModal {
        max-width: 100% !important;
    }
}


.modal-fullscreen {
    width: 100vw;
    max-width: none;
    height: 100%;
    margin: 0;
}

.modal-fullscreen .modal-content {
    height: 100%;
    border: 0;
    border-radius: 0;
}

.modal-fullscreen .modal-header,
.modal-fullscreen .modal-footer {
    border-radius: 0;
}

.modal-fullscreen .modal-body {
    overflow-y: auto;
}

.ag-theme-quartz {
    --ag-selected-row-background-color: #008cff;
}

.toggle-container {
    display: inline-block;
    position: relative;
}


.vertical-separator {
    display: inline-block; /* Assure un comportement en ligne */
    border-left: 2px solid grey; /* Ligne verticale */
    height: 30px; /* Ajuste la hauteur selon tes besoins */
    margin: 0 10px; /* Espace autour de la barre */
}

.card-document {
    border-width: 1px;
    border-style: dotted;
    border-color: #5c002d;
    display: block;
    border-radius: .5rem;
}

.card-body-document {
    background: #e6dde8;
    border: 2px solid #6c3483; /* Violet du menu */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: #6c3483; /* Texte violet du site */
    padding: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-body-document:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-body-document h5 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #6c3483;
    margin-bottom: 10px;
}

.card-body-document p {
    font-size: 1rem;
    margin-bottom: 0;
}

.card-body-document .icon {
    color: #6c3483; /* Violet pour les icônes */
    font-size: 1.5rem;
}

.card-body-document .icon:hover {
    color: #ff9800; /* Orange lorsqu'on survole une icône */
}


/* Style de l'étiquette */
.toggle-label {
    display: block;
    width: 50px;
    height: 25px;
    background-color: #ccc;
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Bouton circulaire */
.toggle-label::after {
    content: '';
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 4px;
    transform: translateY(-50%);
    transition: left 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Style activé */
.custom-toggle:checked + .toggle-label {
    background-color: #E0A800;
}

.custom-toggle:checked + .toggle-label::after {
    left: 26px;
}

/* Masquer l'input natif */
.custom-toggle {
    display: none;
}

.clear-button {
    font-size: 2rem;
}


@media (max-width: 575.98px) {
    .modal-fullscreen-sm-down {
        width: 100vw;
        max-width: none;
        height: 100%;
        margin: 0;
    }

    .modal-fullscreen-sm-down .modal-content {
        height: 100%;
        border: 0;
        border-radius: 0;
    }

    .modal-fullscreen-sm-down .modal-header,
    .modal-fullscreen-sm-down .modal-footer {
        border-radius: 0;
    }

    .modal-fullscreen-sm-down .modal-body {
        overflow-y: auto;
    }
}

@media (max-width: 767.98px) {
    .modal-fullscreen-md-down {
        width: 100vw;
        max-width: none;
        height: 100%;
        margin: 0;
    }

    .modal-fullscreen-md-down .modal-content {
        height: 100%;
        border: 0;
        border-radius: 0;
    }

    .modal-fullscreen-md-down .modal-header,
    .modal-fullscreen-md-down .modal-footer {
        border-radius: 0;
    }

    .modal-fullscreen-md-down .modal-body {
        overflow-y: auto;
    }
}

@media (max-width: 991.98px) {
    .modal-fullscreen-lg-down {
        width: 100vw;
        max-width: none;
        height: 100%;
        margin: 0;
    }

    .modal-fullscreen-lg-down .modal-content {
        height: 100%;
        border: 0;
        border-radius: 0;
    }

    .modal-fullscreen-lg-down .modal-header,
    .modal-fullscreen-lg-down .modal-footer {
        border-radius: 0;
    }

    .modal-fullscreen-lg-down .modal-body {
        overflow-y: auto;
    }
}

@media (max-width: 1199.98px) {
    .modal-fullscreen-xl-down {
        width: 100vw;
        max-width: none;
        height: 100%;
        margin: 0;
    }

    .modal-fullscreen-xl-down .modal-content {
        height: 100%;
        border: 0;
        border-radius: 0;
    }

    .modal-fullscreen-xl-down .modal-header,
    .modal-fullscreen-xl-down .modal-footer {
        border-radius: 0;
    }

    .modal-fullscreen-xl-down .modal-body {
        overflow-y: auto;
    }
}

@media (max-width: 1399.98px) {
    .modal-fullscreen-xxl-down {
        width: 100vw;
        max-width: none;
        height: 100%;
        margin: 0;
    }

    .modal-fullscreen-xxl-down .modal-content {
        height: 100%;
        border: 0;
        border-radius: 0;
    }

    .modal-fullscreen-xxl-down .modal-header,
    .modal-fullscreen-xxl-down .modal-footer {
        border-radius: 0;
    }

    .modal-fullscreen-xxl-down .modal-body {
        overflow-y: auto;
    }
}

 .checkbox-wrapper-1 *,
 .checkbox-wrapper-1 ::after,
 .checkbox-wrapper-1 ::before {
     box-sizing: border-box;
 }
.checkbox-wrapper-1 [type=checkbox].substituted {
    margin: 0;
    width: 0;
    height: 0;
    display: inline;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.checkbox-wrapper-1 [type=checkbox].substituted + label:before {
    content: "";
    display: inline-block;
    vertical-align: top;
    height: 1.15em;
    width: 1.15em;
    margin-right: 0.6em;
    color: rgba(0, 0, 0, 0.275);
    border: solid 0.06em;
    box-shadow: 0 0 0.04em, 0 0.06em 0.16em -0.03em inset, 0 0 0 0.07em transparent inset;
    border-radius: 0.2em;
    background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xml:space="preserve" fill="white" viewBox="0 0 9 9"><rect x="0" y="4.3" transform="matrix(-0.707 -0.7072 0.7072 -0.707 0.5891 10.4702)" width="4.3" height="1.6" /><rect x="2.2" y="2.9" transform="matrix(-0.7071 0.7071 -0.7071 -0.7071 12.1877 2.9833)" width="6.1" height="1.7" /></svg>') no-repeat center, white;
    background-size: 0;
    will-change: color, border, background, background-size, box-shadow;
    transform: translate3d(0, 0, 0);
    transition: color 0.1s, border 0.1s, background 0.15s, box-shadow 0.1s;
}
.checkbox-wrapper-1 [type=checkbox].substituted:enabled:active + label:before,
.checkbox-wrapper-1 [type=checkbox].substituted:enabled + label:active:before {
    box-shadow: 0 0 0.04em, 0 0.06em 0.16em -0.03em transparent inset, 0 0 0 0.07em rgba(0, 0, 0, 0.1) inset;
    background-color: #f0f0f0;
}
.checkbox-wrapper-1 [type=checkbox].substituted:checked + label:before {
    background-color: #3B99FC;
    background-size: 0.75em;
    color: rgba(0, 0, 0, 0.075);
}
.checkbox-wrapper-1 [type=checkbox].substituted:checked:enabled:active + label:before,
.checkbox-wrapper-1 [type=checkbox].substituted:checked:enabled + label:active:before {
    background-color: #0a7ffb;
    color: rgba(0, 0, 0, 0.275);
}
.checkbox-wrapper-1 [type=checkbox].substituted:focus + label:before {
    box-shadow: 0 0 0.04em, 0 0.06em 0.16em -0.03em transparent inset, 0 0 0 0.07em rgba(0, 0, 0, 0.1) inset, 0 0 0 3.3px rgba(65, 159, 255, 0.55), 0 0 0 5px rgba(65, 159, 255, 0.3);
}
.checkbox-wrapper-1 [type=checkbox].substituted:focus:active + label:before,
.checkbox-wrapper-1 [type=checkbox].substituted:focus + label:active:before {
    box-shadow: 0 0 0.04em, 0 0.06em 0.16em -0.03em transparent inset, 0 0 0 0.07em rgba(0, 0, 0, 0.1) inset, 0 0 0 3.3px rgba(65, 159, 255, 0.55), 0 0 0 5px rgba(65, 159, 255, 0.3);
}
.checkbox-wrapper-1 [type=checkbox].substituted:disabled + label:before {
    opacity: 0.5;
}

.checkbox-wrapper-1 [type=checkbox].substituted.dark + label:before {
    color: rgba(255, 255, 255, 0.275);
    background-color: #222;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xml:space="preserve" fill="rgba(34, 34, 34, 0.999)" viewBox="0 0 9 9"><rect x="0" y="4.3" transform="matrix(-0.707 -0.7072 0.7072 -0.707 0.5891 10.4702)" width="4.3" height="1.6" /><rect x="2.2" y="2.9" transform="matrix(-0.7071 0.7071 -0.7071 -0.7071 12.1877 2.9833)" width="6.1" height="1.7" /></svg>');
}
.checkbox-wrapper-1 [type=checkbox].substituted.dark:enabled:active + label:before,
.checkbox-wrapper-1 [type=checkbox].substituted.dark:enabled + label:active:before {
    background-color: #444;
    box-shadow: 0 0 0.04em, 0 0.06em 0.16em -0.03em transparent inset, 0 0 0 0.07em rgba(255, 255, 255, 0.1) inset;
}
.checkbox-wrapper-1 [type=checkbox].substituted.dark:checked + label:before {
    background-color: #a97035;
    color: rgba(255, 255, 255, 0.075);
}
.checkbox-wrapper-1 [type=checkbox].substituted.dark:checked:enabled:active + label:before,
.checkbox-wrapper-1 [type=checkbox].substituted.dark:checked:enabled + label:active:before {
    background-color: #c68035;
    color: rgba(0, 0, 0, 0.275);
}
.checkbox-wrapper-1 [type=checkbox].substituted + label {
    -webkit-user-select: none;
    user-select: none;
}

.flash-error {
    animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.swal-input-centered {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    text-align: center;
}


/* ---------------------------------------------------
    NOTIFICATIONS
----------------------------------------------------- */

.notif-list {
    width: 270px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    position: absolute;
    right: 0;
    top: 40px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.notif-item {
    padding: 10px;
    font-size: 14px;
}

.notif-count {
    position: absolute;
    top: 5px;
    right: 8px;
    color: #b50313;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;

    pointer-events: none;
}

.notif-unread {
    font-weight: 700;
}

.dropdown-menu{
    width: 300px;
    max-height: 425px;
    overflow-y: auto;
    padding-right: 10px;
}

.notif-clickable {
    cursor: pointer;
}

.notif-clickable:hover {
    color: var(--brand-primary);
}

.notification:hover {
    cursor: pointer;
}

/* ---------------------------------------------------
    CHRONO POINTAGE
----------------------------------------------------- */

.working-time-controls > *:not(:last-child) {
    margin-right: 12px;
}

.control-icon {
    font-size: 18px;
    cursor: pointer;
    text-decoration: none;
    transition: 0.2s ease;
}

.control-icon.start {
    color: #28a745;
}

.control-icon.stop {
    color: #dc3545;
}

.control-icon:hover {
    opacity: 0.5;
}

.control-icon.disabled {
    opacity: 0.3;
    pointer-events: none;
    cursor: not-allowed;
}

.control-icon {
    padding: 6px;
    border-radius: 50%;
}

/* ---------------------------------------------------
   PROFIL
----------------------------------------------------- */
.badge {
    margin-right: 5px;
}

.my-profil {
    padding: 0 1rem 2rem;
}

.my-profil .nav-tabs {
    border-bottom: 2px solid var(--brand-primary);
}

.my-profil .nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    transition: color 0.2s, background 0.2s;
}

.my-profil .nav-tabs .nav-link:hover {
    color: var(--brand-primary);
    background: rgba(121, 20, 106, 0.06);
}

.my-profil .nav-tabs .nav-link.active {
    color: var(--brand-primary);
    background: #fff;
    border-bottom: 3px solid var(--brand-primary);
    margin-bottom: -2px;
}

.my-profil .tab-content {
    padding-top: 1.5rem;
}

.profil-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.profil-identity h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--brand-primary);
}

.profil-identity-email {
    color: #6c757d;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.profil-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    height: 100%;
}

.profil-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-primary);
    border-bottom: 1px solid rgba(121, 20, 106, 0.2);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.profil-section-title i {
    opacity: 0.85;
}

.profil-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1.5rem;
}

.profil-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.profil-info-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c757d;
}

.profil-info-value {
    font-size: 1rem;
    color: #212529;
    line-height: 1.4;
}

.profil-roles .badge {
    margin: 0.15rem 0.35rem 0.15rem 0;
    font-weight: 500;
    font-size: 0.8rem;
}

.profil-grid-wrapper {
    width: 100%;
}

.profil-documents-card {
    margin-top: 0.5rem;
}

.profil-documents-card .profil-grid-wrapper {
    padding-top: 1.25rem;
}

.profil-grid-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 0.35rem 0;
    flex-wrap: wrap;
}

.ag-theme-quartz .profil-actions-cell {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding-left: 0.75rem !important;
}

.ag-theme-quartz .profil-actions-cell .profil-grid-actions {
    width: 100%;
    justify-content: flex-start;
}

.ag-theme-quartz .btn-favorite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    min-height: 2rem;
    padding: 0.35rem 0.55rem;
}

.ag-theme-quartz .btn-favorite i {
    font-size: 0.95rem;
    line-height: 1;
}

.profil-avatar-clickable {
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
}

.profil-avatar-clickable vaadin-avatar {
    cursor: pointer;
}

.profil-avatar-clickable::after {
    content: 'Changer';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.profil-avatar-clickable:hover::after {
    opacity: 1;
}

.profil-avatar-form-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    margin-bottom: 1rem;
    width: 100%;
    text-align: center;
}

.profil-header .profil-avatar {
    display: flex;
    flex-shrink: 0;
    min-width: 96px;
    min-height: 96px;
}

.profil-header .profil-avatar vaadin-avatar {
    --vaadin-avatar-size: 96px;
    width: 96px;
    height: 96px;
    flex-shrink: 0;
}

.profil-avatar-form-preview img,
.profil-avatar-form-preview vaadin-avatar {
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    --vaadin-avatar-size: 128px;
    width: 128px;
    height: 128px;
    flex-shrink: 0;
}

.profil-avatar-form-preview .profil-avatar {
    display: flex;
    justify-content: center;
    min-height: 128px;
    min-width: 128px;
}

.profil-avatar-form-hint {
    font-size: 0.85rem;
    color: #6c757d;
    text-align: center;
}

.profil-grid {
    width: 100%;
    height: 320px;
}

.profil-form-card {
    text-align: left;
}

.profil-form-card .form-group,
.profil-form-card label:not(.profil-avatar-form-preview) {
    text-align: left;
}

.profil-form-card input[type="submit"],
.profil-form-card button[type="submit"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.profil-password-card {
    max-width: 520px;
    margin: 0 auto;
    height: auto;
}

.profil-password-card--column {
    max-width: none;
    margin: 0;
    height: auto;
    padding: 0.75rem 1rem;
    margin-bottom: 0;
}

.profil-password-card--column .profil-section-title {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
}

.profil-password-card--column .btn {
    margin-top: 0 !important;
}

.profil-signature-card .m-signature-pad--footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.profil-preferences-card {
    max-width: 640px;
    margin: 0 auto;
}

.profil-preferences-intro {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    text-align: left;
}

.profil-signatures-row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.profil-signatures-row > [class*="col-"] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.profil-signature-card {
    display: flex;
    flex-direction: column;
    height: auto;
    margin-bottom: 0;
}

.profil-signature-card .profil-signature-preview,
.profil-signature-card .m-signature-pad {
    flex: 0 0 auto;
}

.profil-signature-preview {
    background: #fff;
    border: 1px dashed #ccc;
    border-radius: 8px;
    padding: 0.75rem;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profil-signature-card .m-signature-pad--body canvas {
    width: 100%;
    height: 140px;
}

.profil-signature-empty {
    color: #adb5bd;
    font-size: 0.95rem;
    margin: 0;
}

.widget-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 10px;
    background: #f8f9fa;
    border: 1px solid #eee;
    transition: background 0.2s;
}

.widget-line:hover {
    background: #f1f3f5;
}

.widget-label {
    font-weight: 500;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #ccc;
    border-radius: 34px;
    transition: 0.3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    top: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.switch input:checked + .slider {
    background-color: #0d6efd;
}

.switch input:checked + .slider:before {
    transform: translateX(24px);
}

/* ---------------------------------------------------
   NAVBAR
----------------------------------------------------- */

@media screen and (max-width: 768px) {
    .profil-header {
        flex-direction: column;
        text-align: center;
    }

    .profil-info-grid {
        grid-template-columns: 1fr;
    }

    .profil-grid {
        width: 100%;
        margin: 0 auto;
    }

    html,
    body,
    .wrapper,
    .content-wrapper {
        max-width: 100%;
        overflow-x: hidden;
    }

    .main-header.navbar {
        padding-left: 0.1rem;
        padding-right: 0.1rem;
        max-width: 100%;
        overflow-x: clip;
    }

    .main-header .navbar-nav {
        min-width: 0;
        gap: 0;
    }

    .main-header .navbar-nav .nav-item {
        min-width: 0;
        flex: 0 0 auto;
        padding-top: 0 !important;
    }

    .main-header .nav-link {
        padding-left: 0.15rem;
        padding-right: 0.15rem;
        font-size: 0.95rem;
    }

    .working-time-controls {
        min-width: 0;
        gap: 0.1rem;
    }

    .working-time-controls .chrono {
        font-size: 0.78rem;
        max-width: 58px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .working-time-controls > *:not(:last-child) {
        margin-right: 0.1rem;
    }

    .control-icon {
        padding: 2px;
        font-size: 14px;
    }
}




