.profile__content,
.profile__content .main-table,
.profile__content .table-responsive {
    min-width: 0;
    max-width: 100%;
}

.dataTables_wrapper {
    background: #f7f3e8;
    border: 1px solid #ead9a8;
    border-radius: 16px;
    padding: 16px;
    max-width: 100%;
    overflow: hidden;
}

.dataTables_wrapper .datatable-toolbar,
.dataTables_wrapper .datatable-footer {
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
}

.dataTables_wrapper .datatable-toolbar {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.dataTables_wrapper .datatable-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    float: none !important;
    margin: 0;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    margin: 0;
    color: #5a6b86;
    font-size: 14px;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_length .form-select {
    border: 1px solid #ead9a8;
    border-radius: 10px;
    min-height: 42px;
    padding: 6px 12px;
    background: #fff;
    margin: 0 !important;
    width: auto !important;
    display: inline-block;
    min-width: 72px;
}

.dataTables_wrapper .dataTables_filter input {
    min-width: 220px;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus,
.dataTables_wrapper .dataTables_length .form-select:focus {
    border-color: #dbab33;
    outline: none;
    box-shadow: 0 0 0 3px rgba(219, 171, 51, 0.15);
}

.dataTables_wrapper table.dataTable {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    background: #fff;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #ead9a8;
    border-radius: 12px;
    table-layout: auto;
    box-sizing: border-box;
}

.dataTables_wrapper table.dataTable thead th {
    background: #fbf8ef;
    border-bottom: 1px solid #ead9a8;
    color: #0c4745;
    font-weight: 600;
    white-space: normal;
    padding: 12px 14px;
    vertical-align: middle;
}

.dataTables_wrapper table.dataTable tbody td {
    padding: 12px 14px;
    vertical-align: middle;
    border-color: #f1ead0;
    white-space: normal;
    word-break: break-word;
}

.dataTables_wrapper table.dataTable thead th:last-child,
.dataTables_wrapper table.dataTable tbody td:last-child {
    white-space: nowrap;
    width: 1%;
}

.dataTables_wrapper table.dataTable tbody tr:last-child td {
    border-bottom: 0;
}

.dataTables_wrapper .dataTables_info {
    color: #5a6b86;
    font-size: 14px;
    padding: 0;
}

.dataTables_wrapper .dataTables_paginate .pagination {
    margin-bottom: 0;
}

.dataTables_wrapper .dataTables_paginate .page-link {
    color: #292d32;
    border-color: #ead9a8;
}

.dataTables_wrapper .dataTables_paginate .page-item.active .page-link {
    background-color: #dbab33;
    border-color: #dbab33;
    color: #fff;
}

.table-actions-dropdown {
    position: relative;
    display: inline-block;
}

.table-actions-dropdown .dropdown-menu {
    z-index: 2050;
    min-width: 180px;
    border-radius: 12px;
    border: 1px solid #ead9a8;
    background: #fff;
    padding: 6px;
    --bs-dropdown-bg: #fff;
    --bs-dropdown-link-color: #0c4745;
    --bs-dropdown-link-hover-color: #0c4745;
    --bs-dropdown-link-hover-bg: #f7f3e8;
    --bs-dropdown-link-active-color: #0c4745;
    --bs-dropdown-link-active-bg: #f7f3e8;
}

.table-actions-dropdown .table-actions-toggle,
.dataTables_wrapper .table-actions-dropdown .table-actions-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 6px 12px;
    border: 1px solid #0c4745 !important;
    border-radius: 10px;
    background: #fff !important;
    color: #0c4745 !important;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.2;
}

.table-actions-dropdown .table-actions-toggle span,
.table-actions-dropdown .table-actions-toggle i,
.table-actions-dropdown .table-actions-toggle .bi {
    color: #0c4745 !important;
}

.table-actions-dropdown .table-actions-toggle:hover,
.table-actions-dropdown .table-actions-toggle:focus,
.table-actions-dropdown .table-actions-toggle[aria-expanded="true"] {
    background: #f7f3e8 !important;
    color: #0c4745 !important;
}

.table-actions-dropdown .dropdown-item,
.dataTables_wrapper .table-actions-dropdown .dropdown-item {
    display: flex !important;
    align-items: center;
    gap: 8px;
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: transparent !important;
    color: #0c4745 !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    padding: 8px 12px;
    text-align: start;
    white-space: nowrap;
}

.table-actions-dropdown .dropdown-item:hover,
.table-actions-dropdown .dropdown-item:focus,
.table-actions-dropdown .dropdown-item:active {
    background: #f7f3e8 !important;
    color: #0c4745 !important;
}

.table-actions-dropdown .dropdown-item.text-danger,
.table-actions-dropdown .dropdown-item.text-danger:hover,
.table-actions-dropdown .dropdown-item.text-danger:focus {
    color: #b42318 !important;
}

.table-actions-dropdown .dropdown-item.disabled,
.table-actions-dropdown .dropdown-item:disabled {
    color: #9a9a9a !important;
    opacity: 0.7;
}

.table-actions-dropdown .dropdown-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: inherit !important;
}

.table-actions-dropdown .dropdown-item svg path[stroke] {
    stroke: currentColor !important;
}

.table-actions-dropdown .dropdown-item svg path:not([fill="none"]):not([fill="transparent"]) {
    fill: currentColor;
}

.table-actions-dropdown .dropdown-item .table-actions-label {
    color: inherit !important;
}

.main-table .table-responsive:has(.dataTable) {
    overflow: hidden;
}

html[dir="rtl"] .dataTables_wrapper .dataTables_filter input {
    margin: 0 !important;
}

@media (max-width: 767px) {
    .dataTables_wrapper .datatable-toolbar {
        flex-wrap: wrap !important;
    }

    .dataTables_wrapper .dataTables_filter input {
        min-width: 160px;
        width: 100%;
    }
}
