﻿consent-statement-library-grid .table-wrapper {
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: auto;
    border-width: thin;
    border-style: solid;
    border-color:black;
}

consent-statement-library-grid .table-wrapper #dataTable thead tr th{
    text-align:left;
    padding-left:20px;
    background-color: rgb(0,51,102);
    color: white;
    vertical-align: middle;
}

.create-new-container { 
    margin-top: 10px;
}

#consentStatementLibraryGrid {
    border: 1px solid #000;
    width:100%;
    padding: 10px;
    margin-top: 10px;
    font-size: smaller;
    box-sizing: border-box;
    border-collapse: collapse;
}

#consentStatementLibraryGrid tr.even-row td {
    background-color: #f0f0f8;
}




    #consentStatementLibraryGrid td {
        border-top: 1px solid #9090c0;
        border-bottom: 1px solid #9090c0;
        border-left: 1px solid #9090c0;
    }

        #consentStatementLibraryGrid td:first-child {
            border-left: 1px solid #000;
        }



consent-statement-library-grid th.Description,
consent-statement-library-grid td.Description {
    width: 300px;
}

#consentStatementLibraryGrid th.NoticeStatement {
    width: 500px;
}


#consentStatementLibraryGrid td.NoticeStatement {
    max-width: 500px;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 100px;
}

consent-statement-library-grid th.NoticeType,
consent-statement-library-grid td.NoticeType {
    width: 125px;
}
consent-statement-library-grid th.Version,
consent-statement-library-grid td.Version {
    width: 105px;
}

consent-statement-library-grid th.Actions,
consent-statement-library-grid td.Actions {
    width: 100px;
}

consent-statement-library-grid .table-wrapper #dataTable thead tr th:last-child,
consent-statement-library-grid .table-wrapper #dataTable tbody tr td:last-child {
    max-width: 125px;
    width: 125px;
    padding-top:25px;
    font-size:20px;
}

consent-statement-library-grid .table-wrapper #dataTable thead tr th:last-child i,
consent-statement-library-grid .table-wrapper #dataTable tbody tr td:last-child i{
    padding-left:10px;
}

div.buttonRow {
    margin-top:15px;
}

consent-statement-library-grid .table-wrapper #dataTable {
    tbody tr {
        text-align: center;
        vertical-align: top;
    }

    td > i.bi {
        cursor: pointer;
    }

    /* style the Quill container and toolbar to mimic the Bootstrap .form-control class that was previously in use */
    .ql-container,
    .ql-toolbar {
        background-color: var(--bs-table-background);
        border: var(--bs-border-width) solid var(--bs-border-color);
        border-radius: var(--bs-border-radius);
        font-size: inherit;
        font-weight: inherit;
    }

    .ql-container {
        /* We want to be able to see as much of the Notice Statement text as possible without scrolling, but we also want an upper bound so that
        scrolling through the grid isn't awful when records have long Notice Statements. */
        max-height: 50vh;
        overflow-y: auto;

        &:not(.ql-disabled) {
            border-top-left-radius: 0;
            border-top-right-radius: 0;
        }
    }

    .ql-container.ql-disabled {
        /* set the background for a disabled Quill container and the Quill toolbar that is its previous sibling */
        background-color: var(--bs-secondary-bg);

        .ql-toolbar:has(+ &) {
            background-color: var(--bs-secondary-bg);
            display: none;
        }
    }

    .ql-toolbar {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    /*
     * This is a giant hack to get around the default behavior when you add a URL to some text: the link popup is cut off and you have to scroll
     * the editor div to see it (see: https://github.com/slab/quill/issues/360). This rule fixes things so it appears like a regular popup.
     */

    .ql-tooltip:not(.ql-hidden) {
        display: block;
        left: 5% !important;
        width: 90%;

        & ::after {
            content: '';
            position: absolute;
            top: 0px;
            height: 0;
        }

        background-color: #fff;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
        border-top-width: 0px;
        border: 2px solid #dee2e6;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), 0 8px 20px rgba(0, 0, 0, 0.19);
        padding: 12px;
        position: absolute;
        top: -11px !important;
    }
}


