.ck-editor__editable,
textarea {
    min-height: 150px;
}

.datatable {
    width: 100% !important;
}

.dataTables_length,
.dataTables_filter,
.dt-buttons {
    margin-bottom: 0.333em;
    margin-top: .2rem;
}

.dataTables_filter {
    margin-right: .2rem;
}

.dt-buttons .btn {
    margin-left: 0.333em;
    border-radius: 0;
}

.table.datatable {
    box-sizing: border-box;
    border-collapse: collapse;
}

table.dataTable thead th {
    border-bottom: 2px solid #c8ced3;
}

.dataTables_wrapper.no-footer .dataTables_scrollBody {
    border-bottom: 1px solid #c8ced3;
}

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

.select2-selection__rendered {
    padding-bottom: 5px !important;
}

.has-error .invalid-feedback {
    display: block !important;
}

.btn-info,
.badge-info {
    color: white;
    background-color: #000000;
}

table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
    background-image: none;
}

.sidebar .nav-item {
    cursor: pointer;
}

.btn-default {
    color: #23282c;
    background-color: #f0f3f5;
    border-color: #f0f3f5;
}

.btn-default.focus,
.btn-default:focus {
    box-shadow: 0 0 0 .2rem rgba(209, 213, 215, .5);
}

.btn-default:hover {
    color: #23282c;
    background-color: #d9e1e6;
    border-color: #d1dbe1;
}

.btn-group-xs > .btn,
.btn-xs {
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

.searchable-title {
    font-weight: bold;
}
.searchable-fields {
    padding-left:5px;
}
.searchable-link {
    padding:0 5px 0 5px;
}
.searchable-link:hover   {
    cursor: pointer;
    background: #eaeaea;
}
.select2-results__option {
    padding-left: 0px;
    padding-right: 0px;
}
/* Pagination */
.w-5{width: 25px;}
.leading-5{margin-top: 10px;}
button.close {
    margin-left: 0 !important;
    background-color: red;
    color: #ffffff;

}
.fc-event.fc-event-start.fc-event-end.fc-event-future.fc-daygrid-event.fc-daygrid-dot-event {
  background-color: #0d6efd;
}
#totalExpenses code {
    color: #fff;
}

#totalIncomes code {
    color: #fff;
}
/* ========================================
   Expense Manager Preloader
   ======================================== */

/* Override the book preloader */
.preloader-book {
    display: none !important;
}

.expense-preloader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1010101011;
}

/* Dollar sign with pulse animation */
.expense-loader-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #0652DD;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
    animation: pulse-ring 1.5s ease-out infinite;
    position: relative;
    margin: 0 auto 20px auto;
}

.expense-loader-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    animation: ripple 1.5s ease-out infinite;
}

.expense-loader-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    animation: ripple 1.5s ease-out infinite 0.5s;
}

/* Dollar sign spinning */
.expense-loader-icon span {
    animation: flip-spin 2s ease-in-out infinite;
    display: inline-block;
}

/* Falling coins animation container */
.expense-coins {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.expense-coin {
    width: 12px;
    height: 12px;
    background: linear-gradient(145deg, #FFD700 0%, #FFA500 100%);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.5);
    animation: coin-bounce 1.4s ease-in-out infinite;
}

.expense-coin:nth-child(1) {
    animation-delay: 0s;
}

.expense-coin:nth-child(2) {
    animation-delay: 0.2s;
}

.expense-coin:nth-child(3) {
    animation-delay: 0.4s;
}

.expense-coin:nth-child(4) {
    animation-delay: 0.6s;
}

.expense-coin:nth-child(5) {
    animation-delay: 0.8s;
}

/* Loading text */
.expense-loader-text {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin-top: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Keyframes */
@keyframes pulse-ring {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes flip-spin {

    0%,
    100% {
        transform: rotateY(0deg);
    }

    25% {
        transform: rotateY(180deg);
    }

    50% {
        transform: rotateY(360deg);
    }
}

@keyframes coin-bounce {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-15px) scale(1.1);
        opacity: 1;
    }
}

/* ========================================
   Floating Action Button (FAB)
   ======================================== */

.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.fab-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.fab-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.fab-button:active {
    transform: scale(0.95);
}

.fab-button .fab-icon {
    transition: transform 0.3s ease;
}

.fab-button.active .fab-icon {
    transform: rotate(45deg);
}

/* FAB Popup Menu */
.fab-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all 0.25s ease;
}

.fab-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.fab-menu::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: white;
    transform: rotate(45deg);
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.05);
}

.fab-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.fab-menu-item:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.fab-menu-item i {
    font-size: 20px;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

.fab-menu-item.expense-item i {
    color: #e74c3c;
}

.fab-menu-item.income-item i {
    color: #27ae60;
}

/* FAB Overlay */
.fab-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.fab-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .fab-container {
        bottom: 20px;
        right: 20px;
    }
    
    .fab-button {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
    
    .fab-menu {
        right: -10px;
        min-width: 180px;
    }
}