.grid-view {
    position: relative;
}

.grid-view thead th {
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 1;
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4);
}

.error-text {
    color: red;
    font-weight: bold;
}

.custom-pagination {
    background-color: #f8f9fa;
    padding: 5px 10px;
    border-radius: 100%;
}

.custom-pagination.prev {
    margin-right: 10px;
}

.custom-pagination.next {
    margin-left: 10px;
}


.custom-listbox {
    width: 100%;
    height: 120px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px;
    background-color: #fff;
    font-size: 14px;
}
.custom-listbox option {
    padding: 5px;
}
.custom-listbox option:hover {
    background-color: #f0f0f0;
}


.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    position: sticky;
    top: 0;
    background-color: #f4f4f4;
    z-index: 1;
    border-bottom: 2px solid #ddd;
}

tfoot {
    position: sticky;
    bottom: 0;
    background-color: #f4f4f4;
    z-index: 1;
    border-top: 2px solid #ddd;
}

th, td {
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f4f4f4;
}


.status-active {
    color: #fff;
    background-color: #28a745;
}

.status-inactive {
    color: #fff;
    background-color: #dc3545; /
}

.status-td {
    text-align: center;
    vertical-align: middle;
}

.status-container {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
}

.status-td {
    padding: 10px;
    text-align: center;
    font-weight: bold;
}

.table.table-bordered td.status-td {
    vertical-align: middle;
    padding: 7px 12px;
    font-weight: 600;
    letter-spacing: .3px;
    border-radius: 30px;
    font-size: 12px;
}

.table.table-bordered td.status-td.status-active {

    vertical-align: middle;
    padding: 7px 12px;
    font-weight: 600;
    letter-spacing: 3px;
    border-radius: 30px;
    font-size: 12px;
}

.table.table-bordered td.status-td.status-inactive {
    width: auto !important;
    padding: 7px 12px;
    font-weight: 600;
    letter-spacing: .3px;
    border-radius: 30px;
    font-size: 12px;
}


table {
    width: 100%;
    table-layout: auto;
}
th, td {
    padding: 8px;
    border: 1px solid #ddd;
}



/* multiple select */
.select2-container .select2-selection--multiple .select2-selection__choice {
    background-color: #007bff;
    color: black;
    border: 1px solid #0056b3;
    border-radius: 4px;
    padding: 2px 6px;
    margin-top: 4px;
    margin-right: 5px;
}

.select2-container .select2-selection--multiple .select2-selection__choice__remove {
    color: black;
    margin-right: 5px;
}

.select2-container .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #ffc107;
}


/*delete knopka uchun*/
.red-text {
    color: red !important;
}

/*hide cells table*/
.hidden-cell {
    visibility: hidden;
    display: none;
}




.total-sum-footer {
    position: sticky;
    bottom: 0;
    background-color: #f8f9fa;
    padding: 10px;
    border-top: 2px solid #dee2e6;
    font-weight: bold;
    text-align: right;
    z-index: 1;
}


.form-control, .form-select {
    width: 100%;
}



.product-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}
.select2-container {
    width: 100% !important;
}



/*//for dropdown submenu storage*/
.navbar-nav .dropdown-item:hover {
    background-color: #007bff;
    color: white;
}



/*faol knopkasi uchun*/
.badge-outline-success {
    color: #28a745;
    border: 1px solid #28a745;
    background-color: transparent;
}
/*faol knopkasi uchun*/




/*xisobotdagi dropdown uchun*/

.form-group {
    width: auto;
    margin-right: 10px;
}

.form-control {
    width: 100%;
    min-width: 150px;
}

.btn-primary {
    height: 40px;
}
/*xisobotdagi dropdown uchun*/