@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@200&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@700&display=swap');

html, body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background: #eaeaea;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  height: 100%;
  overflow: hidden;
}

#dialog-nome input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 4px #007bff;
}

#dialog-nome button:hover {
  opacity: 0.9;
}



#menu-superior {
  display: flex;
  justify-content: space-around;
  background: #fff;
  padding: 10px;
  height: 70px;
  box-sizing: border-box;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 10;
}
.menu-item {
  width: 40px;
  height: 40px;
  cursor: grab;
}
.menu-opcao {
  width: 40px;
  height: 40px;
  cursor: grab;
}

#campo {
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

 .fechaboxmenu {
  position: absolute;
  top: 5px;
  padding-left:0px;
  padding-top:0px;
  right: 5px;
  bottom: 0;
  height:35px;
  width:35px;
}
.backt {
  position: absolute;
  top:0px;
  left: 0;
  right: 0;
  background:rgb(0,0,0,0.5);
  color:#000;
  bottom: 0;
  height:100%;
  width:100%;
  z-index:1000;
}
.backt1 {
  position: absolute;
  top:0px;
  left: 0;
  right: 0;
  background:rgb(0,0,0,0.5);
  color:#000;
  bottom: 0;
  height:100%;
  width:100%;
  display:none;
  z-index:5000;
}

.boxlog{
  position: absolute;
  top:20%;
  left:30%;
  right:30%;
  background:#fff;
  border-radius:8px;
  color:#000;
  bottom: 0;
  height:80%;
  width:40%;
  z-index:2000;
}
.boxlog1{
  position: absolute;
  top:20%;
  left:30%;
  right:30%;
  background:#fff;
  border-radius:8px;
  color:#000;
  bottom: 0;
  height:80%;
  width:40%;
  z-index:2000;
}
.boxlogtit
{

    float:left;
    width:100%;
    margin-left;0%;
    padding-top:8px;
    padding-bottom:8px;    
    border:0px solid red;
    background:#dedede;
      border-radius: 10px 10px 0 0;
    text-align:center;
    font-size:24px;
    font-weight:500;
}

.erro{
  position: absolute;
  top:72%;
  left:30%;
  height:30px;
  background:red;
  padding-top:20px;
  padding-bottom:10px;
  text-align:center;
  border-radius:0px 0px 8px 8px;
  color:#fff;
  width:40%;
  z-index:3000;
}



.boxlogDES
{

    float:left;
    width:80%;
    margin-left:10%;
    padding-top:7px;
    padding-bottom:3px; 
    border:0px solid red;
    text-align:center;
    font-size:18px;
    font-weight:normal;
}
.boxlogINP
{

    float:left;
    width:80%;
    margin-left:10%;
    padding-top:5px;
    padding-bottom:5px; 
    border:0px solid BLUE;
    text-align:center;
    font-size:18px;
    font-weight:normal;
}

.inputBox
{

    float:left;
    width:50%;
    margin-left:20%;
    padding-top:5px;
    padding-bottom:5px; 
    border:2px solid #494949;
    outline:0;
    text-align:center;
    font-size:24px;
    font-weight:normal;
}

.bts
{

    float:left;
    width:60%;
    margin-left:20%;
    padding:5%; 
    border:2px solid #494949;
    background:green;
    outline:0;
    color:#fff;
    border-radius:5px;
    text-align:center;
    font-size:20px;
    font-weight:normal;
}

.boxmenu {
  position: absolute;
  top: 70px;
  padding-left:20px;
  padding-top:10px;
  left: 0;
  right: 0;
  background:rgb(255,255,255,0.9);
  color:#000;
  font-size:20px;
  bottom: 0;
  height:500px;
  display:none;
}



.linhaMenu
{
    margin-top:10px;
    float:left;
    padding-left:0%;
    width:95%;
    font-weight:500;
}



.linhaMenu1
{
    margin-top:10px;
    float:left;
    padding-left:0%;
    width:90%;
    min-height:40px;
    font-weight:500;
}
.linhaMenuDes
{

    float:right;
    padding-top:8px;
    width:85%;
    text-align:left;
    font-size:26px;
    font-weight:normal;
}

.legenda {
  position: absolute;
  color: white;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 4px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index:1000;
}


.legenda-input {
  position: absolute;
  z-index: 20;
  padding: 2px 5px;
  font-size: 12px;
  border-radius: 4px;
  border: 1px solid #555;
  background: #fff;
  width: 100px;
  box-sizing: border-box;
  transform: translate(-50%, -100%);
}

.teclado-numerico {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 2px solid #444;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(3, 40px);
  grid-gap: 5px;
  z-index: 999;
  border-radius: 8px;
}

.teclado-numerico button {
  font-size: 16px;
  padding: 8px;
  border: none;
  background: #ddd;
  border-radius: 4px;
  cursor: pointer;
}

.visor-teclado {
  grid-column: span 3;
  margin-bottom: 5px;
  text-align: center;
  font-size: 16px;
  padding: 4px;
}

/* LISTAGEM DE ESQUEMAS */
.menu-esquemas {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  max-height: 400px;
  overflow-y: auto;
  background: white;
  padding: 10px;
  width: 320px;
  font-size: 14px;
  z-index: 9999;
  position: absolute;
  top: 100px;
  left: 10px;
}

.menu-esquemas table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.menu-esquemas thead {
  background-color: #f8f8f8;
  position: sticky;
  top: 0;
}

.menu-esquemas th,
.menu-esquemas td {
  padding: 8px 10px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

.menu-esquemas tr:hover {
  background-color: #f1f1f1;
  cursor: pointer;
}

/* Exibição do número do esquema */
#IDnumESQ {
  color: #000;
  font-weight: bold;
  margin-left: 10px;
  font-size: 16px;
}

/* Responsividade para telemóvel */
@media (max-width: 600px) {
  .menu-esquemas {
    width: 95%;
    left: 2.5%;
    font-size: 13px;
  }

  .menu-esquemas table {
    font-size: 13px;
  }

  .menu-esquemas th,
  .menu-esquemas td {
    padding: 6px 8px;
  }

  .menu-esquemas thead {
    font-size: 13px;
  }

.erro{
  position: absolute;
  top:71%;
  left:10%;
  height:30px;
  background:red;
  padding-top:20px;
  padding-bottom:10px;
  text-align:center;
  border-radius:0px 0px 8px 8px;
  color:#fff;
  width:80%;
  z-index:3000;
}


  
.boxlog{
  position: absolute;
  top:15%;
  left:5%;
  right:5%;
  background:#fff;
  color:#000;
    border-radius:8px;
  bottom: 0;
  height:75%;
  width:90%;
  z-index:2000;
}

.boxlog1{
  position: absolute;
  top:10%;
  left:5%;
  right:5%;
  background:#fff;
  color:#000;
    border-radius:8px;
  bottom: 0;
  height:87%;
  width:90%;
  z-index:2000;
}
  
  
  
}


/* Garante scroll horizontal em tabelas largas */
.menu-esquemas {
  overflow-x: auto;
  white-space: nowrap;
}

/* SCROLL HORIZONTAL PARA TABELA */
.tabela-wrapper {
  overflow-x: auto;
  max-width: 100%;
}

.tabela-wrapper table {
  min-width: 400px;
}
