/* Notes styles: load globally after facelift.css. */
:root {
    --bs-offcanvas-background-color: #f1f1f1;
    --bs-note-background-color: white;
    --bs-note-bubble-background-color: white;
}

[data-theme="dark"] {
    --bs-offcanvas-background-color: #f1f1f1;
    --bs-note-background-color: #343a40;
    --bs-note-bubble-background-color: #101214;
}

.company-info-notes {
    display: flex;
    align-items: center;
    padding-top: 22px;
}

.note_row {
    background-color: var(--bs-table-background-color) !important;
}

.notes-text-icon-container {
    display: flex;
    align-items: center;
}

.mobile-nav-note-container {
    display: flex;
    align-items: center;
    padding-right: 6px;
}

.attached_file input {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.base-note-icons {
    cursor: pointer;
}

.note-text {
    font-size: small;
}

#note-body {
    height: 100%;
}

.user_task_note {
    margin: 8px;
    width: 50%;
    padding: 12px;
    background: var(--bs-note-bubble-background-color);
    border-radius: 10px;
    white-space: normal;
    overflow-wrap: break-word;
    box-shadow: 0 1.5px 4px var(--bs-table-shadow1-color),
        0 1.5px 6px var(--bs-table-shadow2-color), 0 0 6px rgba(184, 224, 187, 0.5);
}

.note-div-container {
    margin: 8px;
    height: 64%;
    max-height: 64%;
    overflow: auto;
    width: 98%;
    border: 1px solid var(--bs-dropdown-input-border-color);
    background-color: var(--bs-table-background-color) !important;
    border-radius: 5px !important;
}

.offcanvas {
    background-color: var(--nav-bg-color);
    width: 80% !important;
}

.offcanvas-body {
    padding-top: 0px;
}

.note_chat {
    background-color: var(--bg-color);
}

.new_note {
    position: relative;
    width: 80% !important;
    background-color: var(--bs-table-background-color) !important;
    font-size: small;
}

.user_note {
    width: 80%;
    font-size: smaller;
    background-color: var(--bs-table-background-color) !important;
}

.add_note {
    background-color: var(--bs-table-background-color) !important;
}

.offcanvas-header h5 {
    margin-left: 8px;
    margin-bottom: -8px !important;
}

.new_note_icon_container {
    width: 10% !important;
    text-align: center !important;
    background-color: var(--bs-table-background-color) !important;
}

.new_note textarea {
    margin: 2px;
    width: calc(100% - 20px);
    height: 100px;
    padding: 8px;
    border-radius: 5px !important;
    padding-right: 20px;
    color: var(--font-color) !important;
    background-image: var(--bs-gradient);
    background: var(--bs-gradient);
    border: 1px solid var(--bs-dropdown-input-border-color) !important;
}

.new_note textarea:focus {
    outline: none;
}

.attached_file {
    text-align: center;
}

.attached_file input {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.info-note-container {
    z-index: 100;
    padding-top: 12px;
    display: flex;
    justify-content: start;
    padding-left: 8px;
    align-items: center;
}

.main-note-container {
    border: 1px solid var(--bs-dropdown-input-border-color);
    box-shadow: 0 1.5px 4px var(--bs-dropdown-shadow1-color), 0 1.5px 6px var(--bs-dropdown-shadow2-color);
}

.file_label {
    /*font-size: var(--bs-table-font-size);*/
    font-size: calc(var(--bs-table-font-size) * 1.5);
}

.meter-notes {
    font-size: x-small;
    padding-right: 6px;
}

.meter-notes-link {
    position: absolute;
    right: -54px;
    bottom: 14px;
}

.note-icons {
    font-size: 20px;
    cursor: pointer;
}

.base-note-icons {
    width: 26px;
    fill: var(--bs-svg-color) !important;
}

[data-theme="dark"] .base-note-icons {
    fill: var(--bs-svg-color);
}

.file_location {
    /* font-size: calc(var(--bs-table-font-size) * 1.5) !important; */
    margin-left: 2px;
    font-size: small !important;
}

.attached_file>a>span {
    font-size: calc(var(--bs-table-font-size) * 1.5);
}

.file_location>sup>span {
    /*font-size: 15px;*/
    font-size: var(--bs-table-font-size);
}

.offcanvas>a {
    cursor: pointer;
}

.glyphicon-paperclip {
    cursor: pointer;
}

.notes-overflow {
    max-width: 1200px;
    white-space: normal !important;
    padding-right: 4px;
}

.note-info-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 4px;
    margin-top: 22px;
    padding-left: 8px;
}

.note-info-text {
    font-size: x-small;
    padding-left: 4px;
}

.note-info-text:hover {
    text-decoration: underline;
    cursor: pointer;
}

#id_add_note {
    font-size: 20px;
}

.add_note {
    text-align: center;
}

.standard_style1 task_note_chat {
    background-color: white !important;
}

.company-info-note-text {
    font-size: x-small;
    font-weight: 400;
    margin-left: 4px;
    padding-top: 4px;
}

@media (max-width: 1000px) {

    #contract_note_link,
    #meter_note_link {
        display: none;
    }

    .offcanvas {
        width: 100% !important;
    }
}

@media (min-width: 2800px) {

    .note-text {
        font-size: medium !important;
    }

    .attached_file>a>span,
    .file_label {
        font-size: 20px !important;
    }

    .base-note-icons {
        width: 30px !important;
    }

    .glyphicon-paperclip {
        font-size: 20px;
    }

    .new_note textarea {
        height: 200px !important;
    }

    .new_note textarea::placeholder {
        font-size: medium;
    }

    .note-info-container>div {
        margin-bottom: 6px;
    }

    .meter-notes {
        font-size: small;
    }

    .meter-notes-link {
        bottom: 14px;
    }
}

@media (min-width: 2200px) {
    .note-info-text {
        font-size: small !important;
    }
}

.attached_file label {
    cursor: grab;
}

.note_row textarea {
    width: 96%;
    height: 124px;
    padding: 8px;
    margin: 7px;
}

.new_file_icon_container {
    border: 2px dashed #bdbdbd;
    padding: 24px;
    /*width: 24% !important;*/
    border-radius: 6px;
    font-size: small;
    text-align: center;
}

.new_file_icon_container.drag-over {
    border-color: #bdbdbd;
}

.new_file_icon_container.file-added {
    border-color: green;
}

.dragdrop_container {
    text-align: center;
    padding: 10px;
}

.note_file_location {
    margin-top: 5px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90%;
    font-size: small;
}

.main-note-container {
    top: 37px !important;
    right: 159px !important;
    bottom: 69px !important;
    border-radius: 8px !important;
}

.offcanvas-backdrop.show {
    background-color: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.offcanvas-backdrop.fade.show {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.offcanvas-backdrop.show {
    opacity: 0.8 !important;
}

.note-info-container .navigation-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.note-info-container .note-info-text {
    margin-left: 0.25rem;
}

.note-info-container a {
    text-decoration: none;
}

.note-info-text {
    text-decoration: none;
}

.note-info-container a:hover .note-info-text {
    text-decoration: underline;
}

.note-info-container .navigation-link .detail-svg {
    width: 1.25rem;
    height: 1.25rem;
}

.offcanvas.offcanvas-end.main-note-container {
    border-left-width: 1px;
    border-left-style: solid;
    border-left-color: inherit;
}

.attached_file {
    color: var(--font-color);

}

.offcanvas.offcanvas-end.main-note-container {
    border-left: 1px solid var(--bs-dropdown-input-border-color);
}