/*--------------------------------------------------------------
# Template CSS
--------------------------------------------------------------*/
:root {
  --primary: #009CFF;
  --light: #F3F6F9;
  --dark: #191C24;
}

@font-face {
  font-family: 'Noto Naskh Arabic';
  src: url('noto-naskh-arabic.ttf') format('truetype');
  font-style: normal;
}

body {
  font-size: 0.9rem;
}

kbd {
  background: #f4f4f4;
  color: #757575;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: bold;
  box-shadow: inset 0 -1px 0 #bbb;
  font-family: monospace;
}

.min-vh-100 {
  min-height: 100vh;
}

.text-rtl {
  direction: rtl;
}

.text-rtl h6 {
  direction: ltr;
}

.spinner {
  background: url(../img/spinner.gif) no-repeat;
  background-size: 20px 20px;
  display: inline-block;
  visibility: hidden;
  vertical-align: middle;
  opacity: .7;
  width: 20px;
  height: 20px;
  margin: 0px 6px 0;
}

.back-to-top {
  position: fixed;
  right: 45px;
  bottom: 45px;
  z-index: 99;
}

/*--------------------------------------------------------------
# Scroll Bar
--------------------------------------------------------------*/
/* For Webkit-based browsers (e.g., Chrome, Safari) */
::-webkit-scrollbar {
  width: 12px; /* Width of the scrollbar */
}

::-webkit-scrollbar-track {
  background-color: #F3F6F9; /* Track color */
}

::-webkit-scrollbar-thumb {
  background-color: #a9b2bd; /* Thumb color */
  border-radius: 6px; /* Rounded thumb */
}

::-webkit-scrollbar-thumb:hover {
  background-color: #7d8c9b; /* Thumb hover color */
}

/* For Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #a9b2bd #F3F6F9;
}

/*--------------------------------------------------------------
# Fonts
--------------------------------------------------------------*/
.font-urdu {
  font-family: 'Noto Naskh Arabic';
  direction: rtl;
  font-size: 18px;
  /* unicode-bidi: embed; */
}

/*--------------------------------------------------------------
# Loading Animation
--------------------------------------------------------------*/
.loader {
  display: inline-block;
  border: 3px solid #d5d5d5;
  border-top: 3px solid #555;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  position: relative;
  top: 3px;
  margin-right: 3px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-txt {
  display: inline-block;
  vertical-align: top;
  margin-top: 1px;
  margin-left: 1px;
}

/*--------------------------------------------------------------
# Floating Alerts
--------------------------------------------------------------*/
.quick .alerts {
	position: fixed;
  top: 10px;
  right: 9px;
  width: 100%;
  max-width: 400px;
  z-index: 1;
}

@media screen and (max-width: 782px) {
	.quick .alerts {
    top: 60px;
	}
}

.quick .alert {
  text-align: left;
  font-size: 14px;
  padding: 17px 21px 18px;
  margin-bottom: 5px;
  border-left: 5px solid;
}

.quick .alert-primary {
  color: #004085;
  background-color: #cce5ff;
  border-color: #b8daff;
}

.quick .alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.quick .alert-warning {
	color: #856404;
  background-color: #fff3cd;
  border-color: #ffeeba;
}

.quick .alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.quick .alert span.dismiss {
  padding: 0 2px;
  cursor: pointer;
  float: right;
  margin-left: 11px;
}

.quick .alert a {
  color: inherit;
  text-decoration: none;
  font-weight: bold;
}

/*--------------------------------------------------------------
# Processing Sale
--------------------------------------------------------------*/
.processing-sale {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.64);
  z-index: 99999;
}

/*--------------------------------------------------------------
# Spinner
--------------------------------------------------------------*/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease-out, visibility 0s linear .5s;
  z-index: 99999;
}

#spinner.show {
  transition: opacity .5s ease-out, visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Paging Nav
--------------------------------------------------------------*/
.page-link {
  background-color: transparent;
}

/*--------------------------------------------------------------
# Button
--------------------------------------------------------------*/
.btn {
  transition: .5s;
}

.btn.btn-primary {
  color: #FFFFFF;
}

.btn-square {
  width: 38px;
  height: 38px;
}

.btn-sm-square {
  width: 32px;
  height: 32px;
}

.btn-lg-square {
  width: 48px;
  height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
  border-radius: 50px;
}

/*--------------------------------------------------------------
# Layout
--------------------------------------------------------------*/
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  height: 100vh;
  overflow-y: auto;
  background: var(--light);
  transition: 0.5s;
  z-index: 999;
}

.content {
  margin-left: 280px;
  min-height: 100vh;
  background: #FFFFFF;
  transition: 0.5s;
}

@media (min-width: 992px) {
  .sidebar {
    margin-left: 0;
  }

  .sidebar.open {
    margin-left: -280px;
  }

  .content {
    width: calc(100% - 280px);
  }

  .content.open {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 991.98px) {
  .sidebar {
    margin-left: -280px;
  }

  .sidebar.open {
    margin-left: 0;
  }

  .content {
    width: 100%;
    margin-left: 0;
  }
}

/*--------------------------------------------------------------
# Navbar
--------------------------------------------------------------*/
.sidebar .navbar .navbar-nav .nav-link {
  padding: 7px 20px;
  color: var(--dark);
  font-weight: 500;
  border-left: 3px solid var(--light);
  border-radius: 0 30px 30px 0;
  outline: none;
}

.sidebar .navbar .navbar-nav .nav-link:hover,
.sidebar .navbar .navbar-nav .nav-link.active {
  color: var(--primary);
  background: #FFFFFF;
  border-color: var(--primary);
}

.sidebar .navbar .navbar-nav .nav-link i {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border-radius: 40px;
}

.sidebar .navbar .navbar-nav .nav-link:hover i,
.sidebar .navbar .navbar-nav .nav-link.active i {
  background: var(--light);
}

.sidebar .navbar .dropdown-toggle::after {
  position: absolute;
  top: 16px;
  right: 15px;
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  transition: .5s;
}

.sidebar .navbar .dropdown-toggle[aria-expanded=true]::after {
  transform: rotate(-180deg);
}

.sidebar .navbar .dropdown-item {
  padding-left: 25px;
  border-radius: 0 30px 30px 0;
}

.content .navbar .navbar-nav .nav-link {
  margin-left: 25px;
  padding: 12px 0;
  color: var(--dark);
  outline: none;
}

.content .navbar .navbar-nav .nav-link:hover,
.content .navbar .navbar-nav .nav-link.active {
  color: var(--primary);
}

.content .navbar .sidebar-toggler,
.content .navbar .navbar-nav .nav-link i {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border-radius: 40px;
}

.content .navbar .dropdown-toggle::after {
  margin-left: 6px;
  vertical-align: middle;
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  transition: .5s;
}

.content .navbar .dropdown-toggle[aria-expanded=true]::after {
  transform: rotate(-180deg);
}

@media (max-width: 575.98px) {
  .content .navbar .navbar-nav .nav-link {
    margin-left: 15px;
  }
}

/*--------------------------------------------------------------
# Date Picker
--------------------------------------------------------------*/
.bootstrap-datetimepicker-widget.bottom {
  top: auto !important;
}

.bootstrap-datetimepicker-widget .table * {
  border-bottom-width: 0px;
}

.bootstrap-datetimepicker-widget .table th {
  font-weight: 500;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
  padding: 10px;
  border-radius: 2px;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
  background: var(--primary);
}

.bootstrap-datetimepicker-widget table td.today::before {
  border-bottom-color: var(--primary);
}

/*--------------------------------------------------------------
# Testimonial
--------------------------------------------------------------*/
.progress .progress-bar {
  width: 0px;
  transition: 2s;
}

.testimonial-carousel .owl-dots {
  margin-top: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.testimonial-carousel .owl-dot {
  position: relative;
  display: inline-block;
  margin: 0 5px;
  width: 15px;
  height: 15px;
  border: 5px solid var(--primary);
  border-radius: 15px;
  transition: .5s;
}

.testimonial-carousel .owl-dot.active {
  background: var(--dark);
  border-color: var(--primary);
}

/*--------------------------------------------------------------
# Sale
--------------------------------------------------------------*/
.measurement-detail.accordion-flush .accordion-item .accordion-button,
.extra-detail .accordion-flush .accordion-item .accordion-button {
  background-color: #c9e7fb;
  border-radius: 0;
}

.measurement-detail .accordion-button::after,
.extra-detail .accordion-button::after {
  margin: 2px auto;
  width: 15px;
  height: 15px;
  background-size: 15px;
}

/*--------------------------------------------------------------
# Receipt
--------------------------------------------------------------*/
.invoice {
  font-family: 'Segoe UI';
  font-size: 15px;
  font-weight: 600;
  max-width: 100mm;
  min-height: 72mm;
  color: #000;
  background: #fff;
}

.invoice p {
  font-size: 15px;
}

.invoice .invoice-bot {
	min-height: 50px;
}

.invoice table {
  width: 100%;
  border-collapse: collapse;
}

.invoice .table-title {
  border-top: 1px dashed #000;
  border-bottom: 1px dashed #000;
}

.invoice p.legal {
  margin: 7px 0;
}

.invoice-bot .appointment-type-title {
	width: 55%;
}

.invoice-bot .qty-title,
.invoice-bot .fee-title  {
	width: 15%;
}

.invoice-bot .total-title {
	width: 30%;
}

.invoice-bot p {
  color: #666;
  line-height: 1.2em;
}

.invoice .invoice-title {
  text-align: center;
  padding: 4px 0 3px;
}

.invoice .invoice-title h1 {
  font-size: 18px;
  font-weight: 600;
  padding: 0;
}

.invoice .invoice-title img {
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
}

.invoice .invoice-top {
  text-align: center;
  padding: 72px 0;
  border-bottom: none;
}

.invoice .invoice-mid {
  padding: 0 0 7px 0;
}

.invoice .invoice-mid td {
  width: auto;
  min-width: 90px;
  vertical-align: baseline;
}

.invoice .invoice-bot p {
  color: #000;
}

.invoice-container {
  position: fixed;
  height: 100%;
  padding: 5px 10px;
  top: 0px;
  right: -106mm;
  background: #fff;
  border-left: 2px solid #ddd;
  transition: all 500ms ease;
  z-index: 1020;
}

.invoice {
  overflow-y: auto;
  height: 100%;
}

.invoice-close {
  position: fixed;
  right: 0;
  bottom: 20px;
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
  transition: all 500ms ease;
}

.position .invoice-close {
  right: 105.9mm;
  transition: all 500ms ease;
}

.position {
  right: 0;
  transition: all 500ms ease;
}

/*--------------------------------------------------------------
# Barcode Generator
--------------------------------------------------------------*/
.labels {
  max-width: 39.878mm;
  min-height: 72mm;
  overflow-y: auto;
  height: 100%;
}

.labels-container {
  position: fixed;
  height: 100%;
  padding: 5px 10px;
  top: 0px;
  right: -46mm;
  background: #fff;
  border-left: 2px solid #ddd;
  transition: all 500ms ease;
  z-index: 1020;
}

.labels-close {
  position: fixed;
  right: 0;
  bottom: 20px;
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
  transition: all 500ms ease;
}

.position .labels-close {
  right: 45.9mm;
  transition: all 500ms ease;
}

.position {
  right: 0;
  transition: all 500ms ease;
}

.barcodes {
  padding: 0;
  font-size: 13px;
  line-height: 13.5px;
}

.barcodes .barcode-container {
  margin: 0 0 10px 0;
  padding: 0;
  text-align: center;
  page-break-after: always;
}

.barcodes .barcode-container .barcode {
  margin-top: -8px;
  height: 40px;
}

.barcodes .barcode-container .barcode-value {
  margin-top: -8px;
}

/*--------------------------------------------------------------
# Reports
--------------------------------------------------------------*/
.sold-products,
.expense-titles,
.withdrawal-titles {
  max-width: 100px;
}

/*--------------------------------------------------------------
# jQuery UI
--------------------------------------------------------------*/
.ui-autocomplete-loading {
  background: url('../img/loading.gif') no-repeat right center; /* Spinner image */
  background-size: 18px 18px; /* Adjust spinner size */
  background-origin: content-box; /* Align with input padding */
}

.ui-autocomplete {
  max-height: 200px;
  overflow-y: scroll;
  overflow-x: hidden;
}

/*--------------------------------------------------------------
# Print
--------------------------------------------------------------*/
@media print {

  .mb-print-0 {
    margin-bottom: 0 !important;
  }

  .pb-print-2 {
    padding-bottom: .5rem !important;
  }

}
