@font-face {
  font-family: "peyda";
  font-style: normal;
  font-weight: 300;
  src: url(../../fonts/PeydaWeb-Regular.woff2) format("woff2");
}

@font-face {
  font-family: "peyda";
  font-style: normal;
  font-weight: normal;
  src: url(../../fonts/PeydaWeb-Medium.woff2) format("woff2");
}

@font-face {
  font-family: "peyda";
  font-style: normal;
  font-weight: bold;
  src: url(../../fonts/PeydaWeb-Black.woff2) format("woff2");
}

:root {
  --primary: #00c457;
  --green: #00c42c;
  --header-text-color: #5c5c5c;
}

body {
  direction: rtl;
  font-family: "peyda";
  font-weight: normal;
  user-select: none;
}

input {
  outline: none;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

.bold {
  font-weight: bold;
}

.hide {
  display: none;
}

.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

.mt-3 {
  margin-top: 3rem;
}

.sidebar-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: scroll;
  z-index: 100;
  height: unset !important;
}

.sidebar-wrapper .sidebar-header img {
  height: 100px;
  filter: brightness(0.9);
}

.sidebar-wrapper .menu .sidebar-item.active>.sidebar-link {
  background: var(--green);
}

.card {
  margin-bottom: unset;
  border: unset;
  width: 100%;
  background: #ffffff;
  padding: 1rem 0.9rem 1.6rem;
  border-radius: 1.1rem;
  margin-top: 1rem;
  /* border: 1px solid #dcdcdc; */
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
}

.primary-color {
  color: var(--primary);
}

.sidebar-header {
  flex-direction: column;
}

.header-user {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 0.6rem;
  /* font-weight: bold; */
  border: 1px solid #00337229;
  background: #ffffff;
  padding: 0.4rem 0.6rem;
  border-radius: 0.9rem;
  box-shadow: 0px 0px 23px -8px #001f7621;
  display: flex;
  flex-direction: row-reverse;
  cursor: pointer;
  position: relative;
  width: max-content;
  padding-left: 0.8rem;
}

.header-user img {
  width: 35px;
  height: 35px;
  border-radius: 0.6rem;
}

.header-dropdown {
  position: absolute;
  top: 100%;
  width: 155px;
  left: 80%;
  transform: translateX(-50%);
  z-index: 10;
  max-height: 70vh;
  overflow-y: scroll;
  box-shadow: 0 40px 40px -9px #00000073;
}

.dropdown__inner {
  margin-top: 13px;
  width: 100%;
  background: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 1px 1px 28px -11px #001f7669;
  transition: all 0.2s ease-in-out;
  opacity: 0;
  display: none;
  position: relative;
  padding: 1rem 1.2rem 0.3rem;
}

.dropdown__inner::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #ffffff;
  position: absolute;
  top: -9px;
  right: 48%;
}

.header-user:hover .dropdown__inner {
  display: flex;
  opacity: 1;
}

.dropdown__inner ul {
  padding: 0.4rem 0 0;
  margin: 0;
  font-size: 0.9rem;
  color: #7f7f7f;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.dropdown__inner ul li {
  border-bottom: 1px solid #0000000f;
  margin-bottom: 0.2rem;
  padding-bottom: 0.2rem;
}

.dropdown__inner ul li:last-child {
  border: none;
}

#header {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
}

#main {
  padding: 1.2rem;
  padding-top: 1rem;
}

.page-heading {
  margin-top: 3rem;
  margin-bottom: 1rem;
}

@media screen and (max-width: 768px) {
  .page-heading {
    text-align: center;
  }
}

.burger-btn i {
  font-size: 2.4rem !important;
  color: #707070;
}

.sidebar-hide i {
  color: #707070;
}

.modal .modal-header i,
.modal .modal-header svg {
  height: 22px;
  width: 22px;
}

.modal.show .modal-dialog {
  justify-content: center;
}

.modal .modal-content {
  width: 90%;
  max-width: 420px;
}

.btn-primary {
  background: var(--primary);
  border: none;
}

.btn:hover {
  background: green;
}

.modal-footer {
  flex-direction: row-reverse;
}

.inputes-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.4rem;
}

.input-holder {
  display: flex;
  flex-direction: column;
  width: calc((100% - 2rem) / 3);
  gap: 0.3rem;
}

.text-input {
  background: #fbfcff;
  border-radius: 2rem;
  border: 2px solid #f3f3f3;
  border-bottom: 3px solid #ececec;
  height: 39px;
  padding: 0 1rem;
  color: #747474;
  font-size: 0.9rem;
}

.text-input:focus {
  outline: 2px solid #00a160d4;
}

.select-input {
  background: #fbfcff;
  border-radius: 2rem;
  border: 2px solid #f3f3f3;
  border-bottom: 3px solid #ececec;
  height: 39px;
  padding: 0 1rem;
  color: #4a4a4a;
  font-size: 0.9rem;
  outline: none;
}

.select-input:focus {
  outline: 2px solid #00a160d4;
}

.textarea {
  background: #fbfcff;
  border-radius: 1.5rem;
  border: 2px solid #f3f3f3;
  border-bottom: 3px solid #ececec;
  padding: 0.4rem 1rem;
  color: #747474;
  font-size: 0.9rem;
  outline: none;
}

.textarea:focus {
  outline: 2px solid #00a160d4;
}

.card label {
  font-size: 0.85rem;
  margin-right: 0.3rem;
}

.input-holder label {
  font-size: 0.85rem;
  margin-right: 0.3rem;
}

/* auth */
.canter-main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-wrapper {
  margin-top: 50px;
  max-width: 330px;
  width: 100%;
}

.auth-wrapper h1 {
  text-align: center;
  margin-bottom: 3rem;
}

.login-card-header {
  border-bottom: 1px solid #dcdcdc;
  padding-bottom: 0.5rem;
}

.w100 {
  width: 100%;
}

.auth-form-inputs-container {
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.auth-form-inputs-container .input-holder {
  gap: 0;
}

.auth-card {
  margin-top: 2rem;
}

.rowx2 {
  display: flex;
  gap: 0.6rem;
}

.rowx2 .input-holder {
  width: calc((100% - 0.6rem) / 2);
}

.auth-gender {
  display: flex;
  justify-content: space-between;
}

.gender {
  height: 40px;
  padding: 0.3rem;
  background: #fbfcff;
  border-radius: 2rem;
  border: 2px solid #f3f3f3;
  border-bottom: 3px solid #ececec;
  color: #747474;
  font-size: 0.9rem;
  width: 50%;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.gender img {
  height: 100%;
}

.gender {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  padding: 5px;
  border: 2px solid transparent;
  transition: border-color 0.3s;
}

input[type="radio"] {
  display: none;
}

input[type="radio"]:checked+.gender {
  border-color: var(--primary);
}

.date-picker-container {
  position: relative;
}

.date-picker-container input {
  width: 100%;
  padding-left: 2.3rem;
}

.date-picker-container img {
  position: absolute;
  width: 27px;
  top: 5px;
  left: 11px;
}

.rowx3-inputs {
  width: 100%;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.rowx3-inputs .selectable-input {
  width: calc((100% - 1.4rem) / 3);
}

.selectable-input {
  height: 40px;
  padding: 0.3rem;
  background: #fbfcff;
  border-radius: 2rem;
  border: 2px solid #f3f3f3;
  border-bottom: 3px solid #ececec;
  color: #747474;
  font-size: 0.9rem;
}

.selectable-input input {
  display: none;
}

.selectable-input label {
  padding-right: 1.7rem;
  display: flex;
  align-items: center;
  height: 100%;
}

.radio-label {
  position: relative;
}

.radio-circle {
  height: 22px;
  width: 22px;
  border: 3px solid var(--primary);
  border-radius: 50%;
  display: inline-block;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.radio-circle::after {
  content: "";
  display: block;
  height: 11px;
  width: 11px;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--primary);
  opacity: 0;
  transition: opacity 0.2s;
}

.radio-input:checked~.radio-label .radio-circle::after {
  opacity: 1;
}

.submit-button {
  width: 100%;
  display: flex;
  justify-content: center;
  background: var(--primary);
  height: 45px;
  align-items: center;
  color: #fff;
  font-weight: bold;
  border-radius: 0.8rem;
  cursor: pointer;
  outline: none;
  border: none;
  margin-top: 1rem;
}

.auth__mobile {
  position: relative;
}

.auth__mobile input {
  width: 100%;
  /* padding-left: 3.5rem; */
  direction: ltr;
  text-align: center;
}

.auth__mobile .mobile-tag {
  position: absolute;
  left: 10px;
  height: 100%;
  display: flex;
  top: 0;
  align-items: center;
  border-right: 2px solid #ececec;
  padding-right: 0.5rem;
  direction: ltr;
}

.auth-note {
  width: 100%;
  text-align: center;
  display: block;
  padding: 0.7rem;
  color: #818181;
}

.alert-box {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 2rem;
}

.alert-box .error {
  padding: 0.4rem 1rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  background: #ffe6e6;
  border: 3px solid #ff7979;
}

.alert-box .success {
  padding: 0.4rem 1rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  background: #e6ffe6;
  border: 3px solid #79ff96;
}

.error-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.error-wrapper img {
  width: 100%;
  max-width: 400px;
  margin-top: 3rem;
}

.submenu-link {
  color: #737373 !important;
}

.sidebar-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.sidebar-logo h1 {
  font-size: 1.6rem;
  margin: 0;
  color: var(--primary);
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-info__name {
  font-size: 0.9rem;
}

.user-info__role {
  font-size: 0.7rem;
  line-height: 1;
  margin-right: 0.1rem;
}

.footer-copyright {
  font-size: 0.7rem;
  text-align: center;
  padding: 0.5rem;
  color: #adadad;
}

.copyright {
  bottom: 0;
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  padding: 0.4rem;
  padding-top: 2rem;
}

.copyright a {
  color: #aeaeae;
}

.add-new-report-button {
  font-weight: bold;
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.8rem;
  background: #00c4571a;
  padding: 0.3rem 0.8rem;
  border-radius: 3rem;
  color: #00a84a;
}

/* index */
.index-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.index-wrapper h1 {
  color: #5e5e5e;
}

.index-img {
  width: 120px;
}

.sidebar-wrapper .sidebar-header {
  padding: 2rem 1rem 1rem;
}

.sidebar-wrapper .sidebar-header h2 {
  font-size: 1rem;
}

.sidebar-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.social {
  width: 45px;
  display: block;
  height: 45px;
}

.social img {
  width: 100%;
}

.notifs,
.messages {
  border: 1px solid #00337229;
  background: #ffffff;
  padding: 0.4rem 0.6rem;
  border-radius: 0.9rem;
  cursor: pointer;
}

.notifs svg,
.messages svg {
  width: 20px;
  height: 20px;
  filter: invert(0.3);
}

.header-left {
  display: flex;
  flex-direction: row-reverse;
  gap: 0.6rem;
  align-items: center;
}

.notifs,
.messages {
  position: relative;
  cursor: pointer;
}

.notifs__icon,
.messages__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.notifs__icon svg,
.messages__icon svg {
  width: 24px;
  height: 24px;
}

.notifs .header-dropdown,
.messages .header-dropdown {
  position: absolute;
  top: 100%;
  left: -90px;
  border-radius: 8px;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.notifs:hover .header-dropdown,
.messages:hover .header-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.notifs:hover .header-dropdown .dropdown__inner,
.messages:hover .header-dropdown .dropdown__inner {
  opacity: 1;
  display: flex;
}

.header-dropdown .dropdown__inner,
.messages .header-dropdown .dropdown__inner {
  padding: 8px 0;
}

.header-dropdown ul,
.messages .header-dropdown ul {
  margin: 0;
  padding: 0;
}

.header-dropdown ul li,
.messages .header-dropdown ul li {
  padding: 8px 16px;
  transition: background-color 0.2s;
}

.header-dropdown ul li:hover,
.messages .header-dropdown ul li:hover {
  background-color: #f5f5f5;
}

.header-dropdown ul li a,
.messages .header-dropdown ul li a {
  color: #333;
  display: block;
  width: 100%;
}

/* Add a notification badge */
.has-new {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  background: #ff0000;
  border-radius: 50%;
  display: none;
  z-index: 11;
}

.has-new-message {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  background: #ff0000;
  border-radius: 50%;
  display: none;
  z-index: 11;
}

.messages__list {
  gap: 0.5rem;
}

.notification-item,
.message-item {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  transition: background-color 0.2s;
}

.notification-item:last-child,
.message-item:last-child {
  border-bottom: none;
}

.notification-item:hover,
.message-item:hover {
  background-color: #f5f5f5;
}

.notification-item.unread,
.message-item.unread {
  background-color: #ffffff;
}

.notification-item.read,
.message-item.read {
  background-color: #f5f5f5;
}

.notification-item .notification-content,
.message-item .message-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notification-item .notification-message,
.message-item .message-message {
  color: #333;
  font-size: 0.9rem;
}

.notification-item .notification-time,
.message-item .message-time {
  color: #666;
  font-size: 0.8rem;
}

.no-notifications,
.no-messages {
  padding: 16px;
  text-align: center;
  color: #666;
}

.notification-details,
.message-details {
  display: flex;
  justify-content: space-between;
  color: #666;
  font-size: 0.8rem;
}

.notification-item.read .notification-message,
.message-item.read .message-message {
  color: rgb(144, 144, 144);
}

.upload-image {
  display: flex;
  width: 110px;
  height: 110px;
  border: 3px solid var(--primary);
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
}

.upload-image input {
  opacity: 0;
  position: absolute;
  z-index: 11;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.upload-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clear-image {
  position: absolute;
  top: 5px;
  right: 5px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  /* display: none; */
  justify-content: center;
  align-items: center;
  z-index: 111;
}

.message-title {
  font-weight: bold;
  color: #484848 !important;
}

.message-content svg {
  width: 16px;
  height: 16px;
  margin-left: 0.2rem;
}

.retry-otp {
  text-align: center;
  padding: 1rem;
}

.retry-otp-button {
  cursor: pointer;
  background: none;
  font-weight: bold;
  font-size: 1rem;
  color: var(--primary);
  border: navajowhite;
  font-family: 'peyda';
}

.sms-mobile-numbers textarea {
  height: 110px !important;
  direction: ltr;
  padding-top: 1rem;
}

.sms-mobile-numbers p {
  font-size: 0.72rem;
  margin: 0 0.6rem;
}

.get-numbers-buttons {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.get-numbers-buttons button {
  border: none;
  background: #00d586;
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
  color: #ffffff;
  text-shadow: 2px 1px #00000024;
  border-radius: 0.5rem;
}

.sms-message {
  margin-top: 3rem;
}

.sms-message textarea {
  direction: rtl;
}

.sms-details-container {
  margin: 0 0.6rem;
  display: flex;
  align-items: center;
  gap: .3rem;
}

.sms-details-container span {
  font-size: 0.72rem;
}

.searchbar {
  position: relative;
}

.searchbar input[type="text"] {
  width: 100%;
  height: 40px;
  border-radius: 1rem;
  border: 1px solid #dfdfdf;
  padding: 0 0.6rem 0 50px;
  font-size: 0.9rem;
  color: #686868;
  box-shadow: 1px 1px 9px -4px #0000002e;
}

.searchbar button {
  width: 32px;
  height: 36px;
  position: absolute;
  left: 5px;
  top: 2px;
  background: none;
  border: none;
}

.searchbar button svg {
  width: 100%;
  height: 100%;
  fill: #9d9d9d;
}

.checkbox-container {
  background: #fbfcff;
  padding: 0.2rem .5rem;
  border-radius: 2rem;
  align-items: center;
  display: flex;
  width: fit-content;
  gap: 0.2rem;
  flex-direction: row-reverse;
  border: 1px solid #e5e5e5;
  border-bottom: 2px solid #d8d8d8;
  cursor: pointer;
}

.coworkers-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.2rem;
}

.rules-input-holder {
  display: flex;
  flex-direction: row-reverse;
  gap: 0.9rem;
  margin-top: 2rem;
}

.rules-input-holder input {
  width: 27px;
  height: 27px;
}