﻿/* Header */
@media only screen and (max-width: 720px) {
    #header-userinfo {
        display: none;
    }
}



/* Blazor server reconnect dialog */
#components-reconnect-modal {
    color: black;
}

iframe {
    background-color: white;
}

.order-item.backorder {
    color: red;
    font-weight: bolder
}

/* Planner */
.planner-item-container {

}
.planner-item-container.subelement {
    /*margin-top: 4px;*/
    margin-left: 16px;
}
.planner-list-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 36px;
    gap: 2px;
}
.planner-list-item-expand {
    width: 28px;
}
.planner-list-item-expand button {
    color: currentColor;
}
.planner-list-item-expand:not(.haschildren) button {
    /*color: rgba(255, 255, 255, 0.5);*/
    color: transparent;
}
.planner-list-item-expand button:has(:hover) {
    color: currentColor;
}
.planner-list-item-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    height: 28px;
}
.planner-list-item.sidebar {
    min-width: 8px;
}
.planner-list-item-icon {
    min-width: 20px;
}
.planner-list-item-comment {
    min-width: 32px;
}
.planner-list-item-name {
    width: 100%;
    min-width: 200px;
}
.planner-list-item-assignedto {
    min-width: 200px;
    text-align: center;
}
.planner-list-item-status {
    min-width: 200px;
    text-align: center;
}
.planner-list-item-menu {
    min-width: 30px;
}
.planner-list-item-deadline {
    min-width: 162px;
    text-align: center;
}

/* Drag-drop */
.drag-drop-item {
    cursor: grab;
}
/* /Drag-drop */

/* Email client */
.template-variable {
    display: inline-block;
    padding: 2px 6px;
    margin: 1px 2px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 500;
    background-color: #e0f2f1; /* Light teal */
    border: 1px solid #26a69a; /* Teal border */
    color: #00695c; /* Teal text */
    cursor: default;
    user-select: none;
    white-space: nowrap;
}
.email-address-box {
    background-color: rgba(173, 173, 177, 0.06);
    display: flex;
    gap: 8px;
    border-radius: 4px;
    width: 100%;
    margin-bottom: 2px;
}
/* Evil hack */
.email-address-box .mud-select  button.mud-icon-button {
    padding-right: 16px !important;
}
.email-address-field {
    margin: 0px !important;
}
.email-address-field .mud-input-slot {
    padding: 0px !important;
}

.email-preview-headers-panel {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 1em;
}
.email-preview-headers,
.email-preview-headers-buttons {
    display: flex;
    flex-direction: column;
}
.email-attachment-container {
    display: flex;
    flex-direction: row;
    gap: 0.5em;
    padding: 0em 1em;
    min-height: 65px;
    overflow: auto;
    flex-wrap: wrap;
}
.email-attachment-info-container {
    display: flex;
    flex-direction: row;
    border-radius: 5px;
    border: 1px solid var(--mab-datagrid-selected-background);
}
.email-attachment-icon {
    width: 100%;
    max-width: 1.5rem;
    max-height: 1.5rem;
    margin: 0.5em;
    object-fit: scale-down;
}
.email-folderstructure-folder {
    display: flex;
    width: 100%;
    align-items: center;
}
.email-attachment {
    display: flex;
    flex-direction: row;
    align-items: center;
    cursor: pointer;
    flex: 0 0 auto;
    white-space: nowrap;
}
.email-folder-unread-endtext {
    font-weight: bold;
    margin-right: 8px;
}
.email-attachment-text-container {
    display: flex;
    flex-direction: column;
}
.email-preview-body {
    margin-top: 0.1em;
    border: none;
    display: flex;
    flex-grow: 1;
}
.email-preview-body iframe {
    min-height: 100px;
    flex-grow: 1;
}
.email-preview-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}
.email-list-item {
    display: flex;
    flex-direction: row;
}
.email-list-item.unread-bar {
    width: 6px;
    min-width: 3px;
}
.email-list-item.unread-bar.unread {
    background-color: #03A9F4;
}
.email-list-item.content {
    margin-left: 0.5em;
    margin-right: 0.5em;
    justify-content: space-between;
    flex-grow: 1;
    flex-direction: column;
    width: 100%;
    min-width: 50px;
}
.email-list-item-end-info {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    text-align: end;
}
.email-list-item.content.header {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
}


/* Notifications */
.notification-container {
    display: flex;
    flex-direction: column;
    min-width: 100px;
    padding: 0.5em 1em;
    width: 360px;
    max-width: 70vw;
}
.notification-item-container {
    max-height: 70vh;
    height: 100%;
    overflow-y: auto;
}
.notification-item {
    display: flex;
    align-items: center;
    padding: 0.5em;
    cursor: pointer;
    border-bottom: 1px solid var(--mud-palette-grey-light);
    max-height: 100px;
}
.notification-item-menu {
    display: none;
}
.notification-item:hover .notification-item-menu,
.notification-item-menu.active {
    display: unset;
}

/* Call center */
@media only screen and (max-width: 720px) {
    .call-center-call-card {
        display: none;
    }
}
.call-center-call-card {
    width: 325px;
    margin-bottom: 1em;
    position: absolute;
}


/* Support case */
.support-case.active {
    background-color: #FFEE58 !important;
    color: #424242 !important;
}
.support-case.completed {
    background-color: #00E676 !important;
    color: #424242 !important;
}

/* Service claim*/
.service-claim.rejected,
.service-claim.finalrejected {
    background-color: #D50000 !important;
}
.service-claim.finalrejected,
.service-claim.deleted {
    text-decoration: line-through !important;
}
.service-claim.approved {
    background-color: #00C853 !important;
}
.service-claim.deleted {
    background-color: #9E9E9E !important;
}
.service-claim.senttoaccounting,
.service-claim.paid {
    background-color: #03A9F4 !important;
}


/* Document center */
.document-center-folder {
    display: inline-flex;
    width: 90px;
    padding: 5px;
    overflow: clip;
    max-height: 120px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
}
.document-center-list-header {
    display: flex;
    align-items: center;
}

.document-center-list-item {
    display: flex;
    cursor: pointer;
    align-items: center;
    flex-grow: 1;
}
.document-center-icon {
    width: 100%;
    max-width: 1.5rem;
    max-height: 1.5rem;
    margin-right: 0.5em;
    object-fit: scale-down;
}
.document-center-icon.large {
    max-width: 3rem;
    max-height: 3rem;
}
.document-center-favorite-item,
.email-favorite-item {
    cursor:pointer;
    padding: 2px 4px;
    align-items: center;
    display: flex;
}
.document-center-folderstructure-item {
    width: 100%;
}

.document-center-folderstructure-item.selected,
.document-center-folderstructure-item.selected a {
    color: var(--mud-palette-tertiary);
    background-color: var(--mud-palette-tertiary-hover);
    text-decoration: underline;
}

.document-center-favorite-item.contextmenu,
.document-center-folderstructure-item.contextmenu {
    border: 1px solid white;
}

.document-center-folderstructure-dropzone {
    width: 100%;
    display: flex;
    gap: 4px;
}