#mlm-user-table-wrapper {
    max-width: 100%;
    overflow-x: auto;
    margin-top: 20px;
}

#mlm-user-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

#mlm-user-table caption {
    font-size: 1.5em;
    margin-bottom: 10px;
    text-align: left;
    font-weight: bold;
}

#mlm-user-table th,
#mlm-user-table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}

#mlm-user-table th.sortable:hover {
    cursor: pointer;
    text-decoration: underline;
}

#mlm-pagination {
    text-align: right;
    margin-top: 10px;
}

#mlm-search {
    margin-bottom: 10px;
    display: block;
}

/* .mlm-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
} */

.mlm-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    width: 500px;
    border-radius: 8px;
    position: relative;
}

/* .mlm-close {
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
} */
th.sortable {
    position: relative;
}

th.sortable::after {
    content: '';
    position: absolute;
    right: 8px;
}

th.sortable.sorted-asc::after {
    content: '▲';
}

th.sortable.sorted-desc::after {
    content: '▼';
}
.sortable { cursor: pointer; }
.sortable.asc::after { content: " \25B2"; }
.sortable.desc::after { content: " \25BC"; }
/* .mlm-modal {
    display: none;
    position: fixed;
    top: 20%;
    left: 30%;
    width: 40%;
    background: #fff;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 9999;
}
.mlm-close {
    float: right;
    cursor: pointer;
    font-weight: bold;
    color: red;
} */
.mlm-container{
    max-width: 1200px !important;
}
.mlm-container .leader-status-btn {
    border-radius: 96px;
    width: auto;
    min-width: 80px;
    height: 30px;
    line-height: 16px;
    padding: 0;
}
.mlm-container .leader-status-btn.Active{    
    background-color: #000;
}
.mlm-container .leader-status-btn.Inactive{    
    background-color: #f64949;
}
.mlm-container .leader-edit-btn {
    background-color: transparent;
    color: #000;
    font-weight: 600;
    padding: 0;
    width: 100%;
    line-height: 16px;
}
#mlm-user-table th, #mlm-user-table td {
    border: 1px solid #ccc;
    /* padding: 10px; */
    /* text-align: left; */
    padding: 8px;
    /* border: 1px solid #ccc; */
    text-align: left;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    position: relative;
}
#mlm-user-table th:nth-child(1){
    width: 10% !important;
}
#mlm-user-table th:nth-child(2){
    width: 10% !important;
}
#mlm-user-table th:nth-child(3){
    width: 12% !important;
}
#mlm-user-table th:nth-child(4){
    width: 17% !important;
}#mlm-user-table th:nth-child(5){
    width: 17% !important;
}
#mlm-user-table th:nth-child(6){
    width: 12% !important;
}#mlm-user-table th:nth-child(7){
    width: 12% !important;
}
#mlm-user-table th:nth-child(8){
    width: 5% !important;
}#mlm-user-table th:nth-child(9){
    width: 5% !important;
}
.action-dropdown-menu  {
    display: none;
    position: absolute;
    margin-top: 5px;
    background-color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    list-style: none;
    padding: 10px;
    border: 1px solid #ddd;
    z-index: 1000;
    right: 40px;
    border-radius: 10px;
    text-align: center;
}
.action-dropdown-menu-head  {
    /* text-align: left; */
}
  

  
.action-dropdown-menu li a:hover,
.action-dropdown-menu li a:focus {
    background-color: #f1f1f1;
    outline: none;
    color:black;
}
.action-dropdown-menu li{
    color:black;
}
  
.action-dropdown-menu {
    display: block;
}
.action-dropdown-menu .leader-status-btn{
    border-radius: 0px;
    width: 100%;
    height: auto;

}

/* #mlm-user-table tbody tr:first-child .action-dropdown-menu {
    display: block !important;
} */
#mlm-user-table thead th {
    text-align: center;
}

/*--Modal style -- */

.modal-action-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

 
.modal-action {
    background-color: #fff;
    border-radius: 8px;
    padding: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    color: #000;
}

  
.modal-action-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}
.modal-action h2.modal-action-title {
    font-size: 1.25rem;
    color: #000;
    margin-bottom: 0;
}
.modal-action-desc {
    font-size: 0.9rem;
    color: #555;
    margin-top: 4px;
}
.modal-action .close-button {
    background: none ;
    background-color: transparent !important;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    color: #000;
}
.modal-action .form-group {
    margin-bottom: 16px;
}
.modal-action .form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.modal-action .form-col {
    flex: 1;
    min-width: 200px;
}
.modal-action label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}
/* .modal-action select */
.modal-action input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px !important;
}

 
.modal-action .status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
}
.modal-action  .status-text p {
    margin: 2px 0;
    font-size: 0.9rem;
}

 
.modal-action .toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
}
.modal-action  .toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0;
    right: 0; bottom: 0;
    background-color: #ccc;
    border-radius: 24px;
    transition: 0.4s;
}
.modal-action .slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
}
.modal-action .toggle-switch input:checked + .slider {
    background-color: #000;
}
.modal-action .toggle-switch input:checked + .slider::before {
    transform: translateX(20px);
}

 
.modal-action-footer {
    text-align: right;
    margin-top: 20px;
}
.modal-action .save-btn {
    padding: 10px 20px;
    background-color: black;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

@media (max-width: 500px) {
    .modal-action .form-row {
      flex-direction: column;
    }
}
.select2-container {
    width: 100% !important;
    max-width: 100%;
    font-size: 14px;
}

.select2-selection--multiple {
    min-height: 38px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 4px;
}

.select2-selection__choice {
    background-color: #0073aa;
    border: none;
    color: white;
    padding: 2px 6px;
    margin-top: 4px;
}
.select2-container {
    width: 100% !important;
}
.select2-container--default .select2-selection--multiple {
    min-height: 38px;
    padding: 4px 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #fff;
}
.action-dropdown-menu li a {
    display: block;
    padding: 10px 14px !important;
    text-decoration: none;
    color: #333;
}