﻿/*Tags*/

:root {
    --input-width: 264px;
    --blue: #008FFF;
    --white: #FFFFFF;
    --font-color: #434343;
    --font-family: Greenwich;
    --tags-bgcolor: #F2F7FE;
    --min-height-cnt: 502px;
    --min-width-cnt: 482px;
    --min-height-body: 430px;
    --min-width-body: 410px;
}

.items-main-container{
    margin-bottom: 10px;
}

.with-header-items {
    margin: 0 0 10px 16px;
    clear: both;
    display: flex;
    flex-wrap: wrap;
}

.with-header-items.tags-applied {
    flex-grow: 1;
    display: block;
}

div.field-cntr:has(div.flowtoheader) {
    display: none;
}

.flowtofield {
    margin: 20px auto;
}

.portal-tags {
    width: var(--input-width) !important;
    border: 0;
    border-bottom: 1px solid var(--blue);
    margin: 0 0 5px 0;
}

.portal-tags-font {
    font-feature-settings: 'clig' off, 'liga' off;
    font-family: var(--font-family);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
}

.add-tags-btn {
    display: flex;
    width: 88px;
    height: 40px;
    padding: 6px 6px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: #007BFF;
}

.add-btn-text {
    margin-bottom: 0;
    color: #FFF;
}

.tags-btn-margin {
    margin-right: 12px;
}

.cancel-tags-btn {
    display: flex;
    width: 94px;
    height: 40px;
    padding: 6px 12px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: #DFDFDF;
    border: 0;
    color: #9C9C9C;
}

.tags-btn-font {
    font-family: Greenwich;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
}

.entity-list .add-tags {
    margin: 0 4px 0 0;
}

.current-tags {
    display: inline;
}

.add-tags {
    height: auto;
    vertical-align: top;
    margin: 1px 8px 0 0;
    display: inline;
}

.tag-item {
    justify-content: center;
    align-items: center;
    display: inline-flex;
    padding: 3px 5px;
    margin: 1px 0 6px 4px;
    position: relative;
    height: auto;
    width: auto;
}

.tag-item-font {
    color: var(--font-color);
    text-align: center;
    font-feature-settings: 'clig' off, 'liga' off;
    font-family: var(--font-family);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
}

.add-tag {
    display: inline-flex;
    width: 30px;
    height: 30px;
    padding: 0;
    justify-content: center;
    align-items: center;
    border: 0;
    cursor: pointer;
    margin: 1px 0;
}

.add-first-tag {
    min-width: 99px;
    width: auto;
    height: 30px;
    padding: 6px;
}

.create-tag-cnt {
    display: flex;
    width: 260px;
    height: 52px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    flex-shrink: 0;
    padding: 12px;
    border-bottom-left-radius: 4px;
    border-bottom: 1px solid rgb(199,204,209);
    border-left: 1px solid rgb(199,204,209);
    border-top: 1px solid rgb(199,204,209);
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--white);
    display: -webkit-inline-box;
}

.create-tag-icon {
    background-image: url('/content/images/icons/addtagblue.svg');
    background-repeat: no-repeat;
    width: 24px;
    height: 24px;
    justify-content: center;
    align-items: center;
}

.create-tag {
    display: flex;
    height: 29px;
    align-items: center;
    gap: 4px;
    border: none;
    background: var(--white);
    padding: 0;
    cursor: pointer;
}

.create-tag-font {
    color: #008FFF;
    font-feature-settings: 'clig' off, 'liga' off;
    font-family: var(--font-family);
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
}

.tag-text {
    padding: 2px;
    width: auto;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.new-tag-name {
    display: flex;
    padding: 5px;
    align-items: center;
    background: var(--tags-bgcolor);
    margin-left: 12px;
    overflow: hidden;
    max-width: 76%;
}

.hide-long-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

.tag-remove {
    cursor: pointer;
    font-weight: bold;
    color: #888;
    font-size: 14px;
    right: 2px;
    top: 2px;
}

    .tag-remove:hover {
        color: #f00;
    }

.add_btn_icon {
    background-image: url('../../images/icons/addtag.svg');
    background-repeat: no-repeat;
    width: 14px;
    height: 14px;
}

.remove_btn_icon {
    /*    background-image: url('../../images/icons/removetag.svg');
    background-repeat: no-repeat;*/
    width: 14px;
    height: 14px;
    display: grid;
}

.tags-on-page {
    display: inline-block !important
}
/*typeahead input customization*/
.tt-dataset {
    width: var(--input-width);
    max-height: 182px;
    min-height: 52px;
    overflow-y: auto;
    overflow-x: hidden;
}

    .tt-dataset.tt-dataset-tags {
        background-color: var(--white);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        text-align: start !important;
        border: 1px solid rgb(199,204,209);
        border-radius: 4px;
    }
        /* width */
        .tt-dataset.tt-dataset-tags::-webkit-scrollbar, .current-tags-popup::-webkit-scrollbar {
            width: 4px;
            height: 26px;
        }

        /* Track */
        .tt-dataset.tt-dataset-tags::-webkit-scrollbar-track, .current-tags-popup::-webkit-scrollbar-track {
        }

        /* Handle */
        .tt-dataset.tt-dataset-tags::-webkit-scrollbar-thumb, .current-tags-popup::-webkit-scrollbar-thumb {
            background: #D9D9D9;
            border-radius: 2px;
        }

            /* Handle on hover */
            .tt-dataset.tt-dataset-tags::-webkit-scrollbar-thumb:hover, .current-tags-popup::-webkit-scrollbar-thumb:hover {
                background: var(--blue);
            }

.tt-menu.tt-open {
    width: 100%;
    position: relative;
}

.tt-suggestion {
    padding: 4px 8px 4px 16px;
    color: var(--font-color);
    font-feature-settings: 'clig' off, 'liga' off;
    font-family: var(--font-family);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    cursor: pointer;
}

    .tt-suggestion:last-child {
        margin-bottom: 50px !important;
    }

.edit-tag-icon {
    display: -webkit-box;
}

.tags-popup-form {
    display: grid;
    grid-template-rows: 1fr auto;
    height: 100%;
}

.k-grid .add-tag-color {
    opacity: 1 !important;
}

.grid-tags {
    vertical-align: middle;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.entity-fld-val:has(.tags-format-container) {
    text-overflow: unset !important;
}


/*tags popup*/

/*.portal-tags-editor-popup {
    margin-top: 26px;
}*/

.tags-pupup-top {
    height: 33vh;
    display: contents;
}

.portal-tags-popup {
    padding: 8px 0;
    width: 100% !important;
    margin-top: 2vh;
}

.save-tags-btn {
    z-index: 1;
    display: flex !important;
}

.current-tags-popup {
    width: 100%;
    overflow-y: hidden;
    overflow-x: hidden;
    max-height: 72px;
    display: inline-block;
    margin-top: 26px;
}

.tags-input-container-popup {
    display: contents;
}

.popup_tags-page {
    overflow: hidden;
    height: 100%;
}

.modal-content.custom-popup-width {
    padding: 0 32px !important;
    /*min-width: var(--min-width-cnt);*/
    /*min-height: var(--min-height-cnt);*/
}

    .modal-content.custom-popup-width .modal-body {
        /*height: 100% !important;*/
        /* max-height: unset !important;*/
    }

    .modal-content.custom-popup-width .tags-popup-form {
        min-height: var(--min-height-body);
        min-width: var(--min-width-body);
    }

    .modal-content.custom-popup-width .modal-header {
        padding-top: 24px !important;
    }

.portal-tags-popup[type="search"] {
    padding-left: 28px !important;
    border-bottom: 1px solid var(--blue);
}

.tags-input-container-popup .tt-dataset {
    width: 100%;
    position: initial;
}

.tags-input-container-popup .create-tag-cnt {
    width: 97%;
}

.tags-input-container-popup .new-tag-name {
    margin-left: 28px;
}

.edit-btns-wrapper-inpopup {
    display: flow;
}

.modal-footer:has(> div.tags-pupup-save-btn) {
    border: 0;
}

.tags-pupup-save-btn {
    border-top: solid 1px #bdc4ca;
    padding: 32px 0;
}

.twitter-typeahead:has(> input.portal-tags-popup) {
    width: 100%;
}

.tags-popup-save-grp {
    float: right;
    width: auto !important;
}

.tags-exp {
    overflow-y: auto;
    max-height: 9.5vh;
    display: inline-block;
}

/*list view*/
.entity-list .add-tag {
margin-top: 1px;
}

.entity-list .tags-format-container {
    display: unset;
}

.long-tag-dots {
    cursor: pointer;
}

/* tooltip*/

.tags-grid-tooltip {
    text-align: left;
}
