/* @import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap'); */
@import url('https://fonts.cdnfonts.com/css/satoshi');

@tailwind base;
@tailwind components;
@tailwind utilities;

* {
    box-sizing: border-box;
    font-family: 'Satoshi', sans-serif;
}

body {
    color: #010B13;
    font-weight: 500;
}

html {
    /* font-size: 14px; */
}


.gradient-bg {
    /* background: linear-gradient(116.49deg, #128B1D 0.49%, #1F7D27 41.4%, #0D5214 66.34%, #0A3E0F 100%); */
    background-color: #105835;
}

.overlay {
    display: none;
}

.active_tab,
.tab_active {
    
    @apply relative before:absolute before:bottom-0 before:w-[2px] before:bg-cta text-cta font-semibold
}
.enterprise_active{
    /* @apply bg-white text-[#02AB5A] shadow-lg; */
    background-color: #fff;
    color: #02AB5A;
    box-shadow: 0px 1px 2px 1px rgba(16, 24, 40, 0.06), 0px 1px 3px 0px rgba(16, 24, 40, 0.10);

}

.active_page {
    /* @apply text-background-1 lg:text-white lg:bg-[#045C0C] before:w-[2px] before:h-full before:absolute before:bg-background-1 lg:before:bg-white before:left-0 */
    background-color: #045C0C;
    color: white;
}

.active_tab,
.tab_active {
    position: relative;
    color: #128B1D;
    font-weight: 600;
}

.active_tab::before,
.tab_active::before {
    content: '';
    position: absolute;
    bottom: 0;
    background-color: #128B1D;
}

.active_page {
    color: white;
    background-color: #045C0C;
}

.active_page::before {
    width: 2px;
    height: 100%;
    background-color: white;
    content: '';
    position: absolute;
    left: 0;
}


.table tbody td {
    @apply !px-3 !py-7 border-b hover:cursor-pointer;
}

.table tbody td {
    padding: 1.75rem 0.75rem !important;
    border-bottom-width: 1px;
}

.table tbody td:hover {
    cursor: pointer;
}

.table tr:last-of-type td {
    @apply border-b-0;
}

.table tr:last-of-type td {
    border-bottom-width: 0px;
}

th {
    width: auto !important;
}

/* @media screen and (max-width: 640px){
    html{
        font-size: 14px;
    }
} */

@media screen and (max-width: 1024px) {

    .active_page {
        color: #128B1D;
        background: #D0D5DD;
    }

    .active_page::before {
        background-color: #128B1D;
    }

    .open {
        left: 0
    }

    .open .overlay {
        display: block;
    }

    .closed {
        left: -270px
    }

    .icon {
        filter: invert(24%) sepia(3%) saturate(4028%) hue-rotate(161deg) brightness(92%) contrast(87%);
    }

    .active_page .icon {
        filter: invert(24%) sepia(71%) saturate(4683%) hue-rotate(224deg) brightness(87%) contrast(94%)
    }
}

img {
    pointer-events: none;
}

.custom-dropdown-content {
    display: none;
    width: max-content;
}

.custom-dropdown-list li {
    cursor: pointer;
}

.custom-dropdown-btn:focus+.custom-dropdown-content,
.custom-dropdown-content:hover {
    display: flex;
    flex-direction: row;
}

.custom-picker-cont {
    height: fit-content;
}

#custom-date-picker+label {
    top: -50%;
    position: absolute;
}

#trxTable td {
    border-bottom: 0.2px solid #CECECE;
    font-size: 15px;
    padding-top: 26px;
    padding-bottom: 26px;
}


.onboard-loader {
    width: 20px;
    height: 20px;
    border: 1px solid #000;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: none;
    box-sizing: border-box;
    animation: rotation 400s linear infinite;
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 14px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    top: -2px;
    left: -2px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: #88C58E;
}

input[type="checkbox"]:focus+.slider {
    box-shadow: 0 0 1px #88C58E;
}

input:checked+.slider:before {
    -webkit-transform: translateX(20px);
    -ms-transform: translateX(20px);
    transform: translateX(20px);
    background-color: #128B1D;
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Show the dropdown content when the button is focused */
button:focus+.dropdown-content {
    display: block;
}

/* Show the dropdown content when the button is clicked */
button:focus-within+.dropdown-content {
    display: block;
}


@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* OTP SCREEN */
.digit-group input {
    width: 45px;
    height: 45px;
    background-color: #f2f2f2;
    border: none;
    line-height: 50px;
    text-align: center;
    font-size: 24px;
    font-weight: 200;
    margin: 0 2px;
    border-radius: 0.25rem;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}