@font-face {
  font-family: Vazir;
  src: url("../font/Vazir-FD.eot");
  src: url("../font/Vazir-FD.eot?#iefix") format("Vazir-opentype"),
    url("../font/Vazir-FD.woff") format("woff"),
    url("../font/Vazir-FD.woff2") format("woff2"),
    url("../font/Vazir-FD.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: "Vazir";
}

.vazir-font {
  font-family: "Vazir" !important;
}

select.form-select {
    font-family: 'Vazir', Tahoma, sans-serif;
}

#info-box-upper-site-toggller {
  position: fixed;
  top: 64px;
  left: 2px;
  z-index: 6099;
  font-size: 17px;
  line-height: 1;
}

#info-box-upper-site {
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1045;
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 1rem;
}

#info-box-upper-site .small {
  padding: 0.5rem;
  border-radius: 100px;
  border: solid 1px #d0d0d0;
  text-align: center;
}

#info-box-upper-site .small.poodeman-panel-toggle-btns-box {
  padding: 0;
}

#info-box-upper-site .small.poodeman-panel-toggle-btns-box span {
  padding: 0.5rem 1rem;
  background-color: #e9ecef;
}

#info-box-upper-site .small.poodeman-panel-toggle-btns-box span:first-child {
  border-radius: 0 100px 100px 0;
}

#info-box-upper-site .small.poodeman-panel-toggle-btns-box span:last-child {
  border-radius: 100px 0 0 100px;
}

#info-box-upper-site .small.poodeman-panel-toggle-btns-box span.active {
  background-color: #c82578;
  color: #fff;
}

#info-box-upper-site .small.poodeman-panel-toggle-btns-box span.active:first-child {
  border: solid 1px #fff;
  border-left: none;
}

#info-box-upper-site .small.poodeman-panel-toggle-btns-box span.active:last-child {
  border: solid 1px #fff;
  border-right: none;
}

#info-box-upper-site .net-online-status-box {
  box-shadow: 0 0 0 0 rgba(#ff0000, 1);
  transform: scale(1);
  animation: none;
}

#header-pills-tab {
  position: sticky;
  top: 57px;
  z-index: 1045;
  background-color: #fff;
}

#orders-pills-tab {
  position: sticky;
  top: 57px;
  z-index: 1045;
  background-color: #fff;
  transition: top 0.45s linear;
}

#imageOffcanvas {
  width: fit-content;
}

#part-table-container {
  overflow: auto;
  max-height: 700px;
}

#part-table thead {
  position: sticky;
  top: 0;
}

#control-pp-table-container {
  overflow: auto;
  height: 685px;
}

#control-pp-table thead {
  position: sticky;
  top: 0;
  z-index: 1000;
}

#perfect-parts-table-right-container {
  overflow: auto;
  height: 760px;
}

#perfect-parts-table-right thead {
  position: sticky;
  top: 0;
  z-index: 1000;
}

#perfect-parts-table-left-container {
  overflow: auto;
  height: 760px;
}

#perfect-parts-table-left thead {
  position: sticky;
  top: 0;
  z-index: 1000;
}

#report-car-container {
  overflow: auto;
  height: 720px;
}

#report-car thead {
  position: sticky;
  top: 0;
  z-index: 1000;
}

#perfect-parts-table-save-container {
  overflow: auto;
  height: 720px;
}

#perfect-parts-table-save thead {
  position: sticky;
  top: 0;
  z-index: 1000;
}

#car-brand-count-table-container {
  overflow: auto;
  height: 720px;
}

#car-brand-count-table thead {
  position: sticky;
  top: 0;
  z-index: 1000;
}

#car-name-count-table-container {
  overflow: auto;
  height: 720px;
}

#car-name-count-table thead {
  position: sticky;
  top: 0;
  z-index: 1000;
}

#orders-customer-list-table-container {
  overflow: auto;
  height: 760px;
}

#orders-customer-list-table thead {
  position: sticky;
  top: 0;
  z-index: 1000;
}

#orders-customer-list-table td,
#orders-customer-list-table th {
  white-space: nowrap;
}

#orders-customer-orders-list-table-container {
  overflow: auto;
  height: 760px;
}

#orders-customer-orders-list-table thead {
  position: sticky;
  top: 0;
  z-index: 1000;
}

#orders-customer-orders-list-table .customer-orders-filter-btn.active {
  background-color: #fff;
}

#orders-customer-orders-list-table td,
#orders-customer-orders-list-table th {
  white-space: nowrap;
}

#orders-archive-list-table-container {
  overflow: auto;
  height: 760px;
}

#orders-archive-list-table thead {
  position: sticky;
  top: 0;
  z-index: 1000;
}

#orders-archive-list-table td,
#orders-archive-list-table th {
  white-space: nowrap;
}

#orders-archive-orders-list-table-container {
  overflow: auto;
  height: 760px;
}

#orders-archive-orders-list-table thead {
  position: sticky;
  top: 0;
  z-index: 1000;
}

#orders-archive-orders-list-table td,
#orders-archive-orders-list-table th {
  white-space: nowrap;
}

#orders-order-rows-list-table-container {
  overflow: auto;
  height: 710px;
}

#orders-order-rows-list-table thead {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.orders-order-rows-list-table-totals-row {
  position: sticky;
  top: 200px;
}

#rows-report-table-container {
  overflow: auto;
  height: 760px;
}

#rows-report-table {
  font-size: 14px;
}

#rows-report-table thead {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.suggestion-list {
  max-height: 200px;
  width: calc(100% - 16px);
  overflow-y: auto;
  z-index: 1010;
  box-sizing: border-box;
}

.suggestion-item:hover {
  background-color: #f0f0f0;
}

.cursor-pointer {
  cursor: pointer;
}

#perfect-parts-table-right tr:hover {
  background-color: #c7dbd2;
}

#imageOffcanvas {
  z-index: 1050;
}

.swal2-title {
  font-size: 16px;
  line-height: 1.5;
}

.swal2-html-container {
  font-size: 16px;
}

.swal2-icon {
  width: 4em;
  height: 4em;
  border: none;
}

#group-results-pills-tab {
  /*position: sticky;*/
  /*top: 140px;*/
  height: 600px;
  overflow: scroll;
}

#group-results-pills-tabContent {
  height: 600px;
  overflow: scroll;
}

#login-form-logo {
  width: 120px;
  height: auto;
}

#login-form-submit-btn {
  height: 39px;
}

table .form-check-input {
  width: 20px;
  height: 20px;
}

#offcanvasImage {
  width: 100%;
}

#imageOffcanvas {
  max-width: 50%;
}

.img-part-container {
  position: relative;
}

.img-part-code-marker {
  position: absolute;
  border: 2px solid #4b78ff;
  pointer-events: auto;
  border-radius: 100px;
  z-index: 20;
  cursor: pointer;
}

.img-part-code-marker:hover {
  border-color: red;
}

/* ==== مستطیل‌ها (label-rectangle) ==== */
.label-rectangle {
  position: absolute;
  border: 2px solid #4b78ff;
  pointer-events: auto;
  border-radius: 100px;
  z-index: 20;
  cursor: pointer;
}

.label-rectangle:hover {
  border-color: red;
}

/* وقتی موس روی ردیف جدول می‌ره → مستطیل قرمز بشه */
.label-rectangle.highlighted {
  border-color: red;
}

/* ==== جدول ==== */
#group-table tbody tr {
  cursor: pointer;
}

#group-table tbody tr:hover td {
  background-color: #ccdffc;
}

/* وقتی موس روی مستطیل می‌ره → ردیف آبی بشه */
#group-table tbody tr.hovered td {
  background-color: #ccdffc;
}

/* ==== قاب تصویر و مستطیل‌ها ==== */
.group-parts-image-wrapper {
  position: relative;
  display: inline-block;
  overflow: auto;
  width: 100%;
  max-height: 700px;
  direction: ltr;
}

/* ==== تصویر داخل قاب ==== */
.group-parts-image-wrapper img {
  display: inline-block;
  max-width: none;
  height: auto;
}

/* ==== کانتینر اسکرول‌پذیر جدول ==== */
#group-table-container {
  position: relative;
  height: 700px;
  overflow: auto;
}

/* ==== دکمه‌های بزرگ‌نمایی ==== */
.zoom-controls {
  display: flex;
  gap: 6px;
  width: calc(40% + 16px);
}

.zoom-controls span {
  cursor: pointer;
}

#show-group-parts-offcanvas {
  height: calc(100% - 113px);
}

#show-group-parts-offcanvas-header-close-btn {
  width: calc(20% - 16px);
}

#show-group-parts-offcanvas .offcanvas-body {
  overflow-y: unset;
}

.perfect-parts-table-right-wrapper,
.perfect-parts-table-left-wrapper {
  transition: width 0.2s linear;
}

.car-in-group-view-img-small-container {
  border: solid 1px #c7c7c7;
}

.dragscroll {
  cursor: grab;
}

.dragscroll.is-dragging {
  cursor: grabbing;
}

#zoom-in,
#zoom-out,
#zoom-reset,
#download-img-btn {
  color: #a5a5a5;
  transition: color 0.2 linear;
}

#zoom-in:hover,
#zoom-out:hover,
#zoom-reset:hover,
#download-img-btn:hover {
  color: #139ed4;
  transition: color 0.2s linear;
}

#report-car-tab {
	transition: border-width 0.5s linear;
	border-right: solid 0px #d85c12;
	border-left: solid 0px #d85c12;
}

#report-car-tab.has-deactive-car {
	transition: border-width 0.5s linear;
	border-right: solid 28px #d85c12;
	border-left: solid 28px #d85c12;
}

#report-car.table-hover > tbody > tr:hover > * {
	--bs-table-bg-state: #d85c12;
	--bs-table-color-state: #d8d8d8;
}

hr {
  color: #d7cbcb;
}

.group-results-cat-text-en {
  color: #f72a2a;
}

.group-results-cat-btn.active .group-results-cat-text-en {
  color: #ffd700;
}

#nprogress .bar {
	background: #e99c0c;
	z-index: 1075;
	height: 5px;
}

#nprogress .spinner {
  display: none;
}

#nprogress .peg {
    box-shadow: 0 0 10px #e99c0c,0 0 5px #e99c0c;
}

.btn-close {
  transform: scale(0.8);
}

.offcanvas-backdrop {
	z-index: 1045;
}

div:where(.swal2-container) div:where(.swal2-popup) {
	width: 24em !important;
}

.text-underline-offset-6px {
  text-underline-offset: 6px;
}

.text-underline-offset-7px {
  text-underline-offset: 7px;
}

#show-order-rows-offcanvas {
  height: calc(100% - 113px);
}

#show-order-rows-offcanvas .offcanvas-body {
  overflow-y: unset;
}

#orders-order-new-row-modal-form-submit {
    display: flex;
    padding: 12px 18px;
}

#orders-order-edit-row-modal-form-submit {
    display: flex;
    padding: 12px 18px;
}

#show-order-rows-offcanvas-header-close-btn {
  width: calc(20% - 16px);
}

.iziToast {
  min-width: 380px;
}

.iziToast-message {
	font-family: vazir;
}

.iziToast > .iziToast-body .iziToast-message {
    margin: 0 0 8px 0;
    line-height: 20px;
    font-size: 14px;
}

.edit-input:focus {
  width: 250px;
}

.split {
  display: flex;
  flex-direction: row;
}

.gutter {
  background-color: #9b9b9b;
  background-repeat: no-repeat;
  background-position: 50%;
}

.gutter.gutter-horizontal {
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==');
  cursor: col-resize;
}

.btn-check:checked + .btn.btn-radio {
  color: #f0f0f0;
  background-color: #A78962;
  border-color: #976f3a;
}

.dropdown-menu {
  overflow: hidden;
}

.current-prices-box {
  direction: ltr;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(var(--pulse-color), 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 15px rgba(var(--pulse-color), 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(var(--pulse-color), 0);
  }
}

#main-form-tab {
  white-space: nowrap;
}