div.ui-iggrid table.ui-iggrid-table {
    margin-bottom: 0 !important;
}

div.ui-iggrid table.ui-iggrid-headertable .ui-iggrid-filtercell .ui-corner-all {
    border-radius: 0 !important;
}

div.ui-iggrid table.ui-iggrid-headertable .ui-iggrid-filtercell .ui-state-hover {
    color: #000 !important;
}

#deal_creation_content {
    z-index: 990;
    background: #fff;
    height: 100%;
    width: 100%;
}

#tab-details-content .ta-form-grid__cell {
    height: 33px;
}

#tradeFilters {
    position: relative;
}

#addFilters {
    max-height: 30vh;
    overflow: auto;
    border: 1px solid #ccc;
    padding: 0.5rem;
    margin-top: 0.6rem;
}

    #addFilters::before {
        content: 'Trade Filters';
        position: absolute;
        font-size: 14px;
        top: 0;
        left: 10px;
        color: #4caf50;
        background: #fff;
        padding: 0 5px 0 2px;
    }

#numFilters {
    border: 1px solid #ccc;
    text-align: center;
    padding: 0.25rem;
    color: #4caf50;
}

#preview-panel-deals {
    width: 300px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    right: 0;
    top: 0;
    opacity: 0;
    z-index: -1;
    padding: 1rem;
    background: white;
    border: 1px solid #ccc;
    border-top-right-radius: 2px;
    border-bottom-right-radius: 2px;
    -webkit-box-shadow: 2px 6px 5px 0px rgba(0,0,0,.6);
    -moz-box-shadow: 2px 6px 5px 0px rgba(0,0,0,.6);
    box-shadow: 2px 6px 5px 0px rgba(0,0,0,.6);
}

    #preview-panel-deals.visible {
        right: -300px;
        opacity: 100;
        z-index: 5;
    }

    #preview-panel-deals .fa-times {
        position: absolute;
        right: 4px;
        top: 2px;
        color: #ddd;
        cursor: pointer;
    }

    #preview-panel-deals #preview-date {
        color: #999;
    }

    #preview-panel-deals #preview-data.ta-form-grid {
        flex-grow: 2;
        overflow: auto;
    }

        #preview-panel-deals #preview-data.ta-form-grid .ta-form-grid__row {
            border-bottom: 1px solid #ccc;
        }

            #preview-panel-deals #preview-data.ta-form-grid .ta-form-grid__row:first-child {
                font-size: 11px;
                font-weight: bold;
            }

        #preview-panel-deals #preview-data.ta-form-grid .ta-form-grid__cell {
            height: 25px;
            justify-content: center;
        }

            #preview-panel-deals #preview-data.ta-form-grid .ta-form-grid__cell:last-child {
                flex-grow: 2;
                white-space: nowrap;
            }

select.required,
input[type=text].required {
    box-shadow: 0 0 0 1px #f00;
}

.ttip {
    position: relative;
}

    .ttip .ttip-text {
        width: 60px;
        background-color: #555;
        color: #fff;
        text-align: center;
        border-radius: 6px;
        padding: 5px 0px;
        position: absolute;
        top: 125%;
        left: 50%;
        margin-left: -30px;
        z-index: 2;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.5s;
    }

        .ttip .ttip-text::after {
            content: "";
            position: absolute;
            bottom: 100%;
            left: 50%;
            margin-left: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: transparent transparent #555 transparent;
        }

.ttip-hover {
    /*position: relative;*/
}

    .ttip-hover:after {
        width: 100%;
        height: 28px;
        display: none;
        content: attr(data-err-txt);
        position: absolute;
        bottom: 0;
        left: 0;
        padding: 4px;
        text-align: center;
        white-space: normal;
        background-color: #008CBA;
        border: 1px solid #0078a0;
        color: #fff;
        z-index: 2;
    }

    .ttip-hover.error:after {
        color: #fff;
        background-color: #d32f2f;
        border: 1px solid #9a0007;
    }

    .ttip-hover:hover:after {
        display: block;
    }

/* Deal Builder Grid Styles */
#DB_Grid_Row_Deals {
    min-height: 35vh;
    position: relative;
    padding-bottom: 0;
}

    #DB_Grid_Row_Deals.fit-height {
        flex-grow: 1;
        flex-shrink: 1;
    }

#DB_Grid_Wrap_Deals {
    position: static;
    height: 100%;
    padding: 0;
    overflow: auto;
    border-bottom: 1px solid #111;
}

    #DB_Grid_Wrap_Deals #DB_Grid_Deals {
        border-collapse: separate;
        border: none;
        margin-bottom: 0;
    }

        #DB_Grid_Wrap_Deals #DB_Grid_Deals a {
            color: #222;
        }

            #DB_Grid_Wrap_Deals #DB_Grid_Deals a:hover {
                color: #0078a0;
            }

        /* Hide Net Position Column */
        #DB_Grid_Wrap_Deals #DB_Grid_Deals th:last-child,
        #DB_Grid_Wrap_Deals #DB_Grid_Deals td:last-child {
            display: none;
        }

        #DB_Grid_Wrap_Deals #DB_Grid_Deals tbody tr td {
            border-bottom: 1px solid #ddd;
        }

            #DB_Grid_Wrap_Deals #DB_Grid_Deals tbody tr td:not(:first-child) {
                border-right: 1px solid #ddd;
            }

            #DB_Grid_Wrap_Deals #DB_Grid_Deals thead tr th:last-child,
            #DB_Grid_Wrap_Deals #DB_Grid_Deals tbody tr td:last-child {
                border-left: 1px solid #111;
            }

        #DB_Grid_Wrap_Deals #DB_Grid_Deals thead tr.elementName {
            height: 35px;
        }

        #DB_Grid_Wrap_Deals #DB_Grid_Deals thead tr th:not(:last-child):not(:nth-last-child(2)) {
            border-right: 1px solid #111;
        }

        #DB_Grid_Wrap_Deals #DB_Grid_Deals thead tr:first-child th {
            /*border-top: 1px solid #ddd;*/
        }

            #DB_Grid_Wrap_Deals #DB_Grid_Deals thead tr:first-child th[class]:not(:first-child) {
                text-transform: uppercase;
                font-size: 1.15rem;
            }

        #DB_Grid_Wrap_Deals #DB_Grid_Deals thead tr:last-child th {
            border-bottom: 1px solid #111;
        }

        #DB_Grid_Wrap_Deals #DB_Grid_Deals thead tr:nth-child(2) th:not(.total):not(:last-child) {
            border-top: 1px solid #111;
        }

            #DB_Grid_Wrap_Deals #DB_Grid_Deals thead tr:nth-child(2) th:not(.total):not(:last-child):not(:first-child) {
                /*-webkit-box-shadow: 0 6px 5px -2px rgba(0,0,0,.6) inset;
                -moz-box-shadow: 0 6px 5px -2px rgba(0,0,0,.6) inset;
                box-shadow: 0 6px 5px -2px rgba(0,0,0,.6) inset;*/
                position: relative;
            }

        #DB_Grid_Wrap_Deals #DB_Grid_Deals thead tr:last-child th {
            -webkit-box-shadow: 1px 5px 4px 0 rgba(0,0,0,.5);
            -moz-box-shadow: 1px 5px 4px 0 rgba(0,0,0,.5);
            box-shadow: 1px 5px 4px 0 rgba(0,0,0,.5);
        }

            #DB_Grid_Wrap_Deals #DB_Grid_Deals thead tr:last-child th:first-child {
                -webkit-box-shadow: -1px 5px 4px 0 rgba(0,0,0,.5);
                -moz-box-shadow: -1px 5px 4px 0 rgba(0,0,0,.5);
                box-shadow: -1px 5px 4px 0 rgba(0,0,0,.5);
            }

            #DB_Grid_Wrap_Deals #DB_Grid_Deals thead tr:last-child th:nth-child(2),
            #DB_Grid_Wrap_Deals #DB_Grid_Deals thead tr:last-child th:nth-last-child(2),
            #DB_Grid_Wrap_Deals #DB_Grid_Deals thead tr:last-child th:last-child {
                -webkit-box-shadow: 0 5px 4px 0 rgba(0,0,0,.5);
                -moz-box-shadow: 0 5px 4px 0 rgba(0,0,0,.5);
                box-shadow: 0 5px 4px 0 rgba(0,0,0,.5);
            }

        #DB_Grid_Wrap_Deals #DB_Grid_Deals thead tr:not(:first-child) th:not(:first-child):not(.total):not(.net) {
            font-weight: normal;
        }

        #DB_Grid_Wrap_Deals #DB_Grid_Deals thead tr:nth-last-child(2) th:last-child,
        #DB_Grid_Wrap_Deals #DB_Grid_Deals thead tr:not(:first-child):not(:last-child) th:not(.total):not(:last-child) {
            border-bottom: 1px solid #111;
        }

        #DB_Grid_Wrap_Deals #DB_Grid_Deals tfoot tr th:not(:last-child) {
            border-right: 1px solid #111;
        }

        #DB_Grid_Wrap_Deals #DB_Grid_Deals tfoot tr:first-child th {
            border-top: 1px solid #111;
            background: #ddd;
            height: 27px;
        }

    #DB_Grid_Wrap_Deals th,
    #DB_Grid_Wrap_Deals td {
        white-space: nowrap;
        text-align: center;
        padding: 0.25rem;
    }

        #DB_Grid_Wrap_Deals th:first-child,
        #DB_Grid_Wrap_Deals td:first-child {
            /*border-left: 1px solid #ddd;*/
        }

        #DB_Grid_Wrap_Deals th:last-child:not(.net),
        #DB_Grid_Wrap_Deals td:last-child {
            /*border-right: 1px solid #ddd;*/
        }

        #DB_Grid_Wrap_Deals td:first-child {
            font-weight: bold;
            border-right: 1px solid #111;
        }

        #DB_Grid_Wrap_Deals th .trade-name {
            padding: 0 0.75rem;
        }

        #DB_Grid_Wrap_Deals td.db-input {
            padding: 0;
        }

            #DB_Grid_Wrap_Deals td.db-input.calculating {
                color: #bbb;
                background: #e4e4e4;
                border-right-color: #000 !important;
                border-bottom: none !important;
            }

            #DB_Grid_Wrap_Deals td.db-input.out-of-range {
                color: #222;
                background: #888;
                border-right-color: #555 !important;
                border-bottom-color: #555 !important;
            }

            #DB_Grid_Wrap_Deals td.db-input.invalid {
                color: #222;
                background: #c0c0c0;
                border-right-color: #777 !important;
                border-bottom-color: #777 !important;
            }

            #DB_Grid_Wrap_Deals td.db-input.modified {
                color: #003300;
                background: #81c784;
                border-right-color: #003300 !important;
                border-bottom-color: #003300 !important;
            }

            #DB_Grid_Wrap_Deals td.db-input.error {
                color: #7f0000;
                background: #ef5350;
                border-right-color: #7f0000 !important;
                border-bottom-color: #7f0000 !important;
            }

            #DB_Grid_Wrap_Deals td.db-input.daily-bgn,
            #DB_Grid_Wrap_Deals td.db-input.daily-mid,
            #DB_Grid_Wrap_Deals td.db-input.daily-end {
                border-right: 3px solid #000 !important;
                border-left: 2px solid #000;
            }

            #DB_Grid_Wrap_Deals td.db-input.daily-bgn {
                border-top: 2px solid #000;
            }

            #DB_Grid_Wrap_Deals td.db-input.daily-mid {
                border-bottom: 0 !important;
            }

            #DB_Grid_Wrap_Deals td.db-input.daily-end {
                border-bottom: 2px solid #000 !important;
            }

            #DB_Grid_Wrap_Deals td.db-input.selected {
                color: #222;
                border: 1px solid rgb(77, 144, 254) !important;
                background: rgba(77, 144, 254, 0.3);
            }

                #DB_Grid_Wrap_Deals td.db-input.selected.daily-bgn,
                #DB_Grid_Wrap_Deals td.db-input.selected.daily-mid,
                #DB_Grid_Wrap_Deals td.db-input.selected.daily-end {
                    border-right-width: 3px !important;
                    border-left-width: 2px !important;
                }

                #DB_Grid_Wrap_Deals td.db-input.selected.daily-bgn {
                    border-top-width: 2px !important;
                }

                #DB_Grid_Wrap_Deals td.db-input.selected.daily-end {
                    border-bottom-width: 2px !important;
                }

                #DB_Grid_Wrap_Deals td.db-input.selected input {
                    width: 96%;
                    height: 30px;
                    margin: 0 2%;
                    padding: 0 5px;
                    border-radius: 0;
                }

        #DB_Grid_Wrap_Deals th .select {
            height: 2em;
        }

            #DB_Grid_Wrap_Deals th .select select {
                height: 2em;
                width: auto;
                padding: 0.25rem;
            }

    #DB_Grid_Wrap_Deals tbody tr:last-child td:not(.daily-end):not(.selected) {
        border-bottom: none !important;
    }

    #DB_Grid_Wrap_Deals tr:first-child th:first-child,
    #DB_Grid_Wrap_Deals tr th:last-child {
        background: #fff;
    }

    #DB_Grid_Wrap_Deals tr:last-child th:first-child {
        padding: 0;
    }

        #DB_Grid_Wrap_Deals tr:last-child th:first-child .links {
            display: flex;
            height: 27px;
        }

            #DB_Grid_Wrap_Deals tr:last-child th:first-child .links div {
                flex: 1;
                display: flex;
                align-items: center;
                justify-content: center;
            }

                #DB_Grid_Wrap_Deals tr:last-child th:first-child .links div.tagTxt {
                    background-color: #ffd783;
                    border-right: 1px solid black;
                }

                #DB_Grid_Wrap_Deals tr:last-child th:first-child .links div.bookTxt {
                    background-color: #6334e3;
                    color: #fff;
                }

    #DB_Grid_Wrap_Deals tr.green th:not(.total):not(:last-child) {
        background: #aedd94;
    }

    #DB_Grid_Wrap_Deals tr.lightgreen th:not(.total):not(:last-child) {
        background: #dfedd6;
    }

    #DB_Grid_Wrap_Deals tr.gray th:not(.total) {
        background: #c0c0c0;
    }

    #DB_Grid_Wrap_Deals tr th.source {
        background: #75a9f9;
    }

    #DB_Grid_Wrap_Deals tr.elementName th.source:not(.total),
    #DB_Grid_Wrap_Deals tr:nth-of-type(odd) td.source.calc {
        background: #a8c6fa;
    }

    #DB_Grid_Wrap_Deals tr:nth-of-type(even) td.source.calc {
        background: #d4e3fc;
    }

    #DB_Grid_Wrap_Deals tr th.sink {
        background: #ff8a84;
    }

    #DB_Grid_Wrap_Deals tr.elementName th.sink:not(.total),
    #DB_Grid_Wrap_Deals tr:nth-of-type(odd) td.sink.calc {
        background: #ffb4b0;
    }

    #DB_Grid_Wrap_Deals tr:nth-of-type(even) td.sink.calc {
        background: #ffdad8;
    }

    #DB_Grid_Wrap_Deals tr th.basis {
        background: #ffb253;
    }

    #DB_Grid_Wrap_Deals tr.elementName th.basis {
        background: #ffc581;
    }

    #DB_Grid_Wrap_Deals tr th.tres {
        background: #fff176;
    }

    #DB_Grid_Wrap_Deals tr.elementName th.tres {
        background: #fefac0;
    }

    #DB_Grid_Wrap_Deals tr th.net.nonzero {
        color: #fff;
        /*background: #e61610 !important;*/
    }

    /*#DB_Grid_Wrap_Deals tr td.nonzero {
        background: #ff3823 !important;
    }*/

    #DB_Grid_Wrap_Deals tr th.tagged {
        background: #ffe3ae !important;
    }

    #DB_Grid_Wrap_Deals tr th.booked {
        background: #dacafb !important;
    }

    #DB_Grid_Wrap_Deals span.col-remove {
        position: absolute;
        right: 2px;
        top: 1px;
        cursor: pointer;
        font-size: 0.75rem;
    }

        #DB_Grid_Wrap_Deals span.col-remove:hover {
            color: red;
        }

    #DB_Grid_Wrap_Deals input[type=checkbox] {
        position: absolute;
        right: 2px;
        bottom: 2px;
        cursor: pointer;
        font-size: 0.75rem;
    }

    #DB_Grid_Wrap_Deals span.col-adjust {
        position: absolute;
        left: 2px;
        bottom: 2px;
        cursor: pointer;
        font-size: 0.75rem;
    }

        #DB_Grid_Wrap_Deals span.col-adjust:hover {
            color: #666;
        }

    #DB_Grid_Wrap_Deals i.col-info {
        position: absolute;
        left: 4px;
        top: 4px;
        cursor: pointer;
        font-size: 0.75rem;
    }

        #DB_Grid_Wrap_Deals i.col-info:hover {
            color: #666;
        }

/* Modal */
#DB_Modal_Deals .mdc-dialog__surface {
    max-width: 950px;
}

#DB_Modal_Deals > div:first-child {
    position: relative;
    height: auto;
}

#DB_Modal_Deals > div:first-child::before {
    content: ' ';
    position: absolute;
    left: 0;
    top: 0;
    height: 0;
    width: 0;
    z-index: 1;
    border: 35px solid #fff;
    border-top-left-radius: 4px;
}

#DB_Modal_Deals[data-type=source] > div:first-child::before {
    border-left-color: #75a9f9 !important;
    border-top-color: #75a9f9 !important;
}

#DB_Modal_Deals[data-type=sink] > div:first-child::before {
    border-left-color: #ff8a84 !important;
    border-top-color: #ff8a84 !important;
}

#DB_Modal_Deals[data-type=basis] > div:first-child::before {
    border-left-color: #ffb253 !important;
    border-top-color: #ffb253 !important;
}

#DB_Modal_Deals[data-type=tres] > div:first-child::before {
    border-left-color: #fff176 !important;
    border-top-color: #fff176 !important;
}

#DB_Modal_Deals .ta-form-grid .ta-form-grid__cell,
#DB_Modal_Adjust_Deals .ta-form-grid .ta-form-grid__cell {
    color: #222;
    border-right-width: 10px;
    justify-content: center;
}

    #DB_Modal_Deals .ta-form-grid .ta-form-grid__cell:first-child {
        flex-grow: 0.25;
        min-width: 5%;
    }

        #DB_Modal_Deals .ta-form-grid .ta-form-grid__cell:first-child label {
            width: 100%;
            height: 100%;
        }

            #DB_Modal_Deals .ta-form-grid .ta-form-grid__cell:first-child label input {
                vertical-align: bottom;
            }

    #DB_Modal_Deals .ta-form-grid .ta-form-grid__cell:nth-child(2) {
        flex-grow: 1.5;
        min-width: 20%;
    }

    #DB_Modal_Deals .ta-form-grid .ta-form-grid__cell:nth-child(n+2) {
        min-width: 15%;
    }

/* Elements List */
.list_wrap {
    width: 100%;
    height: 50vh;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    background: #eee;
    border: #CCC .5px solid;
    border-radius: 4px;
    flex-grow: 2;
}

.list_item {
    display: block;
    position: relative;
    background: #fff;
    border-bottom: 0.5px solid #CCC;
    padding: 0.3rem 0.5rem 0.3rem 0.6rem;
    cursor: pointer;
    font-size: 0.8rem;
}

    .list_item.info {
        background: #ebebeb;
    }

    .list_item:hover {
        background: #ddd !important;
    }

    .list_item::before {
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 5px;
        content: '';
        background: black;
    }

    .list_item.source.selected {
        background: #a8c6fa;
        border-bottom-color: #75a9f9;
    }

    .list_item.source::before {
        background: #75a9f9 !important;
    }

    .list_item.sink.selected {
        background: #ffb4b0;
        border-bottom-color: #ff8a84;
    }

    .list_item.sink::before {
        background: #ff8a84 !important;
    }

    .list_item.basis.selected {
        background: #ffc581;
        border-bottom-color: #ffb253;
    }

    .list_item.basis::before {
        background: #ffb253 !important;
    }

    .list_item.tres.selected {
        background: #fefac0;
        border-bottom-color: #fff176;
    }

    .list_item.tres::before {
        background: #fff176 !important;
    }

.item_name {
    word-break: break-all;
}

.date_info {
    font-size: 0.6rem;
    font-style: italic;
    text-align: right;
    color: #808080;
}

.loc_info {
    max-width: 50%;
    min-width: 10px;
    font-size: 0.7rem;
}

    .loc_info [title] {
        cursor: help;
        color: #2a93cc;
        font-weight: bold;
    }

.list_info {
    color: #007095;
    cursor: help;
    display: inline-block;
}

    .list_info i {
        padding: 5px 10px;
    }

        .list_info i.red {
            color: #f00;
        }

.list_prev {
    color: #007095;
    display: inline-block;
}

    .list_prev i {
        padding: 5px 5px 5px 8px;
    }

        .list_prev i.red {
            color: #f00;
        }

.trade_info {
    width: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 14px;
    white-space: nowrap;
    background: white;
    border: 1px solid #ccc;
    z-index: 999;
    -webkit-box-shadow: 2px 6px 5px 0px rgba(0,0,0,.6);
    -moz-box-shadow: 2px 6px 5px 0px rgba(0,0,0,.6);
    box-shadow: 2px 6px 5px 0px rgba(0,0,0,.6);
}

    .trade_info div {
        display: flex;
        align-content: space-between;
    }

        .trade_info div div:first-child {
            flex: 1 1 0;
            padding-right: 1.5rem;
        }

    .trade_info i {
        position: absolute;
        top: 0.25rem;
        right: 0.25rem;
        color: #aaa;
        cursor: pointer;
    }

    .trade_info::before,
    .trade_info::after {
        width: 0;
        height: 0;
        content: '';
        font-size: 0;
        position: absolute;
        border: 10px solid transparent;
    }

    .trade_info.tether-element-attached-left::before {
        z-index: 2;
        left: -19px;
        border-right-color: #fff;
    }

    .trade_info.tether-element-attached-left::after {
        z-index: 1;
        left: -20px;
        border-right-color: #ccc;
    }

    .trade_info.tether-element-attached-top::before {
        z-index: 2;
        top: -19px;
        left: 50%;
        margin-left: -10px;
        border-bottom-color: #fff;
    }

    .trade_info.tether-element-attached-top::after {
        z-index: 1;
        top: -20px;
        left: 50%;
        margin-left: -10px;
        border-bottom-color: #ccc;
    }
