/* 
إعادة تعيين الأنماط الافتراضية 
*/
@import "./loader.css";

@font-face {
  font-family: "cairo-regular";
  src: url(../assets/fonts/Cairo-Regular.ttf), format("ttf");
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: "cairo";
  src: url(../assets/fonts/Cairo-Medium.ttf), format("ttf");
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: "cairo-extra-bold";
  src: url(../assets/fonts/Cairo-ExtraBold.ttf), format("ttf");
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: "cairo-bold";
  src: url(../assets/fonts/Cairo-Bold.ttf), format("ttf");
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: "cairo-semibold";
  src: url(../assets/fonts/Cairo-SemiBold.ttf), format("ttf");
  font-display: swap;
  font-style: normal;
}

/* @font-face {
  font-family: "Rajdhani";
  src: url(../assets/fonts/Rajdhani-SemiBold.ttf), format("ttf");
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: "Janna LT";
  src: url(../assets/fonts/Janna-LT-Bold.ttf), format("ttf");
  font-display: swap;
  font-style: normal;
} */
@font-face {
  font-family: "almarai-extrabold";
  src: url(../assets/fonts/Almarai-ExtraBold.ttf), format();
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "almarai-bold";
  src: url(../assets/fonts/Almarai-Bold.ttf), format();
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "almarai";
  src: url(../assets/fonts/Almarai-Regular.ttf), format();
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "almarai-light";
  src: url(../assets/fonts/Almarai-Light.ttf), format();
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: "poppins-bold";
  src: url(../assets/fonts/Poppins-Bold.ttf), format();
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "poppins-semibold";
  src: url(../assets/fonts/Poppins-Medium.ttf), format();
  font-display: swap;
  font-style: normal;
}
:root {
  --primary: linear-gradient(90deg, #39aae1 0%, #1c90cf 100%);
  --dark-primary: #139fbf;
  --light-gray: #6f858a;
  /* --gray: #81a09e;
  --dark-gray: #3f4254; */
  --border-light-color: #a0c2b6;
  --border-light: 1px solid var(--border-light-color);
  --sec-border-color: #c1dbe0;
  --border-secondary: 1px solid var(--sec-border-color);
  --primary-filter: brightness(0) saturate(100%) invert(82%) sepia(37%)
    saturate(3919%) hue-rotate(154deg) brightness(92%) contrast(90%);
  --section-bg: #f8fafb;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  direction: rtl;
  text-align: start;
  font-family: cairo;
  font-weight: 500;
}

html,
body {
  /* height: 100vh !important;
  overflow: hidden; */
  height: 100% !important;
  width: 100% !important;
  margin: 0;
  padding: 0;
}

p,
h2,
h3,
h4,
h5,
h6,
label {
  margin-bottom: 0;
}

a {
  text-decoration: none !important;
  outline: none !important;
  cursor: pointer;
}

a,
a:hover {
  color: inherit;
}

button {
  outline: unset !important;
  background: unset;
  border: unset;
}

.row {
  margin: 0;
}

.flex-gap {
  display: flex;
  align-items: center;
  gap: 1em;
}
.form-control:focus {
  box-shadow: none;
  border-color: var(--gray);
  background-color: transparent;
}
/* 
.btn-primary,
.btn-secondary {
  border-radius: 0.5rem;
  box-shadow: none !important;
  border: none;
  font-family: "cairo-bold";
  font-weight: 700;
}
.btn-primary {
  background-image: var(--primary) !important;
}
.btn-secondary {
  background-color: var(--secondary) !important;
}
.btn-outline {
  border: 1px solid var(--gray);
  font-family: "cairo-semibold";
  font-weight: 600;
  color: var(--gray);
}

.btn-outline:hover {
  color: var(--gray);
} */

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1em;
}
.column-centered {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

::-webkit-scrollbar {
  width: 0.2rem;
}

::-webkit-scrollbar-thumb {
  background-color: #b7c2bf;
  width: 0.5rem;
  border-radius: 0.5rem;
}

.btn {
  font-size: 14px;
  padding: 0.5rem 1rem;
}

.form-control {
  box-shadow: none !important;
  outline: none !important;
}

.content-wrapper {
/*      height: calc(100vh - 95px);*/
    height: 100vh;
    min-height: 0 !important;
    background-color: #fbfcfc;
    overflow-y: auto;
    overflow-x: hidden;
}

.form-group {
  margin-bottom: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.3em;
}
.form-group textarea {
  height: 80px;
}
.form-group input,
.form-group select {
  height: 48px;
}
.form-control:disabled,
.form-control[readonly] {
  background-color: transparent;
}

.form-control,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  border: var(--border-secondary) !important;
  padding: 4px 12px;
  border-radius: 8px !important;
}

.form-group label {
  font-family: "cairo-semibold";
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 0.5rem;
  height: 30px;
  display: flex;
  align-items: center;
}

.text-danger {
    height: 14px;
    font-size: 13px;
    display: block;
    margin: 3px 0;
    padding-inline: 4px;
}
.error-container {
    height: 20px;
    text-decoration: none !important;
    text-align: center;
    color: #e46666;
    margin-top: 0.5em;
    /*    background-color: #e466667a;*/
    border-radius: 0.2em;
}
    .error-container ul {
        padding: 0;
        margin: 0;
        list-style: none;
        font-family: cairo-bold;
        font-size: 16px;
        font-weight: 700;
    }
        .error-container ul li {
            text-align: center;
        }
textarea::-webkit-resizer {
    display: none;
}

.form-check {
  display: flex;
  align-items: center;
}

.form-check .form-check-input,
.role-checkbox {
  width: 18px;
  height: 18px;
  margin-left: 0;
  border: 1px solid var(--dark-gray);
  accent-color: #37a0b8;
  margin-top: 0;
  cursor: pointer;
}

.form-check .form-check-label {
  padding-right: 30px;
}

.custom-control-input:checked ~ .custom-control-label::before {
  color: #fff;
  border-color: var(--primary);
  background-color: var(--primary);
  box-shadow: none;
}

pre {
  font-family: "cairo-semibold", sans-serif;
  white-space: normal;
  margin-bottom: 0;
  padding: 0;
  overflow: hidden;
  font-weight: 600;
  font-size: 14px;
  line-height: 26px;
}

.medium-bold,
.title-bold {
  font-family: cairo-bold;
  font-weight: 700;
}

.medium-semibold {
  font-family: "cairo-semibold";
  font-weight: 600;
}

.medium-bold,
.medium-semibold,
.title-bold {
  color: var(--dark-gray);
}

.medium-bold,
.medium-semibold {
  font-size: 14px;
}

.title-bold {
  font-size: 16px;
}

.dropdown-item {
  text-align: start !important;
}

input[name="daterange"] {
  line-height: 25px;
  padding: 0.5rem;
  height: fit-content;
  min-width: 210px;
}

.upload-image-container:hover .image-overlay {
  visibility: visible;
}

.img-thumbnail,
.image-overlay {
  width: 10rem;
  height: 10rem;
  border-radius: 22.5px;
  cursor: pointer;
  box-shadow: none;
  border: none;
  padding: 0;
}

.image-overlay {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  visibility: hidden;
}

.pointerless {
  pointer-events: none;
}
.space-between {
  display: flex;
  justify-content: space-between;
}
/* .password-input-group input {
  width: 100% !important;
}
.password-input-group .eye-container {
  position: absolute;
  left: 12px;
  top: 6px;
  z-index: 3;
} */
/* ? shared acrross the system  */

/* *------custom fancy button -------*/
.form-shared-style input,
.form-shared-style .fancy-btn {
  /* width: 484px; */
  width: 100%;
  height: 100px;
  gap: 1em;
  border-radius: 1em;
  outline: unset;
  padding: 27px 24px;
}
.transfer-form.form-shared-style input {
  border: var(--border-light);
  letter-spacing: 0.6em;
}
/* .gradient-border:has(input:focus) {
  position: relative;
  display: inline-block;
  padding: 2px; /* Border thickness * /
  background: var(--primary);
  border-radius: 1em;
  /* display: none; * /
} */

.transfer-form.form-shared-style input:focus {
  border: none;
  font-family: cairo-bold;
  font-weight: 700;
  font-size: 20px;
  border: 3px solid #39aae1;
}
.form-shared-style input::placeholder,
.form-shared-style input:focus::placeholder {
  font-family: cairo-semiBold;
  font-weight: 600;
  font-size: 18px;
  opacity: 0.6;
}
.form-shared-style .fancy-btn {
  height: 60px;
  color: white;
  border: var(--border-light);
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 0.5em;
  border-radius: 12px;
  padding: 1rem 2rem;
  background-image: linear-gradient(90deg, #39aae1 0%, #1c90cf 100%);
  transition: background-image 0.8s ease-in-out;
  position: relative !important;
  /* background-size: 100% 100% 0%; */
  /* background-position: center; */
  /* background-repeat: no-repeat; */
  /* background-color: transparent; */
}
.btn-container {
  width: 100%;
  overflow: hidden !important;
}
.form-shared-style .fancy-btn.active,
.form-shared-style .fancy-btn:active,
.form-shared-style .fancy-btn:hover,
.form-shared-style .fancy-btn:focus {
  border: 2px solid #ffffff;
  background-image: linear-gradient(90deg, #147ab1 0%, #39aae1 100%);
  z-index: 1;
}
.overlay-btn-bg {
  opacity: 0;
  transform: scale(0);
  visibility: hidden;
  transition: transform 0.5s ease-in-out, opacity 0.4s ease-in-out;
  position: absolute;
  width: 48px;
  height: 48px;
  pointer-events: none;
  z-index: 1;
}

.form-shared-style .fancy-btn:hover .overlay-btn-bg,
.form-shared-style .fancy-btn:focus .overlay-btn-bg,
.form-shared-style .fancy-btn.active .overlay-btn-bg {
  transform: scale(13);
  opacity: 0.1;
  visibility: visible;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.form-shared-style .fancy-btn span {
  position: relative;
  z-index: 2;
}

/* *------/.custom fancy button -------*/

/* !------custom checkbox -------*/
.checkbox-group {
  /* width: 312px; */
  height: 48px;
  border-radius: 0.5em;
  border: var(--border-secondary);
  padding: 0.25em 0.75em;
  display: flex;
  /* justify-content: center; */
  align-items: center;
}
.checkbox-group:has(.xmark, .xmark-check) {
  border: 1px solid #de7070;
}
.custom-checkbox {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  gap: 1em;
  margin-bottom: 0px !important;
  width: 100%;
  height: 100%;
}

.custom-checkbox input[type="checkbox"] {
  display: none;
}

    .custom-checkbox .checkmark,
    .custom-checkbox .xmark, .custom-checkbox .xmark-check {
        width: 18px;
        height: 18px;
        border-radius: 4px;
        /* margin-left: 10px; */
        background-color: #d9d9d9;
        position: relative;
        transition: all 0.3s ease-in-out;
    }

.custom-checkbox input:checked + .checkmark {
  background-image: linear-gradient(135deg, #39aae1, #1c90cf) !important;
}
.custom-checkbox input:checked + .checkmark::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 5px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
    .custom-checkbox input + .xmark, .custom-checkbox input:checked + .xmark-check {
        background-color: #e46666 !important;
    }

        .custom-checkbox input + .xmark::after, .custom-checkbox input:checked + .xmark-check::after {
            /* content: "\00D7"; */
            content: "\2715";
            position: absolute;
            top: 0px;
            left: 0px;
            width: 15px;
            height: 15px;
            font-weight: 600;
            font-size: 14px;
            color: #fff;
            /* border: solid white; */
            /* border-width: 0px 2px 3px 0; */
            /* transform: rotate(45deg); */
        }
/* .custom-checkbox input + .xmark::before {
  content: "X";
  position: absolute;
  top: 2px;
  left: 8px;
  width: 2px;
  height: 14px;
  border: solid white;
  border-width: 0px 2px 3px 0;
  transform: rotate(130deg);
} */
.note-tip {
  position: relative;
}
.notetip-card {
  width: 357px;
  min-height: 80px;
  flex-direction: column;
  gap: 0.5em;
  border-radius: 1em;
  padding: 0.5em 1em;
  font-family: cairo-semibold;
  font-weight: 500;
  background: #f5f8fa;
  border: 1px solid #e0edef;
  box-shadow: 0px 2px 8px 0px #0000000d;
  display: none;
  position: absolute;
  top: 30px;
  right: -50px;
  z-index: 99;
}
    .notetip-card.late-note {
        gap: 0.2em;
        right: unset !important;
        left: 0 !important;
    }
.notetip-card .note-title {
  font-family: inherit;
  font-weight: inherit;
  font-size: 16px;
  color: #000;
}
    .notetip-card.late-note .note-title {
        color: #e46666;
    }
.notetip-card .note-decribe {
  font-family: inherit;
  font-weight: inherit;
  font-size: 14px;
  color: #666666;
}
    .notetip-card.late-note .note-decribe {
        color: #3f4254;
    }
.note-tip:hover .notetip-card {
  display: flex;
}
/* !------/.custom checkbox -------*/

/* *------custom attachment-------*/
.custom-attachment .attach {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75em;
  border: var(--border-secondary);
  border-radius: 0.5em;
}
.custom-attachment .attach div {
  display: flex;
  align-items: center;
  gap: 1em;
  color: #3f4254;
}
.custom-attachment .attach .attach-info .attach-name {
  font-family: cairo-semibold;
  font-weight: 600;
  font-size: 13px;
}

/* *------/.custom attachment -------*/

   .pass-toggle {
        width: 24px;
        height: 24px;
        width: fit-content;
        position: absolute;
        top: 25%;
        left: 15px;
        z-index: 999;
    }
