.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;
}
/* ========================================
   POS 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;
}

/* POS icon 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: #667eea;
    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;
}

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

/* Dots 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;
    }
}

/* ========================================
   Responsive data tables -> stacked cards
   Add class="table-mobile-cards" to a <table>,
   and data-label="..." to each <td> (skip cells
   using .cell-center / .cell-left / .cell-actions).
   ======================================== */
@media (max-width: 767.98px) {
    .table-mobile-cards thead {
        display: none;
    }
    .table-mobile-cards,
    .table-mobile-cards tbody,
    .table-mobile-cards tr,
    .table-mobile-cards td {
        display: block;
        width: 100%;
    }
    .table-mobile-cards tr {
        margin-bottom: 1rem;
        border: 1px solid #e9ecef;
        border-radius: 10px;
        padding: 0.75rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    .table-mobile-cards td {
        border: none;
        padding: 0.4rem 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        text-align: right;
    }
    .table-mobile-cards td[data-label]::before {
        content: attr(data-label);
        font-weight: 600;
        color: #6c757d;
        text-align: left;
        flex-shrink: 0;
    }
    .table-mobile-cards td.cell-center {
        justify-content: center;
    }
    .table-mobile-cards td.cell-center::before {
        content: none;
    }
    .table-mobile-cards td.cell-left {
        text-align: left;
    }
    .table-mobile-cards td.cell-actions {
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .table-mobile-cards td.cell-actions form {
        display: inline-flex;
    }
    .table-mobile-cards td.cell-actions .btn {
        flex: 1;
        padding: 0.5rem;
    }
}
/* ===== Sidebar menu (partials/menu.blade.php) ===== */
.side-menu-area { margin-top: 1rem; }
.sm-nav { padding: 0 .75rem; }
.sm-nav > li { margin-bottom: .3rem; }
.sm-nav > li > a,
.sm-nav > li > a:hover,
.sm-nav > li.active > a,
.sm-nav > li.menu-open > a {
    height: 48px;
    width: 100%;
    margin-left: 0;
    padding: 0 .9rem;
    border: 1.5px solid transparent;
    border-radius: 12px;
    color: #cbd5e1;
    font-size: 15.5px;
    font-weight: 500;
    background: none !important;
}
.sm-nav > li > a > span { flex: 1 1 auto; max-width: none; width: auto; }
.sm-nav .sm-ico { display: inline-flex; flex: 0 0 34px; max-width: 34px; width: 34px; color: #cbd5e1; }
.sm-nav .sm-ico svg { width: 22px; height: 22px; }
.sm-nav .sm-caret { flex: 0 0 auto; width: auto; max-width: none; margin-left: auto; font-size: 20px; color: #94a3b8; transition: transform .25s; }
.sm-nav > li.menu-open > a .sm-caret { transform: rotate(180deg); }

.sm-nav > li > a:hover { color: #fff !important; background: rgba(255, 255, 255, .05) !important; }
.sm-nav > li > a:hover .sm-ico { color: #fff; }

/* Current page */
.sm-nav > li.active:not(.treeview) > a {
    color: #fff;
    font-weight: 600;
    background: linear-gradient(100deg, #1b1f4b 0%, #2c2f78 45%, #24506d 100%) !important;
    border-color: rgba(148, 163, 184, .35);
    box-shadow: 0 6px 18px rgba(15, 23, 42, .45);
}
.sm-nav > li.active:not(.treeview) > a .sm-ico { color: #fff; }

/* Expanded dropdown */
.sm-nav > li.menu-open > a,
.sm-nav > li > a:focus-visible {
    color: #fff;
    border-color: #6fb3c8;
    background: rgba(15, 23, 42, .55) !important;
    box-shadow: 0 0 0 1px rgba(111, 179, 200, .15), 0 8px 22px rgba(0, 0, 0, .3);
    outline: none;
}
.sm-nav > li.menu-open > a .sm-ico { color: #fff; }

.sm-nav li .treeview-menu { margin: .35rem 0 .5rem 2.6rem; border-left: 1px solid rgba(148, 163, 184, .2); }
.sm-nav li .treeview-menu li a { height: 36px; padding-left: .9rem; color: #94a3b8; font-size: 14.5px; }
.sm-nav li .treeview-menu li a:hover,
.sm-nav .treeview-menu > li.active > a { color: #fff; }
.sm-nav .treeview-menu > li.active > a { font-weight: 600; box-shadow: inset 2px 0 0 #6fb3c8; }

.sm-nav .sm-divider { height: 1px; margin: .9rem .25rem; background: rgba(148, 163, 184, .2); }
.sm-nav .sm-logout > a,
.sm-nav .sm-logout > a .sm-ico,
.sm-nav .sm-logout > a:hover,
.sm-nav .sm-logout > a:hover .sm-ico { color: #f19a9a !important; }

/* Collapsed sidebar: icons only */
.menu-collasped-active.flapt-page-wrapper .sm-nav { padding: 0 .4rem; }
.menu-collasped-active.flapt-page-wrapper .sm-nav .sm-caret,
.menu-collasped-active.flapt-page-wrapper .sm-nav .sm-divider { display: none; }
.menu-collasped-active.flapt-page-wrapper .sm-nav li a .sm-ico { margin-left: auto; flex-basis: 24px; width: 24px; }
.menu-collasped-active.flapt-page-wrapper.sidemenu-hover-active .sm-nav .sm-caret { display: block; }
.menu-collasped-active.flapt-page-wrapper.sidemenu-hover-active .sm-nav .sm-divider { display: block; }
.menu-collasped-active.flapt-page-wrapper.sidemenu-hover-active .sm-nav li a .sm-ico { margin-left: 0; flex-basis: 34px; width: 34px; }
