.btn {
    padding: 9px;
}
.badge-input {
    border: 0;
    background: var(--bs-secondary-bg);
    color: var(--bs-secondary-color);
    padding: 0.35rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.2;
    box-shadow: none;
}
.badge-input:focus {
    background: var(--bs-secondary-bg);
    border: 0;
    box-shadow: 0 0 0 0.15rem rgba(var(--bs-primary-rgb), 0.25);
}
.badge-input::placeholder {
    color: var(--bs-secondary-color);
}
.badge-select-wrapper {
    padding: 0.25rem 0.75rem;
}

/* Remove default select styling */
.badge-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    background: transparent;
    color: inherit;
    font-size: 0.875rem;
    cursor: pointer;
}

/* Hide default arrow in IE */
.badge-select::-ms-expand {
    display: none;
}

/* Optional: spacing so text doesn't overlap icon */
.badge-select {
    padding-right: 1.5rem;
}

.ajax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.ajax-spinner {
    width: 30px;
    height: 30px;
    border: 4px solid #ccc;
    border-top: 4px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.full-screen-wrapper {
    height: calc(100dvh - 270px) !important;
}
.full-screen-wrapper-dashboard {
    height: calc(100dvh - 180px) !important;
}
.full-screen-wrapper-kanban {
    height: calc(100dvh - 380px) !important;
}
.dz-preview:hover .dz-image img {
    #filter: none !important;
    #cursor: pointer;
}

.dz-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.dz-remove {
    opacity: 0;
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    font-size: 0;
    font-weight: 400;
    line-height: 1.5;
    color: #fff;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: #dc3545;
    border: 1px solid #dc3545;
    border-radius: 0.375rem;
    box-sizing: border-box;
    transition: opacity 0.15s ease-in-out, color 0.15s ease-in-out,
    background-color 0.15s ease-in-out, border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
    z-index: 9999;
}
.dz-remove::before {
    content: "🗑";
    font-size: 30px;
    line-height: 1;
}
.dz-preview:hover .dz-remove {
    opacity: 1;
}
.dz-remove:hover {
    color: #fff;
    background-color: #bb2d3b;
    border-color: #b02a37;
    text-decoration: none;
}
.dz-remove:focus,.dz-remove:focus-visible {
    color: #fff;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(225, 83, 97, 0.5);
}
.dz-remove:active {
    background-color: #b02a37;
    border-color: #a52834;
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}
.dz-remove,.dz-remove:hover{
    text-decoration: none !important;
}
.dropzone {
    border: 2px dashed transparent; /* hidden by default */
    transition: border-color 0.2s ease;
}

.dropzone.dz-drag-hover {
    border-color: #4CAF50; /* visible when dragging */
}

.info-pill {
    background-color: rgb(233, 235, 238) !important;
}
.info-pill-darker {
    background-color: rgb(188, 191, 197) !important;
}
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice {
    border: none;
}
.select2-container--default .select2-selection--multiple .select2-tabler-choice {
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0.15rem;
}

.select2-container--default .select2-selection--multiple .select2-tabler-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.55rem;
    line-height: 1;
}

.select2-container--default .select2-selection--multiple .select2-tabler-badge-text {
    padding: 0;
    color: inherit;
}

.select2-container--default .select2-selection--multiple .select2-tabler-badge-remove {
    position: static;
    float: none;
    margin: 0;
    padding: 0;
    border: 0;
    width: 0.75rem;
    height: 0.75rem;
    min-width: 0.75rem;
    opacity: 0.8;
    cursor: pointer;
}
.select2-container--bootstrap-5 .select2-selection {
    padding: 0;
}
.select2-search.select2-search--inline {
    padding: 5px;
}
.select2-container--default .select2-selection--multiple .select2-tabler-badge-remove {
    opacity: 1;
    background-color: transparent;
}
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice {
    margin-bottom: 0;
    margin-right: 0;
    padding: 0.35em;
}
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice .select2-selection__choice__remove {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") 50%/.45rem auto no-repeat;
    margin-right: 0;
}
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice .select2-selection__choice__remove:hover {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") 50%/.45rem auto no-repeat;
    margin-right: 0;

}
.badge.badge-outline.select2-tabler-badge {
    padding-right: 8px;
}
.select2-selection.select2-selection--multiple {
    align-content: center;
}
.select2-selection__rendered {
    padding-left: 5px !important;
}
.select2-selection--single > .select2-selection__rendered {
    padding-left: 5px !important;
    margin-top: 5px !important;
}
.select2-search.select2-search--inline {
    margin-bottom: 10px !important;
}
.select2-selection__placeholder {
    padding-left: 10px;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--tblr-body-color);
    opacity: 0.54;
}
.header-muted-text {
    color: #9CA3AF;
}
.avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
    color: #6c757d;
    font-size: 12px;
}
.glightbox-download-btn {
    position: absolute;
    right: 16px;
    bottom: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-actions {
    display: flex;
    align-items: center;
}
.card-footer {
    padding: 10px !important;
}
.col-auto {
    align-content: center;
}
.inline-quote {
    display: inline-flex;
    font-family: inherit;
    position: relative;
}

.inline-quote::before,
.inline-quote::after {
    font-family: "Font Awesome 6 Free"; /* adjust if using different version */
    font-weight: 900; /* required for solid icons */
}

.inline-quote::before {
    content: "\f10d"; /* fa-quote-left */
    margin-right: 6px;
}

.inline-quote::after {
    content: "\f10e"; /* fa-quote-right */
    margin-left: 6px;
}
.icon-font {
    font-size: 18px;
}
.modal-middle-width {
    max-width: 70%;
}
.visible-checklist-icon {
    visibility: visible !important;
}
.no-dot-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.no-pointer-input {
    cursor: default;
}
.search-expand {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 38px;
}
.search-expand-input {
    width: 0;
    opacity: 0;
    padding-left: 0;
    padding-right: 0;
    border-width: 1px;
    overflow: hidden;
    transition: width 0.25s ease, opacity 0.2s ease, padding 0.25s ease;
    margin-right: 0;
    pointer-events: none;
}
.search-expand-btn {
    position: relative;
    z-index: 2;
    white-space: nowrap;
}
/* Expand on hover of whole widget or when focused */
.search-expand:hover .search-expand-input,
.search-expand:focus-within .search-expand-input {
    width: 220px;
    opacity: 1;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    margin-right: 0.5rem;
    pointer-events: auto;
}
/* Keep button visually attached */
.search-expand:hover,
.search-expand:focus-within {
    cursor: pointer;
}
.commentActions {
    visibility: hidden;
}
.chat-bubble {
    padding: 0.6rem;
}
.chat-item:hover .commentActions {
    visibility: visible;;
}
.centered-card-title {
    display: inline-flex;
    position: relative;
    bottom: 3px;
}
.centered-breadcrumb-title {
    display: inline-flex;
    position: relative;
    top: 2px;
}
.ts-dropdown,
.ts-dropdown .ts-dropdown-content {
    background-color: #fff !important;
    color: #1f2937;
    overscroll-behavior: contain;
}

.ts-dropdown {
    border: 1px solid #dee2e6;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
    z-index: 1050;
}

.ts-dropdown .option {
    background-color: #fff;
}

.ts-dropdown .option.active,
.ts-dropdown .option:hover {
    background-color: #f1f5f9;
}
.ts-dropdown .ts-dropdown-content {
    min-height: 200px;
    max-height: 300px;
}
.ts-wrapper.disabled .ts-control {
    background-color: var(--tblr-gray-100, #f1f3f5) !important;
    color: var(--tblr-muted, #6c757d) !important;
    border-color: var(--tblr-border-color, #dee2e6) !important;
    cursor: not-allowed;
}

.ts-wrapper.disabled .avatar {
    opacity: .45;
}
.ts-wrapper.form-select {
    padding: 3px !important;
}
.btn-icon {
    width: 2rem;
    height: 2rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.js-ticket-remove {
    font-family: "tabler-icons";
    font-size: 1rem;
    line-height: 1;
}
.js-ticket-add {
    font-family: "tabler-icons";
    font-size: 1rem;
    line-height: 1;
}
#radioDevicesDropdown + .select2 .select2-selection__choice {
    display: none;
}
#tvDevicesDropdown + .select2 .select2-selection__choice {
    display: none;
}
#ticketRadioDevicesDropdown + .select2 .select2-selection__choice {
    display: none;
}
#ticketRadioDevicesDropdown + .select2 .select2-selection__rendered {
    display: none;
}
#ticketTvDevicesDropdown + .select2 .select2-selection__rendered {
    display: none;
}
#radioDevicesDropdown + .select2 .select2-selection__rendered {
    display: none;
}
#tvDevicesDropdown + .select2 .select2-selection__rendered {
    display: none;
}
.epicAvatars {
    display: inline-flex;
    margin-right: 12px;
}
textarea.checkListItemTitle {
    resize: none;
    overflow: hidden;
    min-height: 40px;
}
@media (min-width: 2800px) {
    .col-xxxl-2 {
        flex: 0 0 auto;
        width: 16.66666667%;
    }
}
.btn-outline-danger {
    border-color: #E5E7EB;
    color: #D63939;
}
.btn-outline-secondary {
    border-color: #E5E7EB;
    color: #404040;
}
.avatar-list-stacked .avatar {
    margin-right: calc(-0.3*var(--tblr-avatar-size)) !important;
}

.file-preview-card .preview-image {
    position: relative;
    overflow: hidden;
}

.file-preview-card .preview-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(255, 255, 255, 0.55);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.file-preview-card .remove-file-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transition:
            opacity 0.2s ease,
            transform 0.2s ease,
            background-color 0.2s ease,
            border-color 0.2s ease,
            color 0.2s ease;
}

.file-preview-card .remove-file-btn:hover {
    background-color: #fff;
    border-color: #fff;
    color: var(--tblr-danger);
}

.file-preview-card .preview-image:hover .preview-overlay,
.file-preview-card .preview-image:hover .remove-file-btn {
    opacity: 1;
}

.file-preview-card .preview-image:hover .remove-file-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    background-color: #fff;
    border-color: #fff;
    color: var(--tblr-danger);
}

.file-preview-card .preview-image:hover .remove-file-btn:hover {
    background-color: var(--tblr-danger);
    border-color: var(--tblr-danger);
    color: #fff;
}
.clickable-row {
    cursor: pointer;
}

.hover-highlight {
    opacity: 0.3;
}
.hover-highlight:hover {
    opacity: 1;
}
.ts-dropdown .option.selected {
    background: var(--tblr-blue-lt);
    font-weight: 600;
}
.ts-control > input[type="text"][role="combobox"] {
    display: inline-block !important;
    height: 1.5em !important;
    min-height: 0 !important;
    max-height: 1.5em !important;
    line-height: 1.5 !important;
    padding: 0 !important;
    padding-left: 10px !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    vertical-align: baseline !important;
    box-sizing: content-box !important;
    width: auto !important;
    min-width: 1px !important;
    flex: 1 1 1px !important;
    background: transparent !important;
    cursor: pointer !important;
}
.avatar {
    box-shadow: var(--tblr-avatar-box-shadow),0 0 0 2px var(--tblr-card-bg, var(--tblr-bg-surface));
}