
.table-condensed {
    table-layout: unset !important;
}

.table.table-condensed.table-detailed > tbody > tr > td:first-child:before {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.table.table-condensed.table-detailed > tbody > tr.shown > td:first-child:before {
    transform: translateY(-50%) rotate(90deg);
}

.table tbody tr td {
    font-size: 12px;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-thumb {
    background: #2b303b; /*#7c8baf*/
    border-radius: 6px;
}

.btn-wrapper {
    position: relative;
    display: inline-block;
}

/* Overlay that covers the button */
.btn-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6); /* Semi-transparent white */
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden; /* Initially hidden */
}

#loadingBackdrop {
    z-index: 1100;
}

/* Show overlay when exporting */
.btn-loading .btn-overlay {
    visibility: visible;
}

.hover-scale:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
}

.widget-8 a,
.widget-8 a:hover {
    color: white !important;
}

.cursor-default {
    cursor: default;
}

.cursor-pointer {
    cursor: pointer;
}
.cursor-not-allowed{
    cursor: not-allowed;
}
.CodeMirror-sizer {
    margin-left: 30px !important;
}

.CodeMirror-gutter.CodeMirror-linenumbers {
    width: 30px !important;
}

.modal.fade.fill-in > .close > i {
    font-size: 50px !important;
}

.badge {
    width: fit-content;
}

.dropdown-toggle::after {
    margin-left: auto;
}

.dropdown-menu > li, .dropdown-menu > .dropdown-item {
    line-height: 1;
}

.datepicker table tr:first-child td.active:before {
    top: 11px;
    left: 5px;
}

.datepicker table tbody tr:first-child td.day:hover:before {
    top: 11px;
    left: 5px;
}

/* Attachment styles */
.attachment-container {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.attachment-upload {
    border: 2px dashed #dee2e6;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.attachment-upload:hover {
    border-color: #0d6efd;
    background: #f8f9fa;
}

.attachment-upload i {
    font-size: 24px;
    color: #6c757d;
    margin-bottom: 8px;
}

.attachment-list {
    margin-top: 15px;
}

.attachment-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 8px;
    background: white;
    transition: all 0.2s ease;
}

.attachment-item:hover {
    background: #f8f9fa;
    border-color: #0d6efd;
}

.attachment-icon {
    margin-right: 10px;
    color: #6c757d;
    font-size: 18px;
}

.attachment-name {
    flex-grow: 1;
    margin-right: 10px;
    word-break: break-all;
    font-size: 12px;
}

.attachment-uploader {
    font-size: 11px;
    color: #6c757d;
    margin-top: 2px;
}

.attachment-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.attachment-actions i {
    cursor: pointer;
    color: #6c757d;
    transition: color 0.2s ease;
    font-size: 14px;
}

.attachment-actions i.download:hover,
i.edit:hover,
i.redirect:hover,
i.archive:hover {
    color: #0072ec !important;
}
i.trash:hover {
    color: #dc3545 !important;
}
i.i-archive{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 28px;
    width: 28px;
}
.attachment-status {
    display: inline-flex;
    align-items: center;
}

textarea.form-control {
    line-height: 1.2;
    min-height: fit-content !important;
}

.ql-editor {
    height: auto;
    min-height: 100px;
    max-height: none;
    overflow-y: hidden;
}

.ql-disabled .ql-editor {
    cursor: not-allowed;
}

.select2-dropdown {
    z-index: 1056;
}

.form-group-default.form-group-default-select2 > label, 
.form-group-default.form-group-default-select2.required:after {
    z-index: 1052;
}

.select2-container.select2-container--default.select2-container--open {
    z-index: 1055;
}

.form-group-default-select2:has(.select2-container.select2-container--default.select2-container--open) label,
.form-group-default-select2:has(.select2-container.select2-container--default.select2-container--open).required:after{
    z-index: 1056;
}

table .command-btn {
    width: 65px;
}

.commandBtnHeader {
    width: 65px;
}

.widget-8 {
    height: auto !important;
}

/*.tickets-container {*/
/*    min-height: 490px;*/
/*}*/

.pickr {
    border: 1px solid gray;
}


#notes-lists {
    margin: 0;
    padding: 0;
}

#notes-lists .caret {
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    display: flex !important;
    height: auto !important;
    width: 100% !important;
}

#notes-lists .caret::before {
    content: "\25B6";
    color: black;
    display: inline-block;
    margin-right: 6px;
}

#notes-lists .caret-down::before {
    -ms-transform: rotate(90deg); /* IE 9 */
    -webkit-transform: rotate(90deg); /* Safari */
' transform: rotate(90 deg);
}

#notes-lists .nested {
    display: none;
}

#notes-lists .active {
    display: block;
}

.avatar {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ticket-card {
    box-shadow: 0 2px 4px rgba(0, 0, 0, .05);
    transition: all .2s ease;
    cursor: pointer;
}

.ticket-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
}

.text-sm {
    font-size: 0.875rem;
}

button.dropdown-toggle {
    width: 105px;
    height: 34px;
}

.business-dropdown button.dropdown-toggle {
    width: fit-content;
}

.business-dropdown .dropdown-toggle::after {
    margin-left: 10px;
}

.limit-2-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pg-icon.active {
    color: #0072ec;
}

textarea {
    min-height: 50px;
    overflow: hidden;
}

.form-control[disabled] {
    color: black;
}

#commentsContainer {
    min-height: 157px;
    max-height: 500px;
    background-color: #f8f9fa;
}

#attachmentList {
    min-height: 100px;
    max-height: 300px;
}

.card-header .dropdown-menu .dropdown-item {
    padding: .25rem .5rem !important;
}

.datepicker.dropdown-menu {
    z-index: 1065 !important;
}

.swal2-popup.swal2-toast.swal2-show {
    padding: 0 !important;
}

.swal2-html-container {
    margin: 0 !important;
}
#taskItemFilters{
    width: 300px; 
    height: calc(100vh - 60px) !important; 
    
    position: fixed; 
    bottom: 0;
    right: -100%;
    
    transition: right 0.3s ease;
}
#taskItemFilters.show{
    right: 0;
}

.select2-container .select2-selection {
    padding: 2px 30px 2px 9px;
}

@media (max-width: 990px){
    #taskItemFilters{
        height: calc(100vh - 48px) !important;
    }
}