body, .form-control {
  font-weight: 500 !important;  /* sau orice altă valoare: 400, 600, bold */
  font-size: 1.125rem !important;
}

.fs-7 {
	font-size: 14px;
	line-height: 16px;
}

.fs-8 {
	font-size: 12px;
	line-height: 13px;
}

.nowrap {
	white-space: nowrap;
}

/*main {
	background-color: hsl(0, 0%, 98%);
}*/

.bg-opacity-35 {
	--mdb-bg-opacity: 0.35;
}

@media (min-width: 1400px) {
  main,
  header,
  #main-navbar,
  #live-notifications-wrapper {
    padding-left: 240px;
  }
}

#live-notifications-wrapper {
	top: 90px;
	z-index: 1029;
}

@media (max-width: 768px) {
  #live-notifications-wrapper {
    top: 120px;
    z-index: 1029;
  }
}


.form-outline .dropdown-menu li a {
	padding-left: 5px;
}

.table {
	vertical-align: middle;
}

.bg-hover-light-dark:hover {
	background-color: rgb(0, 0, 0, 0.05);
}

#sidenav .sidenav-link i {
    color: inherit;
}

.hide {
	display: none !important;
}

.autocompleate-preview {
  min-width: 48px;
  max-width: 48px;
  min-height: 48px;
  max-height: 48px;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.autocompleate-preview > img {
  height: 48px;
}

/*.form-control {
	background-color: #fff !important;
}*/

.form-control:not(.sth), .btn:not(.input-group .btn, .sth), .dropdown-menu li:not(.sth) {
	line-height: 2.3 !important;
}

.form-control.active~.form-label:not(.sth), .form-control:focus~.form-label:not(.sth) {
	transform: translateY(-1.2rem) translateY(0.1rem) scale(.8);
}

.form-control~.form-label:not(.sth) {
	padding-top: 0.64rem !important;
}

.select-arrow {
	margin-top: 0.3rem !important;
}

.input-group .form-control, .input-group button {
	line-height: 2.3 !important;
	height: auto !important;
}

.input-group:not(.sth) .input-group-text {
	height: 47px;
}

#tabs-content {
    max-width: 1000px;
    margin: 0 auto 0 auto;
}

.tab-800 {
	max-width: 800px;
    margin: 0 auto 0 auto;
}

.tab-content {
	margin-top: 1rem;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}


.dropzone {
	position: relative;
	overflow: hidden;
	min-height: 100px;
	transition: background-color 0.3s;
}

.dropzone:hover {
	background-color: rgb(0, 0, 0, 0.05);
}

.dropzone #selectfile {
	display: none;
}

.dropzone-body {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}

.dropzone .dropzone-image, .dropzone .add-dropzone-image, .dropzone .add-dropzone-video {
	width: 150px;
	height: 150px;
	position: relative;
	background-position: center;
	background-size: cover;
}

.dropzone-image, .dropzone-video, .dropzone .add-dropzone-image, .dropzone .add-dropzone-video {
	cursor: pointer;
}

.dropzone .dropzone-video, .dropzone .dropzone-video video {
	position: relative;
	height: 100px;
}

.dropzone .dropzone-image .fa-minus-circle, .dropzone .dropzone-video .fa-minus-circle {
	position: absolute;
	top: 0;
	right: 0;
	background-color: white;
	opacity: 0.7;
	cursor: pointer;
}

.dropzone .dropzone-image .fa-fast-backward {
	position: absolute;
	top: 0;
	right: 24px;
	background-color: white;
	opacity: 0.7;
	cursor: pointer;
}

.dropzone .dropzone-image .fa-sync-alt {
	position: absolute;
	top: 0;
	right: 48px;
	background-color: white;
	opacity: 0.7;
	cursor: pointer;
}

.dropmsg {
	display: none;
	position: absolute;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	z-index: 1000;
}

.sidenav-icon {
    font-size: 14px;
    margin: 0 -10px;
    text-align: left;
    letter-spacing: -0.25px;
    width: 244px;
    width: 23px;
    text-align: center;
    margin-right: 12px!important
}

.sidenav-text {
    width: 192px;
    font-size: 18px;
}

.rotate-icon {
    font-size: 10px;
}

/*body {
	background-color: hsl(0, 0%, 98%);
}*/



@media(max-width:992px){
	.dropzone-body {
		justify-content: center;
	}

	.dropzone .dropzone-image, .dropzone .add-dropzone-image, .dropzone .add-dropzone-video {
		width: 120px;
		height: 120px;
	}

	.dropzone .dropzone-video, .dropzone .dropzone-video video {
		height: 120px;
	}
}

@media(max-width: 768px) {
	.autocomplete-dropdown-container {
		width: 100% !important; /* Suprascrie lățimea pentru dispozitivele mobile */
		left: 0 !important;
	}
}
[data-mdb-theme="dark"] .navbar {
	background-color: #2b2b2b !important;
	color: #f1f1f1 !important;
	border-color: #444 !important;
}

[data-mdb-theme="light"] .navbar {
	background-color: #fff !important;
	color: #212529 !important;
	border-color: #ced4da !important;
}

[data-mdb-theme="light"] .navbar i.fa-bell {
	color: #386bc0;
}

[data-mdb-theme="light"] #notificationsModal {
	background-color: #ffffff;
}

[data-mdb-theme="dark"] #notificationsModal {
	background-color: #2b2b2b
}

.notification-ring-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
}

.notification-ring {
	position: absolute;
	top: 0;
	left: 0;
	width: 48px;
	height: 48px;
	border: 2px solid rgba(220, 53, 69, 0.7);
	border-radius: 50%;
	animation: rotateRing 1.2s linear infinite;
	z-index: 1;
}

.notification-ring-wrapper i.fas.fa-bell {
	font-size: 18px; /* controlezi dimensiunea clopotelului */
	position: relative;
	z-index: 2;
}

@media (max-width: 768px) {
  .notification-ring-wrapper {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex; /* activat pe mobil */
    align-items: center;
    justify-content: center;
  }

  .notification-ring {
    width: 32px;
    height: 32px;
  }

  .notification-ring-wrapper i.fas.fa-bell {
    font-size: 16px;
  }
}


@keyframes rotateRing {
	0% {
		transform: rotate(0deg) scale(1);
		opacity: 1;
	}
	50% {
		transform: rotate(180deg) scale(1.1);
		opacity: 0.6;
	}
	100% {
		transform: rotate(360deg) scale(1);
		opacity: 1;
	}
}

/* 3) Header-ul rămâne natural (nu flex-grows) */
#notificationsModal .border-bottom {
flex: 0 0 auto;
}

/* 4) Div-ul ăla cu flex-grow-1 care conţine tab-urile + content */
#notificationsModal > .d-flex > .flex-grow-1 {
display: flex;
flex-direction: column;
/* important ca flex-child să poată scădea sub conţinut */
min-height: 0;
}

/* 5) Nav-tabs tot natural */
#notificationsModal .nav-tabs {
flex: 0 0 auto;
}

/* 6) Conţinutul tab-urilor să ia tot restul spaţiului şi să fie scrollable */
#notificationsModal .tab-content {
flex: 1 1 auto;
overflow-y: auto;
/* per tot conţinutul, nu doar pe .tab-pane */
min-height: 0;
}

[data-mdb-theme="dark"] .dropzone-image a  {
	background-color: #303030!important;
}
[data-mdb-theme="dark"] .dropzone-image i  {
	background-color: #303030!important;
}

.page-jump-popover {
  position: absolute;
  z-index: 9999;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
  width: 150px;
}
.dataTables_paginate {
  flex: 1 1 auto;
  display: flex !important;
  justify-content: center !important;
  max-width: 100%;
}
.dataTables_paginate .paginate_button:nth-child(n+6):not(.previous):not(.next) {
  display: none;
}
.column-image {
  max-width: 60px;
  width: 60px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.editable-field {
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.editable-field:hover::after {
    content: "\f044"; /* Cod Font Awesome pentru iconița pencil */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: #007bff;
}
.datatable-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}
.dropdown-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}
.img-thumb {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

/* ascundem iniţial preview-ul */
.img-thumb .img-preview {
  display: none;
  position: absolute;
  top: 0;
  left: 60px;      /* distanţa faţă de thumbnail */
  padding: 5px;
  border: 1px solid #ccc;
  background: #fff;
  z-index: 1000;
  white-space: nowrap;
}

/* dimensionăm imaginea de preview */
.img-thumb .img-preview img {
  max-width: 200px;  /* sau orice altă lăţime preferi */
  height: auto;
  display: block;
}

/* la hover, arătăm preview-ul */
.img-thumb:hover .img-preview {
  display: block;
}
@media (max-width: 767.98px) {

  main {
    margin-top: 60px !important; /* Compensează navbar + search */
  }


  /* Dark mode specific pentru butonul de căutare */
  [data-mdb-theme="dark"] #btn-searchheader, [data-mdb-theme="dark"] #btn-searchheader-mobile {
    background-color: #303030 !important;
    color: #fff;
  }
}
#top-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: #e0e0e0; /* fundal alb-gri neutru */
  overflow: hidden;
  z-index: 1070;
}

#top-progress-bar::before {
  content: "";
  display: block;
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 60%;
  background: linear-gradient(to right, #ffffff, #3b71ca); /* alb spre albastru */
  animation: loading-bar 1s infinite;
}
@keyframes loading-bar {
  0% {
    left: -60%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

.label-new {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 2px 6px;
  background-color: #3b71ca;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  border-radius: 8px;
  line-height: 1;
  vertical-align: middle;
  animation: labelPulse 1.5s infinite ease-in-out;
}

@keyframes labelPulse {
  0%   { transform: scale(1); opacity: 1; }
  50%  { transform: scale(1.15); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

/* PRODUCT LIST PAGE */
.mfp-img {
  max-width: 800px;   /* pe desktop arată perfect */
  max-height: 90vh!important;    /* nu depășește ecranul */
  width: auto;
  height: auto;
}
@media (max-width: 768px) {
  .mfp-img {
    max-width: 95vw;   /* pe mobil ocupă aproape toată lățimea */
    max-height: 80vh;
  }
}
#select-wrapper-filter_warehouse_mob .select-arrow {
  display: none !important;
}

/* NAVIGATION 27.09.25 */
   html[data-mdb-theme="dark"] button.toggle-sidenav-btn {
    border: 2px solid #fff;
    color: #fff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15);
  }
  /* Tabletă mică – reduce puțin lățimea */
@media (max-width: 992px) {
  #notificationsModal {
    max-width: 90vw !important;
  }
}

/* Mobil – ocupă toată lățimea */
@media (max-width: 576px) {
  #notificationsModal {
    max-width: 100vw !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
  }
}
@keyframes pulseError {
  0%   { transform: scale(1); opacity: 1; }
  50%  { transform: scale(1.3); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

.pulse-error {
  animation: pulseError 1s infinite;
}
.toggle-sidenav-btn {
  width: 36px; 
  height: 36px; 
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid;
  border-radius: 8px;
}

#search-header-mobile
 {
    margin: 0 !important;
    font-size: 14px;
    text-align: left;
    border: 1px solid #D1D5DC;
    border-radius: 50px;
}
#search-header-mobile.show {
  transform: translateY(0);
}

#search-header-mobile .input-group {
  height: 38px;
  max-width: 100%;
  width: 100%;
}

#search-header-mobile input {
  font-size: 0.85rem;
}

#search-header-mobile .btn {
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
}
#sidenav-cart-container {
  border-radius: 8px;
  margin: 12px;
  padding: 10px;
}
#sidenav-cart-container .cart-icon {
  font-size: 1.5rem;
}
#navbarDropdownAccount::after {
  display: none !important;
  content: none !important;
}

@media (max-width: 992px) {
  /* Cart în sidenav */
  #sidenav-cart-container #cart-products {
    width: 100% !important;
    position: relative !important;
    inset: unset !important;
    transform: none !important;
    background: #2f3a46; /* gri mai deschis */
    border-radius: 8px;
    padding: 10px;
    margin: 8px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    font-size: 0.8rem; /* font mai mic global */
  }

  /* Item produs */
  #sidenav-cart-container #cart-products li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  #sidenav-cart-container #cart-products li:last-child {
    border-bottom: none;
  }

  /* Imagine produs */
  #sidenav-cart-container #cart-products img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 8px;
  }

  /* Nume produs */
  #sidenav-cart-container #cart-products a {
    color: #fff;
    font-size: 0.75rem; /* font și mai mic la link */
    text-decoration: none;
    display: block;
  }

  /* Cantitate + preț */
  #sidenav-cart-container #cart-products span {
    font-weight: 500;
    font-size: 0.75rem;
    color: #ccc;
  }

  /* Remove (X) */
  #sidenav-cart-container #cart-products .cart-remove {
    color: #ff5c5c !important;
    cursor: pointer;
    font-size: 0.8rem;
  }

  /* Buton "Adaugă comandă" */
  #sidenav-cart-container #cart-products .btn {
    width: 100%;
    margin-top: 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem; /* font mic */
    padding: 6px;
  }
}
@media (max-width: 992px) {
  #sidenav-cart-container .cart-icon-bordered {
    border: 1px solid #fff;
    border-radius: 6px;   /* nu mai e rotund complet */
    padding: 3px;         /* mai puțin padding */
    font-size: 1.1rem;
    margin-left: -4px;    /* împinge un pic mai la stânga */
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
@media (max-width: 992px) {
  #sidenav-cart-container {
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }
}