﻿.form-control {
    text-align: right;
}
.p-toast-message-content {
  display: flex
;
  align-items: center;
}

.p-toast .p-toast-message .p-toast-message-content .p-toast-message-text {
    margin: 0 10px 0 1rem;
}

.p-toast .p-toast-message .p-toast-message-content .p-toast-message-icon.p-icon {
  width: 1.5rem;
  height: 1.5rem;
}
.p-toast .p-toast-message .p-toast-message-content .p-toast-detail {
  margin-top: 0 !important;
}

.p-inline-message {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    vertical-align: top;
}

.p-inline-message .p-inline-message-text {
    font-size: 1rem;
    margin-right: 5px;
}

/* table datatable primereact library */

.p-datatable.p-datatable-gridlines .p-datatable-thead > tr > th {
    border-width: 1px 1px 1px 1px;
  }
  .p-datatable .p-datatable-thead > tr > th {
    border: 1px solid #e5e7eb;
  }
  .p-datatable-tbody > tr > td {
    text-align: right;
    font-size: var(--tblr-body-font-size);
    padding: 14px;
    border: 1px solid #e0e0e0;
  }

  .p-datatable-thead > tr > th {
    text-align: right;
    font-weight: 500;
  }

  .p-dropdown-items {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-right: 0 !important;
  }

  .text-align-center {
    text-align: center !important
  }
  .text-align-right {
    text-align: right !important
  }
  .text-align-left {
    text-align: left !important
  }
  .p-button.p-button-icon-only.p-button-rounded {
    height: 2rem !important
  }
  .p-button.p-button-icon-only{
    width: 2rem !important;
  }

  .p-inputtext {
    padding: 0.5rem 0.75rem !important;
  }

  .p-datatable .p-datatable-header {
    border: 1px solid #e5e7eb !important;
  }

  input[type=number]::-webkit-inner-spin-button,
  input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }

  /* For Firefox */
  input[type=number] {
    -moz-appearance: textfield;
  }


  .navbar-brand-image {
    height: 4rem;
    width: auto;
}

.unit-number-text {
  color: rgb(108 108 108);
  font-size: 14px;
}

.owner-name-text {
  color: #a0a0a0;
    font-size: 15px;
}

.number-ar {
  font-family: "Tajawal", sans-serif;
  font-variant-numeric: normal; /* Ensures proper Arabic numeral rendering */
  direction: rtl; /* Right-to-left alignment */
  unicode-bidi: embed; /* Forces RTL numbers to be displayed correctly */
}

.custom-tooltip {
  max-width: 200px; /* Set a maximum width */
  background-color: #ffffff; /* White background */
  color: #333333; /* Dark text color */
  font-size: 12px; /* Smaller font size */
  padding: 5px 5px; /* Decrease padding */
  border-radius: 4px; /* Optional: Add rounded corners */
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2); /* Optional: Add a subtle shadow */
  text-align: center; /* Center-align the text */
}


.p-datatable-tbody > tr > td {
    padding: 5px;
  }

  .p-datatable .p-datatable-thead > tr > th {
    padding: 0.5rem 0.5rem;
    font-size: 15px;
  }
  .p-datatable-tbody > tr > td {
    padding: 0.5rem 0.8rem;
  .unit-number-global {
    color: rgb(108 108 108);
    font-size: 14px;
  }
  
  .owner-name-global {
    color: #a0a0a0;
      font-size: 15px;
  }
}

.introjs-progressbar {
  float: right !important;
}

@media (min-width: 992px) {
  .introjs-tooltip.intro-wide-desktop {
    min-width: 350px !important;   /* or whatever width you need */
    max-width: 450px !important;
    white-space: normal;
  }
}
/* Joyride RTL adjustments */
.joyride-tour-rtl .react-joyride__tooltip {
  direction: rtl;
  text-align: right;
}

.joyride-tour-rtl .react-joyride__tooltip .react-joyride__footer {
  display: flex;
  flex-direction: row-reverse;
  gap: 0.75rem;
}

.joyride-tour-rtl .react-joyride__button {
  margin-inline-start: 0.5rem;
  margin-inline-end: 0;
}

.joyride-tour-rtl .react-joyride__tooltip-title,
.joyride-tour-rtl .react-joyride__tooltip-content {
  text-align: right;
}

.joyride-tour-rtl .react-joyride__overlay {
  direction: rtl;
}

/* Joyride themed tooltip */
.joyride-theme-ar .react-joyride__tooltip {
  font-family: inherit;
  max-width: min(32rem, calc(100vw - 32px));
  border-radius: 16px;
  background-color: #ffffff;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  padding: 1.5rem;
}

.joyride-theme-ar .react-joyride__tooltip-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.joyride-theme-ar .react-joyride__tooltip-content {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #0f172a;
}

.joyride-theme-ar .react-joyride__footer {
  display: flex;
  justify-content: flex-start;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.joyride-theme-ar .react-joyride__button {
  border-radius: 9999px;
  font-weight: 600;
  padding: 0.45rem 1.4rem;
}

/* Hide joyride tooltip while waiting for selectors to avoid showing a stuck tooltip */
body.joyride-waiting .react-joyride__tooltip {
  display: none !important;
}

/* Hide tooltip container as well (covers other wrappers) */
body.joyride-waiting .react-joyride__tooltip-container,
body.joyride-waiting .react-joyride__tooltip {
  display: none !important;
}
/* Also hide arrow, beacon, spotlight while waiting to avoid leftover artifacts */
body.joyride-waiting .react-joyride__tooltip-arrow,
body.joyride-waiting .react-joyride__arrow,
body.joyride-waiting .react-joyride__spotlight,
body.joyride-waiting .react-joyride__beacon {
  display: none !important;
}

/* Ensure the spinner overlay sits above other elements */
#joyride-wait-spinner {
  z-index: 200000 !important;
}

.joyride-theme-ar .react-joyride__button--primary {
  background-color: var(--tblr-primary);
  color: #ffffff;
}

.joyride-theme-ar .react-joyride__button--secondary {
  background-color: transparent;
  color: var(--tblr-primary);
  border: 1px solid var(--tblr-primary);
}

/* Button spinner styles */
.btn-spinner {
  position: static !important;
  display: inline-block !important;
  margin-left: 0.5rem !important;
  width: 1rem !important;
  height: 1rem !important;
  border-width: 1px !important;
}


.logo-header-size {
  height: 5.5rem;
  width: auto;
}