@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
body {
    font-family: "Poppins", sans-serif;
    margin: 0;
    background: #fff;
}

.table-page {
    padding: 20px;
}

.toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: space-between;
    z-index: 9;
	/* flex-direction: column; */
}

.toolbar input,
.toolbar select {
    padding: 6px 10px;
    font-size: 14px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    font-size: 14px;
}

table tbody tr{
	border-bottom: 1px solid #392e2e4a;
}

th {
    background: #f7f7f7;
    font-weight: bold;
    cursor: pointer;
    position: relative;
}

th .en {
    display: block;
    font-size: 16px;
}

th .ar {
    display: block;
    font-size: 15px;
    color: #777;
}

th.sortable::after {
    content: "⇅";
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #aaa;
}

th.asc::after {
    content: "▲";
    color: #000;
}

th.desc::after {
    content: "▼";
    color: #000;
}


img {
    width: 150px;
    height: auto;
}

#stickyFooter {
    position: sticky;
    bottom: 0;
    background: #f9f9f9;
    border-top: 1px solid #ddd;
    padding: 10px 20px;
    text-align: right;
    font-size: 14px;
}

.availability {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.availability::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.availability.in-stock::before {
    background-color: #2ecc71; /* green */
}

.availability.low-stock::before {
    background-color: #f1c40f; /* yellow */
}
div#tableContainer {
    overflow: auto;
}
.toolbar input, .toolbar select {
  
    border-radius: 5px;
}
.wrapperInput {
    position: relative;
    max-width: 300px;
    width: 100%;
   height: 39px;
}
svg.svgSearch {
    position: absolute;
    z-index: 9;
    top: -4px;
    bottom: 0;
    margin: auto;
    left: 10px;
    width: 15px;
}
input#searchInput {
	font-size: 18px;
    position: relative;
    padding-left: 30px;
    width: 100%;
    box-sizing: border-box;
    height: 100%;
	border: 1px solid #392e2e4a;
}

.filter-buttons {
    display: flex;
    gap: 8px;
}

.filter-buttons a {
    padding: 6px 14px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
    color: #000;
    text-decoration: none;
}

/* .filter-buttons a:hover {
    background: #222;
    color: #fff;
    border-color: #222;
} */

.filter-buttons a.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

th, td {
    border: 0px solid #dddddd1f;
    padding: 5px;
    text-align: left;
    padding-right: 10px !important;

}

td.title-col {
    font-size: 16px;
}

img {
    width:70px;
    height: auto;
}
tr>td:nth-child(4) {
    font-weight: 700;
}
th.sortable.titlewidth {
    width: 30%;
}
body {
    overflow: clip;
}
div#tableContainer {
    overflow: auto;
    height: calc(100dvh - 136px);
}
thead {
    position: sticky;
    top: 0;
}
#myBtn {
    display: block;
    position: fixed;
    bottom: 12px;
    right: 30px;
    z-index: 2;
    font-size: 14px;
    border: none;
    outline: none;
    background-color: #000000;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    width: 50px;
    height: 50px;
 }
#myBtn {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 30px;
    z-index: 2;
    font-size: 14px;
    border: none;
    outline: none;
    background-color: #000000;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    width: 50px;
    height: 50px;
	justify-content: center;
    align-items: center;
}
 #myBtn svg{
	 fill:white;
 }
@media only screen and (max-width:767px){
#myBtn {
    bottom: 40px;
    width: 40px;
    height: 40px;
 }
 
table {
    table-layout: auto;
}
	section.table-page h2 {
    margin: 0 0 0px;
    display: none;
}
	.table-page {
		padding: 16px;
		background: #f9f9f9;
	}
	.toolbar {
		display: flex;
		gap: 6px;
		margin-bottom: 2px;
		justify-content: space-between;
		background: #fff;
		padding: 10px 11px;
		border-radius: 5px;
		position: sticky;
		top: 0;
		border: 1px solid #ffffff6b;
		box-shadow: 1px 1px 5px 0px #00000017;
		border-bottom-left-radius: 0px;
		border-bottom-right-radius: 0px;
		flex-direction: column;
	}
	div#tableContainer {
		overflow: auto;
		background: #ffffff;
		
	}
	th {
    background: #ffffff;
    
}td img {
    width: 70px;
    object-fit: contain;
}
td.title-col {
    font-size: 12px;
}

td.price-col {
    font-size: 12px;
}

th, td {
    border: 0px solid #dddddd1f;
    padding: 5px;
    text-align: left;
    font-size: 11px;
    padding-right: 10px !important;

}

body th .en, body th .ar {
    font-size: 11px !important;
    white-space: nowrap;
}
th.sortable::after {
    right: 0 !important;
  }
  tr:first-child {
    box-shadow: 1px 1px 5px 0px #00000017;
}
input#searchInput {
    font-size: 14px;
    width: 100%;
    border: 1px solid #00000042;
    position: relative;
    min-height: 32px;
    padding-left: 30px;
    box-sizing: border-box;
}
.wrapperInput {
    position: relative;
}
svg.svgSearch {
    position: absolute;
    z-index: 9;
    top: -4px;
    bottom: 0;
    margin: auto;
    left: 10px;
    width: 15px;
}
.filter-buttons a {
    padding: 2.5px 14px;
   }
 div#tableContainer {
    height: calc(100dvh - 174px);
}
th.sortable.titlewidth {
    width: auto;
    min-width: 140px;
}
}