@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus,
.form-select:focus {
  box-shadow: none;
}

body,
html {
  padding: 0;
  margin: 0;
  font-size: 14px;
  background-color: #212529;
  height: 100%;
  overflow-x: hidden;
  background: rgb(103, 112, 179);
  background: linear-gradient(
    135deg,
    rgba(103, 112, 179, 1) 20%,
    rgba(116, 161, 255, 1) 100%
  );
  font-family: 'Montserrat', sans-serif !important;
}

main {
  background-color: rgb(255 255 255) !important;
  overflow-y: auto !important;
}

.wrapper {
  display: flex;
  height: 100vh;
}

.sidebar {
  flex-shrink: 0;
  width: 250px;
  color: white;
  transition: width 0.3s ease;
  padding: 1rem;
}

.sidebar.collapsed {
  width: 70px;
}

.sidebar .nav-link {
  color: white;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar .nav-link:hover {
  background: linear-gradient(
    90deg,
    rgba(140, 100, 200, 0.2) 0%,
    rgba(102, 16, 242, 0.1) 100%
  );
}

.sidebar .nav-item span {
  transition: opacity 0.3s;
}

.sidebar.collapsed .nav-item span {
  opacity: 0;
}

.content-area {
  display: flex;
  flex-direction: column;
  max-width: 100vw;
  overflow-x: hidden;
}

.topbar {
  height: 56px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  align-items: center;
  padding: 0 1rem;
}

.topbar .toggle-btn {
  border: none;
  background: none;
  font-size: 1.25rem;
}

.main-content {
  flex-grow: 1;
  overflow-x: auto;
  padding: 1rem;
  background: #f8f9fa;
  transition: margin-left 0.3s ease;
}

.dt-container {
  margin-top: 20px;
  font-size: 12px;
}

.dt-input {
  border: 1px solid #c2c2c2;
  border-radius: 5px;
}

.dt-paging-button {
  margin-left: 5px;
  margin-right: 5px;
  border-radius: 5px;
  background-color: #fcfcfc;
  border: 1px solid #c2c2c2;
  color: #5f5f5f;
  font-size: 14px;
}

.pointer {
  cursor: pointer;
}

.dt-info {
  margin-bottom: 10px;
}

.form-group label {
  color: #000;
  font-weight: bold;
  font-size: 12px;
  margin-top: 10px;
  user-select: none;
}

.form-group label i {
  cursor: pointer;
}

.form-group input,
.form-group select,
.form-check input,
.form-group textarea {
  font-size: 12px;
  border: 1px solid rgba(167, 178, 255, 0.5);
  background-color: rgb(224, 234, 255);
}

.alert {
  font-size: 12px;
  font-weight: bold;
  padding: 15px;
  margin-left: 10px;
}

label.error {
  color: #ff0000 !important;
  margin-top: 4px;
  font-weight: normal;
}

fieldset {
  border: 1px solid rgb(167, 178, 255);
  border-radius: 10px;
}

.modal-body fieldset {
  border: 1px solid #000;
}

legend {
  color: rgb(167, 178, 255);
  font-size: 14px;
}

.modal-body legend {
  color: #000;
  font-size: 14px;
  font-weight: bold;
}

.pageTitle {
  color: rgb(167, 178, 255);
  font-size: 20px;
}

.pageTitle a {
  font-size: 12px;
  text-decoration: none;
  margin-left: 40px;
}

.form-check label {
  font-weight: bold;
  font-size: 12px;
  cursor: pointer;
}

.nav i {
  margin-right: 5px;
  font-size: 14px;
}

.collapsed.drop::before {
  visibility: visible;
  content: '\F231';
}

.drop::before {
  visibility: visible !important;
  font-family: bootstrap-icons !important;
  content: '\F229';
  font-size: 12px;
  float: left;
  line-height: 24px;
  margin-right: 10px;
  color: rgb(182, 191, 255);
}

.nav li a.active {
  background: rgb(0, 0, 255) !important;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 255, 0.1) 10%,
    rgba(0, 0, 255, 0) 100%
  ) !important;
}

.nav li a::before {
  font-family: bootstrap-icons !important;
  content: '\F229';
  font-size: 12px;
  float: left;
  line-height: 24px;
  margin-right: 10px;
  visibility: hidden;
}

.nav li {
  margin-top: 15px;
}

.nav li a {
  background: rgb(255, 255, 255);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.1) 10%,
    rgba(255, 255, 255, 0) 100%
  );
  padding-left: 10px;
  cursor: pointer;
}

.nav ul {
  list-style: none;
}

#resultMessage {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 30%;
  display: none;
  z-index: 10000;
}

.text-right {
  text-align: right;
}

label span {
  font-weight: bold;
  font-size: 12px;
}

.nav-link {
  font-size: 14px;
}

.productImage {
  width: 150px;
  height: 150px;
  border: 1px solid rgb(167, 178, 255);
  border-radius: 5px;
  line-height: 150px;
  margin: 10px;
  font-size: 60px;
  text-align: center;
  color: rgba(167, 178, 255, 0.2);
  background-size: 100%;
}

.productImage div {
  font-size: 12px;
  line-height: 20px;
  margin-top: -105px;
  color: rgba(167, 178, 255);
}

.detailes_lbl {
  font-size: 12px;
  font-weight: bold;
  line-height: 32px;
}

.detailes_lbl_info {
  line-height: 32px;
}

.plistImage {
  border: 1px solid rgb(167, 178, 255);
  border-radius: 10px;
}

.attHeading {
  background-color: rgb(167, 178, 255, 0.25);
  border-radius: 4px;
  margin-right: 4px;
}

.attData {
  background-color: rgb(211, 211, 211, 0.2);
  border-radius: 4px;
  margin-right: 4px;
  font-size: 12px;
  line-height: 24px;
}

.modal-backdrop {
  background-color: transparent;
}

.modal-content {
  border: 1px solid rgb(161, 172, 255);
  color: #fff;
  padding: 1px;
}

.modal-header {
  border-bottom: unset;
  background: linear-gradient(
    90deg,
    rgb(161, 172, 255) 50%,
    rgba(116, 161, 255, 1) 100%
  );
}

.modal-body {
  padding: 25px;
  color: #151515;
}

.modal-footer {
  border-top: unset;
}

.productImage:hover {
  color: #ff0000;
  cursor: pointer;
}

p {
  font-size: 12px;
}

.row span {
  font-size: 12px;
  line-height: 26px;
}

.fs-5 {
  font-size: 20px !important;
}

.modal-header .btn-close {
  font-size: 12px !important;
  margin-right: -8px;
  margin-top: -32px;
}

.modal-title {
  margin-left: 5px;
}

::placeholder {
  color: #000 !important;
  opacity: 0.25 !important;
}

body {
  overflow: hidden;
}

.select2-container {
  width: 100% !important;
}

.select2-selection--single {
  font-size: 14px !important;
  border: 1px solid rgb(167, 178, 255) !important;
  background-color: rgb(224, 234, 255) !important;
  height: 35px !important;
  line-height: 35px !important;
  border-radius: 7px !important;
}

.select2-selection__arrow {
  height: 35px !important;
}

.ml {
  margin-left: 10px;
}

table.table.dataTable > :not(caption) > * > * {
  background-color: transparent !important;
}

::-webkit-scrollbar-track {
  background-color: transparent;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: rgb(167, 178, 255);
}

.readonly {
  cursor: not-allowed;
  background-color: transparent !important;
  border: unset !important;
  font-weight: bold;
}

.ml {
  margin-left: 20px;
}

.select2-results__option {
  padding: 10px;
  font-size: 12px;
}

.select2-container .select2-selection--single .select2-selection__rendered {
  padding-top: 3px;
}

.lang-select {
  position: absolute;
  top: 18px;
  right: 14px;
}

.lang-select button {
  background-color: transparent;
  color: #fff;
  border: none;
}

.dropdown-item {
  color: #000 !important;
  font-size: 12px;
}

.lang-select_form {
  bottom: 10px;
  top: unset;
}

.fullScr_reset {
  position: absolute;
  right: 210px;
  top: 30px;
}

.fullScr_submit {
  position: absolute;
  right: 80px;
  top: 30px;
}

.pull-right {
  float: right;
}

.close_ShippingSection {
  /*position: absolute;
    top: 10px;
    right: 10px;*/

  font-size: 16px;
  color: rgb(167, 178, 255);
  cursor: pointer;
}

.showMeNOW {
  display: block !important;
}

.Add-billing_create,
.Add-billing_update {
  color: rgba(116, 161, 255, 1);
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
}

.pagination {
  --bs-pagination-padding-x: 7px;
  --bs-pagination-padding-y: 1px;
  --bs-pagination-font-size: 16px;
}

.dt-paging-button {
  margin-left: 3px;
  margin-right: 3px;
  border-radius: 3px;
  background-color: #fcfcfc;
  border: 0px;
  color: #5f5f5f;
  font-size: 16px;
}

.tracking div {
  text-align: center;
  line-height: 24px;
  font-size: 14px;
}

.tracking div i {
  font-size: 24px;
  line-height: 24px;
}

.gray-text i {
  color: #c2c2c2;
  font-size: 14px !important;
}

.redtext {
  color: red;
}

.subProText {
  font-size: 10px;
  border-radius: 3px;
  border: 1px solid #ccc;
  margin-top: 0px;
  width: 80%;
  margin-left: 1%;
}

.commentAlert {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.dt-paging-button button {
  font-size: 10px;
}

.no-margin {
  margin: 0;
}

div.dts div.dt-scroll-body,
div.dts div.dataTables_scrollBody {
  background: #fff !important;
}

.ml-8 {
  margin-left: 8px;
}

.validation-summary-errors {
  color: red;
  background-color: lightblue;
  border-radius: 5px;
  margin-top: 20px;
}

.icon-link {
  color: dodgerblue;
}

.icon-link:hover {
  color: blue;
}

.field-validation-error {
  color: red;
}

@media (max-width: 768px) {
  .sidebar {
    width: 70px;
  }
  .sidebar.collapsed {
    width: 70px;
  }

  .content-area {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .toggle-btn {
    display: none;
  }
}

@media (max-width: 767.98px) {
  #sidebar {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    z-index: 1050;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    width: 70px;
    background: rgb(103, 112, 179);
    background: linear-gradient(
      135deg,
      rgba(103, 112, 179, 1) 20%,
      rgba(116, 161, 255, 1) 100%
    );
  }

  body.sidebar-open #sidebar {
    display: block !important;
  }
  body.sidebar-open #sidebar .nav-link span {
    display: none !important;
  }
  body.sidebar-open #sidebar .nav-link i {
    font-size: 1.5rem;
    margin-right: 0;
  }
  .content-area {
    width: 100% !important;
  }
  #sidebarToggle {
    display: inline-block !important;
    z-index: 1100;
    position: fixed;
    top: 16px;
    left: 16px;
    transition: left 0.3s;
  }
  body.sidebar-open #sidebarToggle {
    left: 80px;
  }
}

/* Modal stacking solution */
.modal {
  z-index: 1055 !important; /* Base z-index */
}

/* Dynamic z-index classes for modal stacking */
.modal-stack-1 {
  z-index: 1055 !important;
}
.modal-stack-2 {
  z-index: 1065 !important;
}
.modal-stack-3 {
  z-index: 1075 !important;
}
.modal-stack-4 {
  z-index: 1085 !important;
}
.modal-stack-5 {
  z-index: 1095 !important;
}

/* Ensure modal backdrops also stack properly */
.modal-backdrop {
  z-index: 1050 !important; /* Base backdrop z-index */
}

.modal-backdrop-stack-1 {
  z-index: 1050 !important;
}
.modal-backdrop-stack-2 {
  z-index: 1060 !important;
}
.modal-backdrop-stack-3 {
  z-index: 1070 !important;
}
.modal-backdrop-stack-4 {
  z-index: 1080 !important;
}
.modal-backdrop-stack-5 {
  z-index: 1090 !important;
}
