﻿
/* Change input control border color */
.form-control, .input-group-text {
    border: 1px solid #0080ff;
}

/*loader*/
.loaderbody {
    width: 100%;
    height: 100%;
    left: 0px;
    top: 0px;
    position: absolute;
    background-color: rgba(128,128,128,0.2);
    z-index: 2147483647;
}

.loader {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 2s linear infinite;
    position: fixed;
    top: 45%;
    left: 40%;
}

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

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

.hide {
    display: none;
}



#overlay {
    width: 100%;
    height: 100%;
    left: 0px;
    top: 0px;
    position: absolute;
    z-index: 2147483647;
    background: rgba(0,0,0,0.6);
}

.cv-spinner {
    height: 100%;
    display: flex;
    /*width: 80%;*/
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px #ddd solid;
    border-top: 4px #2e93e6 solid;
    border-radius: 50%;
    animation: spin 0.8s infinite linear;
}

@keyframes sp-anime {
     100% {
         transform: rotate(360deg);
     }
 }

.is-hide {
    display: none;
}


.card-radius {
    border-radius: .8rem
}

.sidebar-green {
    background-image: linear-gradient(270deg,#121331,#121331);
}


.border-gray {
    border-color: #d7d5d5 !important
}


/* Let's get this party started */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

/* Track */
::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    -webkit-border-radius: 6px;
    border-radius: 6px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    -webkit-border-radius: 6px;
    border-radius: 6px;
    background: rgba(255,0,0,0.8);
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
}

::-webkit-scrollbar-thumb:window-inactive {
    background: rgba(255,0,0,0.4);
}

.btn-mypurple {
    background-color: #252152;
    border-color: #252152;
    color: #fff;
}

    .btn-mypurple:hover {
        background-color: #e9a8a6;
        border-color: #e9a8a6;
        color: #fff;
    }


.lds-ring {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 8px solid #fff;
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #fff transparent transparent transparent;
}

.lds-ring div:nth-child(1) {
    animation-delay: -0.45s;
}

.lds-ring div:nth-child(2) {
    animation-delay: -0.3s;
}

.lds-ring div:nth-child(3) {
    animation-delay: -0.15s;
}

@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }

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


/* ============================================================
   Responsive data tables & charts (mobile)
   Shared rules that used to be duplicated as an inline <style>
   block in Index / Factors / Invoice / Cheque / FactorsDetails.
   ============================================================ */

/* Scroll container for the dashboard tables. */
.table-responsive-mobile {
    width: 100%;
    max-height: 500px;
    overflow-x: auto; /* horizontal scroll instead of crushing columns */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* momentum scrolling on iOS */
    scroll-behavior: smooth;
}

/* Let the table grow to the natural width of its content so the
   container above can scroll it horizontally on small screens. */
.table-responsive-mobile table {
    width: 100%;
    min-width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
}

.table-responsive-mobile table th,
.table-responsive-mobile table td {
    white-space: nowrap;
}

/* Keep the header visible while scrolling a long list. */
.table-responsive-mobile table thead th,
.table-responsive-mobile table thead td {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: #3a3f51; /* opaque so rows don't show through while scrolling */
    color: #fff;
}

/* Slim scrollbars for the scroll containers (webkit). */
.table-responsive-mobile::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-responsive-mobile::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

    .table-responsive-mobile::-webkit-scrollbar-thumb:hover,
    .table-responsive::-webkit-scrollbar-thumb:hover {
        background-color: #aaa;
    }

/* app-rtl.css only sets overflow-y on .table-responsive; make sure the
   plain bootstrap wrapper scrolls horizontally here too. */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Charts must never spill outside their card... */
.flot-chart {
    max-width: 100%;
}

/* ...except the monthly-purchases bar chart, which needs a minimum
   width so the 12 month labels don't overlap. Below that width the
   card body scrolls horizontally instead. */
.scrolling-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#sellByKalaGroupChart .chart-bar-customer-sell {
    min-width: 640px;
}

.flot-chart .tickLabel {
    font-size: 11px;
}

@media (max-width: 767.98px) {
    /* Reclaim the horizontal space grid columns reserve when a .col-*
       class is placed directly on a card. */
    .content-wrapper {
        padding: 10px;
    }

    .card.col-xl-12,
    .card.col-md-12,
    .card.col-sm-12 {
        padding-left: 0;
        padding-right: 0;
    }

    /* Shorter chart so it fits on a phone screen. */
    .flot-chart {
        height: 220px;
    }

    /* Keep large KPI numbers from forcing the page wider. */
    .card .h1,
    .card .h2 {
        font-size: 1.4rem;
        word-break: break-word;
    }

    /* Tighter cells fit more columns before horizontal scroll kicks in. */
    .table-responsive-mobile table th,
    .table-responsive-mobile table td {
        padding: .4rem .5rem;
        font-size: .8rem;
    }
}
