.select2 {
    width: 200px;
}
.select2-container--default
.select2-selection--multiple
.select2-selection__choice__remove {
  height: 100%;
}

.select2.select2-container {
    width: 100% !important;
}

.select2.select2-container .select2-selection {
    border: 1px solid #ccc;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    height: 34px;
    margin-bottom: 15px;
    outline: none;
    transition: all 0.15s ease-in-out;
}

.select2.select2-container .select2-selection .select2-selection__rendered {
    color: #333;
    line-height: 32px;
    padding-right: 33px;
}

.select2.select2-container .select2-selection .select2-selection__arrow {
    background: #f8f8f8;
    border-left: 1px solid #ccc;
    -webkit-border-radius: 0 3px 3px 0;
    -moz-border-radius: 0 3px 3px 0;
    border-radius: 0 3px 3px 0;
    height: 32px;
    width: 33px;
}

.select2.select2-container.select2-container--open .select2-selection.select2-selection--single {
    background: #f8f8f8;
}

.select2.select2-container.select2-container--open .select2-selection.select2-selection--single .select2-selection__arrow {
    -webkit-border-radius: 0 3px 0 0;
    -moz-border-radius: 0 3px 0 0;
    border-radius: 0 3px 0 0;
}

.select2.select2-container.select2-container--open .select2-selection.select2-selection--multiple {
    border: 1px solid #34495e;
}

.select2.select2-container.select2-container--focus .select2-selection {
    border: 1px solid #34495e;
}

.select2.select2-container .select2-selection--multiple {
    min-height: 34px;
    height: auto;
}

.select2.select2-container .select2-selection--multiple .select2-search--inline .select2-search__field {
    margin-top: 0;
    height: 32px;
    padding: 0px 8px;
}

.select2.select2-container .select2-selection--multiple .select2-selection__rendered {
    display: block;
    padding: 0 4px;
    line-height: 29px;
}

.select2.select2-container .select2-selection--multiple .select2-selection__choice {
    background-color: #f8f8f8;
    border: 1px solid #ccc;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    margin: 3px 4px 0 0;
    padding: 0 6px 0 22px;
    height: 24px;
    line-height: 24px;
    font-size: 12px;
    position: relative;
}

.select2.select2-container .select2-selection--multiple .select2-selection__choice .select2-selection__choice__remove {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    margin: 0;
    text-align: center;
    color: #e74c3c;
    font-weight: bold;
    font-size: 16px;
}

.select2-container .select2-dropdown {
    background: transparent;
    border: none;
    margin-top: -10px;
}

.select2-container .select2-dropdown .select2-search {
    padding: 0;
}

.select2-container .select2-dropdown .select2-search input {
    outline: none;
    border: 1px solid #34495e;
    border-bottom: none;
    padding: 3px 6px;
    height: 32px;
}

.select2-container .select2-dropdown .select2-results {
    padding: 0;
}

.select2-container .select2-dropdown .select2-results ul {
    background: #fff;
    border: 1px solid #34495e;
}

.select2-container .select2-dropdown .select2-results ul .select2-results__option--highlighted[aria-selected] {
    background-color: #3498db;
}

.w-full {
    width: 100%;
}

.textapp-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}
.textapp-form progress {
    width: 100%;
}
.textapp-form {
    margin: auto;
}

.form-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-section {
    margin-bottom: 10px;
}

.btn {
    padding: 10px;
    border: none;
    cursor: pointer;
}

.btn-submit {
    background: #3498db;
    color: #fff;
}
.btn-delete {
    background: #dc3545;
    color: #fff;
}

.btn-delete[disabled] {
    background: #a03741;
}

#chatbox-container {
    overflow-y: auto;
    grid-column: span 2 / span 2;
    border: 1px solid #eee;
    height: 300px;
}

.message-entry {
    width: 300px;
    padding: 10px;
}
.message-entry small{
    font-size: 12px;
}
.message-body {
    border: 1px solid #e9e9e9;
    padding: 10px 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}

.message-left {
    margin-right: auto;
    text-align: left;
}

.message-left .message-body {
    background: #79caf1;
}

.message-right {
    margin-left: auto;
    text-align: right;
}

.message-right .message-body {
    background: #eff1fa;
}

.message-attachment {
    height: 32px;
    width: 32px;
    border-radius: 6px;
    border: 1px solid lightgray;
    overflow: hidden;
}

.message-attachment-thumb {
    margin-left: auto;
}
.hidden {
    display: none;
}

.uploaded-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    margin: 4px 0;
    padding: 4px 0px;
}

.uploaded-item button {
    cursor: pointer;
    border: none;
    border-radius: 100%;
    background: #fca5a5;
    color: #b91c1c;
    height: 22px;
    width: 22px;
}

.custom-upload-button {
    height: 30px;
    background: lightgray;
    display: flex;
    align-items: center;
    border: 1px solid #a8afb6;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
}

#error_message {
    color: #b91c1c;
}

.attachment-icon {
    height: 20px;
    width: 20px;
}


/* Fix paginate_links() vertical layout */
.page-numbers,
.page-numbers li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.page-numbers li {
    display: inline-block;
}

.page-numbers a,
.page-numbers span {
    padding: 8px 14px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    background: #f9f9f9;
    border-radius: 4px;
}

.page-numbers .current {
    background-color: #2ea3f2;
    color: white;
    border-color: #2ea3f2;
    font-weight: bold;
}