/* variabili css */
:root {
  /* page dimensioni */
  --page-left-width: 270px;
  --page-left-min-height: 100vh;

  --menu-logo-height: 100px;
  --menu-user-height: 70px;
  --menu-user-icon-mobile-height: 130px;
  --margin-menu-user-to-list-menu: 5px;

  --page-right-width: 100%;
  --page-right-min-height: 100vh;
  --header-height: 55px;
  --header-pagina-height: 100px;
  --footer-height: 55px;

  /* pagina dx padding */
  --padding-pagina: 20px;

  /*-----------------*/

  /* FONT PAGINA */
  --font-pagina: 14px;
  --font-icons-actions: 14px;
  /*------------ */

  /* Colori pagina */
  --bg-page: #f3f3f4;
  --bg-menu: #2f4050;
  --blue-polaris: #f7a54a;
  --bg-header: #fff;
  --red-polaris: #f7a54a;
  --text-menu-color: #a7b1c2;
  --table-actions-color: #263a4a;
  --row-highlight-color: #ebccd1;

  /*Colori onhover bottoni*/
  --hover-prime: #263a4a;
  --hover-red: #f7a54a;

  /* Logo Menu*/
  --width-logo-menu: auto;
  --height-logo-menu: 90px;

  /*Icone Menu Header */
  --font-icon-menu-header: 16px;
  --color-icon-menu-header: #fff;

  /* Padding sezioni menu */
  --padd-menu-section: 8px;

  /*Box shadow*/
  --box-shadow: 0 0 #0000, 0 0 #0000, 0 0 #0000, 0 0 #0000,
    0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;

  --box-shadow-2: 0 0 #0000, 0 0 #0000, 0 0 #0000, 0 0 #0000,
    1px 1px 15px 1px rgb(0 0 0 / 20%), 0 1px 2px 0 rgb(0 0 0 / 40%) !important;

  /* PLUS BTN */
  --plus-btn-width: 100px;
  --plus-btn-height: 100px;
  --plus-btn-bg: var(--bg-menu);

  /* font Icone menu collapsed */
  --font-icon-menu-collapsed: 18px;

  /* custom col- padding lf e rght */
  --custom-col-plf: 12px;
}

a.btn-prime:hover {
  text-decoration: none;
  color: white;
}

/* progress bar inspinia */
.pace .pace-progress {
  background-color: var(--red-polaris);
}

.btn-prime {
  background: var(--blue-polaris);
  /* border: none; */
  color: white;
}

.btn-prime:hover {
  background-color: var(--hover-prime);
}

.btn-red {
  background: var(--red-polaris);
  color: white;
}

.btn-red:hover {
  background: var(--hover-red);
}

@keyframes fadein {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* row di bootstrap margin */
.row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/*ibox ispinia*/
.ibox {
  box-shadow: 0 0 #0000, 0 0 #0000, 0 0 #0000, 0 0 #0000,
    0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
}

/* error message style */
label.error {
  color: red;
}

/* input on error */
.form-control.error {
  color: red;
  background-color: #f2dede;
  border-color: #ebccd1;
  /* padding: 1px 20px 1px 20px; */
}

form-control.error {
  color: red;
  background-color: #f2dede;
  border-color: #ebccd1;
}

/* border input on focus */
.form-control:focus {
  border-color: var(--blue-polaris);
}

.page-wrapper {
  width: 100%;
  /* border: 1px solid pink; */
}

.cornice-wrapper {
  display: flex;
  width: 100%;
  position: relative;
}

.page-right {
  width: var(--page-right-width);
  height: var(--page-right-min-height);
  overflow-y: auto;
  position: relative;
  background-color: var(--bg-page);
}

.page-left {
  width: var(--page-left-width);
  min-height: var(--page-left-min-height);
  position: sticky;
  background: var(--bg-menu);
}

.pagina {
  width: 100%;
  padding-top: var(--padding-pagina);
  /* padding-left: 50px;
    padding-right: 50px; */
  padding-left: var(--padding-pagina);
  padding-right: var(--padding-pagina);
  background: var(--bg-page);
  min-height: calc(100vh - var(--header-height) - var(--footer-height));
}

.pagina .box-tab,
.pagina .box_ricerca {
  margin-bottom: var(--padding-pagina);
}

.header-pagina {
  width: 100%;
  height: var(--header-pagina-height);
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.titolo-pagina {
  text-transform: capitalize;
  font-size: 24px;
  padding: 15px 20px 20px 20px;
}

.header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  height: var(--header-height);
  align-items: center;
  background: var(--bg-header);
  z-index: 2000;
  padding: 20px;
  box-shadow: var(--box-shadow);
}

.header-path,
.header-title {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  line-height: 20px;
}

.header-title h3 {
  font-size: 24px;
  text-transform: capitalize;
}

.back-arrow {
  font-weight: 800;
}

/* form modal insert section */

/* fontawesome unicode */

.select-icona {
  font-family: FontAwesome, "Font Awesome\ 5 Free", "Font Awesome 5 Brands";
}

.select-icona option {
  font-family: FontAwesome, "Font Awesome\ 5 Free", "Font Awesome 5 Brands";
  font-weight: normal;
  font-style: normal;
}

/* sostituisco colore chosen select bootstrap */
.chosen-container .chosen-results li.highlighted {
  /* background-color: #18a689 !important; */
  background-color: var(--blue-polaris) !important;
}

.chosen-container-active.chosen-with-drop .chosen-single {
  /* border: 1px solid #18a689 !important; */
  border: 1px solid var(--blue-polaris) !important;
}

.chosen-container-active .chosen-choices {
  /* border: 1px solid #18a689 !important; */
  border: 1px solid var(--blue-polaris) !important;
}

/* stile metismenu del menu laterale sito */
.menu-container {
  width: auto;
  /* border: 1px solid white; */
  height: 100vh;
  /* padding: 10px 0 10px 0; */
}

.menu-top {
  padding: 5px 20px 10px 20px;
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  background-color: #263a4a;
}

#logo_menu {
  width: var(--width-logo-menu);
  height: var(--height-logo-menu);
}

.toggler {
  border-radius: 2px;
  padding: 8px;
  background: var(--red-polaris);
}

.toggler:hover {
  cursor: pointer;
}

.toggler-line {
  width: 20px;
  height: 2px;
  background-color: #fff;
  margin: 3px 0;
}

#list-menu {
  margin-top: var(--margin-menu-user-to-list-menu);
  /* padding: var(--padd-menu-section); */
  max-height: calc(100vh - var(--menu-logo-height) - var(--menu-user-height) - var(--margin-menu-user-to-list-menu));
  overflow-y: auto;
}

#metismenu {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0;
}

.voce-menu {
  list-style: none;
  width: 100%;
  font-size: var(--font-pagina);
  /* padding: 10px; */
}

.voce-menu:hover {
  background: #263a4a;
  border-radius: 6px;
}

.link-voce {
  color: var(--text-menu-color) !important;
  font-weight: 600;
  text-transform: capitalize;
  display: flex;
  width: 100%;
  align-items: center;
  /* padding: 2px 0 2px 0; */
  padding: 14px 20px 14px 25px;
}

.voce-menu:hover>.link-voce {
  color: white !important;
}

.active-menu {
  background: #263a4a;
  /* color: #fff !important; */
  border-radius: 6px;
  border-left: 4px solid var(--red-polaris);
}

.link-voce.active {
  color: #fff !important;
}

.nested-list li a {
  padding: 7px 10px 7px 18px;
}

.nested-list li:last-child {
  padding-bottom: 10px;
}

.icona-menu {
  margin-right: 10px;
}

#nestable-output {
  height: auto;
  font-weight: 600;
}

.not-root {
  margin-left: -18px;
}

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked+.slider {
  /* background-color: #2196f3; */
  background-color: var(--blue-polaris);
}

input:focus+.slider {
  /* box-shadow: 0 0 1px #2196f3; */
  box-shadow: 0 0 1px var(--blue-polaris);
}

input:checked+.slider:before {
  -webkit-transform: translateX(16px);
  -ms-transform: translateX(16px);
  transform: translateX(16px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.plus-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: var(--plus-btn-width);
  height: var(--plus-btn-height);
  border-radius: 50px;
  background: var(--plus-btn-bg);
  position: absolute;
  bottom: 1%;
  left: 6%;
  box-shadow: var(--box-shadow);
}

.plus-button:hover {
  cursor: pointer;
}

.plus-button i {
  font-size: 30px;
  font-weight: bold;
  color: #fff;
}

/* tabella permessi */
#permessi {
  /* table-layout: fixed; */
  width: 100%;
  /* Important */
}

#permessi tr td:first-child {
  width: 300px !important;
  /* text-align: left; */
}

/* MENU LATERALE COMPRESSO */
/* sidebar collapsed */

.collapsed {
  transition: width 0.5s;
  animation-duration: 1s;
  animation-name: fadein;
}

.page-left.collapsed {
  position: relative;
  width: 80px;
  display: flex;
  flex-direction: column;
}

.page-left.collapsed+.page-right {
  background: var(-red-polaris);
}

.menu-container.collapsed {
  display: flex;
  flex-direction: column;
  /* width: 80px; */
  align-items: center;
  position: relative;
}

.menu-logo {
  height: var(--menu-logo-height);
}

#logo_menu.collapsed {
  display: none;
}

.menu-top.collapsed {
  width: auto;
  display: flex;
  justify-content: center;
  height: var(--header-height);
}

#page-left {
  transition: width 0.5s;
  animation-duration: 1s;
  animation-name: fadein;
}

#list-menu.collapsed {
  display: flex;
  width: 80px;
  justify-content: center;
  width: auto;
  max-height: calc(100vh - var(--menu-logo-height) - var(--margin-menu-user-to-list-menu) - var(--menu-user-icon-mobile-height) - 1px);

  /* nascondo scrollbar con la possibilita' di scrollare comunque */
  overflow-y: scroll;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* Internet Explorer 10+ */
}

/* webkit scrollbar hide */
#list-menu::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.icona-menu.collapsed {
  font-size: var(--font-icon-menu-collapsed);
}

.link-voce.collapsed .description-menu {
  display: none;
}

.link-voce.collapsed {
  display: flex;
  justify-content: center;
  padding: 14px 18px 14px 25px;
}

.nav-item.collapsed {
  display: flex;
  z-index: 99;
}

.nested-list.collapsed {
  display: none;
  border: 1px var(--red-polaris) solid;
  position: absolute;
  top: auto;
  left: 80px;
  z-index: 999;
  transition: display 0.5s;
}

.menu-user.collapsed {
  display: none;
  /* flex-direction: column; */
}

.menu-user.collapsed .menu-user-info,
.menu-user.collapsed .menu-user-icons {
  display: none;
}

.menu-container.collapsed .menu-user-icons-mobile {
  display: flex;
  border-top: 1px solid slategray;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}

/* ====== */

.parent {
  font-weight: 800;
}

.child {
  background: #f4f4f4 !important;
}

.group>td {
  border-top: 1px solid rgba(0, 0, 0, 0.37) !important;
}

.tree-toggler:hover {
  cursor: pointer;
}

/* td:last-child {
    border-bottom: 1px solid rgb(83, 83, 83) !important;
  } */
table.dataTable thead th,
table.dataTable thead td {
  /* padding: 10px 18px; */
  border-bottom: none !important;
  vertical-align: middle;
}

table.dataTable tbody th,
table.dataTable tbody td {
  padding: 10px 18px !important;
  vertical-align: middle;
}

.dataTables_wrapper .dataTables_filter {
  float: right;
}

.dataTables_wrapper .dataTables_length {
  float: left;
}

.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dataTables_length label {
  display: flex;
  align-items: center;
}

.dataTables_wrapper .dataTables_filter label input,
.dataTables_wrapper .dataTables_length label select {
  margin: 0 3px;
}

div.dataTables_wrapper div.dataTables_filter input {
  width: 100%;
}

.hidden-playground {
  opacity: 0.6 !important;
}

/* footer */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  bottom: 0;
  right: 0;
  height: var(--footer-height);
  box-shadow: var(--box-shadow);
}

.footer-left h5 {
  font-size: 10px;
}

.footer-right img {
  /* max-width: 100%; */
  width: 35px;
  height: 35px;
}

/* pagination page indicator datatables */
.page-item.active .page-link {
  background-color: var(--blue-polaris);
  border-color: var(--blue-polaris);
}

/* ibox bottoni personalizzati a destra */
.ibox-buttons {
  padding: 15px 20px 20px 20px;
  display: flex;
  justify-content: flex-end;
}

.ibox-buttons-modal {
  /* padding: 15px 20px 20px 20px; */
  display: flex;
  justify-content: flex-end;
}

.ibox-buttons button,
.ibox-buttons-and-title button {
  margin-right: 10px;
}

.ibox-buttons button:last-child,
.ibox-buttons-and-title button:last-child {
  margin-right: 0px;
}

.ibox-title-custom {
  /* padding: 0px 20px 0px 20px; */
  padding: 0;
  display: flex;
  justify-content: flex-end;
}

.ibox-title-double-custom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 15px 8px 15px !important;
}

.ibox-buttons-and-title {
  padding: 15px 0px 20px 20px;
  display: flex;
}

.ibox-title-section {
  display: flex;
  align-items: center;
  padding: 0 20px;
}

/* ======================== */

.inmodal .modal-header {
  padding: 15px 15px;
  text-align: center;
  display: block;
}

/* UI STYLE COMPONENTS */

/* TABLE COMPONENT  */

.table_component>thead>tr>th {
  color: var(--red-polaris) !important;
}

.table_component {
  vertical-align: middle;
}

.table_icons i {
  color: var(--table-actions-color);
  font-size: var(--font-icons-actions);
}

.table_icons {
  margin-right: 10px;
}

.table_icons:last-child {
  margin-right: 0;
}

.preview_container {
  height: 200px;
}

.image_wrapper {
  width: 100%;
  border: 1px dotted slategray;
}

/*bottone modale summernote insert*/
.btn-primary {
  /* background: var(--blue-polaris) !important; */
  border-color: transparent !important;
}

.btn-primary.disabled {
  border-color: transparent !important;
}

.col-no-pad {
  padding-left: 0px;
  padding-right: 0px;
}

.col-custom-pad {
  padding-left: var(--custom-col-plf);
  padding-right: var(--custom-col-plf);
}

/* FILTRO DI RICERCA IN TESTATA */

.form_filter {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.box_ricerca_left {
  display: flex;
  width: 90%;
}

.filtri_cont {
  display: flex;
}

.box_input {
  margin-right: 30px;
}

.box_input:last-child {
  margin-right: 0px;
}

.box_ricerca_right {
  display: flex;
  width: 10%;
}

.buttons_cont {
  flex-direction: row-reverse;
  display: flex;
  width: 100%;
}

.form_filter input {
  height: 34px;
}

.filtri_btn:last-child {
  margin-right: 10px;
}

/* #############################*/

.chosen-container-multi .chosen-choices {
  border-radius: 0 !important;
}

/* OVERRIDE FONT SIZE BOOTSTRAP INPUT */

.form-control {
  font-size: var(--font-pagina);
}

.chosen-select {
  font-size: var(--font-pagina);
}

.chosen-container {
  font-size: var(--font-pagina) !important;
}

/*################################### */

.modal table.dataTable tbody td {
  padding: 5px 10px !important;
  vertical-align: middle;
}

.page-left {
  font-size: var(--font-pagina);
}

input[type="checkbox" i] {
  background-color: var(--blue-polaris) !important;
  cursor: default;
  appearance: auto;
  box-sizing: border-box;
  margin: 3px 3px 3px 4px;
  padding: initial;
  border: initial;
}

/* create custom checkbox */

/* Customize the label (the container) */
.container_checkbox {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 16px;
  cursor: pointer;
  font-size: 22px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default checkbox */
.container_checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 15px;
  width: 15px;
  background-color: #eee;
  border: 0.2px solid #32475880;
}

/* On mouse-over, add a grey background color */
.container_checkbox:hover input~.checkmark {
  background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.container_checkbox input:checked~.checkmark {
  background-color: var(--blue-polaris);
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.container_checkbox input:checked~.checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.container_checkbox .checkmark:after {
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

/* ====================== */

.table p {
  margin-bottom: 0 !important;
}

.select_macro {
  height: 2.05rem !important;
}

/* ########### SELECT2 OVVERIDE ############## */
.select2-dropdown {
  z-index: 3000 !important;
}

.select2-container .select2-selection--single {
  height: 2.05rem !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
  line-height: 32px !important;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: var(--blue-polaris) !important;
}

.select2-container--default .select2-selection--single {
  border-color: #e5e6e7 !important;
  border-radius: 0px !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: var(--blue-polaris) !important;
  color: white;
}

.select2-selection__placeholder {
  color: #676a6c !important;
}

.select2-dropdown,
.select2-search__field {
  border-color: #e5e6e7 !important;
}

.select2-search__field:focus {
  outline: 1px solid var(--blue-polaris) !important;
}

/* ############################################################################## */

/* CHOSEN-SELECT OVERRIDE */

.chosen-container-single .chosen-search input[type="text"] {
  background: none !important;
  border-top-right-radius: 0 !important;
  border-top-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

.chosen-container-single .chosen-search input[type="text"]:focus {
  outline: 1px solid var(--blue-polaris) !important;
}

/* ##################### */