/************************************************
*
* Facebook-Card used for Conversation.
*
*************************************************/

.facebook-card {
    border: 1px solid #81848b;
}

.facebook-card.hidden {
    display: none !important;
}

.facebook-card .card-content {
    padding: 10px;
}

.facebook-card .card-header {
    display: block;
    padding: 10px;
}

.facebook-card .facebook-avatar {
    float: left;
}

.facebook-card .facebook-name {
    margin-left: 44px;
    font-size: 14px;
    font-weight: 500;
}

.facebook-card .facebook-date {
    margin-left: 44px;
    font-size: 13px;
    color: #8e8e93;
}

.facebook-card .card-footer {
    background: #fafafa;
}

.facebook-card .card-footer a {
    /*color: #81848b;*/
    font-weight: 500;
}

.facebook-card .card-footer a.hidden {
    display: none !important;
}

.facebook-card .card-content img {
    display: block;
    max-width: 100%;
    height: auto !important;
}

.facebook-card .card-content-inner {
    padding: 15px 10px;
}

/************************************************
*
* Navigation.
*
*************************************************/

.navigation-wrapper {
    display: grid;
    grid-gap: 20px;
}

.navigation-wrapper .box {
    display: flex;
    height: 4em;
    background-color: #fff;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.navigation-wrapper .box:active {
    background-color: #eee;
}

.navigation-wrapper .box.red .icon {
    background-color: #F44336;
    color: white;
}

.navigation-wrapper .box.green .icon {
    background-color: #4CAF50;
    color: white;
}

.navigation-wrapper .box.blue .icon {
    background-color: #0091EA;
    color: white;
}

.navigation-wrapper .box.orange .icon {
    background-color: #FF9800;
    color: white;
}

.navigation-wrapper .box.blue-grey .icon {
    background-color: #607D8B;
    color: white;
}

.navigation-wrapper .box.teal .icon {
    background-color: #009688;
    color: white;
}

.navigation-wrapper .box.darkblue .icon {
    background-color: #0026ff;
    color: white;
}

.navigation-wrapper .box.black .icon {
    background-color: #282828;
    color: white;
}

.navigation-wrapper .box.pjRed .icon {
    background-color: #da144f;
    color: white;
}

.navigation-wrapper .box.indigo .icon {
    background-color: #4b0082;
    color: white;
}

.navigation-wrapper .box .icon {
    width: 2em;
    padding: 0 5%;
    text-align: center;
}

.navigation-wrapper .box .title {
    padding: 0 1em;
    flex-grow: 10;
}

.navigation-wrapper .box .notification-counter {
    padding-right: 1em;
    display: none;
}

.navigation-wrapper .box .notification-counter .badge {
    background-color: #da144f;
}

/* https://stackoverflow.com/questions/6370690/media-queries-how-to-target-desktop-tablet-and-mobile */

@media (min-width:320px) {
    /* smartphones, iPhone, portrait 480x320 phones */
    .navigation-wrapper {
        margin: 4% 3%;
        grid-template-columns: 100%;
    }
    .navigation-wrapper .box .icon .fa {
        font-size: 2em;
        line-height: 2em;
    }
    .navigation-wrapper .box .title {
        font-size: 1em;
        line-height: 4em;
    }
    .navigation-wrapper .box .notification-counter {
        line-height: 4em;
    }
}

@media (min-width:481px) {
    /* portrait e-readers (Nook/Kindle), smaller tablets @ 600 or @ 640 wide. */
    .navigation-wrapper {
        margin: 2% 3%;
        grid-template-columns: 48% 48%;
    }
    .navigation-wrapper .box .icon .fa {
        font-size: 2em;
        line-height: 2em;
    }
    .navigation-wrapper .box .title {
        font-size: 1em;
        line-height: 4em;
    }
    .navigation-wrapper .box .notification-counter {
        line-height: 4em;
    }
}

@media (min-width:641px) {
    /* portrait tablets, portrait iPad, landscape e-readers, landscape 800x480 or 854x480 phones */
}

@media (min-width:961px) {
    /* tablet, landscape iPad, lo-res laptops ands desktops */
}

@media (min-width:1025px) {
    /* big landscape tablets, laptops, and desktops */
}

@media (min-width:1281px) {
    /* hi-res laptops and desktops */
}

/************************************************
*
* Common.
*
*************************************************/

p {
    letter-spacing: -0.4px;
}

.loginLogo {
    margin-left: 15%;
    float: none;
    height: auto;
    max-width: 70%;
    text-align: center;
}

.navbarLogo {
    height: 30px;
}

.item-link .item-inner.no-caret {
    background: none;
}

.ios .list.no-margin {
    margin: -1px !important;
}

.ios .list.margin-tiny {
    margin: 10px 0;
}

small.item-after {
    min-height: 75px;
}

#itemLabel {
    font-size: 0.9rem;
}

.item-content input[type=datetime-local] {
    max-width: 60vw !important;
}

.card-content pre {
    overflow: auto;
}

.ios .checkbox i, .ios .icon-checkbox {
    border-radius: 4px;
}

.ios .badge {
    border-radius: 5px;
    font-size: 12px;
}

.no-content {
    padding: 12px 15px;
    text-align: center;
    font-size: 0.9rem;
    background: #fff;
}

.ios .subnavbar {
    height: 46px;
}

.view, .panel {
    user-select: none;
}

/************************************************
*
* Panel.
*
*************************************************/

.panel {
    background-color: #ddd;
}

.panel-menu-link {
    width: 100%;
    padding-bottom: 20px;
    cursor: pointer;
    color: #6d6d72 !important;
    display: block;
}

/************************************************
*
* The items.
*
*************************************************/

.item {
    user-select: none;
    letter-spacing: -0.4px;
    border-top: 1px solid #c8c7cc;
}

.item .header {
    display: flex;
    align-items: flex-start;
}

.item .header .title {
    flex-grow: 10;
    font-weight: bold;
    font-size: 0.9rem;
    padding-top: 15px;
    padding-bottom: 10px;
    word-break: break-word;
}

/* .item .header .title .subtitle {
            color: #6d6d72;
            font-size: 0.7rem;
            font-weight: normal;
        } */

.item .header .icon {
    flex-grow: 0;
}

.item .header .icon .itemtype {
    padding: 12px 10px 6px 15px;
}

.item .header .icon .itemtype .mimeTypeXs {
    display: inline-block;
    padding-top: 5px;
}

.item .header .actions {
    flex-grow: 0;
}

.item .header .actions .edit, .item .header .actions .start-time-tracking {
    padding: 15px 15px 10px 10px;
    cursor: pointer;
}

.item .header .close {
    flex-grow: 0;
    display: block;
}

.item .header .close .checkbox {
    padding: 15px 10px 10px 15px;
    display: block;
    margin: 0;
    z-index: 1;
}

.item .header .close .icon-checkbox {
    margin: 0;
}

.item .content {
    padding: 0 15px 10px 15px;
    font-size: 0.8rem;
    color: #6d6d72;
}

.item .content .content-table-line {
    display: flex;
    justify-content: space-between;
}

.item .content .content-table-line div {
    white-space: nowrap;
}

.item .content .content-table-line div:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 10px;
}

.item .footer {
    display: flex;
    justify-content: space-between;
    color: #6d6d72;
}

.item .footer .left {
    font-size: 0.8rem;
    padding: 5px 15px 15px 15px;
}

.item .footer .left .elem {
    padding-right: 30px;
    display: inline;
    white-space: nowrap;
}

.item .footer .right {
    padding: 5px 15px 15px 15px;
    cursor: pointer;
}

.item .footer .right .state {
    border-radius: 5px;
    font-size: 12px;
    display: table-cell;
    white-space: nowrap;
    height: 20px;
    line-height: 20px;
    padding: 0 6px;
}

/************************************************
*
* Popover.
*
*************************************************/

.popover .state {
    cursor: pointer;
    padding: 10px 0;
}

.popover .state .badge {
    border-radius: 5px;
    font-size: 12px;
    display: table-cell;
    white-space: nowrap;
    height: 20px;
    line-height: 20px;
    padding: 0 6px;
}

/************************************************
*
* State-Select.
*
*************************************************/

.state-selector {
    cursor: pointer;
    padding: 10px 0;
}

.state-selector .state {
    border-radius: 5px;
    font-size: 12px !important;
    display: table-cell;
    white-space: nowrap;
    height: 20px !important;
    line-height: 20px;
    padding: 0 6px;
}

/************************************************
*
* Tree.
*
*************************************************/

.tree-block-title-container {
    display: flex;
    align-items: flex-start;
    line-height: 1.6;
}

.tree-block-title-container .tree-block-title {
    flex-grow: 10;
    padding: 10px 15px;
    color: #6d6d72;
}

.tree-block-title-container .tree-block-actions {
    flex-grow: 0;
}

.tree-block-title-container .tree-block-actions .tree-block-action {
    padding: 10px 15px;
    cursor: pointer;
}

.tree-list {
    font-size: 0.9rem !important;
    letter-spacing: -0.4px;
    margin: 0 !important;
}

.tree-list .item-divider {
    padding: 10px 15px !important;
}

.tree-list .node-entry {
    cursor: pointer;
}

.tree-list .node-entry .item-content {
    padding: 0 !important;
}

.tree-list .node-entry .item-content .item-inner .item-title {
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.tree-list .node-entry .item-content .item-inner .item-after i.favorite {
    color: #da144f;
}

.tree-list .node-entry .item-content .item-inner .item-after i.favorite.hidden {
    display: none;
}

.tree-list .node-entry .item-media {
    min-width: 42px;
    min-height: 44px;
    padding: 10px 10px 10px 15px;
    text-align: center;
}

.tree-list .node-entry .item-media i {
    min-width: 17px;
}

.tree-list .item-content .item-inner {
    margin: 0 !important;
}

.tree-accordion .tree-accordion-open {
    display: none;
    color: #6d6d72;
}

.tree-accordion .tree-accordion-closed {
    display: inline-block;
    color: #6d6d72;
}

.tree-accordion.accordion-item-opened .tree-accordion-open {
    display: inline-block;
}

.tree-accordion.accordion-item-opened .tree-accordion-closed {
    display: none;
}

.tree-accordion {
    border-bottom: 1px solid #c8c7cc;
}

.tree-accordion.accordion-item-opened {
    border-bottom: none;
}

/************************************************
*
* History.
*
*************************************************/

.history-entry .item-content {
    padding: 0 !important;
}

.history-entry .item-content .item-media {
    min-height: 44px;
    padding: 10px 10px 10px 15px;
}

.history-entry .item-content .item-inner {
    margin: 0 !important;
}

/************************************************
*
* TimeTracking.
*
*************************************************/

#overviewTab .status {
    display: flex;
    padding: 25px 15px;
    color: #6d6d72;
}

#overviewTab .status .title {
    flex-grow: 10;
    font-size: 17px;
    align-self: center;
}

#overviewTab .status .icon {
    flex-grow: 0;
}

#overviewTab .current-time-tracking .actions {
    border-top: 1px solid #c8c7cc;
}

#overviewTab .current-time-tracking .current .duration {
    font-size: 2rem;
    text-align: center;
}

#overviewTab .current-time-tracking .actions {
    padding: 25px 15px;
}

#overviewTab .overviewItems {
    background-color: #fff;
}

.dhx_scheduler_day .dhx_cal_event .dhx_title {
    letter-spacing: -0.2px;
    font-size: 12px;
}

.dhx_scheduler_day .dhx_cal_event .dhx_body {
    letter-spacing: -0.2px;
    font-size: 12px;
    font-weight: initial;
}

.dhx_scheduler_day .dhx_cal_event_line {
    letter-spacing: -0.4px;
    font-size: 12px;
}

.dhx_scheduler_week .dhx_cal_event .dhx_title {
    letter-spacing: -0.2px;
    font-size: 10px;
    padding: 0;
}

.dhx_scheduler_week .dhx_cal_event .dhx_body {
    letter-spacing: -0.2px;
    font-size: 10px;
    font-weight: initial;
    padding: 0;
}

.dhx_scheduler_week .dhx_cal_event_line {
    letter-spacing: -0.4px;
    font-size: 10px;
    padding: 0;
}

.dhx_scheduler_month .dhx_cal_event .dhx_title {
    letter-spacing: -0.2px;
    font-size: 10px;
    padding: 0;
}

.dhx_scheduler_month .dhx_cal_event .dhx_body {
    letter-spacing: -0.2px;
    font-size: 10px;
    font-weight: initial;
    padding: 0;
}

.dhx_scheduler_month .dhx_cal_event_line {
    letter-spacing: -0.4px;
    font-size: 10px;
    padding: 0;
}

.dhx_cal_cover {
    z-index: 11000;
}

.dhx_cal_light {
    z-index: 11001;
}

.button.icononly {
    width: 30px;
    padding: 2px;
}

/************************************************
*
* Autocomplete results.
*
*************************************************/

.list.autocomplete-list {
    margin: 0;
}

.description_checklist_entry {
    border: 1px solid #d0d0d0;
    padding-left: 5px;
    padding-right: 3px;
    padding-top: 2px;
    padding-bottom: 2px;
    border-radius: 7px;
    background-color: #f5f5f5;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
}

.description_checklist_entry .badge {
    background-color: #df0101;
    margin-top: -3px;
    margin-left: 6px;
}

.description_checklist_entry a.closed {
    text-decoration: line-through;
    color: #6b6b6b;
}

.description_checklist_entry span.info {
    opacity: 0.5;
    cursor: default;
}

.description_checklist_entry span.info:hover {
    opacity: 1;
}

.description_checklist_entry .checkEntryState {
    float: left;
    margin-right: 2px;
}

.description_checklist_entry .container {
    width: 25px;
    float: left;
    padding-right: 5px;
    position: relative;
    margin-bottom: 0px;
    cursor: pointer;
    font-size: 22px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.description_checklist_entry .container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.description_checklist_entry .span-info {
    padding-left: 3px;
}

.description_checklist_entry .checkmark {
    position: absolute;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #c9c9c9;
    border-radius: 3px;
    top: calc(50% - 9px);
    cursor: default;
}

.description_checklist_entry .container:hover input~.checkmark {
    background-color: #ccc;
}

.description_checklist_entry .container input.checked~.checkmark {
    background-color: rgb(149, 165, 166);
}

.description_checklist_entry .checkmark .check {
    content: "";
    position: absolute;
    display: none;
}

.description_checklist_entry .container input.checked~.checkmark .check {
    display: block;
}

.description_checklist_entry .container .checkmark .check {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.description_checklist_entry a {
    color: #5b9bd1;
    cursor: default;
    text-decoration: none;
}

/************************************************
*
* Chat.
*
*************************************************/

.chat-item {
    user-select: none;
    letter-spacing: -0.4px;
    border-top: 1px solid #c8c7cc;
    display: flex;
    align-items: flex-start;
    font-size: 0.9rem;
}

.chat-item-left {
    flex-grow: 0;
    padding: 15px 10px 5px 15px;
}

.chat-item-middle {
    flex-grow: 10;
    padding: 16px 0;
}

.chat-item-right {
    flex-grow: 0;
    padding: 16px 15px 0 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.chat-item-right .notification-counter .badge {
    background-color: #da144f;
}


.chat-item-avatar img, .chat-item-avatar div.icon {
    width: 40px;
    height: 40px;
}

.chat-item-avatar div.icon {
    background-color: #eee;
    text-align: center;
    line-height: 40px;;
}

.chat-item-name {
    font-weight: 700;
}

.chat-item-content {
    color: #6d6d72;
    font-size: 0.8rem;
    word-break: break-all;
}

.chat-item-content span {
    color: #007aff;
    font-size: 0.8rem;
}

.chat-item-message-status {
    margin-right: 5px;
}

.chat-item-message-status img {
    width: 18px;
}

.chat-list-label {
    font-size: 0.9rem;
    color: #6d6d72;
    background-color: #efeff4;
    padding: 10px 15px;
    border-top: 1px solid #c8c7cc;
}

.chat-header {
    display: flex;
}

.chat-header .chat-header-title {
    font-weight: 700;
}

#chat-message-list, .messages-content {
    background-color: #e5e5e5 !important;
}

.chat-footer {
    padding: 10px 15px;
    background-color: #f5f5f5 !important;
    border-top: 1px solid #c8c7cc;
    display: flex;
    align-items: flex-end;
}

.chat-footer .chat-input-link-preview {
    background-color: white;
    border: 1px solid #A0A0A0;
    bottom: 100%;
    padding: 5px;
    position: absolute;
    max-width: 100%;
    left: 15px;
    right: 15px;
}

.chat-footer .chat-input-link-preview img {
    max-width: 100%;
    max-height: 100%;
}

.chat-footer textarea {
    flex-grow: 10;
    overflow: hidden;
    overflow-wrap: break-word;
    padding: 5px !important;
    font-size: 0.9rem !important;
    border-radius: 5px !important;
    height: initial !important;
    line-height: initial !important;
}

.chat-footer a {
    flex-grow: 0;
    margin-left: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.message {
    margin-bottom: 10px;
}

.message-content {
    background: #fff;
}

.message-deleted {
    color: #888;
}

.ios .message-bubble {
    -webkit-mask-box-image: none !important;
}

.ios .message-bubble img {
    max-width: 100%;
}

.ios .message-received .message-bubble, .ios .message-sent .message-bubble {
    background: #fff;
    color: #000;
    font-size: 0.9rem;
    padding: 5px;
}

.ios .message-received .message-text-header,
.ios .message-sent .message-text-header,
.ios .message-received .message-text-footer time,
.ios .message-sent .message-text-footer time {
    opacity: 0.5;
}

.ios .message-text-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.ios .message-text-footer img {
    width: 18px;
    margin-left: 5px;
}

.typewriting .dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    margin-right: 3px;
    background: #303131;
    animation: typewriting 1s linear infinite;
}

.typewriting .dot:nth-child(2) {
    animation-delay: -1.1s
}

.typewriting .dot:nth-child(3) {
    animation-delay: -0.9s
}

@keyframes typewriting {
    0%,60%,100% {
        transform: initial
    }

    30% {
        transform: translateY(-5px)
    }
}

.chat-file-preview {
    display: flex;
}

.chat-link-preview {
    display: flex;
    border-left: 2px solid #da144f;
    margin-top: 5px;
    padding-left: 5px;
}

.chat-footer .chat-link-preview {
    margin-top: 0;
}

.chat-file-preview-left, .chat-link-preview-left {
    padding-right: 10px;
}

.chat-file-preview-left img, .chat-link-preview-left img {
    max-width: 30px !important;
    max-height: 100px;
}

.chat-file-preview-body, .chat-link-preview-body {
    display: flex;
    align-content: flex-start;
    flex-direction: column;
}

.chat-file-preview-body-header {
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 4px;
    color: #5b9bd1;
}

.chat-link-preview-body-header {
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 4px;
    color: #da144f;
}

.chat-file-preview-body-description, .chat-link-preview-body-description {
    font-size: 0.8rem;
    color: #6d6d72;
}

/************************************************
*
* TagMe-overrides.
*
*************************************************/

.tagMe-container {
    width: initial;
    padding: 5px 15px;
    margin-top: 0.3rem;
    margin-bottom: 1rem;
    background-color: #fff;
}

.tagMe-icon, .isNew {
    padding-top: 0;
}

.tagMe-tag {
    display: flex;
}

input[type=text].tagMe-input {
    padding: 10px 0;
}

.tagMe-tag span {
    font-size: 3.5vw;
}

.tagMe-dropDown {
    width: calc(100% - 40px);
}

.tagMe-dropDown-entry {
    width: initial;
    line-height: 30px;
}

.tagMe-delete {
    margin-top: 0;
}

/************************************************
*
* TagMe-overrides.
*
*************************************************/

.tabbar-labels i {
    font-size: 1.6rem;
    padding-top: 0.2rem;
}

