    .table {
    --bs-table-hover-bg: rgba(0, 0, 0, 0.02);
    width: 100%;
    overflow-x: auto;
}

.table th {
    border-top: none;
    font-weight: 500;
    color: #6c757d;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.table td {
    vertical-align: middle;
    color: #495057;
}

.dataTables_filter input {
    border-radius: 20px;
    border: 1px solid #dee2e6;
    padding: 8px 16px;
    margin-left: 8px;
    width: 100%;
    max-width: 250px;
}

.dataTables_length select {
    border-radius: 20px;
    border: 1px solid #dee2e6;
    padding: 8px 16px;
    width: 100%;
    max-width: 200px;
}

.page-link {
    border: none;
    color: #6c757d;
}

.page-item.active .page-link {
    background-color: #0F3525;
    border-color: #0F3525;
}

.custom-table {
    width: 100%;
    background: white;
    border-radius: 15px;
    max-width: 100%;
}

@media (min-width: 768px) {
    .custom-table {
        display: table;
    }
}

.custom-table thead {
    background-color: #0F3525;
    color: white;
}

.custom-table th {
    padding: 12px 15px;
    font-weight: 500;
    text-align: left;
    min-width: 80px;
}

.custom-table td {
    padding: 12px 15px;
    color: #666;
    min-width: 80px;
}

.custom-table tbody tr {
    border-bottom: 1px solid #f5f5f5;
}

.custom-table tbody tr:nth-child(even) {
    background-color: #f8f9ff;
}

.custom-table tbody tr:hover {
    background-color: #0f352528;
    cursor: pointer;
}

.search-box {
    margin-bottom: 20px;
}

.search-box input {
    border-radius: 20px;
    border: 1px solid #dee2e6;
    padding: 8px 16px;
    width: 100%;
    background-color: white;
}

.sortable {
    cursor: pointer;
    position: relative;
    padding-right: 20px !important;
}

.sortable i {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    opacity: 0.5;
}

.sortable:hover i {
    opacity: 1;
}

.sort-active {
    background-color: #7cb342;
}

.sort-active i {
    opacity: 1;
}

.custom-table th {
    text-align: center;
    vertical-align: middle;
}

.custom-table td {
    vertical-align: middle;
}

.total-row {
    background-color: #0F3525 !important;
    font-weight: bold;
    color: white;
}

.total-row td {
    color: white;
}

.custom-table thead tr:first-child th {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.custom-table thead th[rowspan="2"] {
    vertical-align: middle;
}

.alert {
    margin-bottom: 0;
    border: none;
    border-radius: 8px;
}

.alert-danger {
    background-color: #ffe8e8;
    color: #dc3545;
}

.alert-info {
    background-color: #0F3525;
    color: #0F3525;
}

.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
}

#wakafTable tbody tr td[colspan="8"] {
    padding: 2rem;
}

.btn-outline-primary {
    border-color: #0F3525;
    color: #0F3525;
}

.btn-outline-primary:hover {
    background-color: #0F3525;
    color: white;
}

#wakafTable tbody tr td a:hover {
    color: #0F3525 !important;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
}

.clickable-row td:not(.no-click) {
    cursor: pointer;
}

.clickable-row td:not(.no-click):hover {
    background-color: #e9ecef;
}

.no-click {
    cursor: default !important;
}

.clickable-row td.no-click:hover {
    background-color: inherit !important;
}

@media screen and (max-width: 767px) {
    .custom-table {
        display: block;
        width: 100%;
    }
    
    .custom-table thead {
        display: none;
    }
    
    .custom-table tbody {
        display: block;
        width: 100%;
    }
    
    .custom-table tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 1rem;
        background: #fff;
    }
    
    .custom-table td {
        display: block;
        text-align: right;
        padding: 0.5rem;
        border: none;
        position: relative;
        padding-left: 50%;
    }
    
    .custom-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        text-align: left;
        font-weight: bold;
    }
    
    .total-row td {
        background: #f8f9fa;
        font-weight: bold;
    }
    
    .clickable-cell {
        cursor: pointer;
    }
    
    .search-box {
        margin-bottom: 1rem;
    }
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    scroll-behavior: smooth;
}

@media screen and (max-width: 1200px) {
    .custom-table th,
    .custom-table td {
        padding: 10px;
        font-size: 0.9rem;
    }
}