body,
html {
    background-color: #f8f9fe;
    overflow-x: hidden;
}

a {
    color: rgb(24, 156, 208);
    text-decoration: none !important;
}

.container-fluid {
    padding: 0 3%;
}

/* Navbar Styling */
.navbar {
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #189cd0;
    color: white;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-left {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.menu-icon {
    font-size: 24px;
    cursor: pointer;
}

.navbar-middle {
    flex: 1;
}

.page-title {
    font-size: 16px;
    height: 46px;
    background: #ffffff;
    box-shadow: 0px 2px 6px rgba(30, 58, 112, 0.3);
    font-family: Lato, sans-serif;
    font-weight: 400;
    /*line-height: 46px;*/
    color: #1e3a70;
    padding: 0 20px;
    gap: 20px;
    text-align: left;
}

.page-title p {
    margin: 0;
}

.navbar-right {
    display: flex;
    align-items: center;
    background: #ffffff;
    box-shadow: 0px 2px 6px rgba(30, 58, 112, 0.3);
    font-family: Lato, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #1e3a70;
}

.dropdown {
    cursor: pointer;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 10px;
}

.dropdown p {
    margin: 0;
}

.space {
    height: 40px;
    overflow: hidden;
}

.organization-tree {
    width: 100%;
    border-radius: 5px;
    border: 1px solid #ddd;
    background: white;
    height: -moz-fit-content;
    height: fit-content;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    min-height: 320px;
    overflow: auto;
}

.organization-tree .header {
    color: white;
    justify-content: space-between;
    display: flex;
    align-items: center;
    height: 40px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.organization-tree .header .label {
    background: #189cd0;
    border-top-left-radius: 8px;
    padding: 0 10px;
    height: 100%;
    display: flex;
    align-items: center;
}

.organization-tree .header .search-box {
    height: 100%;
    display: flex;
    align-items: center;
    border-top-right-radius: 8px;
    background-color: white;
    padding: 0 10px;
    position: relative;
    border-bottom: 1px solid #cccccc;
}

.organization-tree .header .search-box input {
    border: none;
    padding: 5px 10px 5px 25px;
    outline: none;
    width: 100%;
    color: black;
}

.organization-tree .header .search-box input::-moz-placeholder {
    color: #cccccc !important;
}

.organization-tree .header .search-box input::placeholder {
    color: #cccccc !important;
}

.organization-tree .header .search-box .search-icon {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.organization-tree .tree {
    list-style: none;
    padding: 15px;
    margin: 0;
    gap: 6px;
    display: flex;
    flex-direction: column;
}

.organization-tree > .tree {
    padding-left: 0;
    margin-left: 0;
}

.organization-tree li {
    list-style: none;
}

.organization-tree .tree li.has-children.expanded {
    margin-bottom: 10px;
}

.organization-tree .tree li {
    position: relative;
}

.organization-tree .tree li label {
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #1e3a70;
}

.organization-tree .tree li input[type=checkbox] {
    margin-right: 5px;
}

.organization-tree .tree li.has-children {
    display: flex;
    flex-direction: column;
}

.organization-tree .tree li.has-children .toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #1e3a70;
    cursor: pointer;
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.organization-tree .tree li.has-children.expanded .toggle {
    transform: rotate(90deg);
}

.organization-tree .tree .category-item {
    display: flex;
}

.organization-tree .tree li.has-children ul.subcategories {
    display: block;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, margin-top 0.3s ease-out;
}

.organization-tree .tree li.has-children.expanded ul.subcategories {
    max-height: 500px;
    opacity: 1;
    margin-top: 10px;
}

.risque-tree {
    width: 100%;
    border-radius: 5px;
    border: 1px solid #ddd;
    background: white;
    height: -moz-fit-content;
    height: fit-content;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.risque-tree .header {
    color: white;
    justify-content: space-between;
    display: flex;
    align-items: center;
    height: 40px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.risque-tree .header .label {
    background: #189cd0;
    border-top-left-radius: 8px;
    padding: 0 10px;
    height: 100%;
    display: flex;
    align-items: center;
}

.risque-tree .header .search-box {
    height: 100%;
    display: flex;
    align-items: center;
    border-top-right-radius: 8px;
    background-color: white;
    padding: 0 10px;
    position: relative;
    border-bottom: 1px solid #cccccc;
}

.risque-tree .header .search-box input {
    border: none;
    padding: 5px 10px 5px 25px;
    outline: none;
    width: 100%;
    color: black;
}

.risque-tree .header .search-box input::-moz-placeholder {
    color: #cccccc !important;
}

.risque-tree .header .search-box input::placeholder {
    color: #cccccc !important;
}

.risque-tree .header .search-box .search-icon {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.risque-tree .g-18 {
    gap: 6px;
    flex-direction: column;
    padding: 15px;
}

.risque-tree .g-18 label {
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #1e3a70;
}

.risque-tree .g-18 input[type=checkbox] {
    margin-right: 5px;
}

.processus {
    width: 100%;
    border-radius: 5px;
    border: 1px solid #ddd;
    background: white;
    height: -moz-fit-content;
    height: fit-content;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    min-height: 320px;
}

.processus .header {
    color: white;
    justify-content: space-between;
    display: flex;
    align-items: center;
    height: 40px;
    background: #189cd0;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 0 10px;
}

.description-risque {
    width: 100%;
    border-radius: 5px;
    border: 1px solid #ddd;
    background: white;
    height: -moz-fit-content;
    height: fit-content;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    min-height: 320px;
}

.description-risque .header {
    color: white;
    justify-content: space-between;
    display: flex;
    align-items: center;
    height: 40px;
    background: #189cd0;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 0 10px;
}

.description-risque textarea {
    height: 260px;
    width: 100%;
    padding: 15px;
    border: none;
    color: black;
}

.description-risque textarea::-moz-placeholder {
    color: #cccccc !important;
}

.description-risque textarea::placeholder {
    color: #cccccc !important;
}

.consequences {
    width: 100%;
    border-radius: 5px;
    border: 1px solid #ddd;
    background: white;
    height: -moz-fit-content;
    height: fit-content;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    min-height: 320px;
    align-items: center;
    justify-content: center;
}

.consequences .header {
    color: white;
    justify-content: space-between;
    display: flex;
    align-items: center;
    height: 40px;
    background: #189cd0;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 0 10px;
}

.consequences .container {
    gap: 20px;
    align-items: center;
    justify-content: center;
    height: 100%;
    display: flex;
    padding: 15px;
}

.consequences .container .item {
    align-items: center;
    justify-content: center;
}

.consequences .container .item .question {
    padding-left: 10px;
}

.consequences .container .label {
    color: #1e3a70;
    font-weight: 700;
    height: 100%;
    display: flex;
    align-items: center;
}

.component-container {
    width: 100%;
    border-radius: 5px;
    border: 1px solid #ddd;
    background: white;
    height: -moz-fit-content;
    height: fit-content;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    //min-height: 320px;
    align-items: center;
    justify-content: center;
}

.component-container .header {
    color: white;
    justify-content: space-between;
    display: flex;
    align-items: center;
    height: 40px;
    background: #189cd0;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 0 10px;
}

.component-container .container {
    gap: 20px;
    align-items: center;
    justify-content: center;
    height: 100%;
    display: flex;
    padding: 15px;
}

.component-container .container .item {
    align-items: center;
    justify-content: center;
}

.component-container .container .item .question {
    padding-left: 10px;
}

.component-container .container .label {
    color: #1e3a70;
    font-weight: 700;
    height: 100%;
    display: flex;
    align-items: center;
}

.typeorga-tree ul,
.typeorga-tree li{
    list-style:none;
}
.typeorga-tree li *{
    font-weight: normal;
}
.typeorga-tree > ul{
    margin:0;padding:0;
}

.accent-red {
    color: #f00;
}

select,
.consequences .container select {
    height: 40px;
    border: none;
    box-shadow: 0px 2px 4px 0px rgba(30, 58, 112, 0.3019607843);
    color: #666;
}

.criticite {
    width: 100%;
    border-radius: 5px;
    border: 1px solid #ddd;
    background: white;
    height: -moz-fit-content;
    height: fit-content;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    min-height: 320px;
    align-items: center;
    justify-content: center;
}

.criticite .header {
    color: white;
    justify-content: space-between;
    display: flex;
    align-items: center;
    height: 40px;
    background: #189cd0;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 0 10px;
}

.criticite .container {
    gap: 20px;
    align-items: center;
    justify-content: center;
    height: 100%;
    display: flex;
    padding: 15px;
}

.criticite .container .item {
    height: 40px;
    align-items: center;
    justify-content: center;
}

.criticite .container .item .question {
    padding-left: 10px;
}

.criticite .container .label {
    color: #1e3a70;
    font-weight: 700;
    height: 100%;
    display: flex;
    align-items: center;
}

.criticite div {
    padding: 5px;
}

.consequences .select2 li {
    font-size: 12px;
}

.height-auto {
    height: auto !important;
}

.criticite .container select {
    height: 100%;
    border: none;
    box-shadow: 0px 2px 4px 0px rgba(30, 58, 112, 0.3019607843);
    color: #666;
}

.hover-pointer:hover {
    cursor: pointer;
}
.button-nouveau i{
    margin-right:5px;
}
.button-nouveau {
    border:0;
    width: 131px;
    height: 36px;
    border-radius: 5px;
    opacity: 0px;
    background-color: #189cd0;
    box-shadow: 0px 4px 15px -3px #189cd0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.button-nouveau:hover {
    filter: brightness(110%);;
    transform: translateY(-4px);
    //box-shadow: 0px 6px 18px -4px #189cd0;
}

.button-modifie {
    width: 131px;
    height: 36px;
    border-radius: 5px;
    opacity: 0px;
    background-color: #ca18d0;
    box-shadow: 0px 4px 15px -3px #ca18d0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-active {
    width: 131px;
    height: 36px;
    border-radius: 5px;
    opacity: 0px;
    background-color: #21a366;
    box-shadow: 0px 4px 15px -3px #21a366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-desactivite {
    width: 131px;
    height: 36px;
    border-radius: 5px;
    opacity: 0px;
    background-color: #e82525;
    box-shadow: 0px 4px 15px -3px #e82525;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}


.btn-orange {
    color:#fff;
    background-color:#F7924C;
    box-shadow: 0px 4px 15px -3px #F7924C;
}
.btn-green {
    color:#fff;
    background-color:#21A366;
    box-shadow: 0px 4px 15px -3px #21A366;
}

.btn-rouge {
    color:#fff;
    background-color: #e82525;
    box-shadow: 0px 4px 15px -3px #e82525;
}

.related-sections {
    text-align:right;
    width:95%;
}
.navbar-middle a {
    color:#1e3a70;
}
.related-sections a {
    color:#1e3a70;
    display:inline-block;
    padding:10px 5px;
    margin-right:25px;
    border-bottom:2px solid #bbb;
}
.related-sections a.active {
    border-bottom-color: #1e3a70;
}

.dropdown-item {
    padding: 10px 15px;
    color: #3b82f6;
    cursor: pointer;
    transition: background 0.3s;
}

.dropdown-item:hover {
    background: rgba(59, 130, 246, 0.1);
}

body.menu-open {
    overflow: hidden;
}

.burger-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
}

.burger-menu-container {
    width: 372px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: -500px;
    z-index: 9999;
    transition: all 0.3s ease-in-out;
}

.burger-menu-container .burger-menu {
    height: 100%;
    width: 100%;
    background-color: #ffffff;
    clip-path: polygon(0 0, 100% 0, 100% 45.7%, 91% 48%, 91% 52%, 100% 54.3%, 100% 100%, 0 100%);
}

.burger-menu-container .burger-menu .list-items {
    gap: 5px;
}

.burger-menu-container .burger-menu .list-items .item {
    min-height: 50px;
    width: 100%;
    gap: 14px;
    align-items: center;
    padding: 0 40px;
    transition: all 0.1s ease-in-out;
    cursor: pointer;
}

.burger-menu-container .burger-menu .list-items .item .arrow {
    transition: all 0.3s ease-in-out;
}

.burger-menu-container .burger-menu .list-items .item .item-info {
    gap: 14px;
    font-size: 16px;
    font-weight: 700;
    font-family: Lato, sans-serif;
    color: #1e3a70;
}

.burger-menu-container .burger-menu .list-items .item:hover {
    background-color: rgba(30, 58, 112, 0.1294117647);
    transition: all 0.1s ease-in-out;
}

.burger-menu-container .burger-menu .list-items .children {
    max-height: 0;
    overflow: hidden;
    display: none;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    gap: 3px;
    font-size: 16px;
    font-weight: 700;
    font-family: Lato, sans-serif;
    color: #1e3a70;
}

.burger-menu-container .burger-menu .list-items .children .child-label {
    min-height: 30px;
    padding: 5px 10px;
    transition: background-color 0.2s ease-in-out;
    color: #1e3a70;
    text-decoration: none;
}

.burger-menu-container .burger-menu .list-items .children .child-label:hover {
    background-color: rgba(30, 58, 112, 0.1294117647);
}

.burger-menu-container .burger-menu .list-items .expanded {
    display: flex;
    flex-direction: column;
    max-height: -moz-fit-content;
    max-height: fit-content;
    opacity: 1;
    align-items: left;
    padding-left: 100px;
    transition: all 0.3s ease-in-out;
}

.burger-menu-container .burger-menu .box {
    padding: 20px 10px;
    box-shadow: 0px -4px 10px 0px rgba(30, 58, 112, 0.2);
    display: flex;
    bottom: 0;
    position: absolute;
    font-size: 15px;
}

.burger-menu-container .burger-menu .box .col-lg-6 {
    gap: 10px;
}

.burger-menu-container .close-button {
    clip-path: polygon(50% 0, 100% 30%, 100% 70%, 50% 100%, 0 70%, 0 30%);
    background-color: white;
    position: absolute;
    top: 50%;
    right: -29px;
    transform: translateY(-50%);
    z-index: 99999;
    cursor: pointer;
}

.burger-menu-container .rotate {
    transform: rotate(90deg);
    transition: all 0.3s ease-in-out;
}

.menu-open .burger-menu-overlay {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease-in-out;
}

.menu-open .burger-menu-container {
    left: 0;
    transition: all 0.3s ease-in-out;
}

.add-btn {
    z-index: 2;
    color: #fff;
    background-color: #008000;
    text-decoration: none;
    font-size: 32px;
    position: fixed;
    bottom: 50px;
    right: 20px;
    border-radius: 50%;
    text-align: center;
    width: 50px;
    height: 50px;
    box-shadow: 1px 1px 9px rgba(0, 0, 0, 0.5);
    transition: all 0.5s ease;
}

.add-btn:hover {
    box-shadow: initial;
}

.btn {
    /*background-color:#21A366;*/
}



.risque-list {
    max-height: 279px;
    overflow: auto;
}

#points_de_controles table {
    margin-left: 10px;
}

#points_de_controles span {
    padding-left: 5px;
    top: -2px;
    display: inline-block;
    position: relative;
}

#points_de_controles th,
#points_de_controles td {
    color: #666;
}

.maitrise-des-risques .container-fluid {
    padding: 0;
}

.maitrise-des-risques textarea,
.maitrise-des-risques {
    border: 1px solid #ddd;
}

.maitrise-des-risques label {
    text-align: right;
    color: #1e3a70;
    padding-right: 10px;
    font-weight: bold;
}

.btn-success {
    box-shadow: 1px 1px 9px #21a366;
}

.tableActionList input {
    margin-right: 5px;
}

.navbar-joiner {
    display: flex;
}

.time-picker .parent {
    border: 1px solid #ccc;
    margin-bottom: 10px;
    border-radius: 5px;
    max-height: 120px;
    overflow: auto;
}

.time-picker .parent-title {
    background: #f0f0f0;
    padding: 5px 10px;
    cursor: pointer;
    font-weight: bold;
}
.time-picker .parent-title:hover{
    background:#189cd0;
    color:#fff;
}

.time-picker .children {
    display: none;
    padding: 5px 0px;
}

.time-picker .child {
    padding: 5px;
    cursor: pointer;
}


.time-picker .selected,
.time-picker .child:hover {
    background: #d9edf7;
}

.time-picker .selected-result {
    font-weight: bold;
}



@media (max-width: 768px) {
    .maitrise-des-risques label {
        text-align: left;
    }
    .dt-paging {
        width: 100%;
    }
    .dt-search {
        width: 100%;
        position: static !important;
    }
    .navbar-right {
        flex-direction: column;
    }
    .navbar-right .dropdown {
        height: -moz-fit-content;
        height: fit-content;
    }
}
@media (max-width: 700px) and (min-width: 550px) {
    .navbar {
        height: -moz-fit-content;
        height: fit-content;
    }
    .navbar-joiner {
        flex-direction: column;
        width: 100%;
    }
    .navbar-joiner .navbar-middle,
    .navbar-joiner .navbar-right {
        width: 95%;
    }
    .navbar-joiner .navbar-right {
        flex-direction: row;
    }
    .navbar-joiner .navbar-right .dropdown {
        width: 50%;
    }
}
@media (max-width: 550px) {
    .navbar-joiner {
        display: none !important;
    }
}
