/**
* Third Parts customize
*/

body{
  overflow-y: auto;
}

/* width */
body::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: var(--bs-light-gray); 
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--bs-secondary); 
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: var(--bs-gray); 
}

/**
* Bootstrap
*/
.content{
  padding: 1rem;
}
textarea.form-control{
  min-width: 100%;
  max-width: 100%;
  width: 100%;
  max-height: 200px;
}

.form-control, .form-select{
  min-height: 38px;margin-bottom:1em;
}
/**
* libs/intl-tel-input
*/

.iti{
  width: 100%;
}

.material-symbols-outlined{
  vertical-align: middle!important;
}

.loadingIcon{
  display: none;
}

.rotate{
  animation: rotation 2s infinite linear;
}

@keyframes rotation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(359deg);
  }
}

input.dateTimeInput[readonly]{
  background-color: inherit;
}

/**
* Pace.js
*/

.pace-done #loading{
  display: none;
}

.pace-running .wrapper{
  filter: blur(4px);
}

.pace-running #loading{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0);
  z-index: 99;
}

/**
* Utilities
*/

.previewImage{
  display: block;
  max-height: 300px !important;
}

/* Headerbar */

#siteStatusNotification small{
  font-size: 0.8rem;
  vertical-align: middle!important;
}

.dt_actions_bar{
  border-radius: 4px;
  background-color: #eee;
  padding: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
}
.mtop-16{
  margin-top:16px;
}

/* JqxWidgets */

.jqx-grid-cell-phramework{
  display: flex;
  align-items: center!important;
}

.jqx-grid-cell-phramework > div{
  margin: 0px !important;
  padding: 4px 8px !important;
}

.jqx-grid-cell-phramework.text-center{
  justify-content: center !important;
}

.jqx-grid-cell-phramework.text-end{
  justify-content: right !important;
}

.jqx-grid-cell-phramework > button{
  margin: 4px 8px !important;
}

.jqx-grid-cell-phramework > div.jqx-checkbox-phramework{
  position: relative !important;
  top: unset !important;
  left: unset !important;
  display: flex !important;
  align-items: center!important;
  padding: 0 !important;
  width: 100% !important;
  justify-content: center !important;
}

.jqx-checkbox-phramework > div{
}

.jqx-grid-cell-image img{
  max-width: 40px;
  max-height: 28px;
}

.jqx-grid-column-header-phramework{
  font-weight: 600 !important;
}

.jqx-grid-empty-cell-phramework > span{
  top: unset !important;
}

.jqx-grid-btn{
  border: none;
  padding: 1px 5px;
  margin: 12px 0px;
  border-radius:2px;
}

.sortableElement{
  cursor: move;
  padding: 8px 5px;
  border: 1px solid #ccc;
  background-color: white;
  width: 33%;
  min-width: 400px;
  margin-top: 5px;
}
.btn-with-action{
  margin-right: 12px;
}

.action-icon-btn{
  background-color: transparent;

  padding: 0;
  color: white;
  border: none;
}

.jqx-rc-all-phramework{
  z-index: 99;
  backdrop-filter: blur(5px); 
}

/**
* Sidebar
*/

.sidebar [aria-expanded=true]:after, 
.sidebar [data-bs-toggle=collapse]:not(.collapsed):after {
  top: 1.4rem;
  transform: rotate(-135deg);
}

.sidebar [data-bs-toggle=collapse]:after {
  border: solid;
  border-width: 0 0.075rem 0.075rem 0;
  content: " ";
  display: inline-block;
  padding: 2px;
  position: absolute;
  right: 1.5rem;
  top: 1.2rem;
  transform: rotate(45deg);
  transition: all .2s ease-out;
}

.sidebar-link, a.sidebar-link{
  background: unset;
}

.sidebar-nav{
  overflow-y: auto;
}

.sidebar-nav::-webkit-scrollbar {
  width: 5px;
}

.sidebar-nav .collapsing li span:first-child,
.sidebar-nav .collapse li span:first-child{
  margin-left: 30px;
}

.sidebar-link, a.sidebar-link {
  padding: 0.5rem 1rem;
}

.sidebar-brand{
  line-height: 1.2rem;
}

.version{
  color: white;
  font-size: 0.8rem;
  margin-bottom: 10px;
  opacity:0.8;
}

.vr{
  margin: 0 8px;
}

.sidebar-brand{
  background-color: #59433b;
}
.sidebar-nav{
  background-color: #59433b;
}
/* Modals */
.z-index-parent-modal{
  z-index: 1029;
}

/* Sortable */
#imageListGrid .sortableElement img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-header .close{
  background-color: #795d52;
  color: white;
  border: none;
  line-height: 1em;
  font-size: 2em;
}
.modal-header {
  background-color: #795d52;
  color: white;
  padding: 0.5em 1em !important;
}
.modal-footer .btn-sm {
  font-size: 0.9rem;
  padding: 0.25rem 1rem;
}
.modal-footer {
  padding: 0.25rem .75rem;
}
nav > span.breadcrumb-item:last-child{
  font-weight: bold;
}
.breadcrumb{
  padding: 1rem 0 0.5rem 0;
}
.breadcrumb li a{
  color: #59433b;
}
.btn-sm{
  border-radius: .25rem;
  font-size: 1rem;
  padding: 0.5rem 1rem;
}
/* Icons */
.material-symbols-outlined{
  font-variation-settings:
  'wght' 100
}

.material-symbols-outlined.refresh:after{
  content: 'refresh';
}

.material-symbols-outlined.toggle_on:after{
  content: 'toggle_on';
}

.material-symbols-outlined.toggle_off:after{
  content: 'toggle_off';
}

.material-symbols-outlined.list:after{
  content: 'list';
}

.material-symbols-outlined.arrow_drop_down:after{
  content: 'arrow_drop_down';
}

.material-symbols-outlined.arrow_drop_up:after{
  content: 'arrow_drop_up';
}

.material-symbols-outlined.fullscreen:after{
  content: 'fullscreen';
}

.material-symbols-outlined.add_circle:after{
  content: 'add_circle';
}

.material-symbols-outlined.do_not_disturb_on:after{
  content: 'do_not_disturb_on';
}

/* Bootstrap tables */
.table .btn span.material-symbols-outlined{
  color: var(--bs-secondary-rgb);
  font-variation-settings:
  'wght' 500
}

.table .btn:hover span.material-symbols-outlined{
  color: var(--bs-dark);
}

.table .imageInTable{
  width: 30px; 
  height: 30px; 
  aspect-radio: 1 / 1;
}

.table thead tr{
  background-color: #795d52;
  color: white;
  font-weight: 400;
}
.table tr:nth-child(even) {
  background-color: #eee;
}
.page-item.active .page-link {
  z-index: 3;
  color: #fff;
  background-color: #59433b;
  border-color: #59433b;
}

#addFromMediaModal .fixed-height{
  padding-bottom: 60px !important;
}
.select2-container{    
  width: 100% !important;
  height: 38px !important;
}
.select2-container .selection{    
  height: 38px !important;
}
/* Sweet Alert 2 */
.swal2-styled.swal2-confirm {
  all: unset;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 0.3rem;
  color: #495057;
  cursor: pointer;
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.5;
  padding: 0.5rem 1rem;
  text-align: center;
  transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  vertical-align: middle;
  background-color: #3b7ddd;
  border-color: #3b7ddd;
  color: #fff;
}

.swal2-styled.swal2-confirm:active {
  background-color: #2f64b1;
  border-color: #2c5ea6;
  color: #fff;
}

.swal2-styled.swal2-confirm:focus {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgb(88 145 226 / 50%);
}

.swal2-styled.swal2-cancel{
  all: unset;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 0.3rem;
  color: #495057;
  cursor: pointer;
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.5;
  padding: 0.5rem 1rem;
  text-align: center;
  transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  vertical-align: middle;
}

.swal2-styled.swal2-cancel:focus{
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgb(59 125 221 / 25%);
}

.swal2-styled.swal2-cancel:hover{
  color: #495057;
  text-decoration: none;
  background-color: transparent !important;
  background-image: unset !important;
}

/* Dropzone */

.dropzone {
  border: 1px dashed var(--bs-gray);
  border-radius: 1rem;
}

.dropzone .dz-button strong{
  color: var(--bs-primary);
}

.dropzone .dz-button .material-symbols-outlined{
  font-size: 4rem;
}

.dropzone img[data-dz-thumbnail]{
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.dropzone.featuredExist .dz-progress{
  display: none !important;
}

.dropzone.featuredExist{
  pointer-events: none !important;
}

.dropzone.featuredExist .dz-preview{
  pointer-events: all !important;
}

nav .active{
  font-weight: bold;
}
.btn-action{
  padding: .1rem;
}
.btn-default{
  background-color: #eee;
}
table .btn{
  padding: 2px;
  margin-right: 3px;
  margin-bottom: 3px;
  min-width: 28px;
  min-height: 28px;
}

.breadcrumb-item+.breadcrumb-item::before {
  content: none;
}
/*.btn-tiny{width:27px;height:27px;margin:3px;padding:5px;}*/
.btn-tiny{padding:3px;}
.ui-datepicker{z-index:10000!important;}
.panel-sm{padding:8px 12px;}
.avatar_small{width:36px !important; height:36px !important;border-radius:50%; background-color: #ccc;}
.avatar_medium{width:54px !important; height:54px !important;border-radius:50%; background-color: #ccc;}
.status_filter{margin:3px;}
.selected_button_filter{transform: scale(1.2);}
.btn-tiny{
  background-color: #795d52;
  border-color: #795d52;
  color:white;
}
.btn-primary, .btn-primary:hover, .btn-primary:active {
  color: #fff;
  background-color: #795d52;
  border-color: #795d52;
}


.col-container{padding:12px;}
.open_magazzino,.open_magazzino:hover,.open_sezione,.open_sezione:hover{
  /*border:1px solid #888; background-color: #eee;border-radius: 5px;padding:12px; width:100%;cursor: pointer;
  display: block;color:#888;*/
  border:1px solid #c09a8b; background-color: #c09a8b;border-radius: 5px;padding:12px; width:100%;cursor: pointer;
  display: block;color:#fff;
}
.open_magazzino:hover,.open_sezione:hover{text-decoration: none;}
.alert-info {
  color: #333;
  background-color: #eee;
  border-color: #ddd;
}

.sortable_li {
  background-color: #795d52;
  margin-bottom:10px;
  padding: 5px 10px;
  list-style: none;
  color: white;
  border-radius: 5px;
  text-align: center;
  cursor: move;
}
.badge_magazzino{
  padding: 5px 8px;
  color: white;
  font-weight: 600;
  font-size: 11px;
  border-radius: 4px;
  position: absolute;
  z-index: 2;
}
.badge_casse{
  background-color: red;
}
.badge_prodotti{
  background-color: blue;
}
.info.group-by {
  text-align: left;
  color: black;
  /*background-color: #666 !important;*/
  font-weight: 600;
  padding: 0rem;
}