/* Botoes */
input[type="submit"],
input[type="button"],
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 5px;
  border: none;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s, transform .1s, box-shadow .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08);
}
input[type="submit"] {
  background: #1a7a3c;
  color: #ffffff;
}
input[type="submit"]:hover {
  background: #145f2e;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  transform: translateY(-1px);
}
input[type="button"] {
  background: #f9fafb;
  color: #1f2937;
  border: 1px solid #d1d5db;
} 
input[type="button"]:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

/* Inputs e Selects */
input[type="text"],
input[type="password"],
select {
  border: 1px solid #d1d5db;
  border-radius: 5px;
  padding: 2px 8px;
  background: #ffffff;
  color: #1f2937;
  font-size: 13px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  max-width: 80vw;
}
input[type="text"]:focus,
input[type="password"]:focus,
select:focus {
  border-color: #1a7a3c;
  box-shadow: 0 0 0 3px rgba(26,122,60,.15);
}

/* ============================================================
   RESPONSIVIDADE MOBILE
   Ajustes apenas para dispositivos com largura <= 768px.
   O layout desktop permanece inalterado.
   ============================================================ */

/* --- Botao hamburger (visivel apenas no mobile) --- */
#btnMenuMobile {
  display: none;
}

.hideMobile {
	display: table-cell;
}
  
.hideDesktop {
	display: none;
}

@media screen and (max-width: 500px) {

  .mobileMax125 {
  	max-width: 125px;
  }
  
  .containerPodio {
    transform: scale(0.85);
	transform-origin: top left;
  }
    
  .hideMobile {
  	display: none;
  }
  
  .hideDesktop {
  	display: table-cell;
  }
  
  /* --- Tabelas internas (fronteiras) --- */
  .tabelaPadrao {
  	width: 250px !important;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tabelaPadrao td,
  .tabelaPadrao th {
    padding: 4px !important;
    font-size: 11px;
  }

  /* --- Formularios internos --- */
  #corpo {
    padding: 4px;
  }
  
  #corpo > div:first-of-type {
    top: 135px !important;
    right: 10px !important;
  }

  #corpo table {
    width: 100% !important;
  }

  #corpo input[type="text"],
  #corpo input[type="password"],
  #corpo textarea {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  #corpo input[type="text"],
  #corpo input[type="password"] {
	min-width: 30px;
  }
  
}

@media screen and (max-width: 400px) {
	.containerPodio {
      transform: scale(0.70);
  	  transform-origin: top left;
    }
}

@media screen and (max-width: 300px) {
	.containerPodio {
      transform: scale(0.60);
  	  transform-origin: top left;
    }
}


@media screen and (min-width: 769px) {
	
	#chart {
		position: absolute;
		top: 5px; 
		right:10px;
		width: calc(100% - 20px); 
		height: calc(100% - 40px);
	}
	
	#chartMin {
	  position: absolute;
	  top: 145px; 
	  right:5px; 
	  width: 134px; 
	  height: 110px;
	  cursor:pointer;
	}
		
}

@media screen and (max-width: 768px) {
	
  #chart {
  	position: absolute;
	top: 5px; 
	left:10px;
    width: calc(100% - 20px); 
    height: calc(100% - 40px);
  }
	
  #chartMin {
  	width: 200px; 
  	height: 81px;
  	cursor:pointer;
  }
  
  /* --- Botao hamburger --- */
  #btnMenuMobile {
    display: block;
    position: fixed !important;
    top: 8px;
    left: 8px;
    z-index: 9999;
    background: #1a7a3c;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
    line-height: 1;
  }

  /* --- Menu principal --- */
  #menu {
    top: 0 !important;
    left: -280px !important;
    right: auto !important;
    width: 260px !important;
    height: 100% !important;
    overflow-y: auto;
    z-index: 9998;
    border-radius: 0 !important;
    opacity: 1 !important;
    transition: left 0.3s ease;
    background-color: #FFF9B2;
    background-image: url(../../imagens/fundo_menu.gif);
  }

  #menu.menu-aberto {
    position: fixed;
    left: 0 !important;
    top: 54px !important;
    padding-bottom: 50px !important;
    height: calc(100vh - 105px) !important;
    overflow-x: hidden;
  }

  #menu ul {
    float: none !important;
    width: 100%;
  }

  #menu li {
    float: none !important;
    width: 100%;
  }

  #menu a, #menu h2 {
    font-size: 15px;
    line-height: 32px;
    padding: 4px 16px;
  }

  #menu ul ul {
    position: static !important;
    display: block !important;
    background-color: transparent;
    padding-left: 12px;
	background-color: rgba(255, 249, 178, 0.3);
  }

  #menu ul ul ul {
    position: static !important;
    display: block !important;
    padding-left: 12px;
  }

  #menu ul ul a, #menu ul ul h2 {
    font-size: 13px;
  }

  /* Overlay escuro ao abrir menu */
  #menuOverlay {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0,0,0,0.5);
    z-index: 9997;
  }

  #menuOverlay.menu-aberto {
    display: block;
  }

  /* --- Logo --- */
  .logoCopa {
    display: none;
  }

  /* --- Titulo --- */
  .titulo {
    position: fixed;
    z-index: 999;
    width: 180px !important;
    height: 30px !important;
    margin: 0 auto 8px auto !important;
    background-size: contain;
    background-repeat: no-repeat;
    top: 12px !important;
    margin-left: 40px !important;
    right: inherit !important;
  }

  .titulo div {
    font-size: 11px;
  }

  /* --- Bandeira --- */
  .fimMenu {
    position: fixed;
    background-repeat: no-repeat;
    background-position: right;
    width: 100% !important;
    top: 5px !important;
    right: 5px !important;
  }
  
  .fimMenuMobile {
  	position: fixed;
  	width: 100% !important;
    height: 54px;
    background-color: #008000;
  }

  .containerPodio {
  	margin-left: 0px !important; 	
  	left: 5% !important;
  	width: 90% !important;
  }
  
  .podio {
  	left: 0 !important;
  }
  
  .uniformePodio, .rostoPodio {
  	margin-left: -50px !important;
  }
  
  .login, .participantes, .totalizador, #nomePrimeiro {
  	position: relative !important;
  	margin: 0 !important;
  	left: 0 !important;
  	right: 0 !important;
  	width: 100vw !important;
  	
  }
  
  .login {
  	padding: 8px;
  	padding-bottom: 60px !important;
  }
  
  #nomePrimeiro {
  	display: none;
  }
  
  .totalizador {
  	top: 230px !important;
  	margin-bottom: 20px !important;
  }
  
  /* Área logada */
  .containerUniforme {
  	left: calc(50% - 115px) !important;
  	top: 190px !important;
  }
  
  .participantesLogado {
  	width: 85% !important;
  	left: 5% !important;
  	top: 455px !important;
  	height: 200px !important;
  }
  
  .containerUniforme #nomePrimeiro {
  	display: block;
  	position: absolute !important;
    margin-top: 255px !important;
    width: 190px !important;
    left: 10px !important;
  }
  
  .premiacao {
  	left: 5% !important;
    right: inherit !important;
    width: 85% !important;
    top: 836px;
    height: 120px !important;
    margin-bottom: 60px !important;
  }
  
  #mural {
  	left: 5% !important;
    right: inherit !important;
    width: 85% !important;
    top: 685px;
    height: 120px !important;
  }

  /* --- Tela de bloqueio --- */
  #telaBloqueio, .telaBloqueio {
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 8999;
  }

  /* --- Janela de conteudo (iframe) --- */
  .conteudo {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 9000;
  }

  /* --- Mensagem popup --- */
  #msg {
    position: fixed !important;
    left: 5% !important;
    width: 90% !important;
    top: 20% !important;
    box-sizing: border-box;
    z-index: 9500;
  }

  #telaBloqueioMsg {
    position: fixed !important;
    z-index: 9499;
  }
  
  /* --- Alertas (alerta function) --- */
  #displayAlerta {
    min-width: 280px !important;
    max-width: 95% !important;
    font-size: 13px !important;
  }
  
  #displayErro {
    max-width: 100% !important;
    overflow-x: auto;
  }
  
  .barraJanela {
    padding-top: 33px !important;
  }
}

#loading { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.45); z-index:99999; }
#loading div { position:absolute; top:50%; left:50%; margin-top:-40px; margin-left:-40px; }
#loading img { width:50px; height:50px; animation:girarFavicon 1s linear infinite; }
@keyframes girarFavicon { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

svg {
    font-family: Arial, sans-serif;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background-image: url(../../imagens/fundo_gramado.gif);;
    background-repeat: repeat;
}

.grid {
    stroke: rgba(255, 255, 255, 0.4);
    stroke-width: 1;
}

.axis {
    stroke: #fff;
    stroke-width: 2;
}

.area {
    fill: rgba(37, 99, 235, 0);
}

.line {
    fill: none;
    stroke: #2563eb;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.point {
    fill: white;
    stroke: #2563eb;
    stroke-width: 2;
    cursor: pointer;
    transition: all 0.2s;
}

.point:hover {
    r: 7;
    fill: #2563eb;
}

.label {
    font-size: 12px;
    fill: #fff;
}

.title {
    font-size: 20px;
    font-weight: bold;
    fill: #fff;
}