html {
    font-size: 14px;
}

.client-image-container {
    height:75px;
    overflow:hidden;
}
.client-image {
    height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.btn-link:hover {
    text-decoration: underline !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 2px !important;
}

html {
    position: relative;
    min-height: 100%;
}


/* CSS pour le menu*/

body {
    display: flex;
    min-height: 100vh;
}

#settings-icon {
    display: none!important;
}

#main-content-container {
    display: flex;
    flex-direction: column;
    margin-left: 4.5rem;
    width: -webkit-fill-available;
}

.home-class {
    flex: 1 0 auto;
}

.client-class {
    width: -webkit-fill-available;
}

#main-content-container.login-class {
    margin-left: 0;
    padding-top: 0!important;
}

#main-content-container.login-class main {
    margin-left: 0;
    padding: 0 !important;
}

    #main-content-container.login-class nav {
        margin-top: 0;
    }

#main-content-container main {
    flex: 1 0 auto;
    padding: 16px
}

#sidebar-menu {
    position: fixed;
    top: 0;
    left: 0;
    min-height: 100vh;
    min-width: 4.5rem;
    padding-top: 2rem;
    padding-bottom: 16px;
    z-index: 9000;
    background-color: #121314;
}

.navbar-nav {
    gap: 1rem;
}

.displayLogo {
    display : none;
}

.sidebar-dropdown-popout {
    position: absolute !important;
    left: calc(100% + 1.4rem) !important;
    top: 0 !important;
    right: auto !important;
    transform: none !important;
    z-index: 9999999 !important;
    background-color: #121314 !important;
    border: none !important;
    padding: 10px !important;
    outline: 1px solid #121314;
}

.dropdown-li {
    padding-left: 1rem;
}

.sidebar-hello-popout {
    position: absolute !important;
    left: calc(100% + 0.8rem) !important;
    top: 0 !important;
    right: auto !important;
    transform: none !important;
    z-index: 1050;
    background-color: #121314;
    border: none;
    padding: 10px;
}

.user-popout-alignment {
    bottom: 5px !important;
    left: 65px !important;
    min-width: 250px;
    padding: 10px;
}

aside img {
    height: 50px;
    width: 50px;
    object-fit: cover;
}

.nav-img {
    height: 30px;
    width: 30px;
    object-fit: contain
}

@media (max-width: 701px) {
    body {
        flex-direction: unset !important;
        margin-bottom: 3.5rem;
        justify-content: center;
    }

    #main-content-container {
        margin: 0;
        padding: 16px 0;
        flex: 0 1 auto;
    }

    #sidebar-menu {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        min-width: 100vw;
        width: 100vw;
        max-height: 4.5rem;
        height: 3.5rem;
        flex-flow: row nowrap!important;
        justify-content: center!important;
        align-items: center!important;
        gap: 1rem;
        z-index: 999;
        padding: 0 16px;
        min-height: unset;
    }

    .displayPhoto {
        display: none;
    }

    .displayLogo{
        display:block;
    }

    #icon-nav {
        flex-direction: row !important;
        width: 100%;
    }

    .compagny-logo {
        display: none;
    }

    .settings-picture{
        display:none!important;
    }

    #settings-icon {
        display: block !important;
        font-size: 25px;
        color: white;
    }

    .sidebar-dropdown-popout {
        position: fixed !important;
        bottom: 3.5rem !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100vw !important;
        max-width: 100vw !important;
        transform: none !important;
        margin: 0 !important;
        border-radius: 0 !important;
        padding: 0.75rem 1rem !important;
        -webkit-overflow-scrolling: touch;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

        .sidebar-dropdown-popout::-webkit-scrollbar {
            display: none;
        }

        .sidebar-dropdown-popout.show {
            display: flex !important;
            flex-direction: row !important;
            gap: 1rem;
            white-space: nowrap;
        }

        .sidebar-dropdown-popout li {
            flex-shrink: 0;
            display: inline-block;
            list-style: none;
        }

        .sidebar-dropdown-popout .nav-link {
            display: inline-block;
            padding: 0.5rem 1rem;
            white-space: nowrap;
        }


    .sidebar-hello-popout {
        position: fixed !important;
        bottom: 3.5rem !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100vw !important;
        max-width: 100vw !important;
        transform: none !important;
        margin: 0 !important;
        border-radius: 0 !important;
        padding: 0.75rem 1rem !important;
        -webkit-overflow-scrolling: touch;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }


    .sidebar-hello-popout::-webkit-scrollbar {
        display: none;
    }

    .sidebar-hello-popout.show {
        display: flex !important;
        flex-direction: row !important;
        gap: 1rem;
        white-space: nowrap;
    }

    .sidebar-hello-popout li {
        flex-shrink: 0;
        display: inline-block;
        list-style: none;
    }

    .sidebar-hello-popout .nav-link {
        display: inline-block;
        padding: 0.5rem 1rem;
        white-space: nowrap;
    }

    .helloworld{
        display: none!important;
    }

    .dropdown-li {
        padding: 4px;
    }

    .navbar-nav {
        flex-direction: row;
        gap: 1rem;
        justify-content: space-evenly;
        align-items: center;
    }
}
/* TABLEAU MATÉRIEL */

@media (max-width: 1360px) {
    .table-responsive.material-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .material-table table {
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .material-table .table thead {
        display: none;
    }

    .material-table .table,
    .material-table .table tbody,
    .material-table .table tr,
    .material-table .table td {
        display: block;
        width: 100%;
        white-space: normal;

    }

        .material-table .table tr {
            margin-bottom: 1.5rem;
            border: 1px solid #dee2e6;
            border-radius: 0.5rem;
            padding: 0.5rem;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            background: #fff;
        }

        .material-table .table td {
            text-align: left !important;
            padding-left: 50% !important;
            position: relative;
            border: none;
            border-bottom: 1px solid #eee;
            min-height: 40px;
            display: flex;
            align-items: center;
        }

            .material-table .table td:last-child {
                border-bottom: 0;
                text-align: center !important;
                padding-left: 0 !important;
                justify-content: center;
                margin-top: 10px;
            }

            .material-table .table td::before {
                content: attr(data-label);
                position: absolute;
                left: 10px;
                width: 45%;
                font-weight: bold;
                text-align: left;
                color: #6c757d;
                font-size: 0.85rem;
            }
}
/* Fin tableau materiel*/

section {
    margin: 2rem 0;
}

main section:first-of-type {
    margin-top: 0rem;
}


main a {
    color: inherit;
    text-decoration: none !important
}

.page-head {
    margin-bottom: 2rem
}

    .page-head .actions {
        margin-top: 2rem;
        display: flex;
        align-items: center;
        gap: 1rem;
    }

        .page-head .actions > * {
            white-space: nowrap
        }

.no-border {
    border: none !important;
    box-shadow: none;
    padding: 0;
}

.page-options {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 1rem 0;
    gap: 1rem;
}

.page-title, .page-header {
    margin-top: 1rem;
}

.page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
}

#project-header {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    justify-content: space-between
}

    #project-header .actions {
        display: flex;
        gap: .75em;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
    }

    #project-header p {
        margin: 0;
    }

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0;
    gap: 1rem
}

    .stats-container.col {
        grid-template-columns: 1fr;
        justify-content: center;
        align-items: center;
        margin: 1.5rem 0;
        gap: 1rem
    }

.stats-card, section {
    padding: 1em 2em;
    border-radius: 0.25em;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
}

.stats-container .stats-card {
    text-align: center;
    font-size: 1.1em;
}

.stats-card .stats_title {
    font-size: 1.2rem;
    margin-bottom: 0.5em;
    color: #6c757d
}

.stats-container .stats-card .stats_title {
    font-size: 1rem;
    margin-bottom: 0.5em;
    color: #6c757d
}

.stats-card .stats_value {
    font-weight: 700;
}

.row-actions {
    display: flex;
    align-items: center;
    gap: .75em;
    justify-content: flex-end;
}

[disabled] {
    cursor: not-allowed
}


dialog {
    border: none;
    border-radius: 0.5em;
    padding: 2rem 2rem;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
}

.text-right {
    text-align: right;
}

dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.ss-content.form-control {
    position: fixed !important;
}

dialog .close-modal {
    all: unset;
    font-size: 1.2em;
    position: absolute;
    right: 1em;
    top: 0.5em;
    cursor: pointer;
}

tr.selected {
    --bs-table-bg: rgba(var(--bs-success-rgb), .2);
}

.table td.fit,
.table th.fit {
    white-space: nowrap;
    width: 1%;
}

.table td, .table th {
    --padding-y: 1em;
    padding-left: var(--padding-y);
    padding-right: var(--padding-y);
}

.sidebar {
    padding-top: 5rem;
}

.hidden {
    display: none !important;
}

.filter-button {
    position: relative;
}

    .filter-button .reset {
        position: absolute;
    }

    .filter-button span,
    .filter-button .reset {
        position: absolute;
        display: flex;
        justify-content: center;
        align-items: center;
        color: white;
        bottom: 70%;
        left: 70%;
        font-size: 0.7rem;
        font-weight: 600;
        width: 18px;
        height: 18px;
        background-color: red;
        border-radius: 50%;
    }

    .filter-button .reset {
        bottom: unset;
        top: 70%;
    }

.nav.nav-pills {
    margin-bottom: 1rem;
}

.popover {
    min-width: 250px;
}

.popover-date {
    font-size: 14px;
}

.popover-header {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    text-align: center;
    border-bottom: none;
}
/* TomSelect CSS surcharge */
.ts-wrapper,
.ts-control,
.ts-control .item,
.ts-dropdown,
.ts-dropdown .option,
.ts-dropdown .create,
.ts-dropdown .no-results,
.ts-wrapper .ts-control input {
    font-size: 1rem;
    color: #212529;
}

    .ts-dropdown .create {
        font-weight: 500;
        background-color: #f8f9fa;
        padding: 0.375rem 0.75rem;
        border-radius: 0.25rem;
    }

        .ts-dropdown .option.active,
        .ts-dropdown .create.active {
            background-color: var(--bs-primary);
            color: var(--bs-white) !important;
        }

            .ts-dropdown .option.active *,
            .ts-dropdown .create.active * {
                color: var(--bs-white) !important;
            }

    .ts-dropdown [data-selectable] .highlight {
        background: var(--bs-warning) !important;
        padding: 0 1px;
        font-weight: 600;
    }

    .ts-dropdown .option.active .highlight {
        background: none !important;
        font-weight: 400;
    }

    .ts-dropdown .option.active .application-icon {
        color: var(--bs-white) !important;
    }

:root {
    --user-image-width: 25px;
}

.user-image {
    display: block;
    width: var(--user-image-width);
    aspect-ratio: 1;
    object-fit: cover;
}
/*----- Remove arrow from input number -----*/
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

.text-body-secondary {
    --bs-text-opacity: 1;
    color: var(--bs-secondary-color) !important;
}

    .text-body-secondary:hover {
        color: var(--bs-dark) !important;
    }

@media (width <= 768px) {
    .nav-item .dropdown-menu {
        border: none;
        font-size: 16px;
        padding: 0;
    }

        .nav-item .dropdown-menu a {
            padding-left: 15px;
        }

    .navbar-collapse {
        font-weight: 300 !important;
    }
}

#trello-suggest .btn {
    box-shadow: none;
    text-decoration: none;
}

div.ProseMirror.toastui-editor-contents {
    z-index: auto;
}

.task-comment p {
    margin-bottom: 0;
}

.task-comment ul {
    list-style-type: disc;
}

/*Gestion des modals*/

.modal {
    z-index: 1050;
}

.modal-backdrop {
    z-index: 1040;
}

#confirmModal {
    z-index: 1060 !important;
}

body:has(#confirmModal.show) .modal-backdrop:last-of-type {
    z-index: 1055 !important;
}

.modal.blurred {
    filter: blur(2px);
    pointer-events: none;
}


/*OVERVIEW ADMIN*/
.stats-cards {
    border-left: 4px solid;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .stats-cards:hover {
        transform: translateY(-3px);
        box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.15) !important;
    }

.user-card {
    transition: all 0.2s;
    border-left: 3px solid transparent;
    position: relative;
    overflow: visible;
}

    .user-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, transparent 0%, rgba(0,0,0,0.02) 100%);
        opacity: 0;
        transition: opacity 0.3s;
        pointer-events: none;
    }

    .user-card:hover::before {
        opacity: 1;
    }

    .user-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 0.75rem 1.5rem rgba(0,0,0,0.15) !important;
    }

    .user-card.status-critical {
        border-left-color: #dc3545;
    }

    .user-card.status-warning {
        border-left-color: #ffc107;
    }

    .user-card.status-good {
        border-left-color: #28a745;
    }

.metric {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.metric-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.user-stats-mini {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(0,0,0,0.02);
    border-radius: 0.5rem;
}

.user-stats-mini-item {
    flex: 1;
    text-align: center;
}

.user-stats-mini-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.user-stats-mini-label {
    font-size: 0.7rem;
    color: #6c757d;
    text-transform: uppercase;
}

.dayoff-item {
    padding: 0.5rem;
    border-left: 3px solid #0d6efd;
    background: rgba(13, 110, 253, 0.05);
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

.warning-day-item {
    padding: 0.5rem;
    border-left: 3px solid #ffc107;
    background: rgba(255, 193, 7, 0.05);
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

.warning-badge-pulse {
    animation: pulse 2s infinite;
}

@@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.collapse-toggle-icon {
    transition: transform 0.3s ease;
}

    .collapse-toggle-icon.rotated {
        transform: rotate(180deg);
    }

.empty-state-text {
    padding: 0.75rem;
    text-align: center;
    color: #6c757d;
    font-style: italic;
    font-size: 0.875rem;
}

.section-static {
    padding: 0.5rem 0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}