﻿/*********************************

    Specific to Bootstrap ver.

*********************************/

.dropdown-menu {
    display: block;
}

.action-logout {
    color: black !important;
    background-color: white;
    cursor: pointer;
    min-width: 124px;
    border-radius: 0;
}

/*********************************

            Angular UI

*********************************/

.fade.in {
    opacity: 1;
}

.modal-header .close {
    padding:0;
    margin:0;
}

.user-name-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 15px 15px 15px 0px;
    flex: 1;
}
/*********************************

            Form General

*********************************/
[ng-message], .error > .help-block {
    color: #ff0500;
    background-color: white;
    font-size: 13px;
    margin-top: 2px;
    padding: 0 2px;
}

/*********************************

            Work Week Form

*********************************/

.card-work-week {
    background-color: white;
    padding: 5px;
    box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.1);
    height: 45px;
    cursor: pointer;
    margin-top: 8px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    border-radius: 8px;
}

.card-work-week.active {
    border: 1px solid #447AC1 !important;
    background-color: #e3efff;
}

.team-picker-wrapper {
    padding: 25px 0 10px 0px;
}

.team-picker-select {
    margin-top:19px;
}

.team-picker-select > div > span {
    border-radius: 0px !important;
    color: black;
    outline: none;
}

.team-picker-select > div > span:hover, 
.team-picker-select > div > span:focus, 
.team-picker-select > div > span:active {
    background-color: rgba(255, 255, 255, 0.1);
    color: black;
    outline: none;
}

.team-picker-select > div > span > span, 
.ui-select-bootstrap .ui-select-toggle > .caret {
    color: black !important;
}

/*********************************

            Work Day Form

*********************************/

.card-work-day-column {
    margin-right: 10px;
    font-weight: bolder;
}

.card-status-column {
    float: right;
    font-weight: bolder;
    text-align: end;
}

.day-form-container {
    margin: 25px 0px 50px 0px;
}

.day-form-container div {
    font-family: "Montserrat-Medium";
    font-size: 14px;
    color: #3F3F3F;
}

.card-work-day {
    background-color: white;
    padding: 5px;
    margin: 10px auto;
    height: 35px;
    box-shadow: -1px 3px 13px 3px #cbcbcb;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    min-width: 92px;
    font-size: 13px !important;
    text-transform: uppercase;
    border-radius: 8px;
    font-family: Montserrat-SemiBold !important;
}

.card-work-day.active {
    background-color: #447AC1;
    color: white;
}

.card-work-day.accepted {
    background-color:#98eb88;
}

.card-work-day.not-entered {
    background-color: #e1e1e1;
}

.card-work-day.has-hours {
    background-color: lightsteelblue;
}

.card-work-day.has-only-liveout {
    background-color: lightyellow;
}

.card-work-day.accepted.active {
    background-color: #447AC1;
    border: 5px solid #98eb88;
}

.card-work-day.today-date {
    box-shadow: 0px 0px 6px 2px #396db6;
}

.details-container {
    background-color: #D9D9D9;
    padding: 20px 15px 15px 15px;
    color: #3F3F3F;
    border-radius: 8px;
    margin: 29px 0;
    font-size:14px;
}

.details-container div{
    font-family: "Montserrat-Medium";
}

.details-container > .row > div {
    align-items: flex-start;
}

.details-container input,
.details-container select,
.details-container .ui-select-container,
.details-container .ui-select-container div,
.details-container .ui-select-container span,
.team-picker-wrapper input,
.team-picker-wrapper .ui-select-container,
.team-picker-wrapper .ui-select-container div,
.team-picker-wrapper .ui-select-container span {
    min-height: 48px;
    outline: none;
}

.details-container > .row {
    margin-top: 15px;
}

.position-relative > .delete-icon {
    position: absolute;
    top: 0;
    width: 30px;
    height: 30px;
    right: 0;
    background-color: red;
    justify-content: center;
    display: flex;
    align-items: center;
    color: white;
    cursor: pointer;
}

.main-title {
    display:flex;
    justify-content:space-between;
}

@media (max-width: 1599px) {
    .main-title {
        margin-top: 20px;
    }
}

.main-title,
.details-title {
    font-family: "Montserrat-Bold" !important;
    font-weight: normal;
    font-style: normal;
    font-size: 18px !important;
}

.team-picker-wrapper > .card-week-wrapper {
    margin-top: 15px;
    padding: 0 15px 15px 15px;
}

.form-action-primary,
.form-action-default,
.form-action-secondary,
.form-action-tertiary {
    font-family: "Montserrat-Medium";
    border-radius: 0;
    padding: 2px 15px;
    margin: 5px 0px 0px 0px;
    min-width: 124px;
    font-size: 16px;
    border-radius: 8px;
    box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.1);
}

.form-action-default,
.form-action-tertiary{
    color: black !important;
    background-color: white;
}

.form-action-primary,
.form-action-secondary {
    color: white !important;
    background-color: #447AC1;
}

.form-action-secondary:hover,
.form-action-primary:hover,
.form-action-default:hover,
.form-action-tertiary:hover{
    opacity: 0.8;
}

.form-action-secondary,
.form-action-secondary > span,
.form-action-tertiary {
    text-transform: uppercase;
    padding: 9.5px 10px;
    font-family: Montserrat-Medium;
    letter-spacing: 0.2px;
}

.form-input,
.ui-select-container {
    height: auto;
    width: 100%;
    border: none;
    color: #6f6e6e;
    background-color: white;
    font-family: Montserrat-Medium;
}

.form-input {
    padding: 10px;
}

.ui-select-container .form-control {
    min-height: 36px;
    line-height: 1.5;
}

.ui-select-bootstrap .ui-select-toggle > .caret {
    color: grey;
}


.align-self-center {
    -ms-flex-item-align: center !important;
    align-self: center !important;
}

/*********************************

      Leave Application Form

*********************************/

.uib-datepicker-popup {
    box-shadow: 0 6px 12px rgba(0,0,0,.175);
}

.form-container > .row {
    margin-top: 15px;
}

.form-container .form-input,
.form-container .ui-select-container {
    border: 1px solid #e1e1e1;
}

.form-container .input-group > .custom-select:not(:last-child),
.form-container .input-group > .form-control:not(:last-child) {
    border: 1px solid #e1e1e1;
    border-radius: 0;
    height: 50px;
}

.form-container .input-group-btn button {
    height: 50px;
    outline: none !important;
}

[align="right"] {
    text-align: right;
}

@media (min-width: 1600px) {
    .col-xxl-10 {
        -ms-flex: 0 0 83.333333%;
        flex: 0 0 83.333333%;
        max-width: 83.333333%;
    }

    .col-xxl-2 {
        -ms-flex: 0 0 16.666667%;
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }

    .col-xxl-3 {
        -ms-flex: 0 0 25%;
        flex: 0 0 25%;
        max-width: 25%;
    }

    .col-xxl-1 {
        -ms-flex: 0 0 8.333333%;
        flex: 0 0 8.333333%;
        max-width: 8.333333%;
    }
}

/*********************************

   New Diary Form Styling Rev. 1

*********************************/

.team-picker-wrapper input,
.day-form-container input {
    font-size: 14px;
}

.day-form-container btn:focus,
.day-form-container .form-control:focus,
.team-picker-wrapper btn:focus,
.team-picker-wrapper .form-control:focus {
    box-shadow: none;
    border-color: transparent;
    background-color: transparent;
}
.day-form-container .form-control,
.team-picker-wrapper .form-control {
    border: none;
    font-family: "Montserrat-Medium";
}

.day-form-container btn:focus,
.day-form-container div,
.day-form-container span {
    outline: none;
}

.day-form-container .btn-default-focus,
.team-picker-wrapper .btn-default-focus {
    box-shadow: none;
    border-color: transparent !important;
    background-color: transparent !important;
    outline: none;
    outline-offset: unset;
}

.ui-select-match span {
   /* display: flex;*/
    max-height:25px;
    align-items: center;
    flex: 1;
    font-family: "Montserrat-Medium";
    font-size: 14px;
    min-width: 0px;
}

.ui-select-match span .remove-bubble-btn {
    margin-right: 15px;
}

.ui-display-text {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    display: block !important;
    margin-right: 5px !important;
}

.user-container {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    width: 140px;
}

.user-timesheet-item-container {
    background-color: white;
    border-radius: 10px;
    margin-right: 10px;
    flex: 1 1 100%;
}

.user-timesheet-item-container > .ui-select-container {
    border-radius: 10px 10px 0px 0px !important;
    background-color: #203B60;
    height: 36px;
}

.user-timesheet-item-container .ui-select-search {
    border-radius: 10px 10px 0px 0px !important;
    box-shadow: none;
    border-color: black;
    font-family: "Montserrat-Medium";
    font-size: 12px;
}

.user-timesheet-item-container > .ui-select-container span {
    border: none;
    color: white;
    font-size: 12px;
    box-shadow: none;
    background-color: transparent;
}

    .day-form-container .ui-select-container span.ui-match {
        color: #fb8e23;
    }

.ui-select-choices div {
    font-size: 12px;
    min-height:inherit !important;
}

.details-container .ui-select-container,
.team-picker-wrapper .ui-select-container,
.form-input {
    border-radius: 10px;
}

.line-break {
    display: flex;
    flex: 1 1 100%;
    height: 2px;
    background-color: #E4E4E4;
}

.user-timesheet-item-container .row {
    margin: 0;
    justify-content: center;
    align-items: flex-end;
}

.bubbe-btn,
.remove-bubble-btn {
    cursor: pointer;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bubbe-btn {
    width: 20px;
    height: 20px;
    border: 1px solid #CCCCCC;
    display: flex;
}

.bubbe-btn > div {
    color: #808080;
    font-size: 16px;
    height: inherit;
    display: flex;
    align-items: center;
}

.remove-bubble-btn {
    width: 15px;
    height: 15px;
    background-color: rgba(255, 0, 0, 0.1);
}

.remove-bubble-btn > div.line {
    background-color: red;
    width: 55%;
    height: 2px;
    border-radius: 100%;
}

.bubble-btn-container {
    display: flex;
    justify-content: space-between;
    width: 45px;
}

.user-timesheet-item {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    padding: 0 10px;
    align-items: center;
    position: relative;
}

.totals-item > .line-break,
.user-timesheet-item > .line-break {
    position: absolute;
    bottom: 0;
    width: 85%;
}

.hour {
    flex: 1;
    height: 100%;
    align-items: center;
    display: flex;
}

.hour > input {
    width: 100%;
    border: none !important;
}

.hour-total {
    height: 36px;
    padding: 0 10px;
    background-color: #D9D9D9;
    display: flex;
    align-items: center;
    border-radius: 0 0 10px 10px;
}

.timesheet-container {
    display: flex;
    flex-wrap: wrap;
    margin-top: 29px;
}

.timesheet-list-container > .timesheet-item {
    background-color: white;
    width: 350px;
    border-radius: 10px;
}

.timesheet-list-container {
    margin-right: 10px;
}

.timesheet-list-container > div {
    flex: 1 1 100%;
}

.timesheet-list-container button {
    width: 100%;
    margin: 7px 0px 0px 0px;
}

.team-leader {
    text-align: center;
    font-size: 10px !important;
    font-family: Montserrat-SemiBold !important;
    display: flex;
    align-content: center;
    margin-bottom: 3px;
}

.team-leader > input {
    margin: 0;
    margin-right: 3px;
}

.add-user-container {
    margin-top: 15px;
}

.action-buttons-container {
    display: flex;
    justify-content: flex-end;
    z-index: 1;
    position: fixed;
    bottom: 0;
    right: 0;
    padding: 0 15px;
    margin-bottom: 15px;
}

.action-buttons-container > div {
    margin-left: 8px;
}

.active-team-leader .user-timesheet-item {
    border-left: 1px solid #447AC1;
    border-right: 1px solid #447AC1;
}

.user-timesheet-container {
    display: flex;
    overflow: auto;
    flex: 1;
}

.user-timesheet-item-container.active-team-leader .user-timesheet-item {
    border-left: 1px solid #447AC1;
    border-right: 1px solid #447AC1;
}

.user-timesheet-item-container.active-team-leader > .ui-select-container {
    background-color: #447AC1 !important;
}

.user-timesheet-item-container.active-team-leader > .hour-total {
    background-color: #447AC1;
    color: white;
}

.input-container {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
    align-items: center;
}

.input-container > input {
    flex: 1 1 70%;
}

.input-container > .remove-bubble-btn {
    margin-right: 4px;
}

.input-container > input:last-child {
    flex: 1 1 10%;
    margin-left: 5px;
}

.asset-button-container {
    display: flex;
    margin-top: 10px;
    justify-content: flex-end;
}

.disable-user .entry-date {
    background-color: #808080;
}

.entry-date {
    background-color: #203B60;
    height: 31px;
    border-radius: 10px 10px 0px 0px;
    display: flex;
    align-items: center;
    color: white !important;
    justify-content: center;
    font-size:12px !important;
}

.day-form-container .error-msg {
    position: relative;
    display: flex;
    justify-content: center;
}

.day-form-container .error-msg > [ng-message] {
    background-color: #D65C5C;
    color: white;
    font-family: Montserrat-Regular !important;
    letter-spacing: 0.5px;
    font-size: 8px;
    border-radius: 6px;
    height: 12px;
    display: flex;
    align-items: center;
    margin-top: -5px;
    position: absolute;
    padding: 0 8px;
}

.mobile-timesheet {
    display: none;
}

.totals-container {
    margin-top: 61px;
}

.totals-item-container {
    background-color: #D9D9D9;
    border-radius: 10px 10px 0px 0px;
    width: 130px
}

.totals-item {
    padding: 0 10px;
    height: 33px;
    position: relative;
    display: flex;
    align-items: center;
}

.totals-item-detail {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-family: Montserrat-Regular;
}

.totals-value {
    height: 36px;
    border-radius: 0px 0px 10px 10px;
    background-color: #808080;
    font-weight: bold;
    display: flex;
    align-items: center;
    padding: 0 10px;
    color: white !important;
    font-family: Montserrat-Regular;
}

.timesheet-item > div {
    padding: 0 10px;
}

.disableDiv {
    pointer-events: none;    
}

.enableDiv {
    pointer-events:inherit;
}

@media (min-width: 980px) {

    .timesheet-container {
        min-height: 152px;
    }

    .itemsheet-select-list .ui-select-bootstrap > .ui-select-choices {
        max-height: 378px !important;
    }

    .timesheet-container .ui-select-bootstrap > .ui-select-choices {
        max-height: 120px;
    }

    .mobile-end-row {
        display:none;
    }

    .user-container > .header > div:first-child,
    .user-container > .header > div:last-child {
        visibility: hidden;
        display:none;
    }

    .validate-id-button > span {
        display: block;
        padding:0;
    }

    .validate-id-button > span:last-child {
        display: none;
    }

    .team-diary .timesheet-list-container {
        margin-top: 49px;
    }
    .staff-diary .timesheet-list-container {
        margin-top: 98px;
        padding: 10px 0;
        margin-right: 0px;
    }

    .staff-diary .user-timesheet-container {
        padding: 10px 0px 10px 10px;
    }

    .staff-diary .user-timesheet-item-container.today-date {
        box-shadow: 0px 0px 6px 2px #396db6;
    }
}

@media (max-width: 979px) {

    .action-buttons-container {
        margin: 0;
        padding: 0;
        width:100%;
        font-family: Montserrat-Bold;
    }

    .action-buttons-container > div {
        margin: 0;
        width:100%;
    }

    .action-buttons-container button {
        border-radius: 0;
        height: 47px;
        margin: 0;
        width: 100%;
        font-family: Montserrat-Bold;
        font-size:21px;
    }

    .user-container > .header > div:first-child,
    .user-container > .header > div:last-child {
        height:100%;
    }

    .user-container > .header {
        display: flex;
        flex: 1;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
    }

    .user-container > .header button {
        padding: 4px 5px;
        min-width: 100%;
        display: flex;
        align-items: center;
        height: 34px;
        width: 65px;
        justify-content: space-between;
        font-family: Montserrat-Bold;
        text-transform: uppercase;
        font-size: 15px;
        line-height: 15px;
    }

    .user-container > .header button > i {
        margin:0;
    }

    .user-timesheet-container > div {
        width: 100%;
        display: none;
    }

    .user-container {
        width: 100%;
    }

    .user-timesheet-container > div.active-user {
        display: flex !important;
    }


    .user-timesheet-item {
        height:auto;
    }

    .user-timesheet-item-container {
        margin: 0;
    }

    .mobile-timesheet {
        display: flex;
        flex: 1 1 60%;
    }

    .user-timesheet-item > .line-break {
        position: inherit;
    }

    .bubble-btn-container {
        display: block;
        width: auto;
        padding: 5px 0px;
    }

    .bubble-btn-container > div:first-child {
        margin-bottom: 5px;
    }

    .user-timesheet-item {
        border:none !important;
    }

    /**
        End-row
    */

    .remove-bubble-btn {
        margin: 0px;
    }

    .mobile-end-row {
        display: flex;
        justify-content: space-between;
        flex: 1 1 100%;
    }

    .mobile-end-row > .hour-total {
        font-family: Montserrat-Bold !important;
        background-color:transparent;
        padding-right: 35px;
    }

    .mobile-end-row button {
        min-width: 50px;
    }

    .user-timesheet-item-container > .hour-total {
        display: none;
    }

    .user-timesheet-container > .add-user-container {
        display: none;
    }

    .validate-id-button > span {
        display: none;
    }

    .validate-id-button > span:last-child {
        display: block;
        padding:0;
        font-family: Montserrat-Bold;
    }

    /*
        Flatten to mobile
    */

    .team-diary .timesheet-list-container {
        margin-top: 119px;
    }

    .staff-diary .timesheet-list-container {
        margin-top: 143px;
    }

    .timesheet-list-container {
        margin-right: 0;
        z-index: 1;
        width: 78%;
    }

    .user-timesheet-container {
        flex-wrap: wrap;
        position: absolute;
        width: 100%;
    }

    .timesheet-container {
        position: relative;
        margin-bottom: 65px;
    }

    .timesheet-item > div {
        position: relative
    }

    .itemsheet-select-list {
        height: 57px;
        align-items: center;
        display: flex;
        background-color: transparent;
    }

    .timesheet-item .line-break {
        position: absolute;
        bottom: 0;
        width: 100%;
    }
    .timesheet-list-container > .timesheet-item {
        width:100%;
        max-width: 95%;
        background-color:transparent;
    }
    .timesheet-list-container button {
        display: none
    }

    .hour {
        margin-left: 76%
    }
}