
div.small .form-control {
    height: 1.75rem;
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
    line-height: 1.2;
    border-radius: 0.2rem;
}

div.small select.form-control:not([size]):not([multiple]) {
    height: 1.75rem;
    font-size: 0.7rem;
}

div.small .btn,
div.small a {
    padding: 0.175rem 0.25rem;
    font-size: 0.7rem;
    line-height: 1;
    border-radius: 0.2rem;
}

.form-control {
    border-radius: 7px;
}

.form-label,
.col-form-label {
    font-size: 0.7rem;
    text-transform: capitalize;
    letter-spacing: inherit;
}


.chosen-single {
    font-size: 0.8rem !important;
    line-height: 1.2 !important;
    padding: 0.25rem 0.5rem !important;
    height: calc(1.2em + 2px + 0.5rem) !important;
    text-align: left;
    padding-left: 10px !important;
}

    .chosen-single span {
        font-size: 0.7rem;
        text-align: left !important;
    }

        .chosen-single span:empty::before {
            content: attr(data-placeholder);
            display: block;
            color: #999;
            padding-left: 10px;
        }

    .chosen-single div b {
        margin-top: -6px !important;
    }

.chosen-container .chosen-results {
    text-align: left;
    padding-left: 0;
}

.chosen-container .chosen-search input[type="text"] {
    text-align: left;
    padding-left: 10px;
}

.chosen-container .chosen-drop {
    text-align: left;
}

.select-label {
    width: 200px;
}

a span.danger {
    color: #dc3545;
    transition: color 0.3s ease;
}

    a span.danger:hover {
        color: whitesmoke;
    }


.marquee-wrapper:active .marquee-content {
    animation-play-state: paused;
}

.marquee-content {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    animation: infiniteScroll 25s linear infinite;
}

@keyframes infiniteScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


textarea {
    overflow-y: auto;
    overflow-x: hidden;
    resize: none;
}


.w-40 {
    width: 40% !important;
}

.w-60 {
    width: 60% !important;
}


#loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1051;
}

.blur {
    filter: blur(5px);
    pointer-events: none;
    user-select: none;
}

.ignore-clicks {
    pointer-events: none;
    user-select: none;
}


.chart-container {
    position: relative;
    width: 100% !important;
    max-width: 100%;
    overflow: hidden;
}

canvas {
    max-width: 100% !important;
    height: auto !important;
}

table {
    max-width: 100% !important;
    height: auto !important;
}

@media only screen and (max-width: 1600px) {
    .chart-container {
        height: 180px;
    }
}


.btn-rounded {
    border-radius: 50px !important;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}


#globalSearch {
    height: 45px;
    border: 1px solid #ced4da;
    padding-left: 20px;
    border-radius: 7px;
}


.dataTables_wrapper {
    width: 100%;
    padding: 10px;
}

table.dataTable {
    width: 100% !important;
}

.dataTables_scrollHeadInner,
.dataTables_scrollBody table {
    width: 100% !important;
}

td,
th {
    white-space: nowrap;
    overflow: auto;
    text-overflow: ellipsis;
}

.allow-chosen {
    overflow: visible !important;
    white-space: normal !important;
}

td.chosen-container {
    z-index: 9999 !important;
    position: relative;
}

.dataTables_wrapper .dt-buttons .btn {
    margin-right: 5px;
    border-radius: 5px;
    padding-bottom: 5px;
}

div.dt-buttons.btn {
    max-height: 25px;
    max-width: 25px;
}



.border-danger {
    border-color: #dc3545 !important;
}

    .border-danger:focus {
        box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
    }


    .is-invalid + .select2-container .select2-selection,
    .border-danger + .select2-container .select2-selection {
        border-color: #dc3545 !important;
    }


    .is-invalid + .chosen-container .chosen-single,
    .border-danger + .chosen-container .chosen-single {
        border-color: #dc3545 !important;
    }

    .is-invalid + .chosen-container .chosen-drop,
    .border-danger + .chosen-container .chosen-drop {
        border-color: #dc3545 !important;
    }

small.text-danger {
    font-size: 0.6875rem;
    margin-top: 4px;
    display: block;
    font-weight: 500;
    color: #dc3545;
}


.cost-price-locked,
.cost-price-locked:disabled,
.cost-price-locked[readonly] {
    cursor: not-allowed !important;
    caret-color: transparent;
    user-select: none;
    pointer-events: none;
    background-color: #f5f5f5;
    opacity: 0.65;
}


@media screen and (max-width: 450px) {
    .w-95, .w-90, .w-85, .w-80, .col-md-8, .w-70, .w-65, .w-60, .w-55,
    .w-50, .w-45, .w-40, .w-35, .w-30, .w-25, .w-20, .w-15, .w-10, .w-5 {
        width: auto !important;
    }

    h4, .h4 {
        font-size: calc(0.5rem + 0.15vw);
    }

    .dashcard {
        min-height: 100px;
    }

    .bx {
        vertical-align: middle;
        font-size: 0.7rem;
        line-height: 1;
    }

    .svg-inline--fa {
        height: 0.8em;
    }

    .ml-2, .px-2 {
        margin-left: unset !important;
    }

    .col-mt-2 {
        margin-top: 4px !important;
    }

    .sidebar .nav-link {
        font-size: 0.5625rem;
        padding: 2px 4px;
    }
}

@media screen and (max-width: 600px) {
    #globalSearch {
        height: 40px;
        font-size: 0.875rem;
    }

    .btn-rounded {
        width: 30px;
        height: 30px;
    }
}
