/*
 * Proprietary and Confidential. Unauthorized reproduction
 *  of this file via any medium is strictly prohibited.
 *
 * Copyright (c) AssistBig 2025 - All Rights Reserved.
 *
 * @Author: Scott Young < admin@assistbig.com >
 * @Build: A0.45
 */

@keyframes fade-in {
    from {
        opacity: 0
    }
    to {
        opacity: 1
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.tooltip-inner {
    text-align: left !important;
    white-space: normal;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.375rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 250px;
}

table {
    border-collapse: collapse;
    width: 100%;
}

.btn-group-xs > .btn.btn-icon,
.btn.btn-icon.btn-xs {
    height: calc(1.5em + 0.7rem + 2px);
    width: calc(1.5em + 0.7rem + 2px)
}

.text-orange {
    color: #ff7700 !important;
}


.bg-light-primary.odd {
    background-color: var(--bs-primary-light) !important;
}

.odd {
    background-color: var(--bs-app-sidebar-light-bg-color) !important;
}

.even {
    background-color: var(--bs-app-bg-color) !important;
}

.no-sort::after,
.no-sort::before {
    display: none !important;
}

.no-sort {
    pointer-events: none !important;
    cursor: default !important;
}

.dataTables_empty {
    padding: 1rem !important;
}

#spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    font-size: 3rem;
    height: 5rem;
    width: 5rem;
    z-index: 26000;
}

#block-screen {
    position: absolute;
    left: 0;
    top: 0;
    background: #000;
    width: 100%;
    min-height: 100%;
    opacity: 0.7;
    z-index: 25000;
    display: none;
    pointer-events: none;
}

.app-engage {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 5;
    padding-right: 12px;
}

.app-preferences-toggle {
    position: fixed;
    z-index: 105;
    bottom: 75px;
    right: 12px;
}

.grid.v-center {
    align-items: center;
}

.grid.half {
    grid-template-columns: 1fr 1fr;
}

.grid.third {
    grid-template-columns: 1fr 1fr 1fr;
}

.grid {
    display: grid;
    grid-column-gap: 1.5rem;
    grid-row-gap: 1.5rem;
}

.entity-list-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: rgba(0, 0, 0, 0);
    border: 0;
    width: 100%;
    position: relative;
    word-break: break-word;
}

.entity-list-item-children {
    padding: 16px 24px;
}

#searchQuery {
    border-radius: 2rem;
    padding: 1rem 2rem;
}

#search_form_searchQuery {
    border-radius: 0.5rem 0 0 0.5rem;
}

#search_form_searchQuery.form-control {
    margin-left: 1rem !important;
}

#m-form__help, #m-form__help-note {
    padding: 0 0 0.4rem 0;
}

.menu-item.active > .menu-link > .menu-title {
    font-weight: bold;
    color: #0053c1 !important;
}

#aside_right {
    position: fixed;
    z-index: 99;
    right: 7rem;
    top: var(--bs-app-header-height);
    margin-top: 5rem;
    width: 32rem;
}

#header_wrapper {
    margin-top: 0.25rem !important;
}

.select2.select2-container {
    min-width: 100%;
}

[data-bs-theme="dark"] h1 {
    color: burlywood !important;
}

[data-bs-theme="dark"] h2 {
    color: darkcyan !important;
}

[data-bs-theme="dark"] h3 {
    color: steelblue !important;
}

[data-bs-theme="dark"] .text-dark {
    color: antiquewhite !important;
}

.modal-body {
    max-height: 70vh;
}

.pin-input {
    width: 40px;
    height: 40px;
    text-align: center;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.3s;
}

.pin-input:focus {
    border-color: #007bff;
    outline: none;
}

.pin-input-container {
    margin-top: 20px;
}

.invalid-feedback {
    display: block !important;
    margin: .25rem 0 0 !important;
}

.swal2-popup .swal2-title {
    font-weight: 700;
    font-size: 1.75rem;
}

.nondescript {
    color: var(--bs-text-secondary) !important;
    letter-spacing: 0.25rem !important;
}

/* Corner Ribbon */
.ribbon {
    position: absolute;
    z-index: 10;
    overflow: hidden;
    text-align: center;
}

.ribbon span {
    position: absolute;
    display: block;
    padding: 5px 0;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    transform: rotate(45deg);
    font-size: 12px;
}

.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0.5rem 0;
}

.pagination span,
.pagination span a {
    padding: 0.5rem 0.9rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Links */
.pagination span a {
    color: #0d6efd;
    background-color: #fff;
}

.pagination span a:hover {
    background-color: #e9ecef;
    text-decoration: none;
}

/* Current page */
.pagination .current {
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Disabled (optional if using first/prev/next/last) */
.pagination .disabled {
    color: #adb5bd;
    background-color: #f8f9fa;
    border-color: #dee2e6;
    cursor: not-allowed;
}

@media (max-width: 576px) {
    .pagination span,
    .pagination span a {
        font-size: 0.75rem;
        padding: 0.4rem 0.65rem;
    }
}