html {
  font-size: 14px;
}
#main-navbar {
    box-shadow: 0 5px 5px 0 rgb(0 0 0 / 5%);
}
.navbar-toggler {
    color:white;
}
#logo-icon {
    color: white;
}
body.dark-mode #logo-icon{
    color: white;
}
#brand_name {
    color: white;
    /*font-weight: bold;*/
}
body.dark-mode #brand_name {
    color: white;
    /*font-weight: bold;*/
}
@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;
}

html {
    position: relative;
    min-height: 100%;
/*    background-color: gray;*/
}

body {
    margin-bottom: 60px;
    margin-top: 80px;
    background-color: whitesmoke;
}
.pb-3 {
    margin-top: 70px;
}
#background_container {
    background-color: whitesmoke;
}
.nav-link{
    color: white;
}
/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    padding: 58px 0 0; /* Height of navbar */
    box-shadow: 0 10px 10px 0 rgb(0 0 0 / 5%), 0 10px 10px 0 rgb(0 0 0 / 5%);
    width: 100px;
    z-index: 600;
}



@media (max-width: 991.98px) {
    .sidebar {
        width: 100%;
    }
}

.sidebar .active {
    border-radius: 5px;
    box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: 0.5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Scrollable contents if viewport is shorter than content*/
/*DARKMODE*/
/*darkmode code*/
:root {
    --background-color-light: #ffffff;
    --text-color-light: #000000;
    --background-color-dark: #333333;
    --text-color-dark: #ffffff;
}
/*
 reviewbar */
.reviewsidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0px;
    padding: 58px 0 0;
    box-shadow: 0 10px 10px 0 rgb(0 0 0 / 5%), 0 10px 10px 0 rgb(0 0 0 / 5%);
    width: 325px;
    z-index: 600;
    font-size: 14px;
}



@media (max-width: 1326.98px) {
    .reviewsidebar {
        position: relative;  /*Change position to relative to make it flow in the document flow*/ 
        width: 100%;  /*Set width to 100% to make it fill the width of the container */
        padding: 10px 0;  /*Adjust padding as needed */
        box-shadow: none; /* Remove box shadow */
    }

}

.reviewsidebar .active {
    border-radius: 5px;
    box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
}

.reviewsidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: 0.5rem;
    overflow-x: hidden;
    overflow-y: auto;
}
/*
* Sidebar on the left side */

/* Sidebar on the left side */
.ReportSideBar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 100px; /* Make sure the sidebar starts from the left edge */
    padding: 58px 0 0;
    width: 200px; /* Fixed width for the sidebar */
    z-index: 600;
    background-color: #f8f9fa; /* Light background color for better visibility */
    box-shadow: 0 10px 10px 0 rgb(0 0 0 / 5%), 0 10px 10px 0 rgb(0 0 0 / 5%);
    font-size: 14px;
    overflow-y: auto; /* Ensure scrolling for longer sidebars */
}

/* Ensure the main content has space to the right of the sidebar */
.main-content {
    margin-left: 220px; /* Adjust based on the sidebar width (200px + 20px margin) */
}
@media (max-width: 1326.98px) {
    .ReportSideBar {
        position: relative; /*Change position to relative to make it flow in the document flow*/
        width: 100%; /*Set width to 100% to make it fill the width of the container */
        padding: 10px 0; /*Adjust padding as needed */
        box-shadow: none; /* Remove box shadow */
        left: 0px;
    }
}

@media (min-width: 1326.98px) {
    .reportsmain {
        position: relative;
        width: 100%;
        padding-left: 200px; /* Apply padding for screens larger than 1326.98px */
        box-shadow: none;
    }
}

@media (min-width: 1845px) {
    .reportsmain {
        margin-left: 0px; /* Ensure the main content adjusts based on sidebar width */
    }
}
@media (max-width: 768px) {
    /* On small screens (like mobile), make the sidebar full-width */
    .ReportSideBar {
        position: relative; /* Make it relative so it stacks above content */
        width: 100%; /* Make it take up the full width */
        padding: 10px 0; /* Adjust padding as needed */
        box-shadow: none; /* Remove box shadow for smaller screens */
        height: auto; /* Allow the sidebar to grow with content */
        left: 0px;
    }

    /* Make the main content stack below the sidebar */
    .main-content {
        margin-left: 0; /* Reset margin for small screens */
        margin-top: 20px; /* Add some space below the sidebar */
    }

    .container-fluid {
        padding: 0; /* Remove padding for small screens to ensure full-width layout */
    }
}

.ReportSideBar .active {
    border-radius: 5px;
    box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
}

/*

.body {
    background-color: whitesmoke;
    color: var(--text-color-light);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark mode styles */
body.dark-mode {
    background-color: var(--background-color-dark);
    color: var(--text-color-dark);
}

/*darkmode for side and navbar*/
/* Styles for light mode */
.list-group-item {
    background-color: #0B3C5D;
    color: white;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#main-navbar {
    background-color: #031424;
    color: white;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.nav-link {
    color:white;
}

#sidebarMenu {
    background-color: #0B3C5D;
    color: var(--text-color-light);
    transition: background-color 0.3s ease, color 0.3s ease;
}
#ReviewMenu {
    background-color: var(--background-color-light);
    color: var(--text-color-light);
    transition: background-color 0.3s ease, color 0.3s ease;
}
#InjuryManageMenu {
    background-color: var(--background-color-light);
    color: var(--text-color-light);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.card {
    background-color: var(--background-color-light);
    color: var(--text-color-light);
    border-color: black;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.card-header {
    background-color: lightgray;
}

.card border {
    border-color: black;
}
.table {
    background-color: var(--background-color-light);
    color: var(--text-color-light);
    transition: background-color 0.3s ease, color 0.3s ease;
    
}
/* Light mode styles end */

/* Styles for dark mode */

body.dark-mode #main-navbar {
    background-color: #343434;
    color: var(--text-color-dark);
}

body.dark-mode #sidebarMenu {
    background-color: #343434;
    color: var(--text-color-dark);
}
body.dark-mode #background_container {
    background-color: #343434;
    color: var(--text-color-dark);
}

body.dark-mode #ReviewMenu {
    background-color: #343434;
    color: var(--text-color-dark);
}
body.dark-mode #InjuryManageMenu {
    background-color: #343434;
    color: var(--text-color-dark);
}

body.dark-mode .list-group-item {
    background-color: #343434;
    color: var(--text-color-dark);
}

body.dark-mode .card {
    background-color: var(--background-color-dark);
    color: var(--text-color-dark);
    border-color: white;
}

body.dark-mode .card-header {
    background-color: dimgrey;
}
body.dark-mode .table {
    background-color: var(--background-color-dark);
    color: var(--text-color-dark);
    border-color: white;
}
body.dark-mode .table tbody tr{
    color:white;
}
/*end dark mode*/
@media (min-width: 991.98px) {
    main, footer {
        padding-left: 100px;
        
    }

}


/*Carousel index bottom*/
.cib-item {
    height: 225px;
}
.cib-image {
    height:100%;
    object-fit:cover;
}
/*FORMS */
/*TABLES*/
.dt-search {
/*    margin-bottom:10px;*/
}
.dt-layout-row {
    margin-bottom: 10px;
}
/*CARDS*/
.card-header {
    text-align: center;
}
.sidereview_card {
    max-height:140px
}
.sidereview_card .card-text {
    font-size:12px;

}
.mb-10 {
    margin-bottom:10px;
}
.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/*Forms*/
.form-group {
    padding: .25rem !important;
}
.form-check .form-check-input {
    margin-left: 0px;
}
/*TOAST*/
.notyf {
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    padding: 10px;
}

.notyf__toast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.5s;
    color: white;
}

.notyf__toast--success {
    background: linear-gradient(135deg, #28a745, #81c784);
}

.notyf__toast--error {
    background: linear-gradient(135deg, #dc3545, #f56c73);
}

.notyf__toast--warning {
    background: linear-gradient(135deg, #ffc107, #ffca28);
    color: #212529;
}

.notyf__toast--info {
    background: linear-gradient(135deg, #17a2b8, #68c6e5);
}

.notyf__icon {
    margin-right: 12px;
}

.notyf__message {
    font-weight: 500;
    letter-spacing: 0.5px;
}

.notyf__close {
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: white;
    transition: opacity 0.3s;
}

    .notyf__close:hover {
        opacity: 0.8;
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/*this is old
    .notyf__toast {
    height:50px;
    font-size:10px;
    padding:0px
}*/

/*Injury Manager Sidebar*/
.InjuryManageMenu {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0px;
    padding: 58px 0 0;
    box-shadow: 0 10px 10px 0 rgb(0 0 0 / 5%), 0 10px 10px 0 rgb(0 0 0 / 5%);
    width: 240px;
    z-index: 600;
}
@media (max-width: 1326.98px) {
.InjuryManageMenu {
    position: relative; /*Change position to relative to make it flow in the document flow*/
    width: 100%; /*Set width to 100% to make it fill the width of the container*/ 
    padding: 10px 0; /*Adjust padding as needed */
    }
}
.InjuryManageMenu .active {
    border-radius: 5px;
    box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
}

.InjuryManageMenu-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: 0.5rem;
    overflow-x: hidden;
    overflow-y: auto;
}
.row_complete {
    background-color: green;
}
/*//NOTICEBOARD//*/
#drop-area {
    width:300px;
    height:300px;
    padding: 30px;
    background:white;
    text-align:center;
    border-radius:20px;

}
#img-view {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    border: 2px dashed #bbb5ff;
    background:#f7f8ff;
    background-position:center;
    background-size:cover;
}
#img-view img {
    width:100px;
    margin-top:25px;

}
#img-view span {
    display:block;
    font-size:12px;
    color:#777;
    margin-top:15px;
}
#upload-text,
#upload-info {
    display: none;
}
.risk-assessment-img {
    width: 100%;
    height: 100%;
}
.table-center {
    text-align:center;
}
i.bi.bi-filetype-pdf {
    color: red;
    font-size: 40px;
}
i.fas.fa-first-aid {
    color: green;
    font-size: 40px;
}
i.bi.bi-file-earmark-word {
    color: royalblue;
    font-size: 40px;
}
/*button edit css*/
/*Injury Management Nav tab names*/
.nav-link {
    color: #c7c6c6;
}
/*Shadow for the form question creattion this allows the section to blend better*/
.custom-shadow {
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1), /* Top shadow */
    4px 0 8px rgba(0, 0, 0, 0.1), /* Right shadow */
    -4px 0 8px rgba(0, 0, 0, 0.1); /* Left shadow */
}
.safety-card {
    width: 330px
}
.fixed-size-img {
    height: 200px; /* Set a fixed height */
    width: 100%; /* Full width */
    object-fit: cover; /* Ensures the image covers the space while maintaining aspect ratio */
    object-position: center; /* Ensures the image is centered within the container */
    border-radius: 8px; /* Optional: Add rounding to the image to match the card */
}
.injury_review_checklist_item {
    background-color: rgba(230,230,230,0.05);
    color: black
}
/*Training Matrix table*/
.text-bright-green {
    color: #32CD32; /* Bright green */
}

.table th, .table td {
    vertical-align: middle; /* Align content in the middle */
}

/*.table thead {
    background-color: #343a40;*/ /* Dark table header */
    /*color: white;*/ /* White text */
/*}*/

.table th {
    font-weight: bold;
}

.table-hover tbody tr:hover {
    background-color: #f1f1f1; /* Slight hover effect on rows */
}
.badge.bg-extreme {
    background-color: crimson;
    color: white; /* Adjust as needed */
}
.initials-circle {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    font-size: 18px;
}
.progress-container {
    position: relative;
    display: inline-flex;
    width: 100%;
    height: 2rem; /* Adjust height as needed */
    overflow: hidden;
    border-radius: 15px;
    padding: 0.2rem;
    background-color: #f3f3f3; /* Background color for the container */
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, #284329 0%, #31a936 30%, #15db1d 65%, #0aeb13 90%, #fff 100%);
    transition: width 0.5s ease-out;
    text-align: left;
    font-size: 1rem;
    padding-left: 0.5rem;
    display: flex;
    align-items: center;
    color: #fff;
    font-weight: bold;
    border-radius: 15px;
}
.badge.rounded-circle {
    width: 1rem;
    height: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    background-color: #0B3C5D;
}
.video-container {
    position: relative;
    width: 100%; /* Ensures the container width matches the card */
    overflow: hidden;
    border-radius: 5px; /* Optional: Matches card styling */
}

.video-container iframe {
    width: 100%;
    height: 300px; /* Matches the desired height */
    display: block; /* Removes potential inline element spacing */
    border: none; /* Removes any default iframe border */
}
.card-header-details {
    background-color: #0b6caf;
}

.ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    display: inline-block;
}
.ins-text {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #0B3C5D;

}
@media print {
    body * {
        visibility: hidden !important;
    }

    .report-print,
    .report-print * {
        visibility: visible !important;
    }

    .report-print {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .d-print-none {
        display: none !important;
    }

    .report-print img.center-on-print {
        display: block !important;
        margin: 0 auto !important;
    }
    .center-on-print-printonly {
        text-align: center !important;
        float: none !important;
        width: 100% !important;
        margin: 0 auto !important;
    }
}
/*.card:hover {
    box-shadow: 0 0 12px rgba(0,0,0,0.2);
    transform: scale(1.06);
    transition: 0.2s ease;
}*/
.dashboard-cards .card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.dashboard-cards .card:hover {
        transform: scale(1.06);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
 }
/*.dashboard-card-80 {
    height: 80%;
    min-height: 400px;*/ /* Optional: ensures a usable min height */
/*}*/

/*.vh-50 {
    height: 50vh !important;
}*/
.dashboard-card-50vh {
    height: auto; /* Allow content to define height */
    min-height: 100%; /* Optional: for consistent styling */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .dashboard-card-50vh .card-body {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
.worksafe-hover:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
