@font-face {
  font-family: IRANYekanX;
  font-style: normal;
  font-weight: bold;
  src: url('../fonts/woff/IRANYekanX-Bold.woff') format('woff'), url('../fonts/woff2/IRANYekanX-Bold.woff2') format('woff2');
}

@font-face {
  font-family: IRANYekanX;
  font-style: normal;
  font-weight: normal;
  src: url('../fonts/woff/IRANYekanX-Regular.woff') format('woff'), url('../fonts/woff2/IRANYekanX-Regular.woff2') format('woff2');
}

@font-face {
  font-family: IRANYekanFa;
  font-style: normal;
  font-weight: bold;
  src: url('../fonts/woff/IRANYekanFa-Bold.woff') format('woff');
}

@font-face {
  font-family: IRANYekanFa;
  font-style: normal;
  font-weight: normal;
  src: url('../fonts/woff/IRANYekanFa-Regular.woff') format('woff');
}

.fadigit {
  font-family: IRANYekanFa !important;
}

.products-container {
  width: 100%;
  overflow-x: auto;
}

.products-container button {
  padding: 5px 20px;
  margin: 0 0 10px 0;
  background: #e7eefb;
  border-color: #528fff;
  color: #528fff;
  border-radius: 100px;
}

table.product-details *,
table.related-products-table * {
  font-family: IRANYekanX;
  font-size: 14px;
  font-weight: normal;
}

table.product-details thead tr th,
table.products thead tr th {
  font-weight: bold;
  font-size: 13px;
  padding: 10px;
}

table.product-details tr,
table.product-details tr td,
table.product-details thead,
table.product-details tbody,
table.product-details tfoot,
table.product-details tr th,
table.product-details tfoot tr tf,
table.products tr,
table.products tr td,
table.products thead,
table.products tbody,
table.products tfoot,
table.products tr th,
table.products tfoot tr tf {
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  border-collapse: inherit;
  border-spacing: 0;
  border-color: inherit;
  vertical-align: inherit;
  text-align: left;
  font-weight: inherit;
  -webkit-border-horizontal-spacing: 0;
  -webkit-border-vertical-spacing: 0;
  direction: rtl;
  text-align: right;
  white-space: nowrap;
}

table.product-details tr th,
table.products tr th {
  width: auto;
}

table.products tr td.name {
  white-space: pre-wrap;
  min-width: 200px;
}

table.products tr td.product_number {
  max-width: 50px;
  width: 50px;
}

table.product-details,
table.products {
  min-width: 100%;
  box-shadow: 0px 0px 5px 1px #f2f4f8;
  border-color: #e7e7e7;
  border-width: 1px 1px 0 1px;
  border-style: solid;
  border-radius: 5px;
  padding: 0;
  border-collapse: collapse;
}

table.product-details tr,
table.products tr {
  flex-grow: 1;
  border-bottom: 1px solid #e7e7e7;
}

table.product-details tr:nth-child(even),
table.products tr:nth-child(even) {
  background-color: #f2f4f8;
}

table.product-details tr:hover,
table.products tr:hover {
  background-color: #f4f8f0;
}

table.product-details thead tr,
table.product-details thead tr:hover,
table.products thead tr,
table.products thead tr:hover {
  background: #e7eefb;
}

table.product-details tr td,
table.products tr td {
  padding: 5px 10px;
  text-align: right;
}

table.products tr td.date {
}

table.products .price {
  font-weight: bold;
  font-size: 14px;
}

table.products .price-change {
  font-size: 12px;
  direction: ltr;
}

table.products .price-down {
  color: #cc1818;
}

table.products .price-up {
  color: #279613;
}

.products-container .pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
}

.products-container .pagination .active,
.products-container .pagination a {
  display: flex;
  min-width: 30px;
  background: hsl(0deg 0% 74.6% / 7.06%);
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  border: 1px solid #e7e7e7;
  color: #565656;
  line-height: 30px;
  padding: 0 10px;
}

.products-container .pagination a:hover,
.products-container .pagination .active {
  background: #e7eefb;
  border-color: #e7eefb;
}

#chartModal .modal-dialog {
  max-width: 800px;
}

#chartCanvas {
  width: 100%;
  height: 400px;
}

.chart-popup {
  display: flex;
  align-items: center;
  justify-content: center;
  align-content: center;
  flex-wrap: nowrap;
  position: fixed;
  z-index: 9999999;
  background: #000;
  width: 100vw;
  height: 100dvh;
  top: 0;
  right: 0;

  &.hidden {
    display: none;
  }

  .popup-inner {
    width: 60%;
    height: 400px;
  }
}

button.chart-link {
  border: 1px solid #e7eefb;
  background: #e7eefb;
  display: flex;
  gap: 5px;
  padding: 4px 12px;
  width: max-content;
  border-radius: 100px;
  color: #5c5c5c;
}

button.chart-link:focus,
button.chart-link:focus-visible,
button.chart-link:hover {
  border: 1px solid #dbe7ff;
  background: #dbe7ff;
  color: #5c5c5c;
  outline: none;
}

.elementor-widget-pardaad-product-widget,
.elementor-widget-pardaad-product-info-widget {
  direction: rtl;
  text-align: right;
}
