/* Fonts */
p,th,td,* {
    font-family: "Roboto", sans-serif;
}

h1,h2,h3,h4,h5,label{
    font-family: "Roboto", sans-serif;
}

p,th,td,label{
    font-size:14px;
}

/* Not logged in */
.not-logged-screen {
    display: flex;
    height: 100vh;
}

.not-logged-left {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: white;
    color:#262626;
}

.not-logged-left a{
    color: #CC428F;
    font-weight:bold;
}

.not-logged-logo{
    width:100%;
    text-align: center;
    padding:0 0 50px 0;
}

.not-logged-logo img{
    margin:0 auto;
    width:70%;
}

.not-logged-left--inner{
    width:80%;
}

.not-logged-left--inner h1{
    margin-bottom:30px;
    max-width:70%;
    font-weight:300;
    font-family: "Roboto", sans-serif;
}

.not-logged-right {
    width: 50%;
    background-image: url("/storage/images/not-logged.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
}

.not-logged-left hr{
    color:#e1e1e1;
    margin-top:30px;
    opacity:1;
}

#passwordChecklist{
    list-style:none;
    padding-left:0;
}

#passwordChecklist li{
    display:flex;
    align-items: center;
    gap: 10px;
    color: #d3d3d3;
}

#passwordChecklist li svg path{
    stroke: #d3d3d3 !important;
}

#passwordChecklist .is-green{
    color: #009d0c;
}

#passwordChecklist li.is-green svg path{
    stroke: #009d0c !important;
}

/* Logged in */
.whs-pink{
    color: #CC428F;
}

.logged-in-main {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
}

.logged-in-main--header {
    width: 100%;
    height: 65px;
    padding: 13px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-bottom:none;
    background:#002E5B;
    position:relative;
    z-index:99;
    box-shadow: 0px -1px 7px rgba(0, 0, 0, 0.1);
}

a{
    color: #262626;
}

.logged-in-main--nav nav ul{
    list-style:none;
    padding:0;
    margin:0;
}

.actions--comment-container a{
    color: #262626;
}

.logged-in-main--content {
    margin-left: 200px;
    flex: 1;
    background-color: #ffffff;
    overflow-y: auto;
    height: calc(100vh - 65px);
}

.logged-in-main--content--inner{
    padding: 15px;
}

.logged-in-main--content.expanded{
    margin-left: 70px !important;
}

.logged-in--calendar-container{
    height: calc(100% - 50px);
}

.modal-header{
    padding:20px;
    background:#D4EFFC;
    border-bottom:none;
}

.modal-title{
    font-size:16px;
}

.remove-row{
    border:none !important;
    background:none !important;
}

/* Forms */
input[type='text'],
input[type='number'],
input[type='password'],
input[type='email'],
input[type='phone'],
select,
textarea,
button.btn,
a.btn{
    border-radius: 5px !important;
}

input[type='text'],
input[type='number'],
input[type='password'],
input[type='email'],
input[type='phone'],
select,
textarea{
    border-color: #243A89 !important;
}

textarea,
select[multiple]{
    padding-top:20px !important;
    padding-bottom:20px !important;
}

.form-check-input[type=checkbox]{
    border-color: #262626 !important;
}

label{
    margin-bottom:3px;
    color: #243A89;
}

button.btn,
a.btn{
    padding: 6px 15px !important;
    border: none !important;
    background: #CC428F !important;
    color: white !important;
    min-height:38px;
    font-size: 14px !important;
    font-style: normal;
    font-weight: 700;
    align-items: center;
    display: inline-flex;
    white-space: nowrap;
}

button.btn:hover,
a.btn:hover{
    opacity:0.8;
}

.btn svg{
    margin-left:15px;
}

.btn-icon-only svg{
    margin-left:0 !important;
}

button.no-button-style{
    background:none !important;
    border:none !important;
    color: #262626 !important;
    border-radius:0 0 4px 4px !important;
    height:auto !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button{
    padding:5px !important;
    font-size: 14px;
}
.dataTables_info{
    font-size: 14px;
}

.date_field {
    position: relative;
}

.date_field input.form-control {
    padding-right: 2.5rem; /* Make room for the icon */
}

.date_field svg {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    pointer-events: none;
}

.spin {
    animation: spin 1s linear infinite;
    transform-origin: center;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.select2-container{
    z-index:99;
}

.tom-select-container{
    position:relative;
    z-index:999;
}

.ts-control{
    border-color: #243A89 !important;
    border-radius: 5px !important;
    height:38px;
    z-index:99;
    padding-right: 28px;
    max-width: 100%;
}

.ts-dropdown,
.ts-control,
.ts-control input{
    font-size: 1rem !important;
}

.ts-control .item{
    display:block;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    max-width:100%;
}

.ts-control input{
    width:1px !important;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
}

.ts-dropdown{
    border-radius: 0 0 5px 5px !important;
    margin-top: -5px;
    padding-top: 10px;
    overflow:hidden;
}

.ts-dropdown .option[data-value=""] {
    color: gray;
    font-size: 12px;
}

.form-select-wrapper {
    position: relative;
}

.ts-control::after,
.form-select-wrapper::after {
    content: '▾';
    font-size: 14px;
    color: #999;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Sidebar */
#sidebar {
    width: 200px;
    height: calc(100vh - 65px);
    position: absolute;
    top: 65px;
    left: 0;
    background:#f5f5f5;
    transition: width 0.3s ease-in-out, padding 0.3s ease-in-out;
    overflow: hidden;
    z-index:999;
    padding-top:20px;
    box-shadow: 2px 0px 5px rgba(0, 0, 0, 0.1);
}

#sidebar.collapsed {
    width: 70px;
}

#sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#sidebar ul li {
    display: flex;
    padding:0 20px;
    height:55px;
    align-items: center;
    transition: padding 0.3s ease-in-out;
}

#sidebar ul li a {
    text-decoration: none;
    display: flex;
    align-items: center;
    width:100%;
    padding:12px 15px;
    background:white;
    border-radius: 5px;
    margin-bottom:10px;
    color:#002E5B;
    gap:15px;
    transition: padding 0.3s ease-in-out, background 0.3s ease-in-out, margin 0.3s ease-in-out;
}

#sidebar ul li a .nav-text{
    font-family: "Roboto", sans-serif;
    font-size:14px;
    font-weight:bold;
    transition: display 0.3s ease-in-out;
}

#sidebar ul li a:hover,
#sidebar ul li a.active{
    background: #D4EFFC;
}

.nav-icon {
    margin-right: 15px;
    transition: margin-right 0.3s ease-in-out;
}

.nav-icon svg path{
    fill: #002E5B !important;
}

#sidebar.collapsed ul li{
    padding:0 10px;
}

#sidebar.collapsed .nav-text {
    display:none;
    transition: display 0.2s ease-in-out;
}

#sidebar.collapsed .nav-icon {
    margin-right: 0;
}

#toggleSidebar {
    background: none !important;
    border: none;
    color: #002E5B !important;
    font-size: 18px;
    cursor: pointer;
    text-align: center;
    margin-bottom: 20px;
    display: block;
    padding:0 !important;
    position:absolute;
    bottom:0;
    right:15px;
}

#sidebar.collapsed #toggleSidebar{
    right:24px;
}

.dataTables_filter{
    display:none;
}

#sidebar.collapsed #toggleIcon {
    transform: rotate(180deg);
}

.logged-in-main--content {
    margin-left: 200px;
    transition: margin-left 0.3s ease-in-out;
}

.logged-in-main--content.expanded {
    margin-left: 70px;
}

.modal-add-only{
    display:none;
}

/* TODO: Change this back. Demo only */
.modal-content.weekly-email {
    width:1000px!important;
    margin-left:-230px;
}
/* Settings */
.settings-container {
    display: flex;
    height: calc(100vh - 80px);
}

.settings-main {
    flex-grow: 1;
    overflow-y: auto;
}

.settings-sidebar {
    width: 250px;
    padding-top:20px;
    background: #F5F5F5;
    height: 100%;
}

.settings-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-menu ul li.list-indented {
    display:none;
}

.settings-sidebar ul li a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #262626;
    transition: background 0.3s ease-in-out;
    border-left: 3px solid #F5F5F5;
    font-family: "Roboto", sans-serif;
    font-size: 14px;
}

.settings-sidebar ul li a.active,
.settings-sidebar ul li a:hover {
    border-left: 3px solid #262626;
}

.detail-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #D9D9D9;
}

.detail-tabs li a {
    display: block;
    padding: 7px 15px;
    text-decoration: none;
    color: #333;
    margin-bottom:-1px;
    border-bottom:1px solid #D9D9D9;
    font-family: "Roboto", sans-serif;
    font-size:14px;
    border:1px solid #D9D9D9;
    margin-right:10px;
    border-radius:5px 5px 0 0;
    background: #f5f5f5;
}

.detail-tabs li a.active {
    border-bottom:1px solid white;
    background:white;
}

.detail-tabs li a:hover{
    opacity:0.7;
}

#success-message{
    color:green;
}

/* Tables */
table.dataTable{
    width:100% !important;
}

table.dataTable tbody th, table.dataTable tbody td{
    vertical-align: middle;
}

table.dataTable tbody td{
    padding:2px 10px;
}

table.dataTable>thead>tr>th{
    background:#D4EFFC;
    border:none !important;
    font-size:13px;
    font-family: "Roboto", sans-serif;
    color: #002E5B;
}

table.dataTable>thead>tr:first-of-type th{
    padding: 5px 10px;
}

table.dataTable>thead>tr:last-of-type th{
    padding: 0 30px 8px 10px;
}

table.dataTable>thead>tr:first-of-type th:first-of-type{
    border-radius:5px 0 0 0;
}

table.dataTable>thead>tr:first-of-type th:last-of-type{
    border-radius:0 5px 0 0;
}

table.dataTable>thead>tr:last-of-type th:first-of-type{
    border-radius:0 0 0 5px;
}

table.dataTable>thead>tr:last-of-type th:last-of-type{
    border-radius:0 0 5px 0;
}

table.dataTable.no-footer{
    border-bottom:none !important;
}

table.dataTable>tbody>tr>td{
    border-bottom:none !important;
}


table.dataTable>tbody>tr:nth-of-type(even)>td{
    background: #F5F5F5;

}table.dataTable>tbody>tr.table-warning>td{
    background: #fff3cd;
}


.dataTable-buttons{
    display:inline-flex;
    gap:5px;
}

.dataTable-buttons .btn svg{
    margin:0;
    height:17px !important;
    width:17px !important;
}

.dataTable input[type='text']{
    border:1px solid grey;
    width:100%;
    padding:2px 5px;
}

.dataTable th.sorting_disabled input[type='text']{
    display:none;
}

table a{
    text-decoration: none;
}

table .btn{
    background:none !important;
    padding:0px !important;
    border:none !important;
}

/* Other */
.drag-handle {
    cursor: move;
    font-size: 1.2rem;
    display: inline-block;
}

.form-button-group{
    display:flex;
    gap:20px;
    align-items: center;
}

.content-title{
    display:flex;
    justify-content: flex-start;
    height:38px;
    margin-bottom:15px;
    align-items: center;
    gap:20px;
}

.content-title h1{
    font-size:20px;
    margin:0;
}

.content-title--buttons{
    margin-left:auto;
    display:flex;
    align-items: center;
    gap:10px;
    justify-content: flex-end;
}

.content-title--buttons button{
    white-space: nowrap;
    overflow: hidden;
    font-size:14px;
}

.content-title--buttons .btn-secondary,
button.btn-secondary,
a.btn-secondary,
#add-row.btn-secondary{
    background: #6C757C !important
}

button.btn-small,
a.btn-small{
    padding: 5px 10px !important;
    min-height: auto !important;
}

.content-title--buttons .form-control{
    width:auto;
}

.modal-body {
    max-height: 650px;
    overflow-y: auto;
}

.alert{
    padding:10px !important;
}

.alert ul{
    list-style:none;
    padding: 0;
    margin: 0;
}

.header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    position: relative;
    gap:15px;
}

.user-icon,
.header-notification-icon {
    cursor: pointer;
    font-size:22px;
    color:grey;
}

.user-icon:hover,
.header-notification-icon:hover{
    opacity:0.7;
}

.user-icon .user-initials{
    background: #D4EFFC;
    border-radius:100%;
    display: flex;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size:14px;
}

.user-menu {
    position: absolute;
    top: 45px;
    right: 0;
    background: white;
    border-radius: 5px;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    display: none;
    width: 100px;
    z-index: 999;
    overflow:hidden;
}

.user-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-menu ul li a,
.user-menu ul li button{
    padding: 10px 20px !important;
    width:100%;
    text-decoration:none;
    color:black;
    display:inline-block;
    cursor: pointer;
    font-family: "Roboto", sans-serif;
    font-size: 14px;
}

.user-menu ul li button:hover{
    opacity:1;
}

.user-menu ul li form{
    margin:0;
}

.user-menu ul li button{
    background:none;
    border:none;
    text-align: left;
    margin:0;
    border-radius: 0 0 5px 5px;
}

.user-menu ul li a:hover,
.user-menu ul li button:hover {
    background: #f4f4f4 !important;
}

.badge-green{
    background:#00c100;
}

.badge-grey{
    background:#bbbbbb;
}

.badge-default {
    background: #6C757C;
}

.table_link{
    color: #112f5b;
    text-decoration: underline;
}

 #calendar {
    max-width: 100%;
    margin: 0 auto;
}

.fc-event-title {
    white-space: pre-line;
}

.fc-event:hover .fc-close-btn {
    display: block;
}

.fc-close-btn {
    display: none;
}

#calendar-filter{
    width:100%;
    display:none;
    padding:5px;
    background:#D4EFFC;
    border-radius:5px;
    margin-bottom:15px;
}

#calendar-filter .ts-control{
    height:26px;
}

#calendar-filter .ts-control .item{
    font-size:13px;
    margin-top:-5px;
}

#burgerToggle{
    display:none;
}

/* Charts*/
.charts-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.charts-container > div {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);

}

.riskStatusChartElement {
    height: 450px;
    width: 550px;
}

.riskRatingChartElement {
    height: 450px;
    width: 100%;
    grid-column: span 3;

}

/* Custom styling for status update form */
.status-update-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top:15px;
}

.form-inline-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-label {
    font-size: 14px;
    color: #243A89;
    font-weight: 500;
    margin-bottom: 0;
}

.status-dropdown {
    height: 38px;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #243A89;
    background-color: #fff;
    color: #262626;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg fill='gray' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 1rem;
    padding-right: 2rem;
}




/* Mobile */
@media (max-width: 1000px) {

    .not-logged-right,
    .hide-mob {
        display: none;
    }

    .not-logged-left {
        width: 100%; /* Make left side take full width */
    }

    #burgerToggle{
        display:inline-block;
        border:none;
        background:none;
    }

    #sidebar{
        display:none;
    }

    #sidebar.show {
        display:block;
        width:100%;
    }

    #sidebar.show #toggleIcon{
        display:none;
    }

    #sidebar.show >ul>li>a>span{
        display:inline-block !important;
    }

    .logged-in-main--content.expanded,
    .logged-in-main--content{
        margin-left: 0 !important;
    }

    .content-title{
        flex-direction: column;
        height:auto;
        align-items:start;
    }
    .content-title--buttons .form-control,
    .content-title--buttons{
        width:100%;
    }

    .content-title--buttons >*{
        width:100%;
        justify-content: center;
    }

    .detail-tabs{
        flex-direction:column;
    }

    .detail-tabs li a.active {
        border-bottom: 1px solid #D9D9D9;
    }
    .detail-tabs li a {
        width:100%;
        border-radius: 5px;
        margin-bottom: 10px;
        border: 1px solid #D9D9D9;
    }

    tr.filter-row{
        display:none;
    }

    table.dataTable>thead>tr:first-of-type th:last-of-type{
            border-radius: 0 5px 5px 0;
    }
    table.dataTable>thead>tr:first-of-type th:first-of-type {
        border-radius: 5px 0 0 5px;
    }

    .content-title--buttons--hasRows{
        display:inline-block;
    }

    .content-title--buttons--row{
        width:100%;
        margin-bottom:10px;
        display:flex;
        gap:10px;
    }

    .content-title--buttons--row >*{
        width:100%;
        justify-content: center;
    }

    #custom-calendar-controls >*{
        width:45%;
        justify-content: center;
    }

    #calendar-filter{
        padding:10px;
    }

    #calendar-filter .col-md-3{
        margin-bottom:10px;
    }

    #calendar-filter .col-md-3:last-of-type{
        margin-bottom:0;
    }

    .settings-sidebar{
        display:none;
    }

    .user-menu {
        width: 170px;
    }
    .user-menu ul li a.list-main-section {
        background-color: #002E5B!important;
        color: #FFFFFF;
    }
    .user-menu ul li button.list-main-section {
        background-color: #002E5B!important;
        color: #FFFFFF!important;
    }

    .user-menu ul li.list-indented {
        display:flex;
        padding-left: 30px;!important
    }

}
