:root {
    --sidebar-width: 200px;
    --sidebar-width-collapsed: 80px;
}

[id^='gem_promt_pose_'] {
    height: 20rem;
}

.hidden {
    display: none !important;
}

.d-fixed {
    position: fixed;
}

.v-100 {
    min-height: 100vh;
}


.flex-1 {
    flex: 1;
}

.flex-2 {
    flex: 2;
}

.flex-3 {
    flex: 3;
}

.hover {
    cursor: pointer;
}

.w-25rem {
    width: 25rem;
}

@media (max-width: 768px) {
    .flex-xs-column {
        flex-direction: column;
    }

    .flex-xs-col-reverse {
        flex-direction: column-reverse;
    }

    .flex-xs-column {
        flex-direction: column;
    }

    .flex-xs-col-reverse {
        flex-direction: column-reverse;
    }
}

@media only screen and (max-width: 780px) {


    .flex-sm-row {
        flex-direction: row;
    }

    .flex-sm-column {
        flex-direction: column;
    }

    .file-input, .file-link {
        width: 100%;
    }
}

.file-input, .file-link {
    width: 20rem;
}

.file-input {
    border: 1px solid grey;
    border-radius: .25rem;
}


#scan-editor-page .fdiv {
    /*min-width: 10rem;*/
    border: 1px solid var(--rutgers-black);
    padding: .25rem .5rem;
    border-radius: .75rem;
    gap: 1rem;
}

    #scan-editor-page .fdiv:hover {
        border-color: var(--rutgers-red);
        color: var(--rutgers-red);
        cursor: pointer;
    }



#scan-editor-page .ptext {
    width: 100%;
    /* border: 1px solid #4f6a72; */
    border-radius: .5rem;
    min-height: 10rem;
    outline: none;
    background-color: whitesmoke;
    padding: 1rem;
    z-index: 9;
}


.place-items-center {
    place-items: center;
}



.grow-wrap {
    /* easy way to plop the elements on top of each other and have them both sized based on the tallest one's height */
    display: grid;
    position: relative;
}

    .grow-wrap::after {
        /* Note the weird space! Needed to preventy jumpy behavior */
        content: attr(data-replicated-value) " ";
        /* This is how textarea text behaves */
        white-space: pre-wrap;
        /* Hidden from view, clicks, and screen readers */
        visibility: hidden;
    }

    .grow-wrap > textarea {
        /* You could leave this, but after a user resizes, then it ruins the auto sizing */
        resize: none;
        /* Firefox shows scrollbar on growth, you can hide like this. */
        overflow: hidden;
    }

    .grow-wrap > textarea,
    .grow-wrap::after {
        /* Identical styling required!! */
        border: 1px solid black;
        padding: 0.5rem;
        font: inherit;
        /* Place on top of each other */
        grid-area: 1 / 1 / 2 / 2;
    }


.add-prompt-btn {
    border-radius: 5rem;
    padding: .1rem .3rem;
    font-size: .75rem;
    position: absolute;
    z-index: 9;
    bottom: -10px;
    right: -10px;
    background-color:whitesmoke;
    color:green;
    border: 1px solid var(--rutgers-black);
}
.add-prompt-btn:hover::after {
   display:none;
}

    .add-prompt-btn::after {
        content: "";
        position: absolute;
        bottom: 10px;
        left: -4px;
        width: 15px;
        height: 15px;
        background-color: whitesmoke;
        z-index: -1;
        /* border-radius: 5rem; */
        /* border: 2px solid white; */
        border-top: none;
    }

.remove-prompt-btn {
    border-radius: 5rem;
    padding: .1rem .3rem;
    font-size: .75rem;
    position: absolute;
    z-index: 9;
    bottom: -10px;
    left: -10px;
    background-color: whitesmoke;
    color: var(--rutgers-red);
    border: 1px solid var(--rutgers-black);
}
.remove-prompt-btn:hover::after {
    display: none;
}

.remove-prompt-btn::after {
    content: "";
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 15px;
    height: 15px;
    background-color: whitesmoke;
    z-index: -1;
    /* border-radius: 5rem; */
    /* border: 2px solid white; */
    border-top: none;
}

.hidden {
    display: none;
}


/* maximize btn stuff */
.full-screen #editorwrap {
    width: 100% !important;
}

.full-screen .ptext {
    min-height: 65vh !important;
}


/* results table wth datatable*/
#resultsTbl th {
    border-top:1px solid #d9d9d9;
}
#resultsTbl .datatable-sorter::after,
#resultsTbl .datatable-sorter::before {
    border:none;
    top:unset;
}
#resultsTbl .datatable-sorter {
    text-decoration:underline;
    padding:0 0;
}
.datatable-search input {
    min-height: calc(1.5em + .5rem + 2px);
    padding: .25rem .5rem;
    font-size: .875rem;
    border-radius: .2rem;
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.datatable-search input:focus {
    outline:inherit;
}