.trimmed-line {
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mlm-form {
    border: 1px solid #ccc;
    border-radius: 5px;
}

.mlm-form .form-header {
    padding: 15px;
    border-bottom: 1px solid #ccc;
}

.mlm-form .form-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 25px;
}

.mlm-form label {
    font-size: 15px;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

.mlm-form :is(input, select, textarea) {
    width: 100% !important;
    height: 45px !important;
    font-size: 15px;
    background: #fff;
    border: 1px solid #ccc !important;
    border-radius: 5px !important;
}

.mlm-form .input-info {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

.mlm-form .input-wrapper {
    position: relative;
}

.mlm-form .input-wrapper .additional-box {
    position: absolute;
    right: 1px;
    top: 1px;
    min-width: 40px;
    height: calc(100% - 2px);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 15px;
    color: #555;
    background: #efefef;
    border-left: 1px solid #ccc;
    pointer-events: none;
}

.mlm-button {
    padding: 6px 12px !important;
    font-size: 16px !important;
    color: #fff !important;
    background-color: var(--e-global-color-primary) !important;
    border: none !important;
    border-radius: 8px !important;
}

.mlm-form .mlm-button.button-margin {
    margin-top: 10px;
}

.form-details .row {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    font-size: 15px;
    border-bottom: 1px solid #ccc;
}

.mlm-flex-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

.mlm-flex-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mlm-flex-nowrap {
    flex-wrap: nowrap;
}

.error {
    width: max-content;
    padding: 5px 8px;
    color: #fff !important;
    background: rgb(226, 0, 0) !important;
    border-radius: 3px;
}

.success {
    width: max-content;
    padding: 5px 8px;
    color: #fff !important;
    background: rgb(0, 119, 54) !important;
    border-radius: 3px;
}

/* Withdrawal status indicators */
.mlm-status {
    padding: 4px 8px;
    border-radius: 3px;
    font-weight: bold;
}

.mlm-status.pending {
    background: #fff8e5;
    color: #8a6d3b;
}

.mlm-status.approved {
    background: #e5f7ee;
    color: #2a7a2a;
}

.mlm-status.rejected {
    background: #fbe7e7;
    color: #a00;
}

/* Admin meta boxes */
.mlm-withdrawal-details p {
    margin: 1em 0;
    font-size: 14px;
}

.mlm-withdrawal-actions .button {
    width: 100%;
    margin-bottom: 5px;
    text-align: center;
}

/* Direct Referrals Overview */
.mlm-direct-referrals-overview table .mlm-inactive-user-row {
    background: #ff00002b;
}

/* PLAN LISTING */
.plans-list-wrapper {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
}

.plans-list-wrapper .plan-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 30%;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #e6e6e6;
}

.plans-list-wrapper .plan-card .header {
    display: flex;
    flex-direction: column;
}

.plans-list-wrapper .plan-card .header .plan-icon {
    max-width: 100px;
    margin: auto;
}

.plans-list-wrapper .plan-card .header .details {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
}

.plans-list-wrapper .plan-card .header .details .title {
    margin: 0;
    font-size: 20px;
}

.plans-list-wrapper .plan-card .header .details .tags {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    gap: 5px;
}

.plans-list-wrapper .plan-card .header .details .tag {
    padding: 6px 8px;
    font-size: 11px;
    line-height: 1;
    color: #19C09A;
    background-color: #19C09A1A;
    border-radius: 50px;
}

.plans-list-wrapper .plan-card .header .details .tag:nth-child(2) {
    color: #F4B61A;
    background-color: #F4B61A1A;
}

.plans-list-wrapper .plan-card .header .mlm-button.plan-action-btn {
    padding: 6px !important;
    font-size: 11px !important;
    white-space: nowrap;
}

.plans-list-wrapper .plan-card .content {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    gap: 10px;
}

.plans-list-wrapper .plan-card .content .plan-feature {
    width: 33%;
    text-align: center;
}

.plans-list-wrapper .plan-card .content .plan-feature .value {
    display: block;
    font-size: 15px;
    font-weight: 600;
}

.plans-list-wrapper .plan-card .content .plan-feature .title {
    display: block;
    font-size: 12px;
    line-height: 1;
    color: #6B758F;
}

.plans-list-wrapper .plan-card .footer {
    margin-top: 20px;
}

.plans-list-wrapper .plan-card .footer .row {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
}

.plans-list-wrapper .plan-card .footer .row h4 {
    margin: 0;
    font-size: 13px;
    line-height: 1;
    color: #6B758F;
}

.plans-list-wrapper .plan-card .footer .row span {
    font-size: 14px;
    line-height: 1;
    color: #000;
}

.plans-list-wrapper .plan-card .footer .profit-meter {
    position: relative;
    width: 100%;
    height: 18px;
    margin-top: 6px;
    background: #efefef;
    border-radius: 50px;
    overflow: hidden;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.plans-list-wrapper .plan-card .footer .profit-meter::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 98%;
    height: 100%;
    background-color: var(--e-global-color-primary);
}

@media only screen and (max-width: 768px) {
    .plans-list-wrapper .plan-card {flex: 50%;}
}

@media only screen and (max-width: 500px) {
    .plans-list-wrapper .plan-card {flex: 100%;}

    .plans-list-wrapper .plan-card .header {
        flex-flow: row nowrap;
        align-items: center;
    }

    .plans-list-wrapper .plan-card .header .plan-icon {
        width: 75px;
        margin: 0 10px 0 0;
    }

    .plans-list-wrapper .plan-card .header .details {flex: 1;}
}


/* MODAL */
.mlm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.mlm-modal {
    background: #fff;
    padding: 20px;
    width: 100%;
    max-width: 700px;
    border-radius: 8px;
}

.mlm-modal-title {
    font-size: 24px;
}

.mlm-modal-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
}

.mlm-button.secondary {
    color: var(--e-global-color-text) !important;
    background-color: #ccc !important;
}

.success {
    color: green;
}

.error {
    color: red;
}

/* PLAN MODAL */
#mlm-plan-modal .mlm-modal-summary {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

#mlm-plan-modal .mlm-modal-summary>p {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

#mlm-plan-modal .mlm-modal-summary>p:hover {
    color: #fff;
    background: #000;
    border-color: #000;
}

#mlm-plan-modal form {
    margin-top: 10px;
}


/* Form LAODER */
form:has(.loader) {
    position: relative;
}

form .loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: gray;
    opacity: .5;
    z-index: -1;
    display: none;
    animation: loaderBg 1s infinite;
    pointer-events: none;
}

form .loader.active {
    z-index: 9999;
    display: block;
    pointer-events: unset;
}

@keyframes loaderBg {
    from {opacity: 0.5;}
    to {opacity: 0.3;}
}

/* KYC FORM */
#mlm-kyc-form .status-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: center;
}

#mlm-kyc-form .status-box h3 {margin:10px 0 0;}

#mlm-kyc-form .status-box svg {opacity: .5;}

#mlm-kyc-form .status-box.in-review :is(svg, h3) {color: var(--e-global-color-primary);}
#mlm-kyc-form .status-box.approved :is(svg, h3) {color: rgb(0, 163, 0);}

/* REFERRAL LINK BAR */
.mlm-referral-link-bar {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 6px 8px 6px 10px;
    border: 1px solid #E6E6E6;
    border-radius: 5px;
}

.mlm-referral-link-bar .ref-link {font-size: 15px;}

.mlm-referral-link-bar .mlm-copy-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 !important;
    color: var(--e-global-color-primary) !important;
    border: none !important;
    background: transparent !important;
}


/* INVEST LOG */
.mlm-invest-log {
    display: flex;
    flex-flow: row wrap;
    align-items: stretch;
    gap: 25px;
}

.mlm-invest-log .log-card {
    width: 47%;
    min-height: 180px;
    padding: 20px;
    border: 1px solid #E6E6E6;
    border-radius: 10px;
}

.mlm-invest-log .log-card .header {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
}

.mlm-invest-log .log-card .header .title {
    font-size: 25px;
    font-weight: 600;
}

.mlm-invest-log .log-card .card-date {
    font-size: 14px;
    line-height: 17px;
    opacity: .8;
}

.mlm-invest-log .log-card .content {margin: 20px 0;}

.mlm-invest-log .log-card .content .title {opacity: .6;}
.mlm-invest-log .log-card .content .value {font-size: 18px;}

.mlm-invest-log .log-card .footter {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-end;
    align-items: center;
}

@media only screen and (max-width: 500px) {
    .mlm-invest-log .log-card {width: 100%;}
}


/* TABLES */
.mlm-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.mlm-table {text-align: center;}

.mlm-table thead tr th {
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 400;
    color: var(--e-global-color-primary);
    background: var(--e-global-color-secondary);
    border: 1px solid hsla(0, 0%, 50%, .502);
    line-height: 1.5;
    border-block-start: 1px solid hsla(0, 0%, 50%, .502);
    border-bottom: 1px solid #f6f6f6 !important;
}

.mlm-table tbody tr td {
    color: var(--e-global-color-text);
}

/* -- Scheduled Invest Log Table */
.mlm-scheduled-invest-log .mlm-table :is(thead tr th, tbody tr td) {text-align: center;}