/**
 * LD Dashboard Earnings Styles
 *
 * Withdraw, commission, earnings, and payment-related styles.
 *
 * @package Ld_Dashboard
 * @since 7.5.0
 */

/* Withdraw tab */

.ld-dashboard-add-withdraw-method-head-content {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 20px;
}

.ld-dashboard-withdraw-method-container {
    display: flex;
    align-items: center;
    margin-left: -10px;
    margin-right: -10px;
    margin-bottom: 30px;
}

.ld-dashboard-withdraw-method-single {
    align-items: center;
    display: flex;
    padding: 13px;
    border-radius: var(--ld-border-radius);
    border: 1px solid var(--ld-border-color);
    background: var(--ld-white-bg);
    transition: all 0.3s;
    margin: 0 1%;
    width: 31.33%;
    overflow: hidden;
    position: relative;
}

.ld-dashboard-withdraw-method-single .ld-dashboard-withdraw-method-content {
    padding-left: 15px;
    font-size: 13px;
    line-height: 18px;
    color: #696969;
}

.ld-dashboard-withdraw-method-single span.ld-dashboard-withdraw-method-title {
    display: block;
    font-size: 16px;
    line-height: 22px;
    color: #000;
}

.ld-dashboard-withdraw-method-single input.ld-dashboard-withdraw-method-radio {
    height: 100%;
    width: 100%;
    border: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    -webkit-print-color-adjust: exact;
    cursor: pointer;
    transition: 300ms;
    left: 0;
    opacity: 0;
    position: absolute;
}

.ld-dashboard-withdraw-method-container .ld-dashboard-withdraw-method-single:hover {
    box-shadow: 0 10px 30px 0 rgba(94, 92, 154, 0.15);
    border: 1px solid #D9DDE4;
}

.ld-dashboard-withdraw-method-single:before,
.ld-dashboard-withdraw-method-single.ld-dashboard-withdraw-method-active::after {
    content: "";
    left: 0;
    top: 50%;
    height: 20px;
    width: 20px;
    border: 3px solid #cdcfd5;
    border-radius: 100%;
}

.ld-dashboard-withdraw-method-single.ld-dashboard-withdraw-method-active::after {
    left: 14px;
    position: absolute;
    top: 24px;
    border: 5px solid #3e64de;
    background: var(--ld-white-bg);
    height: 18px;
    width: 18px;
}

.ld-dashboard-withdraw-method-single.ld-dashboard-withdraw-method-active::before {
    border-color: #3e64de;
    box-shadow: 0 0px 0 5px #ebeffe;
}

.ld-dashboard-withdraw-method-fields {
    display: flex;
    margin: 0 0 20px;
    padding: 20px;
    background: var(--ld-white-bg);
    flex-wrap: wrap;
    border-radius: var(--ld-border-radius) !important;
    border: 1px solid var(--ld-border-color);
}

.ld-dashboard-withdraw-method-fields label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}

.ld-dashboard-withdraw-method-fields input[type=number],
.ld-dashboard-withdraw-method-fields input[type=text],
.ld-dashboard-withdraw-method-fields input[type=email],
.ld-dashboard-withdraw-method-fields input[type=url] {
    width: 100%;
    transition: 300ms;
    height: 45px;
    font-size: 15px;
    border-radius: var(--ld-border-radius) !important;
}

.ld-dashboard-withdraw-method-fields input[type="number"]:focus-visible,
.ld-dashboard-withdraw-method-fields input[type="text"]:focus-visible,
.ld-dashboard-withdraw-method-fields input[type=email]:focus-visible,
.ld-dashboard-withdraw-method-fields input[type=url]:focus-visible {
    box-shadow: none;
    outline: none;
}

.ld-dashboard-withdraw-method-fields small {
    color: #5b616f;
    font-size: 15px;
    margin: 10px 0 0;
    display: block;
}

.ld-dashboard-add-withdraw-method-form form#add_withdraw button#ldd_save_withdraw_method {
    border-radius: var(--ld-border-radius);
    font-size: 15px;
    padding: 12px 30px;
    height: auto;
    /* background: #156AE9;
    border-color: #156AE9; */
    color: #fff;
    border: none;
}

.ld-dashboard-withdrawal-content {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    padding: 20px;
    border-radius: var(--ld-border-radius);
    border: 1px solid #dcdfe5;
    background: var(--ld-white-bg);
    justify-content: space-between;
}

.ld-dashboard-withdraw-img-wrapper {
    width: 60px;
    padding: 10px;
    border-radius: 50%;
    margin-right: 20px;
    background: #bbd4ef;
    height: 60px;
    text-align: center;
}

span.ld-dashboard-withdraw-wallet-img.ldd-icon-wallet-2-line {
    font-size: 35px;
    line-height: 0;
    color: #000000;
}

span.ld-dashboard-withdraw-wallet-img.ldd-icon-wallet-2-line:before {
    margin: 0;
}

.ld-dashboard-current-balance {
    display: flex;
    align-items: center;
}

.current-balance {
    margin-right: 50px;
}

.current-balance span {
    font-size: 15px;
    font-weight: bold;
    color: #000;
}

.current-balance p {
    margin: 2px 0 0;
    color: #555;
    font-size: 14px;
}

button.ld-dashboard-withdraw-modal-btn {
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: var(--ld-border-radius);
    padding: 10px 20px;
    font-size: 15px;
}

.ld-dashboard-withdrawal-preference-content p {
    margin: 0 0 0 6px;
    font-size: 14px;
}

.ld-dashboard-withdrawal-preference-content {
    display: flex;
    padding: 18px 0;
    align-items: center;
}

.ld-dashboard-withdrawal-status-single.ld-dashboard-withdrawal-pending {
    padding: 4px 15px 5px;
    background: #fbefcb;
    border-radius: 50px;
    text-align: center;
    color: #cb8824;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid;
    display: inline-block;
    max-width: 100px;
    width: 100%;
}

.ld-dashboard-withdrawal-status-single.ld-dashboard-withdrawal-approved {
    padding: 4px 15px 5px;
    background: #d9fcdc;
    border-radius: 50px;
    text-align: center;
    color: #3ca845;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    max-width: 100px;
    width: 100%;
    border: 1px solid;
}

.ld-dashboard-withdrawal-status-single.ld-dashboard-withdrawal-rejected {
    background: #ffcece;
    padding: 4px 15px 5px;
    border-radius: 50px;
    text-align: center;
    color: #cf1616;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    max-width: 100px;
    width: 100%;
    border: 1px solid;
}

.ld-dashboard-bak-instructions {
    margin: 0 0px 8px 8px;
    font-size: 16px;
    width: 100%;
}

.ld-dashboard-add-withdraw-method-form .ld-dashboard-withdraw-messages {
    padding: 5px 12px;
    background: #eef1f4;
    font-size: 15px;
    /* border-left: 3px solid #156AE9; */
}


/*Withdrawal History*/

.ld-dashboard-withdrawal-history-wrapper {
    margin-top: 20px;
}

.ld-dashboard-withdrawal-history-head h4 {
    font-size: 18px;
}

.ld-dashboard-withdrawal-history-content-table {
    border: 1px solid #dcdfe5;
    border-radius: 6px;
    overflow: hidden;
}

.ld-dashboard-withdrawal-history-content-table table {
    margin: 0;
    border-radius: 6px;
    border: none;
    overflow: hidden;
    background: #f4f7f9;
}

.ld-dashboard-withdrawal-history-content-table th {
    padding: 12px 15px !important;
    background: #ebecee;
    font-size: 14px;
    font-weight: bold;
    text-align: left;
    border: none !important;
}

.ld-dashboard-withdrawal-history-content-table td {
    padding: 15px !important;
    font-size: 15px;
    border: none !important;
    line-height: 1;
}

.ld-dashboard-withdrawal-preference-content a {
    text-decoration: underline;
}

.ld-dashboard-withdrawal-history-content-table .ld-dashboard-withdrawal-list:nth-child(2n+2) {
    background: var(--ld-white-bg);
}

.ld-dashboard-withdrawal-history-content-table span.ld-dashboard-withdrawal-method-label {
    font-weight: bold;
}


/*Withdrawal PopUP*/

.ld-dashboard-withdrawal-pop-up-wrapper {
    position: fixed;
    z-index: -1;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100vh;
    transition: opacity 1s;
    left: 0;
    overflow: hidden;
    overflow-x: hidden;
    overflow-y: auto;
    transition: -webkit-transform .3s ease-in-out;
    transition: transform .3s ease-in-out;
    transition: transform .3s ease-in-out, -webkit-transform .3s ease-in-out;
}

.ld-dashboard-withdrawal-pop-up-section {
    background: var(--ld-white-bg);
    padding: 40px;
    border-radius: 10px;
    max-width: 600px;
    margin: -270px auto auto;
    width: 100%;
    max-height: 540px;
    top: 50%;
    z-index: 999999;
    position: relative;
    transition: -webkit-transform .3s ease-out;
    transition: transform .3s ease-out;
    transition: transform .3s ease-out, -webkit-transform .3s ease-out;
    -webkit-transform: translate(0, -25%);
    transform: translate(0, -25%);
}

.ld-dashboard-withdrawal-pop-up-wrapper.ld-dashboard-popup-active .ld-dashboard-withdrawal-pop-up-section {
    -webkit-transform: translate(0, 0);
    transform: translate(0, 0);
}

.ld-dashboard-withdrawal-popup-overlap {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    display: block;
    left: 0;
    top: 0;
    z-index: 99999;
}

.ld-dashboard-pop-up-details h4 {
    font-size: 22px;
    margin: 15px 0;
    line-height: 1.5;
}

.ld-dashboard-pop-up-details p {
    margin: 0;
    font-size: 15px;
}

.ld-dashboard-withdrawal-request-balance {
    display: flex;
    width: 100%;
    font-size: 15px;
    flex-wrap: wrap;
    margin: 20px 0 35px;
}

.ld-dashboard-request-balance {
    margin-right: 20px;
}

.ld-dashboard-request-balance strong {
    display: block;
    margin-top: 5px;
    font-size: 16px;
    color: #000;
}

.ld-dashboard-withdrawal-form-content {
    background: #f1f4f7;
    padding: 40px;
    margin: 0 -40px -40px;
    border-radius: 0 0 8px 8px;
}

.ld-dashboard-withdrawal-form-field-amount {
    position: relative;
    border-radius: 8px;
    background: var(--ld-white-bg);
    border: 1px solid #ddd;
}

.ld-dashboard-withdrawal-form-field-amount input.ld-dashboard-withdrawal-amount {
    width: 100%;
    border-radius: 8px;
    border: none !important;
    height: 40px;
    font-weight: bold;
    padding-left: 50px;
}

.ld-dashboard-withdrawal-form-field-amount input.ld-dashboard-withdrawal-amount:focus {
    box-shadow: none;
    outline: none;
}

.ld-dashboard-withdrawal-form-field-amount:before {
    content: "$";
    position: absolute;
    top: -1px;
    font-size: 20px;
    background: #cdcdcd;
    border-radius: 8px 0px 0px 8px;
    height: 42px;
    width: 40px;
    left: -1px;
    text-align: center;
    line-height: 40px;
    font-weight: bold;
}

.ld-dashboard-withdrawal-form-field .ld-dashboard-withdrawal-preference-content {
    font-weight: bold;
}

.ld-dashboard-withdrawal-form-submit-field {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

button.ld-dashboard-submit-withdrawal-request,
button.ld-dashboard-cancel-withdrawal-request {
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 8px;
    padding: 12px 30px;
    font-size: 15px;
}

button.ld-dashboard-cancel-withdrawal-request {
    background: #c3c5c7;
}

span.ld-dashboard-close-withdrawal-popup {
    position: absolute;
    right: -10px;
    top: -10px;
    cursor: pointer;
    font-size: 20px;
    color: #fff;
    padding: 5px;
    width: 35px;
    line-height: 1;
    text-align: center;
    height: 35px;
    background: #e00404;
    border-radius: 8px;
}

.ld-dashboard-no-withdrawal-history-wrapper {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 20px 50px;
}

.ld-dashboard-withdrawal-form-field label {
    font-weight: bold;
    font-size: 14px;
    margin: 0 0 5px;
    display: block;
}

.ld-dashboard-no-withdrawal-history-message {
    margin: 15px 0;
    font-size: 20px;
    color: #000;
}


/*Instructor Earning*/

h3.ld-dashboard-instructor-earning-title {
    position: relative;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--ld-heading-color);
    font-weight: bold;
    padding: 15px 25px;
    display: block;
    margin: 0;
    border-bottom: 1px solid var(--ld-border-color);
}

.ld-dashboard-instructor-earning-filter-wrapper ul.ld-dashboard-instructor-earning-filters-list {
    margin: 0px 0 15px !important;
    border-bottom: 1px solid var(--ld-border-color);
}

.ld-dashboard-instructor-earning-chart-wrapper {
    padding: 0 0 10px;
    width: 60%;
}

ul.ld-dashboard-instructor-earning-filters-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
}

ul.ld-dashboard-instructor-earning-filters-list li.ld-dashboard-instructor-earning-filters-link {
    margin: 0;
    width: 24.9%;
    text-align: center;
    transition: box-shadow .1s linear;
    padding: 12px 15px;
    font-size: 17px;
    cursor: pointer;
    margin-bottom: -1px;
}

ul.ld-dashboard-instructor-earning-filters-list li.ld-dashboard-instructor-earning-filters-link.filter-selected,
ul.ld-dashboard-instructor-earning-filters-list li.ld-dashboard-instructor-earning-filters-link:hover {
    /* box-shadow: inset 0 -3px 0 0 #156AE9; */
    position: relative;
}

.ld-dashboard-withdrawal-pending-msg {
    color: black;
    padding: 5px;
    background: #dbdbdb;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
}

.ld-dashboard-withdrawal-history-content-table {
    border: 1px solid #dcdfe5;
    border-radius: var(--ld-border-radius);
    overflow: hidden;
}

.ld-dashboard-withdrawal-history-content-table tr:nth-child(2n+2) {
    background: var(--ld-white-bg);
}

.ld-flex-wrap.ld-dashboard-top-courses-listing-head-title {
    justify-content: space-between;
}

.ld-dashboard-top-courses-listing-earnings {
    width: 40%;
    border: 1px solid var(--ld-border-color);
    padding: 0;
    border-radius: var(--ld-border-radius);
    background: rgba(242, 244, 246, 0.20);
}

.ld-flex-wrap.ld-dashboard-top-courses-listing-head-title {
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid var(--ld-border-color);
    line-height: 1;
}

.ld-dashboard-top-courses-listing {
    padding: 5px 0;
    line-height: 1;
}

.ld-dashboard-course-title {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    align-items: center;
    line-height: 1.2;
    font-size: 15px;
    padding: 10px 15px;
}

.ld-dashboard-top-courses-listing .ld-dashboard-no-data {
    padding: 10px;
    line-height: 1.3;
    font-size: 14px;
    color: red;
}


/* Earning Logs */

.ld-dashboard-earning-logs-head {
    margin: 0 0 30px;
}

.ld-dashboard-earning-logs-head::after {
    content: "";
    display: table;
    clear: both;
}

.ld-dashboard-earning-logs-head form[method="get"] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ld-dashboard-earning-logs-head .ld-dashboard-search-field .ld-dashboard-date-picker {
    height: 45px;
    float: left;
    border-radius: var(--ld-border-radius) !important;
}

.ld-dashboard-earning-logs-head .ld-dashboard-search-field .ld-dashboard-date-picker:first-child {
    margin-right: 10px;
}

.ld-dashboard-earning-logs-head .ld-dashboard-search-field {
    margin: 0;
    float: left;
    display: flex;
    width: 75%;
}

.ld-dashboard-search-field.ld-dashboard-export-btn {
    margin-right: 0;
    display: flex;
    width: 30%;
    justify-content: end;
    gap: 10px;
}

.ld-dashboard-earning-logs-head .ld-dashboard-search-field input[type="submit"],
.ld-dashboard-earning-logs-head .ld-dashboard-search-field a.button.ld-dashboard-export-csv {
    border: none;
    border-radius: var(--ld-border-radius);
    color: #fff;
    font-size: 15px;
    padding: 11px 25px;
    cursor: pointer;
    min-width: 80px;
    line-height: 1.2;
    transition: all 0.3s;
    display: inline-block;
}

.ld-dashboard-earning-logs-head .ld-dashboard-search-field input[type="submit"]:hover,
.ld-dashboard-earning-logs-head .ld-dashboard-search-field a.button.ld-dashboard-export-csv:hover {
    background: #1564bd;
}

.ld-dashboard-earning-logs-head .ld-dashboard-search-field a.button.ld-dashboard-export-csv {
    text-align: center;
}

.custom-learndash-pagination-nav {
    display: flex;
    margin-top: 20px;
    padding-left: 0;
    list-style: none;
    justify-content: flex-end;
    align-items: center;
}

.custom-learndash-pagination-nav .page-numbers {
    position: relative;
    display: block;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #dee2e6;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
    .custom-learndash-pagination-nav .page-numbers {
        transition: none;
    }
}

.custom-learndash-pagination-nav .page-numbers:hover {
    z-index: 2;
    color: #1564bd;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.custom-learndash-pagination-nav .page-numbers:focus {
    z-index: 3;
    color: #1564bd;
    background-color: #e9ecef;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.custom-learndash-pagination-nav .page-numbers:not(:first-child) {
    margin-left: -1px;
}

.custom-learndash-pagination-nav .page-numbers.current {
    z-index: 3;
    color: #fff;
    /* background-color: #156AE9;
    border-color: #156AE9; */
}

.custom-learndash-pagination-nav .page-numbers {
    padding: 0.375rem 0.75rem;
}

.custom-learndash-pagination-nav .page-numbers:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.custom-learndash-pagination-nav .page-numbers:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.ld-dashboard-instrcutor-earnings-data.ld-dashboard-withdrawal-history-content,
.ld-dashboard-instrcutor-earnings-data.ld-dashboard-withdrawal-history-content table {
    border-radius: var(--ld-border-radius);
}

.ld-dashboard-instrcutor-earnings-data.ld-dashboard-withdrawal-history-content th {
    padding: 16px 8px !important;
    line-height: 1.2;
}

.ld-dashboard-instrcutor-earnings-data.ld-dashboard-withdrawal-history-content td {
    padding: 15px 10px !important;
    line-height: 1.1;
}

.ld-dashboard-instrcutor-earnings-data.ld-dashboard-withdrawal-history-content tr:nth-child(2n+2) {
    background: var(--ld-white-bg);
}

.ld-dashboard-earning-logs-head .ld-dashboard-search-field select[name="payment-mode"] {
    margin-right: 0;
    margin-left: 10px;
    width: auto;
}

/* ==========================================================================
   My Earnings - Mobile Responsive
   ========================================================================== */

@media screen and (max-width: 767px) {
    .ld-dashboard-top-courses-listing-earnings {
        margin-bottom: 15px;
    }

    .ld-dashboard-instructor-earning-chart-wrapper {
        min-height: 280px;
        width: 100%;
    }

    .ld-dashboard-top-courses-sumary-wrapper.ld-dashboard-pd20 {
        padding: 15px;
    }
}

@media screen and (max-width: 543px) {
    .ld-dashboard-instructor-earning-chart-wrapper {
        min-height: 250px;
    }
}
