
/*  servono per far visualizzare i grafici exjs altrimenti con bootstrap non si vedono*/
/*
[hidden],[hidden="false"]{
      display:block!important;
}
[hidden="true"]{
    display:none!important;
}
*/
/* end */


.my_main_menu_folder{ font-weight: bolder;
                     color:darkblue}
.my_main_menu_item{ font-weight: bold;}

.x-menu-no-icon {background-image: none;} 
.x-menu-no-icon a.x-menu-item-link {padding-left: 3px;} 
.x-menu-no-icon .x-menu-item-icon {display: none;}  

.btnMenuLeft{
    padding: 2px 15px 1px 5px;
    font-family:helvetica;
    /*font-variant: small-caps;*/
    font-size: 120%;
    text-align: left;
  /*  font-weight: bold;*/
    
}

.x-menu-icon-separator{
    display: none;
}


.pallino_anticipazione{
  height: 10px;
  width: 10px;
  border-radius: 50%;
  display: inline-block;
  background-color: #d84315;
}

.pallino_sospeso{
  height: 10px;
  width: 10px;
  border-radius: 50%;
  display: inline-block;
  background-color: #303f9f;
}
/*
.toolbarAssi .x-btn-icon{
  background-size:contain;
}
*/



 /*
 .azienda-grid .x-grid-row .x-grid-cell { 
   
    background-color:#ffffff;
 }*/

 .azienda-grid .x-grid-row .x-grid-cell{
  padding:10px;
  font-size:110%;
}

.x-form-field-azienda {
   margin-top:10px;
}


.azienda-grid .x-grid-row-green .x-grid-cell { 
  background-color:#00897b;
  color:#ffffff ;
}

.azienda-grid .x-grid-row-red .x-grid-cell { 
    
  background-color:#b71c1c;
  color:#ffffff ;
}





/**chat dell agenda*/
/*
agendasoricochat * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}*/
/*
.agendastoricochat-body {
  
}*/

.agendastoricochat-body {
  height: 100%;
  overflow-y: auto; 
  border: 1px solid #ddd;
  padding: 10px;
  background-color: #fff;
}
.agendasoricochat-chat-container {
  
  width: 100%;
  max-width: 600px;
  margin: 5px auto;
  padding: 20px;
  background-color: #fff;
 /* border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);*/
}

.agendasoricochat-date_title
{
  text-align:center;
  padding: 5px;
  border-radius: 10px;
  border: 1px solid #f8f8f8 ;
  background-color: #f8f8f8;
 /* color: #999;*/
}

.agendasoricochat-message {
  margin: 10px 0;
  padding: 10px;
  border-radius: 10px;
  max-width: 80%;
  word-wrap: break-word;
}

.agendasoricochat-message-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 0.8rem;
  color: #999;
}

.agendasoricochat-sent {
  background-color: #e0f2f1   ;
  align-self: flex-end;
  margin-left: auto;
}

.agendasoricochat-received {
  background-color: #d5ecfa;
  border: 1px solid #ddd;
}

.agendasoricochat-message-grid {
  margin: 10px 0;
  padding: 10px;
  border-radius: 10px;
  /*max-width: 80%;*/
  word-wrap: break-word;
}

.agendasoricochat-sent-grid {
  background-color: #e0f2f1   ;
  align-self: flex-end;
  margin-left: auto;
}


.agendasoricochat-is_log_r {
  background-color: #ffcdd2;
  border: 1px solid #ddd;
  margin-left: auto;
}
.agendasoricochat-is_log_l {
  background-color: #ffcdd2;
  border: 1px solid #ddd;
}

.agendasoricochat-log_cambiostato_l {
  background-color: #fff;
  width: 100%;
  border: 1px solid #ddd;
  color: #999;
}
.agendasoricochat-log_cambiostato_r {
  background-color: #fff;
  width: 100%;
  border: 1px solid #ddd;
  color: #999;
  margin-left: auto;
}



.agendasoricochat-sender {
  font-weight: bold;
}

.agendasoricochat-time {
  color: #666;
}

.agendasoricochat-messagetext{
  
  color: #000000;
}
.agendasoricochat-messagetext_logstato{
  
  color: #999;
}

.agendasoricochat-msgicons{
  
  float:right;
}







/**chat AI*/
/*
aichat * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}*/
/*
.agendastoricochat-body {
  
}*/

.aichat-body {
  height: 100%;
  overflow-y: auto; 
  border: 1px solid #ddd;
  padding: 10px;
  background-color: #fff;
}
.aichat-chat-container {
  
  width: 100%;
  max-width: 650px;
  margin: 5px auto;
  padding: 20px;
  background-color: #fff;
 /* border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);*/
}

.aichat-date_title
{
  text-align:center;
  padding: 5px;
  border-radius: 10px;
  border: 1px solid #f8f8f8 ;
  background-color: #f8f8f8;
 /* color: #999;*/
}

.aichat-message {
  margin: 10px 0;
  padding: 10px;
  border-radius: 10px;
  max-width: 80%;
  word-wrap: break-word;
}

.aichat-message-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 0.8rem;
  color: #999;
}

.aichat-sent {
  background-color: #e0f2f1   ;
  align-self: flex-end;
  margin-left: auto;
}

.aichat-received {
  background-color: #d5ecfa;
  border: 1px solid #ddd;
}

.aichat-assistant {
  background-color: #f5f5f5;
  border: 1px solid #bdbdbd;
  color: #01579b;
  font-style: italic;
}

.aichat-message-grid {
  margin: 10px 0;
  padding: 10px;
  border-radius: 10px;
  /*max-width: 80%;*/
  word-wrap: break-word;
}

.aichat-sent-grid {
  background-color: #e0f2f1   ;
  align-self: flex-end;
  margin-left: auto;
}


.aichat-is_log_r {
  background-color: #ffcdd2;
  border: 1px solid #ddd;
  margin-left: auto;
}
.aichat-is_log_l {
  background-color: #ffcdd2;
  border: 1px solid #ddd;
}

.aichat-log_cambiostato_l {
  background-color: #fff;
  width: 100%;
  border: 1px solid #ddd;
  color: #999;
}
.aichat-log_cambiostato_r {
  background-color: #fff;
  width: 100%;
  border: 1px solid #ddd;
  color: #999;
  margin-left: auto;
}



.aichat-sender {
  font-weight: bold;
}

.aichat-time {
  color: #666;
}

.aichat-messagetext{
  
  color: #000000;
}
.aichat-messagetext_logstato{
  
  color: #999;
}

.aichat-msgicons{
  
  float:right;
}



/**ai chat elenco**/

.aichat-elenco-body {
  height: 100%;
  overflow-y: auto; 
  border: 1px solid #ddd;
  padding: 10px;
  background-color: #fff;
}
.aichat-elenco {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  margin-bottom: 10px;
  padding: 12px 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: background 0.2s, box-shadow 0.2s;
  cursor: pointer;
  display: flex;
  align-items: center;
  min-height: 48px;
}

.aichat-elenco:hover {
  background: #f5f7fa;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.aichat-elenco .aichat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e3eafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-right: 14px;
}

.aichat-elenco .aichat-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.aichat-elenco .aichat-title {
  font-weight: 600;
  /*font-size: 1px;*/
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aichat-elenco .aichat-lastmsg {
  font-size: 13px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aichat-elenco.selected {
  background: #e3eafc;
  border-color: #b3c6f7;
}


/* === BLU (attenzione, neutro) === */

.fieldset-evidenziato-blu {
  border: 2px solid #01579b !important;
  background-color: #e1f5fe;  
  border-radius: 5px;
}

.fieldset-evidenziato-blu .x-fieldset-header {
  background-color: #e1f5fe;   /* azzurro molto chiaro per contrasto */
  color: #01579b;              /* testo blu acciaio */
  font-weight: bold;
  border-bottom: 2px solid #01579b;
  border-radius: 5px 5px 0 0;
}




/* === VERDE (situazione corretta) === */
.fieldset-evidenziato-verde {
  border: 2px solid #2e7d32 !important;
  background-color: #e8f5e9;
  border-radius: 5px;
  box-shadow: 0 0 6px rgba(46, 125, 50, 0.4);
}

.fieldset-evidenziato-verde .x-fieldset-header {
  background-color: #e8f5e9;
  color: #2e7d32;
  font-weight: bold;
  border-bottom: 2px solid #2e7d32;
  border-radius: 5px 5px 0 0;
}


/* === ROSSO (errore o allerta) === */
.fieldset-evidenziato-rosso {
  border: 2px solid #c62828 !important;
  background-color: #ffebee;
  border-radius: 5px;
  box-shadow: 0 0 6px rgba(198, 40, 40, 0.4);
}

.fieldset-evidenziato-rosso .x-fieldset-header {
  background-color: #ffebee;
  color: #c62828;
  font-weight: bold;
  border-bottom: 2px solid #c62828;
  border-radius: 5px 5px 0 0;
}

.badge-importo {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 120%;
  background-color: #e8f5e9; /* verde chiaro */
}
.badge-importo.red {
  background-color: #ffebee; /* rosso chiaro */
}
.badge-importo.blue {
  background-color: #e1f5fe; /* blu chiaro */
}
