/* style_common.css */

html, body {
  height: 100%;
  min-height: 100%;
}


html {
  scrollbar-gutter: stable both-edges;
}

body {
  margin: 0;
  padding: 10px;
  overflow-x: hidden;
  position: relative;
}

input{
  padding: 1px;
  height: 55px;
}

input:focus {
  outline: none !important;
}

label * {
  pointer-events: auto;
}

label {
  display: block;
  margin-bottom: 12px;
  pointer-events: auto;
  user-select: none;
}

label:focus {
  outline: none;
}

select,
textarea {
  padding: 10px;
  outline: none;
  line-height: 1;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

table th {
  padding: 8px;
}

table td {
  padding: 6px;
}

/* ------ */



.back-to-top {
  margin-top: 12px;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s ease-in-out;
}


body.admin-mode .logbook {
  table-layout: auto !important;
  width: 100% !important;
}

body.admin-mode .logbook th,
body.admin-mode .logbook td {
  padding: 4px 6px !important;
  white-space: nowrap;
}

body.admin-mode .logbook td.editable {
  cursor: pointer;
}

body.admin-mode .toggle-status,
body.admin-mode .delete-row {
  padding: 2px !important;
  margin: unset !important;
}

.box {
  padding: 12px 14px;
  margin: 28px auto;
  width: 95%;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,255,160,0.25);
}

/* Titolo tecnico */
.box h2 {
  margin-bottom: 12px;
  padding-bottom: 6px;
  text-align:center;
}

.box_form_input {
  width: 90%;
  margin: 0px;
  padding: 5px;
}

.box_form {
  padding: 10px;
  margin: 10px auto;
  border-radius: 2px;
  position: relative;
  max-width: 600px;
}

.Box-Info {
  margin-bottom: 20px;
}


.box,
.box_form,
.master-box,
.form-left,
.form-right,
.logbook-wrapper {
  max-width: 100%;
  box-sizing: border-box;
}

#callException:checked ~ .switch-slider::before {
    transform: translateX(20px);
}

#captcha {
  width: 200px!important;
  margin: 20px auto;
  display: block;
}

.captcha-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.checkboxException {
  margin-top: -12px;
}

.checkboxException input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkboxException {
    display: flex;
    align-items: center;
	justify-content: center;
    gap: 12px;
}

.container {
  width: 100%;
  box-sizing: border-box;
  margin: auto;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
}




.crt-option {
  padding: 10px;
  cursor: pointer;
}

.crt-select {
  position: relative;
  width: 250px;
  margin: auto;
  padding: 0px;
  cursor: pointer;
  user-select: none;
}
.crt-select-text {
  pointer-events: none;
}
.crt-select-options {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  z-index: 999999;
  max-height: 260px;
  overflow-y: auto;
}



/*
.crt-select::after {
  position: absolute;
  right: 12px;
  top: 12px;
}
*/

.crt-select-wrapper {
  position: relative;
  width: 250px;
  margin: auto;
}

.crt-wrapper {
  margin: auto;
  position: relative;
  z-index: 100000;
}

.date-wrapper {
  position: relative;
}
.date-real {
  position: absolute;
  inset: 0;
  opacity: 0; /* COMPLETAMENTE invisibile */
  z-index: 2; /* sopra, ma invisibile */
  cursor: pointer;
}

.date-fake {
  width: 220px;
  margin: auto;
  padding: 10px;
  pointer-events: none !important;
}

/* Overlay per catturare il click e aprire il picker */
.date-overlay {
  width: 250px !important;
  margin: auto;
  position: absolute;
  inset: 0;
  cursor: pointer;
  z-index: 3; /* sopra tutto */
  background: transparent;
  pointer-events: none !important;
}

.eqsl-set-img {
    /*width: 100%;*/
    max-width: 320px;  /* regolabile */
    height: auto;
    display: block;
    margin: 0 auto;
}

.eqsl-set-img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.error {
  margin-top: 15px;
}

.footer {
  padding: 20px;
  margin-top: 40px;
}



/* style-common */
/*.footer-menu-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    max-width: 900px;
    margin: 40px auto 0 auto;
    text-align: center;
}*/
.footer-menu-grid {
    max-width: 900px;
    margin: 40px auto 0 auto;
}
.footer-menu-grid .menu-display-footer {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    text-align: center;
}


.menu-top .menu-display-top {
    display: flex !important;
    justify-content: center;   /* centrato */
    align-items: center;
    gap: 20px;
    white-space: nowrap;
    overflow-x: auto;
    padding: 0;
    margin: auto;
    width: fit-content;        /* <-- questo è fondamentale */
}
.menu-top .menu-cell-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


.menu-top > .menu-display-top        { display: block; }
.menu-top > .menu-display-footer     { display: none; }

.footer-menu-grid > .menu-display-top    { display: none; }
.footer-menu-grid > .menu-display-footer { display: block; }







.footer-credits p {
  margin-top: 20px;
}

.form-left,
.form-right {
  padding: 20px;
}

.form-left input,
.form-left .crt-select,
.form-left .crt-select-wrapper {
  width: 240px !important;
  box-sizing: border-box;
  margin: 0 auto 20px auto;
  display: block;
}

.form-left textarea {
  width: auto;
  box-sizing: border-box;
  margin: 0 auto 20px auto;
  display: block;
}

.form-left label {
  display: block;
  text-align: center;
  margin-bottom: 10px;
  margin-top: 20px;
  width: 100%;
}

.form-status {
  margin-top: 10px;
  opacity: 0.75;
  min-height: 22px;
  text-align: center;
  transition: opacity 0.2s ease-in-out;
}






/* Contorno completo tabella */
.full-data {
    border-collapse:unset;
	border-radius: 2px;
	overflow: hidden!important;
	border: 0.5px solid rgba(0,255,160,0.15); /* bordo molto leggero */
	
}
/* Celle: griglia interna */
.full-data th,
.full-data td {
    border-right: 0.5px solid rgba(0,255,160,0.20);
    border-bottom: 0.5px solid rgba(0,255,160,0.15);
    /*padding: 2px 4px;*/
}
.full-data tr:last-child td {
    border-bottom: none; /* niente bordo sotto l’ultima riga */
}
/* Niente bordo destro sull’ultima colonna */
.full-data th:last-child,
.full-data td:last-child {
    border-right: none;
}









.input_captcha_contact {
  max-width: 200px;
}

.layout-frame {
  width: 100%;
  max-width: 1280px;
  margin: auto;
  box-sizing: border-box;
}

.logbook {
  table-layout: auto;
  width: auto;
  margin:auto;
}

.logbook thead th {
    padding: 6px 8px;
    cursor: pointer;
}

.logbook th,
.logbook td {
    white-space: nowrap;
}

.logbook-wrapper {
  overflow-x: auto;
  width: 100%;
}

.login-container {
  max-width: 350px;
  margin: 100px auto;
  padding: 30px;
  text-align: center;
}
.login-container h1 {
  margin-bottom: 20px;
}
.login-container input[type="password"] {
  width: 85%;
  padding: 10px 14px;
  margin: 20px auto;
  display: block;
}
.loginPassField{
  max-width: 200px;
}


.master-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 colonne */
  gap: 22px;
  margin-top: 25px;
}

.master-box {
  padding: 18px 22px;
}

.master-box h3 {
  margin-bottom: 14px;
  padding-bottom: 6px;
}

.master-table {
  width: 100%;
  border-collapse: collapse;
}

.master-table td,
.master-table th {
  padding: 6px 8px;
}


.master-table tr:last-child td,
.full-data tr:last-child td,
.nodes-table tr:last-child td {
    border-bottom: none !important;
}


.menu {
  margin-top: 40px;
  text-align: center;
  padding: 20px;
}




















.mytitle, .mymessage1, .mymessage2, .mymessage3{
  max-width: 90%;
  margin: auto;
}

.node-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px 18px;
  margin: 14px 0;
}
.node-status-line {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  margin-bottom: 10px;
}
.node-col-led {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
}
.node-col-led .node-led {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.node-col-module {
  margin-bottom: 6px;
  width: 100%;
}

.node-col-desc {
  margin-bottom: 4px;
  width: 100%;
}

.node-lastseen {
  margin-top: 4px;
}

.node-led-table {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}



.nodes-table tbody tr:last-child td {
    border-bottom: none !important;
}



.raw_box,
#terminal_box {
  display: block;
  /*margin-top: 30px !important;*/
  /*margin-bottom: 30px !important;*/
  position: relative;
  white-space: pre-wrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 6px;
}
.raw_box::after,
#terminal_box::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 16px;
  animation: crt-cursor-blink 1s infinite;
  transform: translate(4px, 6px); /* (xy, base/alto/basso) */
}
.raw_box:focus::after,
#terminal_box:focus::after {
  opacity: 1;
}




#remark {
  width: 80%;
  min-height: 320px;
  resize: vertical;
}

.rf-table {
  margin-top: 20px;
  width: 100%;
  display: grid;
  gap: 22px;
}
.rf-row {
  padding: 20px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.rf-label {
  margin-bottom: 4px;
}
.rf-value {
  display: flex;
  align-items: baseline;
}
.rf-unit {
  margin-left: 18px;
  position: relative;
  top: -0.15em;
}


#rstOptions {
  width: 250px !important;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 9999;
}
#rstSelect::after {
  content: none !important;
}

.status-cell {
    display: grid;
    grid-template-columns: 20px 1fr; /* LED | LABEL */
    align-items: center;             /* Allinea verticalmente */
    width: 100%;                     /* Occupa tutta la cella */
}

.status-label {
    display: block;
    width: 100%;
}

.subhead {
  margin-bottom: 4px;
}


.sub_title {
  padding: 0;
  margin-top: -50px;
}
.sub_title_content {
  padding: 0;
  margin-top: 0;
}

#submitReportBtn, 
#submitContactBtn, 
#submitLoginBtn {
  display: inline-block;
  padding: 12px 28px;
  margin: 30px auto;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Hover SOLO se non è disabilitato */
#submitReportBtn:not(:disabled):hover, 
#submitContactBtn:not(:disabled):hover,
#submitLoginBtn:not(:disabled):hover {
  transform: scale(1.04);
}

/* Bottone disabilitato: più trasparente */
#submitReportBtn:disabled, 
#submitContactBtn:disabled
#submitLoginBtn:disabled {
  cursor: not-allowed !important;
  transform: none !important;
}

.switch-label {
    cursor: pointer;
	margin-top: 6px!important;
	width: unset!important;
}

.switch-slider {
    width: 44px;
    height: 24px;
    border-radius: 34px;
    position: relative;
    cursor: pointer;
    pointer-events: auto;
	border: solid 1px;
}

.switch-slider::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: 0.3s;
}

/* ****************************************** */
.telemetry-mini {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.telemetry-mini th,
.telemetry-mini td {
    padding: 2px 4px;
    text-align: center;
    border-bottom: 1px solid rgba(0,255,160,0.15);
}

.telemetry-mini td {
    opacity: 0.85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
}

/* ****************************************** */



.terminal-mobile-warning {
        display: block;
        padding: 20px;
        margin: 20px auto;
        border: 2px solid rgba(0,255,160,0.25);
        background: rgba(0,20,20,0.4);
		display: none;
		text-shadow: var(--crt-strong-effect);
}




.toggle-status, .delete-row {
	border: none;
	border-radius: 2px;
}





.val-box {
  padding: 6px 14px;
  margin: 8px 0;
  display: grid;
  grid-template-columns: 160px 1fr;
}



@keyframes crt-cursor-blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}


.form-right {
    overflow: visible !important;
}











/* style_common.css / EOF */