.alert_success {
  color: #fff;
  text-align: center;
  font-weight: bold;
  background: #317eeb;
  padding: 10px;
  border-radius: 5px;
}

.row_img {
  width: 40px;
  height: 40px;
  border-radius: 50px;
  margin: 0 auto;
}

/* --------- */
.pagination {
  display: inline-block;
}

.pagination a {
  color: black;
  float: left;
  padding: 8px 16px;
  text-decoration: none;
  transition: background-color 0.3s;
  border: 1px solid #ddd;
  margin: 0 4px;
}

.pagination a.active {
  background-color: #317eeb;
  color: white;
  border: 1px solid #317eeb;
}

/* --------category style------ */
#main-nav {
  padding: 5px 0 5px 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  width: 25%;
}

#main-nav ul {
  list-style-type: none;
  padding-left: 0px;
  text-align: center;
}

.well,
.card .card-block {
  background-color: #fff;
  border: 1px solid #ebebeb;
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  border-radius: 0;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
  padding: 19px;
  margin-bottom: 20px;
}

#main-nav li {
  color: #767676;
  list-style-type: none;
}

#main-nav li a {
  color: #000;
  text-shadow: none;
  display: block;
  position: relative;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 14px;
}

.cat {
  position: relative;
}

.cat a {
  padding: 1rem;
  z-index: 1;
  position: relative;
  transition: all 0.6s ease-in 0.2s;
}

li.cat a::before {
  content: "";
  width: 3px;
  height: 100%;
  background-color: #4183d7;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.2s, width 0s cubic-bezier(1, 0, 0.01, 1) 0.2s;
  transform: scaleY(0);
  z-index: -1;
}

li.cat a span {
  color: inherit;
}

.category-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
}

#main-nav li.cat a:hover {
  color: #fff;
}

li.cat a:hover::before {
  transform: scaleY(1);
  width: 100%;
}

li.cat a::before {
  content: "";
  width: 3px;
  height: 100%;
  background-color: #4183d7;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.2s, width 0.2s cubic-bezier(1, 0, 0.01, 1) 0.2s;
  transform: scaleY(0);
  z-index: -1;
}

li.main-category.cat .category-wrap {
  position: absolute;
  top: 0;
  left: 100%;
  opacity: 0;
  height: 0;
  width: 12rem;
  background: #e5e9ee;
  transition: all 0.2s linear;
}

li.main-category.cat ul.category-list {
  transition: all 0.2s linear;
}

li.sub-category.cat {
  font-size: 0.6rem;
}

li.main-category.cat:hover .category-wrap {
  opacity: 1;
  height: 100%;
  font-size: 1rem;
}

/* -------------------category page */

.table_content_wrapper {
  padding-bottom: 20px;
}

.inner_content {
  display: flex;
  justify-content: space-between;
  padding: 20px;
}

.inner_content h2 {
  margin-right: 12px;
  margin-bottom: 0;
  color: rgba(0, 0, 0, 0.85);
  font-weight: 600;
  font-size: 20px;
  line-height: 32px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.inner_content a {
  background: #338fff;
  padding: 5px 15px;
  color: #fff;
  border-radius: 3px;
}

.inner_content2 {
  padding: 20px;
}

.category table {
  width: 100%;
  table-layout: fixed;
}

.category thead tr {
  background: #fafafa;
}

.category th {
  padding: 20px 15px;
  text-align: left;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
}

#category_table tbody tr {
  background: #ffffff;
  border-bottom: 1px solid #eee !important;
  height: 50px !important;
  padding: 0 20px;
  padding: 0 20px;
}
#category_table tbody tr td {
  padding: 8px;
}
#category_table tbody tr td .plus_btn {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 2px solid #eee;
  margin-right: 3px;
}
#category_table tbody tr td .plus_btn:hover {
  border-color: #999999;
}

#category_table tr:hover {
  background: #fafafa;
}
.subbutton {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 2px solid #eee;
  margin-right: 3px;
}

/* ----------------popup--- */
#popup {
  display: none;
}
.popup-container {
  height: 100vh;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  background-color: rgba(183, 182, 186, 0.41);
  position: absolute;
  top: 0;
  left: 0;
}
.popup {
  background-color: #ffffff;
  padding: 20px 30px;
  width: 30%;
  border-radius: 15px;
}
.close-popup {
  float: right;
}
.close-popup a {
  font-size: 1.2rem;
  color: #000;
  padding: 5px 10px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  display: inline-block;
}

.cat_btn {
  background: #2563eb;
  padding: 5px 10px;
  border-radius: 5px;
  margin: 5px;
  color: white;
}
.cat_btn2 {
  background: red;
}

.pos_category {
  display: none;
  position: absolute;
  top: 40px;
  left: 20px;
  width: 300px;
  overflow: auto;
}

.brand_poput {
  width: 500px;
  height: 370px;
  margin: 0 auto;
  text-align: center;
  margin-top: 5%;
  background: #fff;
  border: 2px solid #dfdfdf;
}
.add_product_main > div {
  margin-top: 10px;
}
.add_product_main > div > input {
  margin: 5px 0;
}

.table_parent {
  padding: 10px;
  overflow: auto;
}
.right-text h5 {
  margin-top: 10px;
}

.right-text > a {
  background: #fff;
  color: #000;
  display: block;
  margin: 0 auto;
  display: table;
  padding: 10px;
  border-radius: 5px;
  margin-top: 20px;
}
.add_remove_div {
  background: #fff;
  padding: 20px;
}
.add_remove_img {
  margin-top: 30px;
  padding: 5px 10px;
  background: #338fff;
  border-radius: 5px;
  outline: none;
  border: none;
  color: #fff;
}
.add_remove_img:hover {
  background: #2268be;
}

.page_heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main_content_container {
  display: block;
  flex-direction: unset;
}
.input {
  --tw-ring-offset-shadow: unset;
  --tw-ring-shadow: unset;
  box-shadow: unset;
}
@media only screen and (max-width: 768px) {
  .page_heading {
    display: block;
    text-align: center;
  }
  .flex_order{
    display: flow-root;
  }
  .table_header_right > input {
    width: 50%;
}
.pos_category {
  width: 87%;
}
.pagination_buttons {
  display: flow-root;
}

.pagination a {
  padding: 0px 5px;
}

.table_header_left {
  display: block;
  text-align: right;
}
.main_content_container {
  flex-direction: unset;
}


}
