@tailwind base;
@tailwind components;
@tailwind utilities;

/* Todo:  use tw classes instead*/
input[type="radio"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #fff;
  width: 1rem;
  height: 1rem;
  border: 0.1rem solid #295e56;
  place-content: center;
  color: #295e56;
}

.supportBg {
  background-image: url("./assets/support-bg.svg");
  background-repeat: no-repeat;
  background-size: cover;
}

/* @media print {
  body {
    height: 200rem;
  }

  .budgetPrint {
    width: 1000px;
    height: 3000px;
  }

  .page-break {
    page-break-before: always;
  }

  .no-print {
    display: none;
  }
} */

@media screen {
  .print-only {
    display: none !important;
  }
}

@media print {
  .print-only {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
  }
}

.premiumGoldprice {
  background: linear-gradient(87.84deg, #ffa958 2.02%, #e06a00 99.13%);
}

@layer base {
  * {
    font-family: "Almarai" !important;
  }

  .shadows {
    box-shadow: 0.5px 0.5px 4px rgba(0, 0, 0, 0.25) !important;
  }
  .dashbord-shadow {
    box-shadow: 0px 1px 6px 0px rgb(0 0 0 / 10%);
  }
  .dashbordIcon-shadow {
    box-shadow: 0px 0px 9px 0px #59a498;
  }
  .sales-shadow {
    box-shadow: 0.5px 4px 4px 0px #00000040;
  }
  .bill-shadow {
    box-shadow: 0.5px 0.5px 4px 0px #00000040;
  }
  .table-shadow {
    box-shadow: 0.5px 0.5px 4px 0px #00000040;
  }
  :root {
    --background: 0 0% 100%;
    --foreground: 0 0% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 0 0% 3.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 0 0% 3.9%;
    --primary: 0 0% 9%;
    --primary-foreground: 0 0% 98%;
    --secondary: 0 0% 96.1%;
    --secondary-foreground: 0 0% 9%;
    --muted: 0 0% 96.1%;
    --muted-foreground: 0 0% 45.1%;
    --accent: 0 0% 96.1%;
    --accent-foreground: 0 0% 9%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;
    --border: 0 0% 89.8%;
    --input: 0 0% 89.8%;
    --ring: 0 0% 3.9%;
    --chart-1: 12 76% 61%;
    --chart-2: 173 58% 39%;
    --chart-3: 197 37% 24%;
    --chart-4: 43 74% 66%;
    --chart-5: 27 87% 67%;
    --radius: 0.5rem;
  }
  .dark {
    --background: 0 0% 3.9%;
    --foreground: 0 0% 98%;
    --card: 0 0% 3.9%;
    --card-foreground: 0 0% 98%;
    --popover: 0 0% 3.9%;
    --popover-foreground: 0 0% 98%;
    --primary: 0 0% 98%;
    --primary-foreground: 0 0% 9%;
    --secondary: 0 0% 14.9%;
    --secondary-foreground: 0 0% 98%;
    --muted: 0 0% 14.9%;
    --muted-foreground: 0 0% 63.9%;
    --accent: 0 0% 14.9%;
    --accent-foreground: 0 0% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 0 0% 98%;
    --border: 0 0% 14.9%;
    --input: 0 0% 14.9%;
    --ring: 0 0% 83.1%;
    --chart-1: 220 70% 50%;
    --chart-2: 160 60% 45%;
    --chart-3: 30 80% 55%;
    --chart-4: 280 65% 60%;
    --chart-5: 340 75% 55%;
  }
}
/* end base */

/* UTILITIES */
@layer utilities {
  .scrollbar {
    @apply scrollbar-thin scrollbar-thumb-mainGreen scrollbar-track-green hover:scrollbar-thumb-mainOrange;
  }
  .GlobalTable th {
    @apply border-b-2 border-l-2   p-2  text-center;
  }
  .GlobalTable td {
    @apply border-b-2 border-l-2  bg-lightGreen p-2  text-center  text-mainGreen;
  }
  .subTable th {
    @apply border-l-2 bg-lightGreen  p-2  text-center  text-mainGreen;
  }
  .subTable td {
    @apply border-l-2  bg-white p-2  text-center   text-black;
  }
}
/* ./UTILITIES */

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
}

.react-datepicker__day--selected {
  @apply bg-mainGreen text-white;
}

.react-datepicker__close-icon {
  @apply after:text-white after:bg-mainGreen after:content-['X'] relative after:absolute pl-6 pt-2 after:pt-[0.4rem]  after:rounded-full after:w-6 after:h-6 after:font-bold after:leading-none after:text-center after:transition-all after:duration-300 after:hover:bg-emerald-900;
}

.react-datepicker__input-container {
  @apply flex;
}
.PhoneInputInput {
  @apply border-0 px-5 py-0;
}
[type="tel"] {
  @apply !shadow-none !ring-0;
}

.PhoneInputInput {
  direction: inherit;
}
.pdf-no-scroll .rpv-core__inner-pages--vertical {
  overflow-y: hidden;
}
input::placeholder {
  padding-bottom: 2px;
}

.css-1i837h3-ValueContainer2 {
  position: absolute !important;
  top: 34px;
  right: -5px;
  width: 100%;
}

.myVideo-container {
  position: fixed;
  min-width: 100%;
  min-height: 100%;
}
.myVideo-container__overlay {
  /* background-color: rgba(0, 0, 0, 0.75); */
  background-color: rgb(0 0 0 / 47%);
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  z-index: 1;
}
.myVideo {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
}

/* Old Content */
/* .content {
  background-color: rgba(255, 255, 255, 0.6);
  position: fixed;
  top: 25%;
  width: 350px;
  height: 460px;
  border-radius: 5px;
  padding: 20px 15px;
} */

/* New Content */
.content {
  position: fixed;
  width: 475px;
  height: 80%;
  border-radius: 5px;
  padding: 20px 15px;
  margin-bottom: 50px;
}

@media (max-width: 469px) {
  .content {
    width: 85%;
  }
}
.content label {
  color: #f1f1f1;
}
.content input[name="email"] {
  color: black;
}

.content input[type="password"]::-ms-reveal,
.content input[type="password"]::-webkit-contacts-auto-fill-button,
.content input[type="password"]::-webkit-credentials-auto-fill-button {
  display: none !important;
}
.css-b62m3t-container {
  position: relative;
  /* margin-bottom: 50px; */
}
.css-1i837h3-ValueContainer2 {
  display: flex;
  position: absolute;
  top: 45px;
}
.css-5htak9-MultiValueGeneric2 {
  font-size: 70% !important;
}
.transform-component-module_content__FBWxo {
  min-height: 100% !important;
  overflow: visible !important;
}
.card-text,
.card-text button {
  transition: 0.35s all ease-in-out;
}
.card-text:hover {
  background-color: #295e56;
}
.card-text:hover h2,
.card-text:hover p,
.card-text:hover h2 p span {
  color: white !important;
}
.card-text:hover button {
  background-color: white;
}
.card-text:hover button div {
  color: #295e56;
}
.card-text:hover button div svg {
  fill: #295e56;
}
nav > .css-ewdv3l > .ps-menuitem-root:first-child {
  padding-bottom: 39px;
  padding-top: 6px !important;
  /* padding-left: 30px;
  padding-right: 30px; */
}

.selling {
  background: url("/src/assets/salesbg.png");
  background-position: center;
  background-size: cover;
}
.management {
  background: url("/src/assets/pattern.svg");
}
input[type="file"] {
  color: transparent;
}

/* @media print {
  body * {
    visibility: hidden;
    display: none;
  }

  #content-to-print,
  #content-to-print * {
    visibility: visible;
  }

  #content-to-print {
    width: 100%;
    height: 100%;
    visibility: visible;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
  }
} */

/* @media print {
  body {
    display: none;
  }

  .print-only {
    display: block;
  }


  .print-content {
    width: 100%;
    margin: 0;
    padding: 0;
  }

} */

/* @media print {
  html,
  body {
    height: 100%;
    margin: 0 !important;
    padding: 30px 15px !important;
    overflow: hidden;
  }

  .scroll-container {
    overflow: visible;
    height: fit-content;
  }

  .rtl {
    direction: rtl;
    text-align: right;
  }

  .ltr {
    direction: ltr;
    text-align: left;
  }

  .print-content {
    display: block;
  }

  .item {
    page-break-inside: avoid;
    break-inside: avoid;
    margin-bottom: 20px;
  }

  .page-break {
    page-break-before: always;
    break-before: always;
  }
} */

.PieceDetails div:nth-child(19) {
  grid-column: 1 / -3;
  grid-row: span 7 / span 2;
}

.slick-list {
  width: 100%;
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.slick-list .slick-track {
  width: 5632px;
  opacity: 1;
  display: flex;
  gap: 35px;
  transform: translate3d(-2112px, 0px, 0px);
}
.slick-slider {
  display: flex;
  align-items: center;
}

.min_selling-height {
  max-height: calc(100vh - 64px);
}

/* GLOBAL ANIMATION */
.animation_delay-3 {
  animation-delay: 0.3s !important;
}

.animation_delay-5 {
  animation-delay: 0.5s !important;
}

.animation_delay-7 {
  animation-delay: 0.7s !important;
}

.animation_delay-9 {
  animation-delay: 0.9s !important;
}

.animation_delay-11 {
  animation-delay: 1.1s !important;
}

/* ANIMATE SCALE */
.animate_scale {
  animation: animate-scale 0.7s ease-out backwards;
}

@keyframes animate-scale {
  0% {
    transform: scale(0);
  }
  80% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* ////////////////////////////////////// */
/* ANIMATE FROM LEFT */
.animate_from_left {
  animation: move-left 0.7s ease-out backwards;
}

@keyframes move-left {
  0% {
    opacity: 0;
    transform: translateX(-4rem);
  }
  80% {
    opacity: 1;
    transform: translateX(0.2rem);
  }
  100% {
    transform: translateX(0);
  }
}

/* ////////////////////////////////////// */
/* ANIMATE FROM RIGHT */
.animate_from_right {
  animation: move-right 0.7s ease-out backwards;
}

@keyframes move-right {
  0% {
    opacity: 0;
    transform: translateX(4rem);
  }
  80% {
    opacity: 1;
    transform: translateX(-0.2rem);
  }
  100% {
    transform: translateX(0);
  }
}

/* ////////////////////////////////////// */
/* ANIMATE FROM BOTTOM */
.animate_from_bottom {
  animation: move-bottom 0.7s ease-out backwards;
}

@keyframes move-bottom {
  0% {
    opacity: 0;
    transform: translateY(3rem);
  }
  100% {
    transform: translate(0);
  }
}

/* ////////////////////////////////////// */
/* ANIMATE FROM TOP */
.animate_from_top {
  animation: move-top 0.7s ease-out backwards;
}

@keyframes move-top {
  0% {
    opacity: 0;
    transform: translateY(-3rem);
  }
  100% {
    transform: translate(0);
  }
}

/* .css-ewdv3l li:first-of-type span {
  min-width: 45px !important;
} */

nav.css-vj11vy > ul > li:first-child span {
  min-width: 56px !important;
}
nav.css-vj11vy > ul > li:first-child {
  margin: 4px 0px 0px !important;
}

nav.css-vj11vy > ul > li:first-child a {
  padding-right: 24px !important;
  padding-top: 26px !important;
}

.css-1cbmtsf > .ps-menu-button:hover,
.css-8dyhm6 > .ps-menu-button:hover,
.css-1ytr39x > .ps-menu-button:hover,
.css-1fsp9zp > .ps-menu-button:hover,
.css-jxcfqw > .ps-menu-button:hover,
.css-fxmqcg > .ps-menu-button:hover,
.css-1huh6rg > .ps-menu-button:hover,
.css-168ta8j > .ps-menu-button:hover {
  background-color: #497670 !important;
}

li > .ps-menu-button:hover {
  background-color: #497670 !important;
}

.css-1ytr39x:first-child > .ps-menu-button:hover {
  background-color: transparent !important;
}

.css-1ytr39x:first-child > .ps-menu-button {
  display: grid;
  place-content: center;
  height: 56px;
  /* border-bottom: 1px solid #FFFFFF33; */
  padding-bottom: 4px;
}
.css-6a03ny {
  margin-left: 5px !important;
}

/* .css-ewdv3l li a {
  padding-left: 15px !important;
  padding-right: 15px !important;
} */

.before::after {
  content: "";
  background-color: red;
  position: absolute;
  top: 50%;
  right: 100%;
  width: 100%;
  height: 2px;
}

.test {
}

/* GLOBAL ANIMATION */

/* ---break---*/

@layer base {
  * {
    @apply border-border;
  }
  body {
    @apply bg-background text-foreground;
  }
}
