.loader {
  position: fixed;
  width: 100%;
  height: 100vh;
  background-color: rgba(21, 21, 21, 0.75);
  z-index: 20002;
  display: block;
}

.loader2 {
  border: 8px solid #f3f3f3;
  border-radius: 50%;
  border-top: 8px solid #2f4050;
  width: 100px;
  height: 100px;
  position: absolute;
  left: 40%;
  top: 31%;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}

.swal2-container {
  z-index: 10000000;
}

/* Safari */
@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

#blah1 {
  cursor: pointer;
  object-fit: contain;
  height: 150px;
  border-radius: 50%;
  /* border: 1px solid; */
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .4);

}

.product_summary tbody tr {
  cursor: pointer;
}

.quantity,
.discount {
  width: 100%;
}

.scrollable {
  overflow-y: auto;
  min-height: 250px;
  max-height: calc(100vh - 600px);

}

div.dt-buttons {
  text-align: right;
}

div.dt-button a {
  margin-left: 12px;
}

.dt-buttons {
  text-align: right;
}

.modalcontent2 .modal-content {
  width: 140%;
}

/*! CSS Used from: https://demo4.onlineoffice.live/AdminLTE/plugins/pace/pace.css?v=42 */
.pace {
  -webkit-pointer-events: none;
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.pace-inactive {
  display: none;
}

.pace .pace-progress {
  background: #589dd7;
  position: fixed;
  z-index: 2000;
  top: 0;
  right: 100%;
  width: 100%;
  height: 3px;
}

/*! CSS Used from: https://demo4.onlineoffice.live/bootstrap/css/bootstrap.min.css?v=42 */
@media print {

  *,
  :after,
  :before {
    color: #000 !important;
    text-shadow: none !important;
    background: 0 0 !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
  }
}

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

:after,
:before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

/*! CSS Used from: https://demo4.onlineoffice.live/plugins/calculator/calculator.css?v=42 */
*:focus {
  outline: 0 !important;
}

/*! CSS Used from: https://demo4.onlineoffice.live/css/app.css?v=42 */
/* ::-webkit-scrollbar{width:7px;} */
/* ::-webkit-scrollbar-track{background:#f1f1f1;} */
/* ::-webkit-scrollbar-thumb{background:#888;} */
/* ::-webkit-scrollbar-thumb:hover{background:#555;} */
@media print {
  ::-webkit-scrollbar {
    display: none !important;
  }
}

.dataTables_scrollHeadInner,
.dataTables_scrollBody table {
  width: 100% !important;
}

.logo-img {
  width: 35%;
}

.single-page {
  height: 100vh;
}

.installler {
  height: 130vh;
}

.sidebar-container {
  height: 100vh;
  overflow-y: auto !important;
  /* Ensure scrollbar appears only when needed */
  position: fixed;
  z-index: 10;
  background-color: #fff;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background-color: #f8f9fa;
}

::-webkit-scrollbar-thumb {
  background-color: #999999;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #666666;
}

.sidebar-items .nav-link {
  color: #000;
}

.sidebar-items .nav-link:hover,
.sidebar-items .nav-link.active {
  /* background-color: #f8f9fa; */
  font-weight: bold;
}

.sidebar-items .nav-link:hover i,
.sidebar-items .nav-link.active i {
  color: #1e3c72;
  font-weight: bold;
}


.profile-picture img {
  width: 80%;
}


.content-here {
  min-height: 561px;
}

.md-form {
  margin-top: 0;
  margin-bottom: 0;
}

.md-form>.form-control {
  padding-left: 0;
  padding-right: 0;
  border-color: transparent;
  border-radius: 0;
  background-color: transparent;
  box-shadow: 0 1px 0 #d4dae3;
  transition: box-shadow .3s ease-out;
}

.md-form textarea.form-control:focus {
  -webkit-box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.2);
  box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.2);
}

.icons-dash i {
  font-size: 39px;
  color: #ccc;
}

.profile-name {
  font-weight: bold;
}


.content-here .row {
  padding-top: 21px;
}

h3.block-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff !important;
  margin-bottom: 0;
}

.block-header {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
  color: white !important;
  padding: 12px 20px !important;
  border-bottom: none !important;
}

.block-header-default {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
}

/* Attractive Button Styles inside Block Headers */
.block-header .btn,
.block-header button {
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
  border-radius: 50px !important;
  /* Rounded pill shape for modern look */
  padding: 8px 20px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.block-header .btn:hover,
.block-header button:hover {
  background: #ffffff !important;
  color: #1e3c72 !important;
  border-color: #ffffff !important;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 0 15px rgba(255, 255, 255, 0.3);
}

.block-header .btn i {
  font-size: 0.9rem;
}


.listview .block-content {
  padding-bottom: 0;
  padding-top: 0;
}

.listview #basic-datatable_filter {
  margin-top: 18px;
}

.listview #basic-datatable_wrapper {
  padding-top: 16px;
}

.btn {
  word-wrap: unset;
  padding: 11px;
  text-align: center;
}

[type="button"] {
  -webkit-appearance: inherit;
  appearance: inherit;
}

@media (max-width: 767px) {
  .sidebar-container {
    background-color: #fff;
  }

}

.dataTables_scrollHeadInner table {
  width: inherit !important;
}

.btn-float {
  position: relative;
  overflow: hidden;
  background: linear-gradient(45deg, var(--brand-color) 0%, var(--brand-color-light) 100%);
  border: none;
  transition: all 0.3s ease;
}

.btn-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  background: linear-gradient(45deg, var(--brand-color-dark) 0%, var(--brand-color) 100%);
}

.icon-float {
  position: relative;
  display: inline-block;
  transition: transform 0.3s ease;
  /* animation: float 2s ease-in-out infinite; */

}

.btn-float:hover .icon-float {
  transform: translateY(-2px);
}

:root {
  --brand-color: #1e3c72;
  --brand-color-dark: #1e3c72;
  --brand-color-light: #2a5298;
}

/* Button color overrides */
.btn-info {
  background: linear-gradient(45deg, #17a2b8 0%, #138496 100%);
}

.btn-success {
  background: linear-gradient(45deg, #28a745 0%, #218838 100%);
}

.btn-primary {
  background: linear-gradient(45deg, #1e3c72 0%, #2a5298 100%);
}

.btn-danger {
  background: linear-gradient(45deg, #dc3545 0%, #c82333 100%);
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-5px);
  }

  100% {
    transform: translateY(0px);
  }
}

.top-search {
  text-align: center;
  margin-bottom: 10px;
}

.top-search label {
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
}

.top-search input {
  width: 50%;
  /* Adjust width as needed */
  text-align: center;
}

.total_show {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  font-size: 32px;
  /* padding: 12px; */
  /* margin-top: 20px; */
  border-radius: 4px;
  color: #fff;
  padding-top: 0px !important;
}

.order_discount_input {
  display: inline-block;
  width: 100px;
  text-align: right;
}

/* Ledger Styles */
.ledger-header {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white !important;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ledger-header h2 {
  color: white !important;
}

.stat-card {
  background: white;
  border-left: 4px solid #1e3c72;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: transform 0.2s;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 10px;
}

.table-ledger thead th {
  background-color: #f8f9fc;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #e3e6f0;
}

.page-header-actions {
  margin-bottom: 20px;
}

@media print {

  .btn-print,
  .btn-back,
  .page-header-actions {
    display: none !important;
  }

  .ledger-header {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #ccc;
    box-shadow: none;
  }

  .ledger-header h2 {
    color: black !important;
  }
}

/* Modal UI Improvements */
.modal-content {
  border: none !important;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

.modal-header {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
  color: white !important;
  border-bottom: none !important;
  padding: 1.5rem !important;
}

.modal-header .modal-title {
  font-weight: 700 !important;
  letter-spacing: 0.5px;
}

.modal-header .close {
  color: white !important;
  text-shadow: none !important;
  opacity: 0.8;
  transition: all 0.2s;
}

.modal-header .close:hover {
  opacity: 1;
  transform: scale(1.1);
}

.modal-body {
  padding: 2rem !important;
}

.modal.fadeIn .modal-dialog {
  animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-30px) scale(0.95);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Dashboard Icon Animations & Block Improvements */
.dash-icon-anim {
  display: inline-block;
  transition: all 0.3s ease;
}

.block:hover .dash-icon-anim {
  animation: iconPulse 1s infinite alternate;
}

@keyframes iconPulse {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.3) rotate(10deg);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
  }
}

.text-orange {
  color: #fd7e14 !important;
}

.icons-dash .block {
  border-radius: 12px;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.icons-dash .block:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.icons-dash .block {
  border-radius: 15px !important;
  border: none !important;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important;
  background: #ffffff !important;
  overflow: hidden;
  position: relative;
}

.icons-dash .block:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.icons-dash i {
  font-size: 2.4rem;
  transition: all 0.4s ease;
}

/* Colorful Accents for Icons-Dash */
.icons-dash:nth-of-type(1) i {
  color: #055f40 !important;
}

.icons-dash:nth-of-type(2) i {
  color: #925600 !important;
}

.icons-dash:nth-of-type(3) i {
  color: #920011 !important;
}

.icons-dash:nth-of-type(4) i {
  color: #1e3c72 !important;
}

/* Subtle accent line at the bottom of each block */
.icons-dash:nth-of-type(1) .block {
  border-bottom: 4px solid #1d976c !important;
}

.icons-dash:nth-of-type(2) .block {
  border-bottom: 4px solid #f09819 !important;
}

.icons-dash:nth-of-type(3) .block {
  border-bottom: 4px solid #eb3349 !important;
}

.icons-dash:nth-of-type(4) .block {
  border-bottom: 4px solid #1e3c72 !important;
}

.icons-dash .block:hover i {
  transform: scale(1.25) rotate(5deg);
}

.icons-dash .h3 {
  color: #1a1a1a !important;
  font-weight: 700 !important;
  margin-top: 5px;
}

.icons-dash .text-uppercase {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: #888 !important;
}

.block-link-shadow {
  text-decoration: none !important;
}

/* Premium Dashboard Stats Card */
.stats-card {
  position: relative;
  border-radius: 16px !important;
  overflow: hidden;
  border: none !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  min-height: 110px;
  display: flex !important;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
  text-decoration: none !important;
}

.stats-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.12) !important;
}

.stats-card .block-content {
  width: 100%;
  padding: 1.5rem !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stats-icon {
  width: 55px;
  height: 55px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transition: all 0.4s;
}

.stats-card:hover .stats-icon {
  transform: rotate(15deg) scale(1.1);
  background: white !important;
}

.stats-data {
  text-align: right;
  flex-grow: 1;
}

.stats-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: 4px;
}

.stats-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.85);
}

/* Individual Card Colors */
.stats-completed {
  background: linear-gradient(135deg, #1d976c 0%, #93f9b9 100%) !important;
}

.stats-completed:hover .stats-icon {
  color: #1d976c;
}

.stats-return {
  background: linear-gradient(135deg, #f09819 0%, #edde5d 100%) !important;
}

.stats-return:hover .stats-icon {
  color: #f09819;
}

.stats-cancelled {
  background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%) !important;
}

.stats-cancelled:hover .stats-icon {
  color: #eb3349;
}

.stats-products {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
}

.stats-products:hover .stats-icon {
  color: #1e3c72;
}