/* ------------------------------ common -------------------------------- */

:root {
    --accent-color: #f9ba8a;
    --primary-color: rgb(80,174,174);
    --secondary-color: #d9efef;
    --disabled-color: #89d9da;
    --hover-color: #c3e6e4;
    --nav-text-color: #2d3f3f;
    --color-activating: #6fa8dc;
    --color-active: #93c47d;
    --color-suspended: #f9c119;
    --color-terminated: #cccccc;
    --color-canceled: #e06666;
}

.logo_container{width: 130px;}

div.side_column_layout div.side_column{
    background-image: url('../images/branch.png');
    background-repeat: no-repeat;
    background-position: 88% -20px;
    background-size: 55px;
}

div.side_column_layout div.side_column div.logo_container{margin: 33px 25px;}
div.company_name_container{padding: 0 25px 15px 25px;}

div.company_name_container span{
    color: var(--primary-color);
    text-transform: uppercase;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    display: block;
}

/* --------------------------- menu --------------------------- */

header{
    background-color: var(--secondary-color);
    position: fixed;
    display: none;
    height: 60px;
    width: 100%;
    z-index: 1;
}

header div.logo_container{
    margin: 21px;
    float: left;
}

header div.menu_opener{
    color: var(--nav-text-color);
    text-align: center;
    line-height: 60px;
    font-size: 20px;
    cursor: pointer;
    height: 60px;
    float: right;
    width: 60px;
}

header div.menu_opener:hover,
header div.menu_opener.open{
    background-color: var(--hover-color);
}

div.side_column{
    background-color: var(--secondary-color);
    border-right: 0px;
    overflow: hidden;
    width: 250px;
}

div.side_column nav{margin-top: 0px;}

div.side_column nav ul li,
div.menu_second_level ul li{margin: 0;}

div.side_column nav ul li a,
div.menu_second_level ul li a{
    border-left: 4px solid transparent;
    color: var(--nav-text-color);
    padding: 12px 10px;
    display: block;
}

div.side_column nav ul li a i,
div.menu_second_level ul li a i,
div.menu_second_level ul li button i{
    text-align: center;
    font-size: 15px;
    width: 30px;
}

div.side_column nav ul li.menu_section_title{
    margin: 35px 15px 10px 20px;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 11px;
    color: var(--nav-text-color);
}

div.side_column nav ul li.menu_section_title:first-of-type{margin-top: 5px;}

div.side_column nav ul li.active a,
div.side_column nav ul li a:hover,
div.menu_second_level ul li a:hover,
div.menu_second_level ul li button:hover{
    background-color: var(--hover-color);
    border-left: 4px solid #4db1a9;
}

div.menu_bottom_fixed_section{
    border-top: 2px solid #fff;
    flex-direction: row;
    align-items: center;
    position: absolute;
    display: flex;
    width: 250px;
    z-index: 10;
    bottom: 0px;
    left: 0px;
}

a.user_name{
    flex-direction: row;
    align-items: center;
    line-height: 15px;
    font-weight: 400;
    font-size: 12px;
    display: block;
    color: var(--nav-text-color);
    padding: 20px;
    width: 180px;
    display: flex;
}

a.user_name div.user_custom_icon{
    background-color: #81c9a4;
    border-radius: 50%;
    margin-right: 20px;
    text-align: center;
    line-height: 40px;
    font-weight: 300;
    height: 40px;
    width: 40px;
    color: #fff;
}

div.menu_bottom_fixed_section a.action_btn,
div.menu_bottom_fixed_section span.action_btn{
    color: var(--nav-text-color);
    text-align: center;
    line-height: 80px;
    height: 80px;
    width: 70px;
}

a.user_name.active,
a.user_name:hover,
div.menu_bottom_fixed_section a.action_btn:hover,
div.menu_bottom_fixed_section span.action_btn:hover,
div.menu_bottom_fixed_section span.action_btn.active{
    background-color: var(--hover-color);
}

div.menu_bottom_fixed_section span.action_btn{
    cursor: pointer;
}

div.menu_second_level{
    -webkit-transition: all 300ms ease-in-out !important;
    -moz-transition: all 300ms ease-in-out !important;
    transition: all 300ms ease-in-out !important;
    overflow: hidden;
    position: fixed;
    bottom: 82px;
    width: 250px;
    height: 0px;
    z-index: 10;
    left: 0px;
}

div.menu_second_level ul li button{
    border: none;
    border-left: 4px solid transparent;
    color: var(--nav-text-color);
    padding: 12px 10px;
    text-align: left;
    background: none;
    display: block;
    width: 100%;
}

/* --------------------------- content --------------------------- */

div.side_column_layout div.external_container{
    background-color: #fff;
    left: 250px;
}

div.content_data{
    background-color: #f7f7f7;
}

h1{
    display: flex;
    align-items: center;
}

span.tag{
    text-transform: uppercase;
    display: inline-block;
    border-radius: 3px;
    font-weight: 500;
    padding: 3px 6px;
    font-size: 10px;
}

span.tag.worker_type{
    background-color: var(--accent-color);
    color: #fff;
}

span.tag.status_ACV,
span.dot.status_ACV,
label.status_choice.status_ACV{
    background-color: var(--color-activating);
    color: #fff;
}

span.tag.status_ACC,
span.tag.status_ACT,
span.dot.status_ACT,
label.status_choice.status_ACT{
    background-color: var(--color-active);
    color: #fff;
}

span.tag.status_SUS,
span.dot.status_SUS,
label.status_choice.status_SUS{
    background-color: var(--color-suspended);
    color: #fff;
}

span.tag.status_TER,
span.dot.status_TER,
label.status_choice.status_TER{
    background-color: var(--color-terminated);
    color: #fff;
}

span.tag.status_DEN,
span.tag.status_CAN,
span.dot.status_CAN,
label.status_choice.status_CAN{
    background-color: var(--color-canceled);
    color: #fff;
}

span.tag.status_PEN {
  background-color: rgba(0,0,0,0.05);
  color: #aaa;
}

/* --------------------------- login/registration -------------------------- */

div.no_side_menu a.logo_container{
    position: fixed;
    z-index: 10;
    margin: 50px;
}

div.no_side_menu div.under_logo{display: none;}

div.no_side_menu div.back_image{
    background-image: url('../images/background.jpg');
    background-size: cover;
    position: fixed;
    right: 500px;
    bottom: 0px;
    left: 0px;
    top: 0px;
}

div.no_side_menu div.dx_container{
    background-color: #fff;
    position: absolute;
    padding: 50px;
    width: 500px;
    bottom: 0px;
    right: 0px;
    top: 0px;
}

div.no_side_menu div.dx_container h1{margin: 60px 0 0 0;}

div.no_side_menu div.dx_container p,
div.no_side_menu div.dx_container ul.messages{margin: 10px 0;}

div.no_side_menu div.dx_container form{padding: 20px 0px 50px 0;}
div.no_side_menu div.dx_container form p.helper-text{margin: 0px 0px 15px 0px !important;}

div.no_side_menu div.dx_container div.action_container button{margin-right: 15px;}
div.no_side_menu div.dx_container div.action_container a{font-size: 13px;}

div.no_side_menu+footer p{color: var(--nav-text-color);}
div.no_side_menu+footer p a{color: #fff;}

/* activation */
div.no_side_menu div.dx_container.activation h1{margin: 10px 0 0 0;}

div.no_side_menu div.dx_container.activation form input,
div.no_side_menu div.dx_container.activation form textarea,
div.no_side_menu div.dx_container.activation form select{margin-bottom: 5px;}

div.no_side_menu div.dx_container.activation form div.privacy_field{margin-bottom:20px;}

div.no_side_menu div.dx_container.activation form div.privacy_field label{
    font-size: 13px;
    display: inline;
}

div.no_side_menu div.dx_container.activation form span.password_visualiser{margin: -32px 10px 0 0;}

/* --------------------------- form -------------------------- */

div.week_days_container{
    justify-content: space-between;
    flex-direction: row;
    margin-top: 20px;
    flex-wrap: wrap;
    display: flex;
}

div.week_day_container{
    margin-bottom: 20px;
    width: 19%;
}

div.week_day_container div.row > *{
    padding-right: calc(var(--bs-gutter-x) * 0.2);
    padding-left: calc(var(--bs-gutter-x) * 0.2);
}

div.week_day_container input{margin-bottom: 10px;}

label.form-label{
    font-weight: normal;
    font-size: 13px;
}

label.form-label + span {color: #dc3545;}

p.saved_text{color: #7fc6a8;}

/* timesheet form */
h2.timesheet_form{
    justify-content: space-between;
    flex-direction: row;
    align-items: flex-shrink;
    flex-wrap: wrap;
    display: flex;
}

div.total_h span{
    padding: 0 15px 0 0;
    font-size: 13px;
}

div#not_editable_timsheets p{
    color: var(--nav-text-color);
}

.my-indicator{
    opacity:1;
    transition: opacity 500ms ease-in;
}

.htmx-request .my-indicator,
.htmx-request.my-indicator{opacity:0.5;}

div.single_form_content{
    justify-content: space-between;
    flex-direction: row;
    align-items: flex-shrink;
    flex-wrap: wrap;
    display: flex;
}

div.single_form_content div.sx{width: 94%;}

div.single_form_content div.dx{
    border-left: 1px solid #ddd;
    align-items: center;
    padding: 0 20px;
    display: flex;
    width: 5%;
}

div.single_form_content input,
div.single_form_content textarea,
div.single_form_content select{
    margin-bottom: 10px !important;
}

/* select2 */
span.select2{
    margin-bottom: 20px;
}

.select2-container--default .select2-selection{
    border: 1px solid #e7e7e7 !important;
    background-color: #fff !important;
    border-radius: 5px !important;
    min-height: 100px !important;
    font-size: 13px;
    width: 100%;
}

.select2-results__option[aria-selected]{
    color: #000;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: rgba(0,0,0,0.03) !important;
    color: #aaa !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary-color) !important;
}

span.select2-selection__clear{
    font-size: 20px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: rgba(0,0,0,0.03) !important;
    border-color: #ddd !important;
    padding: 3px 8px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    margin-right: 5px !important;
}

/* -------- Custom select2 configurations for create_allocation_form --------- */
#create_allocation_form span.select2 {
    width: 100% !important;
}
#create_allocation_form .select2-container--default .select2-selection{
    height: 34px !important;
    min-height: 34px !important;
}
#create_allocation_form .select2-container--default .select2-selection[aria-disabled="true"] {
    background-color: rgba(0, 0, 0, 0.03) !important;
    cursor: not-allowed !important;
}
#create_allocation_form .select2-container--default .select2-selection .select2-selection__rendered{
    height: 100%;
    padding-top: 2px;
    padding-left: 14px;
}
#create_allocation_form .select2-container--default .select2-selection[aria-disabled="true"] .select2-selection__rendered{
    color: #777;
}
#create_allocation_form .select2-container--default .select2-selection .select2-selection__arrow {
    height: 100%;
}
#create_allocation_form .select2-container--default .select2-results__option[aria-selected="true"] {
    color: #fff !important;
}

/* --------------------------- personnel -------------------------- */

div.details_data_container{
    display: grid;
    grid-template-columns: repeat(auto-fill, 24%);
    justify-content: space-between;
}

div.details_data_container h3{margin-bottom: 15px;}
div.details_data_container > div{margin-bottom: 20px;}

div.details_data_container ul li{margin-bottom: 3px;}

div.details_data_container ul li a,
div.details_data_container ul li span{font-size:13px;}

span.field{color: #777;}

div.details_data_container.ppa_container{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

div.details_data_container.ppa_container > div.white_box:first-of-type{width: 32%;}
div.details_data_container.ppa_container > div.white_box:nth-child(2){width: 67%;}

div.custom_attr_data_container div.custom_attr{
    display: grid;
    grid-template-columns: repeat(auto-fill, 32%);
    justify-content: space-between;
}

div.custom_attr_data_container div.custom_attr > div{margin-bottom: 3px;}

/* --------------------------- project -------------------------- */

p.under_level_status{
    flex-direction: row;
    margin: 5px 0px;
    display: flex;
}

span.dot{
    border-radius: 3px;
    margin-right: 8px;
    min-width: 5px;
    width: 5px;
}

.over-budget {
    background-color: rgba(204, 16, 60, 0.05) !important;
    color: rgb(204, 16, 60);
}

/* --------------------------- table -------------------------- */

div.table_container{
    border-radius: 5px;
    margin-top: 20px;
}

div.table_container.scroller{overflow-x: scroll;}

div.table_container.bordered {
    border: 1px solid #eee;
    box-shadow: none !important;
    padding: 10px;
    margin-top: 0px;
}

span.table_icon{
    text-align: center;
    font-size: 20px;
    display: block;
}

/* warning icons */
span.table_icon.warning_icon{color: rgba(255,193,7, 0.5);}

.tooltip,
.tooltip-arrow{
    transition-property: opacity !important;
}

/* actions column */
td.persona_td_actions{width: 220px;}

td.contract_td_actions,
td.phases_td_actions,
td.request_td_actions{width: 170px;}

td.project_td_actions,
td.company_holiday_td_actions{width: 115px;}

td.project_td_actions > *{margin: 2px;}

/* pagination */
ul.pagination{margin: 15px 0 0 0;}

ul.pagination li.active a,
ul.pagination li a:hover{
    background-color: var(--hover-color);
    color: var(--nav-text-color);
}

/* --------------------------- modal -------------------------- */

div.modal-body.form_container{padding: 0px;}
div.modal-body.form_container div.form_content{padding: 1rem;}

.modal div.loading_spinner{
    text-align: center;
    font-size: 20px;
    padding: 20px;
    color: var(--accent-text);
}

/* statuses */
div.statuses_container{
    justify-content: center;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    display: flex;
}

div.statuses_container > label{
    display: flex !important;
    justify-content: center;
    background-color: #eee;
    flex-direction: column;
    align-items: center;
    border-radius: 3px;
    text-align: center;
    cursor: pointer;
    margin: 0.5rem;
    height: 100px;
    width: 30%;
}

div.statuses_container > label i{
    margin: 0 0 10px 0;
    font-size: 20px;
}

div.statuses_container > label span{
    text-transform: uppercase;
    margin-bottom: 5px;
}

/* --------------------------- footer -------------------------- */

div.no_side_menu + footer{
    position: fixed;
    right: 500px;
    bottom: 0px;
    left: 0px;
}

footer p{
    margin: auto 20px;
    font-size: 11px;
}

/* div.login_box{margin: 0 45px;}
div.login_box h1{margin: 60px 20px 10px 20px;}



div.login_box div.action_container{
    flex-direction: row;
    align-items: center;
    display: flex;
}*/


/* --------------------------- allocation table -------------------------- */
div.allocation_cell {
    color: white;
    height: 100%;
    vertical-align: middle;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
}

#allocation_table_container table {
    height: 1px;
}
#allocation_table_container table tbody td:not(:nth-child(1)){
    background-color:#000;
}
#allocation_table_container table tbody td.disabled{
    background-color: inherit !important;
}

.allocation_details_table_container td.td_actions {
    width: 101px;
}

.allocation-details-table table tr:last-of-type td{
    border-bottom: 0px;
}

.allocation-details-table table div.table_container {
    margin: 10px 0;
}
.allocation-details-table table tr:last-of-type div.table_container {
    margin: 10px 0 0 0;
}

div.allocation-project-details-table ul,
div.allocation-project-details-table li,
.allocation-details-table ul,
.allocation-details-table li {
    margin: 10px 0 0 0 !important;
}


div.allocation_cell.color0 { background-color: rgb(0, 153, 0);}
div.allocation_cell.color1 { background-color: rgb(64, 166, 0);}
div.allocation_cell.color2 { background-color: rgb(128, 179, 0);}
div.allocation_cell.color3 { background-color: rgb(191, 191, 0);}
div.allocation_cell.color4 { background-color: rgb(255, 204, 0);}
div.allocation_cell.color5 { background-color: rgb(245, 173, 0);}
div.allocation_cell.color6 { background-color: rgb(235, 143, 0);}
div.allocation_cell.color7 { background-color: rgb(224, 112, 0);}
div.allocation_cell.color8 { background-color: rgb(214, 82, 0);}
div.allocation_cell.color9 { background-color: rgb(204, 51, 0);}
div.allocation_cell.color10 { background-color: rgb(0, 153, 204);}

div.allocation_cell.color0:hover { background-color: rgba(0, 153, 0, 0.7);}
div.allocation_cell.color1:hover { background-color: rgba(64, 166, 0, 0.7);}
div.allocation_cell.color2:hover { background-color: rgba(128, 179, 0, 0.7);}
div.allocation_cell.color3:hover { background-color: rgba(191, 191, 0, 0.7);}
div.allocation_cell.color4:hover { background-color: rgba(255, 204, 0, 0.7);}
div.allocation_cell.color5:hover { background-color: rgba(245, 173, 0, 0.7);}
div.allocation_cell.color6:hover { background-color: rgba(235, 143, 0, 0.7);}
div.allocation_cell.color7:hover { background-color: rgba(224, 112, 0, 0.7);}
div.allocation_cell.color8:hover { background-color: rgba(214, 82, 0, 0.7);}
div.allocation_cell.color9:hover { background-color: rgba(204, 51, 0, 0.7);}
div.allocation_cell.color10:hover { background-color: rgba(0, 153, 204, 0.7);}

div.allocation_cell.color-disabled {
    background-color: rgba(252, 252, 252, 0.99);
    cursor: default;
}
