/*.no-overflow,
.table-responsive {
    max-height: 75vh; 
    overflow-y: auto; 
    overflow-x: auto; 
}*/

    /* sticky header*/
    /*.no-overflow table thead th,
    .table-responsive table thead th {
        position: sticky;
        top: 0;
        z-index: 10;
        background-color: #f8f9fa; 
        box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.2); 
    }*/

.text-preview-wrapper .collapse:not(.show) {
    display: block;
    max-height: 6lh;
    position: relative;
    overflow: hidden;

    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}


.text-preview-wrapper .collapse:not(.show) ~ .btn-reduce {
    display: none;
}

.text-preview-wrapper .collapse.show ~ .btn-expand {
    display: none;
}

.text-preview-wrapper .readmore-label {
    cursor: pointer;
    color: #0f6cbf;
    font-weight: 500;
    display: inline-block;
    margin-top: 5px;
}

    .text-preview-wrapper .readmore-label:hover {
        text-decoration: underline;
    }


.studentpicker {
    position: relative;
    width: 100%;
    font-size: .9375rem;
}

.studentpicker-control {
    border: 1px solid #8f959e;
    border-radius: .5rem;
    background: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 4px;
    cursor: text;
}

    .studentpicker-control:focus-within {
        border-color: #b7a3cd;
        outline: 0;
        box-shadow: 0 0 0 .2rem rgb(118 85 156 / .75);
    }

.studentpicker-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.studentpicker-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ced4da;
    color: black;
    border: 2px solid black;
    border-radius: 10px;
    padding: 4px 10px;
    margin: 2px;
}

    .studentpicker-tag .remove {
        cursor: pointer;
        font-weight: bold;
    }

.studentpicker-search {
    flex: 1;
    min-width: 120px;
    border: 0;
    outline: 0;
    padding: 6px;
    font-size: inherit;
    background: transparent;
}

.studentpicker-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: .35rem;
    max-height: 280px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 6px 16px rgba(0,0,0,.15);
}

.studentpicker-item {
    padding: 10px 14px;
    cursor: pointer;
}

    .studentpicker-item:hover {
        background: #76559C;
        color: #fff;
    }

    .studentpicker-item.active {
        background: #76559C;
        color: #fff;
    }

input[id^="id_tname_"] {
    width: 50rem;
    margin-right:10px;
}

#dynamic-topics-wrapper {
    margin-top:10px;
}

.custom-form-style{
    width: 70%;
    max-width: 900px;
    margin: 0 auto;
}

.custom-form-style .fitem,
.custom-form-style .form-group.row {
    display: block ; 
    margin-bottom: 1.5rem;
}

.custom-form-style .fitemtitle,
.custom-form-style .col-form-label,
.custom-form-style .col-md-3 {
    max-width: 100% !important;
    flex: 0 0 100% !important;
    text-align: left !important; 
    padding-bottom: 5px; 
    padding-left: 0 !important;
}

.custom-form-style .felement,
.custom-form-style .col-md-9 {
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding-left: 0 !important;
}

.custom-form-style input[type="text"],
.custom-form-style textarea,
.custom-form-style select {
    width: 80%;
    max-width: 80%;
    box-sizing: border-box;
}

@media(max-width:768px){
    .custom-form-style{
        width: 100%;
        padding: 15px;
    }
}

select {
    width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}


/* STEM EVENT TABLE*/
.events-table {
    width: 100%;
    table-layout: fixed;
}

    .events-table th,
    .events-table td {
        padding-left: 5px;
        padding-right: 5px;
        vertical-align: top;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
        font-size: 0.82rem;
        line-height: 1.25;
    }


    .events-table .col-event-id {
        width: 8%;
    }

    .events-table .col-event-name {
        width: 11%;
    }

    .events-table .col-event-org {
        width: 11%;
    }

    .events-table .col-event-description {
        width: 16%;
    }

    .events-table .col-event-tasks {
        width: 15%;
    }

    .events-table .col-event-subject {
        width: 8%;
    }

    .events-table .col-event-field {
        width: 8%;
    }

    .events-table .col-event-target {
        width: 7%;
    }

    .events-table .col-event-place {
        width: 9%;
    }

    .events-table .col-event-actions {
        width: 7%;
    }

    .events-table .text-preview-wrapper {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .events-table .col-event-actions a,
    .events-table .col-event-actions button {
        display: block;
        width: 100%;
        margin-bottom: 3px;
        white-space: normal;
    }



@media(max-width:768px) {
    input[id^="id_tname_"] {
        width: auto;
        margin-right: 10px;
    }

    .modal-dialog {
        max-width: min-content;
    }

    .events-table{
        min-width: 1050px;
        table-layout:fixed;
    }

    .events-table th,
    .events-table td {
        font-size: 0.75rem;
    }

    .events-table-responsive,
    .no-overflow{
        overflow-x: auto;
    }
}

.custom-select {
    width: 100%;
    max-width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}