/*

//
// Ver.: 251001.1
//

// MENU
//
// §_00. VARIABILI
//
// §_01. ADMIN: SETTAGGI
// §_02. ADMIN: LOG
// §_03. BUTTONS
// §_04. Tabella Importazioni
// §_05. FORM INSERIMENTO (MODALE)
// §_06. ANNUNCI ONLINE
// §_07. GRAFICI (ALBERO IMPIANTI/DISPOSITIVI/LABELS)
// 
//
//

*/


/* ████████████████████████████████████████████████████████████████████████████████████████████████████ // §_00. VARIABILI */

:root {
    --color-blu: #3333ab;

    /* TEMA */
    --color-4-arancio: #ff9933;
    --color-5-verde-c: #99e699;
    --color-6-verde-m: #33ab33;
    --color-7-verde-s: #1f5c1f;
    /* CHAT */
    --color-chat: #33ab33;
}


/* ████████████████████████████████████████████████████████████████████████████████████████████████████ // §_01. ADMIN: SETTAGGI */

.spv_tag_settaggi {
    background-color: cornflowerblue;
    padding: 10px;
    border-radius: 0 30px 30px 0;
    margin-bottom: 0;
}

.spv_tbl_settaggi {
    table-layout: fixed;
    border-collapse: collapse;
    margin-right:30px
}

.spv_tbl_settaggi tr { height: 3em; }
.spv_tbl_settaggi tr td { padding: 5px; }


/* ████████████████████████████████████████████████████████████████████████████████████████████████████ // §_02. ADMIN: LOG */

#spv_log_screen {
    font-size: 15px;
    font-family: 'Courier New', Courier, monospace;
}

.spv_log_sx { /* colonna sinistra */
    float:left;
    width:200px;
}

.spv_log_dx { /* colonna destra */
    float:left;
    width:calc(100% - 200px);
    white-space:normal;
}


/* ████████████████████████████████████████████████████████████████████████████████████████████████████ // §_03. BUTTONS */

.spv_btn {
  border: none;
  border-radius:10px;
  color: white;
  padding: 0.70rem 1.25rem;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 1.25rem;
}
.spv_btn:hover {
    filter: brightness(90%);
}

.spv_btn_ros { background-color: #f44336; }
.spv_btn_ver { background-color: #04AA6D; }
.spv_btn_blu { background-color: #008CBA; }
.spv_btn_bia { background-color: #e7e7e7; color: black; }
.spv_btn_ner { background-color: #555555; }

.spv_btn_post {
    display:block;
    padding:10px 25px;
    background-color:#3333ab;
    width:fit-content;
    border-radius:5px;
    margin:0 auto;
    color:white;
    cursor:pointer;
}


/* ████████████████████████████████████████████████████████████████████████████████████████████████ // §_04. Tabella Importazioni */
.spv_table {
    border-spacing: 0;
    overflow: hidden;
    margin: 20px 0;
    width:100%;
    font-family: Arial, Helvetica, sans-serif;
}

.spv_table td, .spv_table th {
    padding-left: 10px;
    text-align: left;
}

.spv_table thead tr {
    height: 40px;
    font-size: 18px;
}

.spv_table tbody tr.eviden { background-color:yellow; }
.spv_table tbody tr:hover { background-color:#F99; }

#spv_dev_tpb button {
    background-color: none;
    border: 1px solid grey;
    border-radius: 4px;
    padding: 2px 8px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.15s;
}
#spv_dev_tpb button:hover {
    background-color: #c9ab14;
}

.spv_table thead tr th {
    border-top: 1px solid black;
    border-bottom: 1px solid black;
    white-space: nowrap;
}
.spv_table thead tr th:first-child {
    border-left: 1px solid black;
}
.spv_table thead tr th:last-child {
    border-right: 1px solid black;
}

.spv_table tbody tr {
    height: 30px;
    font-size: 15px;
}

.spv_table td {
    border-bottom: 1px solid black;
}
.spv_table td:first-child {
    border-left: 1px solid black;
}
.spv_table td:last-child {
    border-right: 1px solid black;
}

.spv_fisso {
    font-family: 'Courier New', Courier, monospace;
    white-space: nowrap;
}


/* ████████████████████████████████████████████████████████████████████████████████████████████████ // §_05. FORM INSERIMENTO (MODALE) */
/* se possibile allargare modale in orizzontale fino a 80% della finestra */
.modale {
    width: 80%;
    min-width: 360px;
    max-width:950px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: white;
    border: 1px solid black;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    max-height: 85vh;
}

.mod-head {
    padding:10px;
    text-align:right;
    line-height:100%;
    color:white;
    font-weight:bold;
    display:flex;
    justify-content:space-between;
}
.mod-head span {
    cursor:pointer;
}

.mod-cont {
    padding: 20px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.mod-foot {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #fff;
    border-top: 2px solid #ddd;
}

.mod-div {
    display:flex;
    justify-content:space-between;
    margin-bottom:20px;
}

/* VARIABILI DINAMICHE DISPOSITIVO */

.spv_dev_var_header {
  display:flex;
  justify-content:space-between;
  background-color:#dddddd;
  padding:10px;
  margin-bottom:5px;
}
.spv_dev_var_header button {
  cursor:pointer;
}

.spv_dev_var_wrap {
  background-color:#eeeeee;
  padding:10px;
  min-height:100px;
  max-height:300px;
  overflow-y:auto;
  margin-bottom:5px;
}

.spv_imp_var_wrap {
  background-color:#eeeeee;
  padding:10px;
  margin-bottom:5px;
}


.spv_dev_var_row {
  display:flex;
  justify-content:space-between;
}

.spv_dev_var_code {
  width:50px;
  background-color:#444555;
  color:white;
  font-weight:bold;
  padding:5px;
  font-size:20px;
  text-align:center;
  margin-right:20px;
}

input.spv_imp_var_code {
  all:unset;
  display:blocK;
  width:90px;
  height:25px;
  background-color:#444555;
  color:white;
  font-weight:bold;
  padding:5px;
  font-family:monospace;
  font-size:20px;
  text-align:center;
  margin-right:20px;
}

.spv_dev_var_label { width:50px; margin-right:10px; }
.spv_dev_var_label h3 { margin:0; padding-top:5px; }

.spv_dev_var_lblinput { flex-grow:1; margin-right:20px; }
.spv_dev_var_lblinput input { width:100%; }

.spv_dev_var_elimina { width:90px; text-align:right; }
.spv_dev_var_elimina button { height:30px; }

.spv_dev_var_json h3 {
  margin:0;
  padding-top:5px;
  text-align:right;
}

.spv_dev_var_json_res {
  margin:0;
  text-align:right;
  font-weight:bold;
  cursor:pointer;
}

.spv_dev_var_txtarea {
  width:100%;
  height:100px;
  font-family:monospace;
}

.spv_imp_var_json h3 {
  margin:0;
  padding-top:5px;
  text-align:right;
}

.spv_imp_var_json_res {
  margin:0;
  text-align:right;
  font-weight:bold;
  cursor:pointer;
}

.spv_imp_var_txtarea {
  width:100%;
  height:100px;
  font-family:monospace;
}

.spv_spinner_mini {
  width: 16px;
  height: 16px;
  animation: spv_spin 1s linear infinite;
  display: inline-block;
}
@keyframes spv_spin {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

#spv_let_payloa td {
    text-align: center;
    border-bottom: 1px solid black;
    font-family: 'Courier New', Courier, monospace;
    white-space: nowrap;
}

#spv_let_payloa td:nth-child(2) {
    text-align: left;
}

/* rimuovo css da tutti gli input di tipo number */
#spv_let_payloa input[type="number"] {
    all: unset;
    text-align: right;
    background-color: lightyellow;
}


/* ████████████████████████████████████████████████████████████████████████████████████████████████ // §_07. GRAFICI */

.spv_gra_tree {
    max-width: 60rem;
}

.spv_gra_imp {
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
}

.spv_gra_imp_head {
    background-color: cornflowerblue;
    color: #fff;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 16px;
}
.spv_gra_imp_head:hover { filter: brightness(95%); }

.spv_gra_imp_body {
    padding: 10px 14px 4px 24px;
    background-color: #fafafa;
}

.spv_gra_dev {
    margin-bottom: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.spv_gra_dev_head {
    background-color: #FFED86;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
}
.spv_gra_dev_head:hover { filter: brightness(95%); }

.spv_gra_dev_body {
    padding: 6px 12px 6px 24px;
    background-color: #fff;
}

.spv_gra_label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    margin-bottom: 4px;
    background-color: #f2f2f2;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}
.spv_gra_label:hover { background-color: #e0ecff; }

.spv_gra_label_nome { color: #333; }
.spv_gra_label_val  { font-weight: bold; font-family: 'Courier New', Courier, monospace; }

.spv_gra_empty {
    color: #999;
    font-size: 13px;
    padding: 6px 0;
}

.spv_gra_arrow {
    display: inline-block;
    width: 14px;
}






