/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */
/* Quitar las flechitas de los campos number de formularios */
/* Para Chrome, Safari, Edge y Opera (Webkit) */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Para Firefox */
input[type=number] {
  -moz-appearance: textfield;
}
body {
  width: 98%;
  margin: 0 auto;
}
#wrapper {}
a { color: black;}
#header {
  background-color: #99f;
  padding: 15px 20px;
}
#header h1 {
  margin: 0;
}
#header h1 a, #header h1 a:visited {
  text-decoration: none;
  color: black;
}
#menu {
  background-color: #99f;
  padding: 0;
  border-top: 2px solid #66f;
  border-bottom: 2px solid #66f;
  overflow: visible; 
  height: 30px;
}
ul#horiznav {
  margin: 0;
  padding: 0;
  list-style-type: none;
}
#horiznav > li {
  float: left;
  width: 152px;
  position: relative;
}
#horiznav li a {
  display: block;
  width: 150px;
  line-height: 30px;
  text-align: center;
  text-decoration: none;
  background-color: #99f;
  border-left: 2px solid #66f;
  border-right: 2px solid #66f;
}
#horiznav li a:hover {
  background-color: #66f;
}
#horiznav li ul {
  display: none;
  position: absolute;
  left: 0;
  top: 30px;
  margin: 0;
  padding: 0;
  list-style-type: none;
  z-index: 9999;
  border-bottom: 2px solid #66f;
}
#horiznav li:hover > ul {
  display: block;
}
#horiznav li ul li {
  float: none;
  width: 152px;
}
#horiznav li ul a {
  background-color: #99f;
  border-top: 2px solid #66f;
}
#horiznav li:has(a[style*="float: right"]) {
  float: right;
}
#content {
  position: relative;
  background-color: #eef;
  padding: 20px 10px;
}
#esquina {
  position: absolute; /* Se mueve independientemente del flujo del texto */
  top: 0;             /* Pegado arriba */
  right: 0;           /* Pegado a la derecha */

  /* Estilos visuales */
  padding: 15px 20px;
  z-index: 10;        /* Asegura que esté por encima de otros elementos */
}
#content h2 {
  margin: 0;
}

#operations table {
  border-collapse: collapse;
}
#operations table thead {
  font-weight: bold;
  background-color: #99f;
}
#operations table td {
  padding: 2px 15px;
}

#grid_container {
  display: grid;
  grid-template-columns: repeat(2, minmax(450px, 1fr));
  gap: 0.5%;
}
.grid_item {
}

.inv_data {
  width: 100%;
  border-collapse: collapse;
  border: 2px solid black;
  table-layout: auto;
}
.inv_data .table_header {
  background-color: #99f;
}
.table_header th {
  min_width: 0;
}
.inv_data th, .inv_data td {
  padding: 3px;
}
.td_amount {
  text-align: right;
}
.total_column {
  /*font-weight: bold;*/
  background-color: #ccf;
}
/* Projections */
#projections_results {
  float: left;
  padding-right: 1%;
}
#projections_form {
  float: left;
  padding-left: 1%;
  width: 22%;
  padding-right: 1%;
}
#projections_data_long {
  float: left;
  padding-left: 1%;
  width: 14%;
  display: none;
}
#projections_data_short {
  float: left;
  padding-left: 1%;
  width: 28%;
}
.projections_table {
  border-collapse: collapse;
}
.projections_table thead {
  font-weight: bold;
  background-color: #99f;
}
.projections_table td {
  border: 1px solid black;
  padding: 2px 15px;
  text-align: right;
}

.bg_positives {
  background-color: #b2dbb2;
}
.bg_negatives {
  background-color: #c59292;
}

#footer {
  clear: both;
  background-color: #99f;
  height: 15px;
}

@media screen and (max-width: 980px) {
  .hide_col {
    display: none;
  }
  #projections_results {
    background-color: green;
  }
  #projections_form {
    width: 60%;
  }
  #projections_data_long {
    display: block;
  }
  #projections_data_short {
    display: none;
  }
}

/* SCREEN IS LESS THAN 1800px (Tablets & laptops). */
@media screen and (max-width: 1920px) {
  .hide_col {
    display: none;
  }
  #projections_results {
    min-width: 840px;
  }
  #projections_form {
    min-width: 335px;
  }
  #projections_data_long {
    display: block;
    min-width: 245px;
  }
  #projections_data_short {
    display: none;
  }
}
