::selection {
  background-color: $primary-color;
  color: var(--bs-white);
}

body {
  // background-color: var(--bs-white);
  background-color: var(--body-bg);
}

.page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
}

.page-main {
  flex: 1 1 auto;
}

a {
  text-decoration: none;
  display: inline-block;
}

.text-link {
  color: blue;

  &:hover {
    text-decoration: underline;
  }
}

i {
  cursor: pointer;
}

.top-80 {
  top: 80px;
}

.m__title_cmn {
  &::after {
    content: '';
    position: absolute;
    transform: translateY(-50%);
    top: 50%;
    border-top: 1px dashed $primary-color;
    margin-left: 0.625rem;
    width: 100%;
  }
}

/** Footer Start**/
.footer {
  padding: 0.9375rem 1.25rem;
  margin-left: $width-sidebar;
  transition: margin-left 0.2s ease;
  border-top: 1px solid $border;
  margin-top: 0.9375rem;
}

.sidebar-mini.sidenav-toggled .footer {
  margin-left: $width-toggleopen;
}

/** Footer End **/

/** Custom File Type **/
.m--cst-filetype {
  $defaultimgwidth: 100px;
  $defaultimgheight: 115px;

  & .m--img-preview {
    width: $defaultimgwidth;
    height: $defaultimgheight;
    border: 0.125rem solid $modal-header-bg;

    & img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }
  }

  & .m__image_default {
    width: $defaultimgwidth;
    height: $defaultimgheight;
    border: 0.125rem solid $modal-header-bg;
    cursor: pointer;
  }

  & .m--img-preview span {
    position: absolute;
    bottom: 0rem;
    left: 0rem;
    display: flex;
    background-color: var(--bs-gray-300);
    cursor: pointer;
    border-top-right-radius: 0.625rem;
    opacity: 1;
    visibility: visible;

    & i {
      background-size: 0.9375rem;
      background-position: center;
    }
  }
}

/** table image fix width and height **/
.table-img-box {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.fw-100 {
  font-weight: 100;
}

.fw-200 {
  font-weight: 200;
}

.cp {
  cursor: pointer;
}

.fw-300 {
  font-weight: 300;
}

.fw-400 {
  font-weight: 400;
}

.fw-500 {
  font-weight: 500;
}

.fw-600 {
  font-weight: 600;
}

.fw-700 {
  font-weight: 700;
}

.fw-800 {
  font-weight: 800;
}

.fw-900 {
  font-weight: 900;
}

/** React Tag Components Css Start **/
.rti--container {
  --rti-bg: #fff;
  --rti-border: #ced4da;
  --rti-main: #001b5a;
  // --rti-radius: 0.375rem;
  // --rti-s: 0.3633rem;
  --rti-tag: #edf2f7;
  --rti-tag-remove: #e53e3e;

  &:focus-within {
    box-shadow: 0 0 0 0.25rem rgb(0 27 90 / 10%);
  }

  & .rti--input {
    width: 100%;
  }
}

/** React Tag Components Css End**/
// required Field start
.required {
  position: relative;

  &::after {
    content: '*';
    position: absolute;
    right: -0.5rem;
    top: 0.0625rem;
    color: $danger;
    font-size: 1.25rem;
    line-height: 1;
  }
}

// /////////////////////////////////////////
.pv-global-tab {
  .nav-link.active {
    color: var(--bs-nav-pills-link-active-color);
    background-color: var(--bs-btn-blue) !important;
  }
}

.pv-global-table {
  th {
    min-width: 200px;
  }
}

.form-label {
  margin-bottom: 0.3rem;
  line-height: normal;
  font-size: 0.875rem;
  width: fit-content;
}

.form-select {
  -moz-padding-start: calc(0.75rem - 3px);
  -webkit-appearance: none;
  appearance: none;
  background-color: #fff;
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 16px 12px;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  color: #212529;
  display: block;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  padding: 0.375rem 2.25rem 0.375rem 0.75rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  width: 100%;
}

/** Dropdown select input css**/
.css-13cymwt-control {
  min-height: 28px !important;
  height: 100% !important;

  .css-1xc3v61-indicatorContainer {
    padding: 5px !important;
  }
}

// ////////////////////////////////////
/* CustomLightbox.css */

.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  // max-height: 90%;
}

.lightbox-content img,
.lightbox-content video {
  display: block;
  max-width: 700px;
  max-height: 700px;
  margin: 0 auto;
}

.caption {
  text-align: center;
  margin-top: 10px;
  color: #fff;
}

.prev-button,
.next-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 5px 10px;
  background-color: #fff;
  color: #000000;
  border: none;
  cursor: pointer;
  border-radius: 10px;
}

.prev-button {
  left: -100px;
}

.next-button {
  right: -73px;
}

.close-button {
  top: 10px;
  right: 10px;
}

.pv-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-gap: 10px;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
  }

  video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
  }
}

.pv-btn-close {
  top: -20px;
  right: -20px;
  background-color: #fff;
  padding: 10px;
  border-radius: 100%;
}

// global css media query
@media only screen and (max-width: 1480px) {
  html {
    font-size: 14px;
  }
}

@media only screen and (max-width: 1200px) {
  html {
    font-size: 13px;
  }
}

@media only screen and (max-width: 1100px) {
  html {
    font-size: 12px;
  }

  .css-1xc3v61-indicatorContainer {
    padding: 5px !important;
  }

  .lightbox-content img,
  .lightbox-content video {
    max-width: 600px;
    max-height: 600px;
  }
}

.img-object-fit-con {
  object-fit: contain;
  object-position: top;
}

.img-object-fit-cov {
  object-fit: cover;
}

.pv-manage-section-main {
  max-height: 250px;
  overflow-y: auto;
}

.pv-model-bg {
  background-color: $modal-header-bg;
}

.w-0 {
  width: 0px;
}

.w-fitcontent {
  width: fit-content;
}

.z-index-1 {
  z-index: 1;
}

.kl-long-text {
  display: -webkit-box !important;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

// box shadow css
.pv-boxshadow {
  // box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

// datepicker css
.pv-datepicker {
  padding: 0.375rem 0.6875rem 0.375rem;
  border-radius: 0.25rem;
}

.ant-picker-dropdown {
  z-index: 1060;
}

// input autofill background remove

input:-webkit-autofill,
input:-webkit-autofill:focus {
  transition: background-color 600000s 0s, color 600000s 0s !important;
}

td.p-inline-block p:first-child {
  display: inline;
}

.m-icon--specification {
  background-image: url('../icons/category-specification.svg');
  width: 1.5rem;
  height: 1.5rem;
}
.nav-tabs-vertical .nav-link.active .m-icon--specification {
  background-image: url('../icons/category-specification-fill.svg');
}

.page-range {
  padding: 0px 5px;
  font-weight: 600;
  border-radius: 0.375rem;
  background-color: rgba(0, 27, 90, 0.1);
}
