/* Input Fields */
.form-group {
    position: relative;
    margin-bottom: 10px !important;
}

.form-group label {
    position: absolute;
    top: 14px !important;
    left: 1rem;
    font-size: 14px !important;
    color: #6c757d !important;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 999;
}

/*input:focus + label, input:not(:placeholder-shown) + label,*/
.form-control:focus + label, .form-control:not(:placeholder-shown) + label,
.custom-select:focus + label, .custom-select:not(:placeholder-shown) + label {
    top: -10px !important;
    font-size: 12px !important;
    color: #007bff !important;
    background: white;
    padding: 0 5px !important;
}

.form-control, .custom-select {
    width: 100%;
    border: 1px solid #ddd !important;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease-in-out;
}

input:focus, .form-control:focus, .custom-select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

input[type=text], input[type=url], input[type=date], input[type=month], input[type=time], input[type=datetime-local], input[type=password], input[type=tel], input[type=email], input[type=search], select, .form-control, .custom-select, form .btn {
    padding: .375rem .75rem;
}

input[type=text], input[type=url], input[type=date], input[type=month], input[type=time], input[type=datetime-local], input[type=password], input[type=tel], input[type=number], input[type=email], input[type=search], select, .custom-select, form .btn {
    height: calc(3rem + 2px);
}

/* start search box */
.search-list {
    float: left;
    list-style: none;
    margin-top: -1px;
    padding: 0;
    width: 100%;
    position: absolute;
    z-index: 999;
}

.search-list li {
    padding: 10px;
    background: #ffffff;
    border-bottom: #ced4da 1px solid;
    border-left: #ced4da 1px solid;
    border-right: #ced4da 1px solid;
}

.search-list li:hover {
    background: #b0bcf6;
    color: white;
    cursor: pointer;
}

/* barcode */
.barcode-lb39 {
    font-family: "Libre Barcode 39", cursive;
    font-size: 40px;
}

.barcode-ccode39 {
    font-family: "CCode39", cursive;
}

.btn {
    padding-right: 1rem !important;
    padding-left: 1rem !important;
}

.d-flex a i {
    position: relative !important;
    /*bottom: -2px !important;*/
    margin-left: .25rem !important;
    margin-right: .25rem !important;

}

/* Override Bootstrap .btn-primary */
.btn-primary {
    background-color: #3a57e8 !important;
    border-color: #3a57e8 !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
    background-color: #2f49c7 !important;
    border-color: #2f49c7 !important;
    color: #fff !important;
}

.btn-primary:disabled,
.btn-primary.disabled {
    background-color: #3a57e8 !important;
    border-color: #3a57e8 !important;
    opacity: 0.65;
}

/* Override Bootstrap .btn-danger */
.btn-danger {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #fff !important;
}

.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active,
.btn-danger.active,
.show > .btn-danger.dropdown-toggle {
    background-color: #bb2d3b !important;
    border-color: #bb2d3b !important;
    color: #fff !important;
}

.btn-danger:disabled,
.btn-danger.disabled {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    opacity: 0.65;
}

/* Success Button */
.btn-success {
    background-color: #16a34a !important;
    border-color: #16a34a !important;
    color: #fff !important;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-success.active,
.show > .btn-success.dropdown-toggle {
    background-color: #15803d !important;
    border-color: #15803d !important;
    color: #fff !important;
}

.btn-success:disabled,
.btn-success.disabled {
    background-color: #16a34a !important;
    border-color: #16a34a !important;
    opacity: 0.65;
}


/* Warning Button */
.btn-warning {
    background-color: #f59e0b !important;
    border-color: #f59e0b !important;
    color: #fff !important;
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active,
.btn-warning.active,
.show > .btn-warning.dropdown-toggle {
    background-color: #d97706 !important;
    border-color: #d97706 !important;
    color: #fff !important;
}

.btn-warning:disabled,
.btn-warning.disabled {
    background-color: #f59e0b !important;
    border-color: #f59e0b !important;
    opacity: 0.65;
}


.btn-outline-light {
    color: #495057;
    border-color: #dee2e6;
    background-color: #fff;
}

.btn-outline-light:hover {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-light:focus,
.btn-outline-light.focus {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
    box-shadow: 0 0 0 0.25rem rgba(108, 117, 125, .5);
}

.btn-outline-light:active,
.btn-outline-light.active,
.btn-outline-light.dropdown-toggle.show {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-light:active:focus,
.btn-outline-light.active:focus,
.btn-outline-light.dropdown-toggle.show:focus {
    box-shadow: 0 0 0 0.25rem rgba(108, 117, 125, .5);
}

.btn-outline-light:disabled,
.btn-outline-light.disabled {
    color: #6c757d;
    background-color: transparent;
}

.btn-outline-secondary {
    color: #495057 !important;
    border-color: #adb5bd !important;
    background-color: #fff !important;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary.focus {
    color: #fff !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    box-shadow: 0 0 0 0.25rem rgba(108, 117, 125, .5);
}

.btn-outline-secondary:active,
.btn-outline-secondary.active,
.btn-outline-secondary.dropdown-toggle.show {
    color: #fff !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

.btn-outline-secondary:active:focus,
.btn-outline-secondary.active:focus,
.btn-outline-secondary.dropdown-toggle.show:focus {
    box-shadow: 0 0 0 0.25rem rgba(108, 117, 125, .5);
}

.btn-outline-secondary:disabled,
.btn-outline-secondary.disabled {
    color: #6c757d !important;
    background-color: transparent !important;
    border-color: #adb5bd !important;
    opacity: 0.65;
}

.btn-outline-primary {
    color: #0b5ed7 !important;
    border-color: #0b5ed7 !important;
    background-color: #fff !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary.focus {
    color: #fff !important;
    background-color: #0b5ed7 !important;
    border-color: #0b5ed7 !important;
    box-shadow: 0 0 0 0.25rem rgba(11, 94, 215, .35);
}

.btn-outline-primary:active,
.btn-outline-primary.active,
.btn-outline-primary.dropdown-toggle.show {
    color: #fff !important;
    background-color: #0b5ed7 !important;
    border-color: #0b5ed7 !important;
}

.btn-outline-primary:active:focus,
.btn-outline-primary.active:focus,
.btn-outline-primary.dropdown-toggle.show:focus {
    box-shadow: 0 0 0 0.25rem rgba(11, 94, 215, .35);
}

.btn-outline-primary:disabled,
.btn-outline-primary.disabled {
    color: #0b5ed7 !important;
    background-color: transparent !important;
    border-color: #0b5ed7 !important;
    opacity: 0.65;
}

.btn-outline-danger {
    color: #dc3545 !important;
    border-color: #dc3545 !important;
    background-color: #fff !important;
}

.btn-outline-danger:hover,
.btn-outline-danger:focus,
.btn-outline-danger.focus {
    color: #fff !important;
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, .35);
}

.btn-outline-danger:active,
.btn-outline-danger.active,
.btn-outline-danger.dropdown-toggle.show {
    color: #fff !important;
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.btn-outline-danger:active:focus,
.btn-outline-danger.active:focus,
.btn-outline-danger.dropdown-toggle.show:focus {
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, .35);
}

.btn-outline-danger:disabled,
.btn-outline-danger.disabled {
    color: #dc3545 !important;
    background-color: transparent !important;
    border-color: #dc3545 !important;
    opacity: 0.65;
}

/* Outline Success Button */
.btn-outline-success {
    color: #16a34a !important;
    border-color: #16a34a !important;
    background-color: #fff !important;
}

.btn-outline-success:hover,
.btn-outline-success:focus,
.btn-outline-success.focus {
    color: #fff !important;
    background-color: #16a34a !important;
    border-color: #16a34a !important;
    box-shadow: 0 0 0 0.25rem rgba(22, 163, 74, .35);
}

.btn-outline-success:active,
.btn-outline-success.active,
.btn-outline-success.dropdown-toggle.show {
    color: #fff !important;
    background-color: #16a34a !important;
    border-color: #16a34a !important;
}

.btn-outline-success:active:focus,
.btn-outline-success.active:focus,
.btn-outline-success.dropdown-toggle.show:focus {
    box-shadow: 0 0 0 0.25rem rgba(22, 163, 74, .35);
}

.btn-outline-success:disabled,
.btn-outline-success.disabled {
    color: #16a34a !important;
    background-color: transparent !important;
    border-color: #16a34a !important;
    opacity: 0.65;
}

.btn-light {
    color: #333;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.btn-light:hover {
    color: #333;
    background-color: #e2e6ea;
    border-color: #dae0e5;
}

.btn-light:focus,
.btn-light.focus {
    color: #333;
    background-color: #e2e6ea;
    border-color: #dae0e5;
    box-shadow: 0 0 0 0.25rem rgba(130, 138, 147, .5);
}

.btn-light:active,
.btn-light.active,
.btn-light.dropdown-toggle.show {
    color: #333;
    background-color: #dae0e5;
    border-color: #cfd7e0;
}

.btn-light:active:focus,
.btn-light.active:focus,
.btn-light.dropdown-toggle.show:focus {
    box-shadow: 0 0 0 0.25rem rgba(130, 138, 147, .5);
}

.btn-light:disabled,
.btn-light.disabled {
    color: #333;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

/* Text Utilities */
.text-dark {
    color: #212529 !important;
}

.card-header {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    padding-bottom: 1rem !important;
    margin-bottom: 1rem !important;
    border-bottom: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;

}

.card-header .header-title h4 {
    font-size: 1.25rem !important;
}

.quick-action-card {
    border-radius: 20px;
    padding: 22px 15px;
    text-align: center;
    transition: all .25s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.quick-action-card i {
    font-size: 34px;
    display: block;
    margin-bottom: 12px;
}

.quick-action-card span {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.quick-action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.dashboard-quick-card {
    overflow: hidden;
}

.dashboard-more-action {
    display: inline-flex;
    align-items: center;
    min-height: 2.35rem;
    white-space: nowrap;
}

.dashboard-more-action .ri {
    flex: 0 0 auto;
}

.payment-table {
    min-width: 620px;
}

.top-product .style-img {
    width: 100%;
    max-height: 7rem;
    object-fit: contain;
}

@media (max-width: 767.98px) {
    .dashboard-quick-body {
        padding: 1rem !important;
    }

    .dashboard-quick-header {
        align-items: flex-start !important;
        flex-direction: column;
        gap: .25rem;
        margin-bottom: 1rem !important;
    }

    .dashboard-quick-header h4 {
        font-size: 1.08rem;
    }

    .dashboard-quick-header p {
        font-size: .88rem;
        line-height: 1.35;
    }

    .dashboard-action-grid {
        --bs-gutter-x: .5rem;
        --bs-gutter-y: .5rem;
    }

    .quick-action-card {
        display: flex;
        align-items: center;
        min-height: 4.25rem;
        padding: .75rem;
        text-align: left;
        border-radius: .75rem;
    }

    .quick-action-card i {
        width: 2.15rem;
        min-width: 2.15rem;
        margin: 0 .55rem 0 0;
        font-size: 1.45rem;
        text-align: center;
    }

    .quick-action-card span {
        min-width: 0;
        font-size: .82rem;
        line-height: 1.18;
        overflow-wrap: anywhere;
    }

    .quick-action-card:hover {
        transform: none;
    }

    .dashboard-more-actions {
        flex-wrap: nowrap !important;
        margin: 0 -1rem;
        padding: 0 1rem .25rem;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .dashboard-more-actions::-webkit-scrollbar {
        display: none;
    }

    .dashboard-more-action {
        flex: 0 0 auto;
        min-height: 2.2rem;
        padding: .45rem .75rem;
        font-size: .82rem;
    }

    .payment-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }

    .card-total-sale {
        align-items: flex-start !important;
        gap: .75rem;
    }

    .top-product > li {
        width: 50%;
    }
}

@media (max-width: 380px) {
    .dashboard-quick-body {
        padding: .75rem !important;
    }

    .quick-action-card {
        min-height: 3.8rem;
        padding: .6rem;
    }

    .quick-action-card i {
        width: 1.8rem;
        min-width: 1.8rem;
        margin-right: .45rem;
        font-size: 1.22rem;
    }

    .quick-action-card span {
        font-size: .76rem;
    }
}
