
/*
* 
* ==========================================================
* ADMIN.SCSS
* ==========================================================
*
* Main style file of the administration area. Written in SCSS. 
*
*/

@import "shared.scss";

@keyframes crpay-lightbox-animation {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 

GLOBAL
==========================================================

*/

body,
html {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

.crpay-loading-global {
    position: absolute;
    z-index: 99995;
    width: 30px;
    height: 30px;
    left: 50%;
    margin-left: -15px;
}

/* 

ELEMENTS
==========================================================

*/

.crpay-nav-wide {
    display: flex;
    align-items: center;
}

.crpay-color-cnt {
    position: relative;

    i {
        position: absolute;
        right: 12px;
        top: 25px;
        font-size: 10px;
        cursor: pointer;
        z-index: 2;
        transition: $transition;

        &:hover {
            color: $color-red;
        }
    }
}

[data-type="multi-input"] {
    margin-bottom: -15px;

    input, select, textarea {
        margin: 10px 0 17px 0 !important;
    }

    [data-type="checkbox"], [data-type="button"] {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;

        span {
            max-width: 350px !important;
            width: auto !important;
            padding-top: 7px;
        }

        input {
            margin-top: 0 !important;
        }
    }

    .crpay-btn {
        background: #ffffff;
        color: #1f3f3b;
        border: 1px solid #d4d4d4;
        margin-bottom: 15px;

        &:hover {
            border-color: $color-main;
            color: $color-main;
            background: none;
        }

        &.crpay-loading:before {
            color: $color-main;
        }
    }
}

[data-type="upload-file"] {
    .crpay-btn-icon {
        min-width: 40px;
        height: 40px;
        border: 1px solid $border-color;
        margin-left: 5px;
        background-color: $background-gray;
        opacity: 1;

        i {
            line-height: 46px;
            color: $color-gray;
            transition: $transition;
        }

        &:hover {
            border-color: $color-main;

            i {
                color: $color-main;
            }
        }
    }
}

.crpay-flex .crpay-input {
    min-width: 0;

    input, select {
        min-width: 0;
    }
}

.crpay-table {
    margin: 0 0 20px 0;
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    table-layout: fixed;

    th {
        white-space: nowrap;
        padding: 9px 15px;
        text-align: left;
        border-bottom: 1px solid $border-color;
        font-size: 15px;
        line-height: 20px;
        font-weight: 600;
        color: $color-black;
        letter-spacing: .3px;
    }

    td {
        white-space: nowrap;
        padding: 15px;
        text-align: left;
        border-bottom: 1px solid $border-color;
        color: $color-black;
        font-size: 15px;
        height: 30px;
        letter-spacing: .3px;
        transition: $transition;
    }

    .crpay-title {
        font-weight: 500;

        & + .crpay-text {
            line-height: 15px;
            margin-top: 5px;
        }
    }

    .crpay-title, .crpay-text, .crpay-link {
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    tr:hover td {
        cursor: pointer;
        background-color: $background-gray;
    }

    img {
        max-height: 35px;
        margin-right: 15px;
    }

    .crpay-flex {
        justify-content: flex-start;
    }

    .crpay-text:empty {
        display: none;
    }
}

.crpay-search {
    position: relative;

    input {
        padding-right: 60px;

        &:focus + input + i {
            color: $color-main;
        }
    }

    i {
        position: absolute;
        right: 15px;
        font-size: 18px;
        line-height: 0;
        top: 50%;
        margin-top: -10px;
        width: 20px;
        height: 20px;
        color: $color-gray;
        transition: $transition;

        &.sb-loading {
            margin-top: 0;
        }
    }
}

.crpay-mobile-menu > i {
    display: none;
}

.crpay-repater-line, .crpay-upload-image {
    position: relative;

    > i {
        position: absolute;
        right: 0;
        top: 38px;
        font-size: 10px;
        color: $color-gray;
        width: 25px;
        height: 25px;
        line-height: 25px;
        text-align: right;
        cursor: pointer;
        transition: $transition;

        &:hover {
            color: $color-red;
        }
    }
}

.crpay-repater-line {
    hr {
        height: 1px;
        margin: 15px 0 30px 0;
        background: $border-color;
    }
}

.crpay-upload-image {

    .crpay-btn-icon {
        margin: 0;
        width: 100%;
        height: 150px;
        line-height: 160px;
        background-size: cover;
        background-position: center center;

        i {
            color: #7f9494;

            &:before {
                font-size: 18px;
                line-height: 160px;
            }
        }

        &[style] {
            i {
                display: none;
            }

            & + i {
                display: block;
            }
        }
    }

    input {
        display: none !important;
    }

    > i {
        top: calc(50% - 12.5px);
        right: -20px;
        display: none;
    }
}

/* 

ADMIN AREA
==========================================================

*/

.crpay-nav-filters {
    padding: 0 10px;
    display: none;
    align-items: center;

    .crpay-input {
        margin-right: 25px;
    }

    &.crpay-active {
        display: flex;
        animation: crpay-fade-in .5s;
    }
}

input.crpay-filter-date, input.crpay-filter-date-2 {
    min-width: 0;
    width: 100px;
    text-align: center;
}

input.crpay-filter-date-2 {
    margin-left: 10px !important;
}

.crpay-filter-checkout > p {
    max-width: 100px;
}

.crpay-admin {
    max-width: 1200px;
    color: #000;

    main {
        padding: 0;
        position: relative;


        > div {
            min-height: 50px;

            &.crpay-active {
                animation: crpay-fade-in .5s;
            }

            &:not(.crpay-active) {
                display: none;
            }

            &.crpay-loading:before {
                top: 15px;
                left: 20px;
            }
        }
    }

    .crpay-input {

        span {
            max-width: 420px;
            width: 420px;
            flex-shrink: 0;
        }

        .crpay-setting-input {
            width: 100%;
            padding-right: 0;
        }

        .crpay-setting-content {
            max-width: 420px;
        }

        .crpay-icon-help {
            transform: translateY(1px);
            margin: 0 0 0 5px;
            font-size: 12px;
            color: #b1c2d1;
            text-decoration: none;
            display: inline-block;

            &:hover {
                color: $color-main;
            }
        }
    }

    &.crpay-agent {
        #crpay-create-checkout, #crpay-save-checkout, #crpay-delete-checkout {
            display: none !important;
        }
    }
}

.crpay-settings-title {
    padding: 60px 0 0 0 !important;

    & + div {
        border-top: none !important;
    }
}

#crpay-checkouts-form {
    .crpay-input {
        align-items: center;
        margin-top: 15px !important;

        &#crpay-checkout-title {
            margin-top: 4px;
        }

        > span {
            transition: $transition;
        }

        &:hover > span {
            transform: translateX(7px);
        }
    }

    #crpay-checkout-payment-link a {
        padding: 0;

        &:hover {
            text-decoration: underline;
        }
    }

    .crpay-repater-line {
        hr {
            margin: 4px 0 0 0;
            background: none;
        }

        i {
            right: -20px;
            top: 11px;
        }
    }

    .crpay-btn-repater {
        margin: 15px 0 0 0;
        font-size: 14px;
        font-weight: 500;

        &:not(:hover) {
            color: $color-gray;
        }
    }
}

#checkout-downloads {
    align-items: flex-start !important;

    .crpay-setting-input {
        text-align: right;
    }

    input:hover {
        cursor: pointer;
        text-decoration: underline;
    }
}

[data-area="settings"] {
    .crpay-input + .crpay-input, .crpay-input + .crpay-flex, .crpay-flex + .crpay-input {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid $border-color;
    }
}

.crpay-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 250px;
    background: $white;
    border-right: 1px solid $border-color;
    z-index: 999995;

    > div {
        padding: 10px 0 0px 30px;
        margin-bottom: 25px;
    }

    .crpay-logo {
        display: block;
        max-height: 300px;
        margin: 15px 30px 15px 0;
        max-width: calc(100% - 30px);
    }

    .crpay-logo-icon {
        display: none;
        margin: 0;
        height: 25px;
        max-height: 25px;
    }

    .crpay-link {
        font-weight: 600;
    }

    .crpay-bottom {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 190px;
        margin: 0;
        z-index: 2;

        .crpay-btn-icon {
            margin-right: -10px;
        }

        > .crpay-btn {
            display: none;
            margin: 0 0 30px 0;
        }
    }
}

.crpay-nav {
    > div {
        font-weight: 600;
        cursor: pointer;
        line-height: 45px;
        font-size: 16px;
        border-right: 2px solid $white;
        transition: $transition;
        display: flex;
        align-content: center;
        align-items: center;

        &:hover, &.crpay-active {
            border-color: $color-main !important;
            color: $color-main;
        }

        &:active i {
            transform: scale(.95);
        }
    }

    i {
        display: inline-block;
        margin-right: 30px;
        font-size: 20px;
        line-height: 0;
    }
}

.crpay-body {
    padding: 30px 30px 60px 280px;
}

.crpay-info-card {
    position: fixed;
    bottom: 10px;
    right: 10px;
    left: 10px;
    border-radius: 4px;
    padding: 10px 30px;
    background: $color-green;
    color: $white;
    text-align: center;
    box-shadow: $box-shadow;
    cursor: pointer;
    z-index: 9999995;
    display: none;
    font-size: 15px;
    font-weight: 600;
    line-height: 25px;
    white-space: nowrap;
    letter-spacing: 0.5px;
    color: $white;

    span, a {
        text-decoration: underline;
        color: $white;

        &:hover {
            text-decoration: none;
        }
    }

    &:not(:empty) {
        display: block;
        animation: crpay-fade-bottom .5s;
    }

    &.crpay-info-card-error {
        background: $color-red;
    }

    &.crpay-info-card-info {
        background: $color-gray;
    }
}

.crpay-top {
    padding-bottom: 50px;
}

.crpay-bottom {
    padding-top: 50px;

    &:empty {
        display: none !important;
    }
}

.crpay-area-transactions {
    max-width: none;
}

.crpay-area-settings #crpay-save-settings, .crpay-area-checkouts #crpay-create-checkout, .crpay-area-transactions #crpay-request-payment {
    display: block;
    animation: crpay-fade-bottom .5s;
}

.crpay-area-create-checkout {
    #crpay-create-checkout, #crpay-table-checkouts {
        display: none;
    }

    #crpay-checkouts-form {
        display: block;
        animation: crpay-fade-in .5s;
    }
}

#crpay-checkouts-form {
    display: none;

    .crpay-bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

#crpay-save-checkout {
    min-width: 134px;
}

#crpay-delete-checkout {
    display: none;
}

#crpay-checkout-embed-code, #crpay-checkout-payment-link, #crpay-checkout-shortcode, #crpay-payment-request-url-box {
    position: relative;
    display: none;

    div, a {
        width: 100%;
        min-width: 0;
        padding: 15px 40px 15px 15px;
        background: $color-gray;
        color: rgba(255, 255, 255,.8);
        border-radius: 3px;
        font-size: 13px;
        font-weight: 400;
        text-decoration: none;
        overflow: hidden;
    }

    i {
        position: absolute;
        right: 0;
        top: 5px;
        color: $white;
        background-color: $color-gray;
        width: 35px;
        height: 35px;
        line-height: 40px;
        text-align: center;
        border-radius: 3px;
        z-index: 9;

        &:hover {
            color: $color-main;
        }
    }
}

[data-checkout-id] #crpay-delete-checkout {
    display: inline-block;

    &:hover {
        color: $color-red !important;
        border-color: $color-red !important;
        background-color: rgba(155, 155, 155, .1) !important;
    }
}

[data-checkout-id] #crpay-checkout-embed-code, [data-checkout-id] #crpay-checkout-payment-link, [data-checkout-id] #crpay-checkout-shortcode, #crpay-payment-request-url-box {
    display: flex;
}

#crpay-payment-request-url-box i {
    top: 50%;
    transform: translateY(-50%);
}

#crpay-table-checkouts {
    max-width: 500px;

    tr:first-child td {
        border-top: 1px solid $border-color;
        max-width: 100px;
        width: 100px;
    }

    td:last-child {
        text-align: right;
    }

    .crpay-title span:first-child {
        padding-right: 10px;
        opacity: .7;
    }
}

#crpay-table-balances {
    margin-top: 23px;

    td {
        font-weight: 600;
    }

    .crpay-title + .crpay-text {
        margin-top: 5px;
        font-weight: 400;
        line-height: 15px;
    }

    .crpay-balance {
        font-size: 16px;
        font-weight: 500;
    }
}

#crpay-table-transactions {

    [data-field="status"], .crpay-td-status, [data-field="amount"], .crpay-td-amount {
        max-width: 140px;
        width: 140px;
    }

    [data-field="date"], .bcx-td-time {
        max-width: 150px;
        width: 150px;
    }

    .crpay-td-time .crpay-title, .crpay-td-amount .crpay-title div + div {
        font-weight: 400;
    }

    .crpay-td-amount {
        padding: 0 15px;

        .crpay-title {
            margin: -7px 0;
        }
    }

    th:last-child, td:last-child {
        max-width: 10px;
        width: 10px;
        padding: 0 15px 0 0;
        position: relative;
    }

    .crpay-link {
        text-decoration: none;
        color: $color-black;
        display: block;

        &:hover {
            color: $color-main;
        }
    }

    .bcx-td-time span + span {
        font-weight: 400;
        display: block;
        margin-top: 5px;
    }

    &.crpay-loading {
        height: 50px;

        tbody, thead {
            display: none;
        }
    }

    .crpay-not-found {
        margin: 15px;
    }

    .crpay-transaction-menu-btn {
        line-height: 34px;
        height: 30px;
        width: 30px;
        position: absolute;
        top: 50%;
        margin-top: -15px;

        &:hover, &.crpay-active {
            color: $color-main;
        }

        & + .crpay-ul {
            display: block;
            right: 35px;
            top: 50%;
            transform: translateY(-50%);
        }

        &.crpay-loading {
            margin-left: -7.5px;
        }
    }
}

.crpay-status-C, .crpay-status-P, .crpay-status-R, .crpay-status-X {
    position: relative;
    padding-left: 25px;

    &:before {
        content: "";
        position: absolute;
        width: 10px;
        height: 10px;
        background-color: $color-green;
        left: 0;
        top: 50%;
        margin-top: -5px;
        border-radius: 50%;
    }

    &.crpay-status-P:before {
        background-color: $color-orange;
    }

    &.crpay-status-R:before {
        background-color: $color-red;
    }

    &.crpay-status-X:before {
        background-color: #f6d000;
    }
}

[data-status="R"] td:not(:last-child) {
    opacity: .6;
}

.bcx-td-id, th[data-field="id"] {
    max-width: 15px;
    width: 15px;
}

.crpay-td-id {
    font-size: 11px !important;
    padding: 15px 0 15px 15px !important;
}

.crpay-td-amount .crpay-text {
    text-transform: capitalize;
}

.crpay-area-transactions {
    .crpay-icon-search.crpay-loading:before {
        opacity: 0 !important;
    }
}

#crpay-version {
    font-weight: 400;
    font-size: 14px;
    line-height: 14px;
    margin-left: 10px;
    margin-right: 10px;
}

[data-area="balance"].crpay-loading:not(.crpay-loading-first) {
    text-indent: unset;

    * {
        opacity: 1 !important;
    }

    &:before {
        display: none;
    }
}

[data-area="transactions"] > .crpay-nav-wide {
    .crpay-search {
        flex-shrink: 0;
        flex-grow: 1;
        margin-right: 10px;
    }

    .crpay-btn-icon {
        width: 39px;
        min-width: 39px;
        height: 39px;

        i {
            line-height: 46px;
            width: 39px;
        }
    }
}

.crpay-not-found {
    font-size: 15px;
    white-space: nowrap;
    opacity: .8;
    letter-spacing: .3px;
}

.crpay-transaction-details-list {
    margin-bottom: 15px;
}

/* 

MISCELLANEOUS
==========================================================

*/

.crpay-login, .crpay-installation, .crpay-cloud-box {
    .crpay-input {
        align-items: center;
    }

    img {
        max-width: 250px;
        margin-bottom: 50px;
    }
}

#crpay-lightbox {
    position: fixed;
    background-color: rgba(255, 255, 255, 0.75);
    z-index: 999995;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    display: none;

    > div {
        position: fixed;
        border-radius: 4px;
        padding: 0;
        background: $white;
        box-shadow: $box-shadow;
        width: 100%;
        max-width: 700px;
        transform: translate(-50%, -50%);
        left: 50%;
        top: 50%;
    }

    .crpay-top {
        padding: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid $border-color;
        margin-bottom: 30px;

        #crpay-lightbox-close, .crpay-btn + .crpay-btn {
            margin-left: 15px;
        }
    }

    [data-name] .crpay-loading {
        width: 20px;
        height: 20px;
    }

    &.crpay-active {
        display: block;
        animation: crpay-lightbox-animation 0.5s;
    }
}

#crpay-lightbox-main {
    padding: 0 20px 20px 20px;

    .crpay-input {
        align-items: center;

        span {
            padding-right: 30px;
        }

        & + .crpay-btn {
            margin-top: 30px;
        }
    }
}

.crpay-lightbox-buttons {
    justify-content: flex-end;

    > div {
        display: block;
    }
}

#crpay-lightbox-loading {
    position: fixed;
    background-color: rgba(255, 255, 255, 0.75);
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 999995;
    display: none;

    &.crpay-active {
        display: block;
        animation: crpay-fade-in 0.5s;
    }
}

#crpay-cancel-btn {
    background-color: $color-red;

    &:hover {
        background-color: $color-red-hover;
    }
}

[data-lightbox-id="confirm"] {
    &#crpay-lightbox > div {
        max-width: 550px;
    }

    #crpay-lightbox-close {
        display: none !important;
    }

    #crpay-lightbox-main {
        overflow: hidden !important;
    }
}

.crpay-text-list > div {
    color: $color-black;

    > div:first-child {
        font-weight: 600;
        margin-bottom: 5px;
        font-size: 16px;
    }

    > div:last-child {
        font-size: 15px;
        line-height: 22px;
    }

    .crpay-title, .crpay-text {
        font-weight: 400;
        font-size: 15px;
        display: inline-block;
    }

    .crpay-text {
        margin: 0 !important;
        display: block;
    }

    a {
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        color: $color-black;
    }

    & + div {
        margin-top: 15px;
    }
}

#crpay-upload-form {
    position: absolute;
    height: 0;
    width: 0;
    visibility: hidden;
    z-index: -1;
}

/* 

# SHOP
==========================================================

*/

[data-name="data-license-key"] {
    > div:last-child {
        display: flex;
        align-items: center;
    }

    .crpay-label {
        font-size: 12px;
        line-height: 13px;
    }

    .crpay-btn-text {
        margin: 0 10px
    }
}

[data-area="analytics"] {
    .crpay-nav-wide {
        justify-content: space-between;
    }

    .crpay-nav-filters {
        display: flex;
        padding: 0;
    }
}

#crpay-analytics-earnings, #crpay-analytics-sales {
    .crpay-title {
        font-size: 18px;
        line-height: 15px;
        white-space: nowrap;
    }

    .crpay-text {
        margin-top: 14px !important;
        line-height: 10px;
        white-space: nowrap;
    }
}

#crpay-analytics-sales {
    padding-left: 40px;
    padding-right: 30px;
}

#crpay-analytics-chart.crpay-loading canvas {
    visibility: hidden;
}

#shop-page .crpay-setting-content p {
    overflow: hidden;
}

/*  

RTL
==========================================================

*/

.crpay-rtl, .crpay-rtl textarea, .crpay-rtl input, .crpay-rtl ul, .crpay-rtl ul li {
    direction: rtl;
    text-align: right;
}

.crpay-rtl {
    float: right;

    .crpay-body {
        padding: 30px 280px 60px 30px;
    }

    .crpay-sidebar {
        left: auto;
        right: 0;
        border-right: none;
        border-left: 1px solid #d4d4d4;

        > div {
            padding: 10px 30px 10px 0;
        }

        .crpay-bottom {
            left: auto;
            right: 0;

            .crpay-btn-icon {
                margin-right: 0;
                margin-left: -10px;
            }
        }
    }

    .crpay-nav {
        i {
            margin-left: 30px;
            margin-right: 0;
        }

        > div {
            border-right: none;
            border-left: 2px solid #fff;
        }
    }

    .crpay-table td, .crpay-table th {
        text-align: right;
    }

    #crpay-table-checkouts .crpay-title span:first-child {
        float: right;
        padding-right: 0;
        padding-left: 10px;
    }

    .crpay-table img {
        margin-left: 15px;
        margin-right: 0;
    }

    .crpay-input > div {
        padding-left: 30px;
        padding-right: 0;
    }

    .crpay-flex .crpay-input + .crpay-input {
        margin: 0 15px 0 0 !important;
    }

    .crpay-btn i {
        margin-left: 15px;
        margin-right: 0;
    }

    .crpay-input .crpay-icon-help {
        margin: 0 5px 0 0;
    }
}

/* 

RESPONSIVE
==========================================================

*/

@media (max-width: 1200px) {
    .crpay-admin .crpay-input span {
        max-width: 320px;
        width: 320px;
    }
}

@media (max-width: 1024px) {

    .crpay-table tr:hover td {
        background-color: $white;
    }

    .crpay-admin .crpay-input span {
        max-width: 220px;
        width: 220px;
    }

    .crpay-transaction-details-list .crpay-label {
        display: none;
    }

    #crpay-table-transactions {
        tr, td {
            width: auto !important;
            max-width: 100% !important;
            overflow: hidden;
        }

        td {
            display: flex;
            overflow: hidden;
            align-items: center;
            justify-content: space-between;

            .crpay-label {
                margin: 0 30px 0 0;
                padding: 0;
                border: none;
                font-size: 13px;
            }

            .crpay-title {
                font-weight: 400;
                font-size: 15px;
            }

            &:last-child {
                border-bottom: none;
                text-align: center;
                padding: 15px;
                overflow: visible;
                display: block;
                z-index: 95;
            }
        }

        thead, td:empty {
            display: none;
        }

        .crpay-td-id {
            font-size: 15px !important;
        }

        .crpay-td-amount, .crpay-td-id {
            padding: 15px !important;
        }

        .crpay-title {
            span + span, & + .crpay-text {
                margin: 0 0 0 15px !important;
                color: $color-black;
                font-size: 15px;
            }
        }

        .crpay-title, .crpay-td-title, .crpay-td-amount {
            display: flex;
            align-items: center;
        }

        tr:nth-child(2n+1) td {
            background: $background-gray;

            .crpay-transaction-menu-btn + .crpay-ul {
                background: $background-gray;
            }
        }

        .crpay-transaction-menu-btn {
            position: static;
            display: block;
            margin: auto;
            padding: 0;
            width: 100%;

            & + .crpay-ul {
                transform: none;
                position: static;
                box-shadow: none;
                background: none;
                margin: 0 -15px;
                background: $white;

                li {
                    padding: 10px;
                    font-size: 16px;
                }
            }

            &:before {
                transform: rotate(90deg);
                display: inline-block;
            }
        }
    }

    .crpay-setting-content {
        max-width: 300px;
        width: 300px;
    }

    .crpay-rtl {
        #crpay-table-transactions {
            .crpay-title {
                span + span, & + .crpay-text {
                    margin: 0 15px 0 0 !important;
                }
            }
        }
    }
}

@media (max-width: 768px) {

    [data-area="transactions"] > .crpay-nav-wide .crpay-btn-icon {
        width: 43px;

        i:before {
            font-size: 21px;
        }
    }

    .crpay-btn {
        font-size: 16px;
        height: 43px;
        line-height: 43px;
    }

    #crpay-table-balances {
        .crpay-label {
            overflow: hidden;
            margin: 5px;
            min-width: 21px;
            max-width: 21px;
            padding: 2px;
        }

        img {
            max-height: 24px;
            margin-right: 7px;
        }

        td:first-child {
            overflow: hidden;
        }
    }

    [data-area="transactions"] > .crpay-nav-wide .crpay-search {
        flex-shrink: 1;
    }

    #crpay-search-transactions {
        min-width: 140px;
    }

    .crpay-body {
        padding: 80px 15px 15px 15px !important
    }

    .crpay-sidebar, .crpay-sidebar > div {
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .crpay-sidebar {
        bottom: auto;
        right: 0 !important;
        left: 0 !important;
        height: 55px;
        width: auto;
        border-right: none !important;
        border-left: none !important;
        border-bottom: 1px solid $border-color;

        > div {
            padding: 10px !important;
            margin: 0;
        }

        .crpay-logo {
            display: none;
        }

        .crpay-logo-icon {
            display: block;
            height: 35px;
            max-height: 35px;
        }

        .crpay-bottom {
            right: 0 !important;
            left: 0 !important;
            width: auto;
            text-align: center;

            > .crpay-btn {
                margin: 0 auto 5px auto;
            }
        }
    }

    .crpay-nav > div {
        border: none !important;
        width: 55px;
        height: 55px;
        border-radius: 4px;

        i {
            text-indent: 0;
            margin: auto !important;
            font-size: 25px;
        }

        span {
            display: none !important;
        }
    }

    .crpay-mobile-menu {
        position: fixed;
        top: 0;
        right: 0;
        font-size: 18px;

        > i {
            display: block;
            width: 45px;
            height: 55px;
            line-height: 63px;
            border-radius: 4px;
            text-align: center;
        }

        > div {
            display: none;
            background: $white;
            padding: 15px;
            position: fixed;
            right: 10px;
            top: 60px;
            box-shadow: 0 4px 14px 0 rgba(0, 0, 0, .2), 0 0 0 1px rgba(0, 0, 0, .05);
            border-radius: 5px;
            text-align: center;
            z-index: 9999995;
            animation: crpay-fade-bottom;

            .crpay-btn-icon {
                margin: 5px auto -5px auto !important;
            }
        }

        &.crpay-active {
            > i {
                color: $color-main;
            }

            > div {
                display: block;
            }
        }
    }

    .crpay-admin main > div > .crpay-loading {
        bottom: -20px;
    }

    .crpay-input input, .crpay-input select, .crpay-input textarea {
        font-size: 15px;
    }

    .crpay-input {
        display: block;

        span {
            margin-bottom: 9px;
            font-size: 17px;
            max-width: 100% !important;
            width: auto !important;
            max-width: none;
        }

        > div {
            padding-right: 0;
            width: auto;

            p {
                font-size: 15px;
                line-height: 25px;
            }
        }

        .crpay-setting-input {
            margin-top: 15px;
        }
    }

    .crpay-flex .crpay-input + .crpay-input {
        margin-top: 30px !important;
    }

    #crpay-checkouts-form .crpay-flex .crpay-input + .crpay-input {
        margin-top: 50px !important;
    }

    [data-checkout-id] #crpay-checkout-embed-code, [data-checkout-id] #crpay-checkout-payment-link {
        display: block;
    }

    [data-area="balance"] > div:first-child {
        text-align: center;
        padding-top: 15px;
    }

    [data-type="multi-input"] > div {
        padding-bottom: 15px;
    }

    [data-area="settings"] {
        padding-bottom: 80px;
    }

    .crpay-color-cnt {
        i {
            right: 12px;
        }

        &:after {
            right: 1px;
        }
    }

    #crpay-checkout-embed-code div, #crpay-checkout-payment-link div {
        width: auto;
    }

    #crpay-version {
        margin-top: 13px;
    }

    .crpay-rtl {
        .crpay-mobile-menu {
            left: 0;
            right: auto;

            > div {
                left: 10px;
                right: auto;
            }
        }
    }

    #crpay-table-transactions, #crpay-table-checkouts {
        margin-bottom: 60px;
    }

    #crpay-table-transactions {
        .crpay-td-amount .crpay-title {
            margin: 0;
        }

        .crpay-td-amount div + div {
            margin: 0 0 0 15px;
        }

        .crpay-not-found {
            margin: 0;
        }
    }

    #crpay-table-checkouts {

        tr:first-child td {
            border-top: none;
        }

        tr:last-child td {
            border-bottom: none;
        }
    }

    #crpay-checkouts-form {
        .crpay-input, .crpay-flex {
            border-top: none !important;
        }

        #checkout-downloads {
            padding-right: 20px;
        }
    }

    #crpay-checkout-embed-code i, #crpay-checkout-payment-link i, #crpay-checkout-shortcode i {
        margin-top: 32px;
    }

    .crpay-login {
        border: none;
    }

    .crpay-login, .crpay-cloud-box {
        .crpay-input {
            margin-top: 15px;
        }
    }

    #crpay-balance-total {
        font-size: 22px;

        & + div {
            font-size: 18px;
        }
    }

    .crpay-nav-filters {
        position: absolute;
        top: 50px;
        padding: 0;
        background: $white;
        border-bottom: 1px solid $border-color;
        z-index: 9;

        .crpay-input {
            margin-right: 0;
            display: flex;
        }

        > .crpay-select {
            display: block;
            margin: 0;

            p, li {
                font-size: 17px !important;
            }
        }

        .crpay-filter-status {
            margin-top: 15px;
        }

        .crpay-filter-cryptocurrency {
            margin-bottom: 15px;
        }

        &.crpay-active {
            display: block;
            left: 0;
            right: 0;
        }
    }
}
