/* === DESKTOP === */
.grid-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  grid-template-rows: 54px 1fr 45px;
  grid-template-areas:
    "header  header"
    "sidenav main"
    "footer  footer";
  height: 100vh;
}

.header {
  grid-area: header;
  background-color: #fff;
  padding: 6px 0 6px 10px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1100;
}

.sidenav {
  grid-area: sidenav;
  background-color: #fff;
  padding: 25px;
  overflow-y: auto;
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1000;
}

.main {
  grid-area: main;
  background-color: #faf9f8;
  padding: 0 32px 0 40px;
  max-height: calc(100vh - 54px - 45px);
  overflow: auto;
}

.footer {
  grid-area: footer;
  background-color: #f3f2f1;
  padding: 12px 20px;
}

/* El botón solo en mobile */
#hamburger_button {
  display: none;
  background: none;
  border: none;
  font-size: 1.8em;
  margin-right: 10px;
  cursor: pointer;
  color: rgb(16, 102, 117);
  position: relative;
  z-index: 1200;
}

body {
  background-color: rgba(225, 223, 221, 0.2);
  min-height: 611px;
  margin: 0;
}

.page-title {
  padding: 25px 0px;
}

.card {
  background: #fff;
  padding: 28px;
  margin-bottom: 28px;
  border-radius: 2px;
  background-clip: padding-box;
}
.shiny-notification {
  position:fixed;
  width: 20%;
  # opacity: 0.6;
  top: 60px;
  right: 0;
  background-color: #02EADA;
}
#download_false{
  background-color: #ccc4cc !important;
}
#shiny-notification-espere_msg {
  position:fixed;
  width: 25%;
  # opacity: 0.6;
  top: 80px;
  right: 10px;
  background-color: #0b5778;
}
#shiny-notification-balance_subido {
  position:fixed;
  width: 25%;
  # opacity: 0.6;
  top: 80px;
  right: 10px;
  background-color: #03a80c;
}
#shiny-notification-gasto_subido {
  position:fixed;
  width: 25%;
  # opacity: 0.6;
  top: 80px;
  right: 10px;
  background-color: #03a80c;
}
.shiny-notification-close {
  color: #0b5778;
  font-size: 20px;
}
.tbody tr:nth-child(even) {
  background-color: #e8f0fc !important;
}
.tbody tr:nth-child(odd) {
  background-color: #fff !important;
}
.fixed-action-btn{
  position: fixed;
  height: 10%;
  top: 60px;
}
.root-129{
  background-color: #0b5778;
}
.root-129:hover{
  background-color: #04435e;
  font-weight: bold;
}

/*Login*/
.login-title{
  color: #0b5778;
}
.form-control.shinyjs-resettable.shiny-bound-input{
  width:100%;
}

/*Icons*/
.ms-Nav-navItem [class*="icon-"]{
  color: rgb(16, 102, 117);
}

/*#firuChat-show_modal [class*="icon-"]{
  transform: scaleX(-1);
  -moz-transform: scaleX(-1);
  -webkit-transform: scaleX(-1);
  -ms-transform: scaleX(-1);
}*/

#firuChat-show_modal [class*="icon-"]:hover{
  color: rgb(104, 183, 196);
  font-size: 32px;
}
#firuChat-chat_user_input {
  width:85%;
}

/*Buttons*/
[class*="ms-Button--primary"]{
  background: #106675;
  border:#095461;
}
[class*="ms-Button--primary"]:hover{
  background: #095461;
  border:#095461;
}
.root-55{
  background: #106675;
  border:#095461;
}
.root-55:hover{
  background: #095461;
  border:#043b45;
}
.root-55:active{
  background: #043b45;
  border:#095461;
}

/*Toggles*/
[class*="pill-"][aria-checked="true"] {
  background: #106675;
}
[class*="pill-"][aria-checked="true"]:hover{
  background: #095461;
}

.dolar-div{
  width: 100%; 
  display: flex; 
  justify-content: space-between; 
  flex-direction: column; 
  max-height: 100px;
  padding-bottom: 5%;
}
.dolar-subdiv{
  display: flex;
  flex-direction: row; 
  justify-content: space-between;
  width: 50%;
}
.estadisticas-card{
  font-size: 20px;
  font-weight: bold;
  color: #043b45;
  text-align: center;
}

#fluent_logout{
  background: #38695b;
}
#fluent_logout:hover{
  background: #244f43;
}
#fluent_logout:active{
  background: #38695b;
}
/* Logo Q Analytics */
#logo-Q {
  position: fixed;
  right: 1%;
  bottom: 1%;
}

.cards-stack {
  display:flex; 
  flex-direction:row; 
  justify-content:space-around;
  gap: 1px;
}

.menu-overlay {
  display: none !important;
}

.results-container {
  display:flex; 
  justify-content: space-between;
}

.scatter-container {
  display:flex; 
  margin-top: 5%;
  justify-content: center;
}

#firuChat-chat {
  max-height: 370px; 
  overflow-y: scroll;position: 
  absolute;
  bottom: 10%
}

/* media query for mobile*/
@media (max-width: 680px) {
  #login-side-img{
    display: none;
  }
}
/* === MOBILE === */
@media (max-width: 932px) {
  #login-side-img {
    display: none;
  }
  #logo-Q {
    position: relative;
    display:flex; 
    justify-content: center; 
    bottom:1%;
    padding-top: 30%;
  }
  .menu-overlay.active {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999; /* asegúrate que esté sobre el contenido */
  }

  /* 1) colapsa la columna del sidenav */
  .grid-container {
    grid-template-columns: 0 1fr !important;
    grid-template-rows: 54px 1fr 45px !important;
    grid-template-areas:
      "header  header"
      "main    main"
      "footer  footer" !important;
  }

  /* 2) posiciona el sidenav fuera de la pantalla */
  .sidenav {
    position: fixed;
    top: 54px;                     /* coincide con row-header */
    left: -310px;
    width: 260px;
    height: calc(100% - 100px);
    transition: left 0.3s ease;
    overflow-y: scroll;
  }
  .sidenav.open {
    left: 0;
  }

  /* 3) muestra el botón */
  #hamburger_button {
    display: block;
  }

  #app-title {
    width: 60%;
    font-size: 14px;
  }

  .artwork-params {
    flex-direction: column;
  }

  .artwork-params-right {
  width:100%;
  }

  .artwork-params-left {
    width:100%;
  }

  .color-firma {
    display: block;
  }
  /* color firma*/
  .focusedContainer-216 {
    min-width: 10px;
  }

  .images-slider {
    flex-direction: column;
  }
  
  /* 4) quita márgenes al main para que ocupe todo */
  .main {
    margin: 0;
    padding: 0 16px;
  }
  .footer {
    padding: 5px 10px;
  }
  
  .cards-stack {
    flex-direction:column;
  }
  
  .card {
    width: auto;
  }
  .results-container {
    justify-content: center;
  }
  
  /*#tabla_autos_encontrados {
    max-width: 350px;
  }
  
  #scatter_px_km {
    max-width: 350px;
  }*/
  
  #img_car {
    display: flex;
    justify-content: center;
  }
  
  #firuChat-chat {
    bottom: unset;
  }


}

