:root {
  /* modale dimensioni */
  --modal-width: 87%;
  --modal-height: calc(100vh - var(--header-height));

  /* DIMENSIONI MODALE LATERALE E COMPONENTI */
  --modal-heading-height: 40px;

  /* padding interno modale */
  --pad-modal-body: 12px;

  /* padding compoenti modale*/
  --pad-modal-component: 12px;

  /* padding top down left right interno componente */
  --pad-in-component: 12px;

  /* margin up down tra componenti modale */
  --mg-ud-component: 12px;
}

/* ============================================ MODALE LATERALE ====================================================*/

.modal_wrapper {
  position: absolute;
  right: 0;
  bottom: 0;
  width: var(--modal-width);
  height: 100vh;
  border: 1px solid red;
  background: #f8fafc;
  z-index: 2000;
}

.modal_wrapper.hide {
  display: none;
}

.modal_wrapper.show {
  display: block;
}

.modal-body {
  padding: 10px;
}

.modal_header {
  color: #fff;
  height: 35px;
  background: var(--blue-polaris);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal_header-left {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 8%;
}

.modal_header-right {
  width: 18%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-modal {
  border-radius: 5px;
  background: #fff;
  border: none;
}

/* MODAL LATERAL BOOTSTRAP*/


.modal.drawer {
  display: flex !important;
  pointer-events: none;
}

.modal.drawer * {
  pointer-events: none;
}

.modal.drawer .modal-dialog {
  margin: 0px;
  display: flex;
  flex: auto;
  transform: translate(25%, 0);
}

.modal.drawer .modal-dialog .modal-content {
  border: none;
  border-radius: 0px;
}

.modal.drawer .modal-dialog .modal-content .modal-body {
  overflow: auto;
}

.modal.drawer.show {
  pointer-events: auto;
}

.modal.drawer.show * {
  pointer-events: auto;
}

.modal.drawer.show .modal-dialog {
  transform: translate(0, 0);
}

.modal.drawer.right-align {
  flex-direction: row-reverse;
}

.modal.drawer.left-align:not(.show) .modal-dialog {
  transform: translate(-50%, 0);
}

/* Contenuto Modale Laterale */

.modal_header {
  color: white;
  background: var(--blue-polaris);
  border: none;
  border-radius: 0;
  height: var(--modal-heading-height);
}

/* larghezza modale da modificare */
#modal_context .modal-dialog {
  max-width: var(--modal-width);
}

.header_left {
  display: flex;
  align-items: center;
  width: 50%;
}

/* popup stato  */
.popup_status {
  display: none;
  position: absolute;
  left: 0%;
  top: var(--modal-heading-height);
  background: #fcfcfc;
  width: 300px;
  height: 300px;
  padding: 15px;
  z-index: 3000;
  color: var(--bg-menu);
  font-weight: 400;
  box-shadow: var(--box-shadow-2);
}

.header_icon_status {
  cursor: pointer;
  color: rgba(255, 255, 255);
  text-shadow: 0 0 4px rgb(255, 255, 255);
}

.header_icon_status,
.header_title {
  font-size: 16px;
}

#delete_modal {
  z-index: 9999 !important;
}

.header_right {
  display: flex;
  align-items: center;
}

.header_right .btn {
  margin-right: 10px;
}

/* INTERNO COMPONENTI */
.content_header {
  padding: var(--pad-in-component) 0px;
  background-color: #fff;
  min-height: 60px;
  margin-bottom: var(--mg-ud-component);
  position: relative;
}

/* form header art */
#form_art_header {
  height: 440px;
}

.modal_tabs_class {
  display: block;
  position: relative;
}

.content_tabs {
  margin-bottom: var(--mg-ud-component);
  height: 220px;
}

.content_tabs_editor {
  height: 100%;
  margin-bottom: var(--mg-ud-component);
  position: relative;
}

.close_tabs_editor {
  position: absolute;
  top: 1%;
  right: 1%;
  z-index: 889;
}

.close_tabs_editor i {
  font-size: medium;
}

.close_tabs_editor i:hover {
  cursor: pointer;
}

.row_tabs_editor {
  display: none;
  width: 100%;
  height: 220px;
  min-height: 100%;
  background-color: #fff;
  padding: 8px 0px;
  /* position: relative; */
  z-index: 888;
  margin-bottom: var(--mg-ud-component);
}

.content_unfold {
  padding: var(--pad-in-component) 0px;
}

.modal_editor {
  padding: var(--pad-in-component) 0px;
}

#modal_footer {
  position: relative;
  width: 100%;
}

.content_footer {
  margin-bottom: 0;
}

.content_footer input {
  text-align: right;
}

.content_table {
  margin-bottom: var(--mg-ud-component);
}

.full_screen_table {
  position: fixed;
  width: 98.8%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 50px;
}

.input_prezzo_acq {
  border-color: red;
}

.input_prezzo_ven {
  border-color: green;
}

.container_input {
  position: relative;
}

/* .warning-prezzo, */
#warn_prezzo_acq,
#warn_prezzo_ven {
  position: absolute;
  z-index: 2;
  right: 4px;
  bottom: 10px;
  color: red;
}

/* ======================== */

/*ibox modale context */

#modal_context .ibox {
  box-shadow: 0 0 #0000, 0 0 #0000, 0 0 #0000, 0 0 #0000,
    1px 1px 15px 1px rgba(0, 0, 0, 0.2), 0 1px 2px 0 rgba(0, 0, 0, 0.4) !important;
}

/*  ========================================================== BACK ARROW MODALE ================================================================== */

.backward_wrapper {
  position: absolute;
  top: 50%;
  /* left: 22%; */
  left: calc(100% - var(--modal-width) - 4%);
  cursor: pointer;
  display: none;
  z-index: 9999;
}

.backward_arrow {
  display: flex;
  position: relative;
  width: 60px;
  height: 60px;
  animation-name: bouncing_arrows;
  animation-duration: 1.5s;
  animation-iteration-count: infinite;
}

.first_arrow {
  width: 0px;
  height: 0px;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-right: 30px solid #e9e9e9;
}

.second_arrow {
  width: 0px;
  height: 0px;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-right: 30px solid #f1f1f1;
  z-index: 2;
  position: absolute;
  left: 20px;
}

@keyframes bouncing_arrows {
  0% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(-5px);
  }

  100% {
    transform: translateX(0);
  }
}

/* ================================================================================================================================================== */

/* ================================================================================================================================================== */
/* ==================================== PANNELLO SX MODALE PER USCITA (FEATURE EVENTUALE)============================================================================= */

.left_panel {
  position: absolute;
  left: 0%;
  top: 0;
  height: 100%;
  width: calc(100% - var(--modal-width));
  z-index: 9998;
  background-color: transparent;
}

.left_panel:hover {
  cursor: pointer;
}

.stato_bozza {
  color: rgba(128, 0, 0, 0.616);
}

.stato_da_approvare {
  color: #ffa500;
}

.stato_approvata {
  color: yellow;
}

.stato_inviata {
  color: lightblue;
}

.stato_rifiutata {
  color: red;
}

.stato_confermata {
  color: rgb(38, 219, 38);
}

.stato_scaduta {
  color: rgb(167, 181, 196);
}

/* stati articolo */

.stato_disponibile {
  color: #26db26;
}

.stato_indisponibile {
  color: #ff0000;
}

/* ============== */

.buttons_fixed button:first-child {
  margin-right: var(--mg-ud-component);
}

.button_close {
  display: none;
}

.button_open {
  display: block;
}

#radioStatoArticolo {
  height: 150px;
}


.content_tabs_cliente {
  height: 350px;
}