html,body{
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  vertical-align: baseline;
  background: transparent;
}
html {
  background: #fff;
  font-size: 90%;
  -webkit-overflow-scrolling: touch;
  -webkit-tap-highlight-color: #f3f5f6;
  -webkit-text-size-adjust: 90%;
  -ms-text-size-adjust: 90%;
  line-height: 1.6;
  height:100%;
}

body {
  height:100%;
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-size: 1em;
  color: #000000;
}
a, a:visited{
  text-decoration: none;
  color:#B13837;
  font-weight: bold;
}
a:hover{
  color:#000;
}
h2{
  margin: 0;
  padding-left: 5px;
}
.clearfloat{
  clear:both;
  height:0;
  font-size:1px;
  line-height:0px
}

.Login input{
  font-size: 1.1em;
  margin: 5px;
}

table{
  width: 100%;
}
table.flotante{
  float: left;
  width: auto;
  margin: 5px;
}
table{
  border-collapse: collapse;
  margin: 0px;
}
table td, table th{
  padding: 2px 5px;
  border-width: 0px;
}
tr, td, th {
  vertical-align: middle;
}

table.lineas td, table.lineas th, table.flotante td, table.flotante th{
  border-width: 1px;
  border-style: dotted;
  border-color: gray;
}
table.lineas th, table.flotante th{
  background-color: #f9f4f5;
}

table th.Titulo, h3.Titulo{
  font-size:120%;
  color: #000;
  background-color: #c78f98;
  font-weight: bold;
  padding: 0.5rem;
}

h3.Titulo{
  margin-bottom: 0;
  padding: 0.5em;
}
table th.Cabecera{
  font-size: 120%;
  font-weight: bold;
  color: #000;
  background-color:#e9d2d6;
  text-align: center;
}
table.Buscar{
  font-size: 1.2em;
  font-weight: bold;
}
table.Buscar td.centragris, table.Buscar th.centragris{
  text-align: center;
  background: #ddd;
  font-size: 0.9em;
}
table.Buscar th.centragris{
  background: #ccc;
}
button {
  background-color: #8e1f30;
  color: #fff;
  padding: 1em;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  cursor: pointer;
  width: calc( 100% - 10px);
  margin: 5px;
}

button:hover {
  background-color: #b23a46;
}

.ValoresDefecto table{
  font-weight: bold;
  background-color: #eee;
  margin: 2em 0;
  border-top: 1px solid #000;
}
table.MenuSuperior{
  margin: 0;
  width:100%;
  text-align:center;
}
table.MenuSuperior td{
  padding: 0;
}
table.MenuSuperior a, a.EnlaceMenu{
  border: 1px outset #fff;
  background-color: #EEE;
  padding: 1em;
  display: block;
  border-radius: 5px;
  margin:1px;
  font-size: 1em;
  line-height: 1em;
  transition: all 0.3s ease;
}

.tablesorter-blue a.EnlaceMenu,table.lineas a.EnlaceMenu{
  font-size: 1em;
}
a.EnlaceMaps{
  padding: 0.5rem;
  float:right;
}

input[type="image"]{
  display: inline-block;
  border: 1px outset #fff;
  background-color: #EEE;
  padding: 5px;
  border-radius: 5px;
  margin:1px;
}
input[type="date"], input[type="time"]{
  font-size: 1.2em;
  padding: 0px;
}
a.EnlaceMenu{
  display: inline-block;
}
table.MenuSuperior a:hover, a.EnlaceMenu:hover, input[type="image"]:hover{
  background-color: #DDD;
}
table.MenuSuperior a:active, a.EnlaceMenu:active, input[type="image"]:hover{
  border: 1px inset #fff;
}
input, select{
  font-size:1em;
  padding:5px;
  margin:0;
  border-radius:5px;
}

.Titulo a{
  font-size:110%;
  font-weight: bold;
  color: black;
}
.Titulo a:hover{
  color: #8e1f30;
}
.Caja{
  display: inline-block;
  float:left;
  font-size: 0.8em;
  padding: 0 0 5px 5px;
}
img{
  vertical-align:text-top;
  border:none;
}
fieldset {
  padding:0;
  margin:0;
}
#cart fieldset {
  border:0;
}
#cart-tooltip {
  border:solid 1px #000;
  padding:3px 7px 3px 25px;
  background:url(/cart/checkmark.png) 3px center no-repeat #FEE;
}
#tooltip h3{
  border: 1px solid #666;
  border-radius:10px;
  background: white;
  padding: 5px;
  font-size: 0.8em;
  margin-left: -15px;
}

fieldset.radiogroup  {
  margin: 0;
  padding: 0;
  margin-bottom: 1.25em;
  padding: .125em;
}

fieldset.radiogroup legend {
  margin: 0;
  padding: 0;
  font-weight: bold;
  margin-left: 20px;
  font-size: 100%;
  color: black;
}


ul.radio  {
  margin: 0;
  padding: 0;
  list-style: none;
  padding-left: 20px;
}

ul.radio li {
  display: inline-block;
  padding-right: 10px;
}
ul.radio li label{
  padding-left: 5px;
}

.grey_mini{
  font-size: 0.8em;
  color: #666;
}
.enlace-boton-icono {
  position: relative;
  height: 3.2rem;
  min-width: 3.2rem;
  background-color: #989a9b;
  display: inline-block;
  font-family: Lato,Sans-serif;
  font-size: 1.4rem;
  line-height: 1.4rem;
  -webkit-font-smoothing: antialiased;
  font-weight: 600;
  padding: 0.9rem 0.9rem 0.9rem 3.2rem;
  color: #fff;
  text-align: left;
  text-decoration: none;
  user-select: none;
  vertical-align: middle;
  white-space: nowrap;
}
.enlace-boton-icono:before {
  content: "";
  display: block;
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  width: 2.2rem;
  height: 2.2rem;
  background: #989a9b url(/images/INWC.png) no-repeat -112px -25px;
}

#back-top {
  position: fixed;
  bottom: 5rem;
  right: 2rem;
  cursor: pointer;
  display: none;
  z-index: 45;
}
#back-top .icono-top {
  padding: 0em;
  transition: .25s;
  background-color: rgba(0,0,0,0.26);
}
.enlace-boton-icono:hover, .enlace-boton-icono:focus {
  background-color: #8e1f30;
  color: #fff;
}
#back-top .icono-top:before {
  background-color: rgba(0,0,0,0.26);
  background-position: -370px -116px;
}
#back-top .icono-top:hover:before, #back-top .icono-top:focus:before {
  background-color: #8e1f30;
}
.cancelar_mini{
  display:inline-block;
  width: 14px;
  height:12px;
  background: transparent url(/images/cancelar_mini.png) no-repeat;
}
.cancelar_mini:hover{
  background-position: 0 -13px;
}

@media print
{
  body{
    font-size: 12px;
  }
  header.header{
    background-color: #fff;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);    
  }
  .valores-defecto-form {
      background-color: #fff;
      border-top:0;
  }
  a.EnlaceMenu{
    display:inline;
  }
  table.MenuSuperior, form.ValoresDefecto, table.Buscar, h2.TituloBusqueda, form.cart input, a.EnlaceMenu img, form.AnadirArticulos, html body .NoImprimir{
    display: none;
  }
  input, a.EnlaceMenu{
    border: none;
    padding: 0;
  }

}

table.lineas{
  font-size:0.9em;
}
@media only screen and (min-width: 1px) and (max-width: 599px)
{
  body {
    font-size: 0.8em;
  }
  form.ValoresDefecto{
    font-size:0.7em;
  }
  form.AnadirArticulos{
    font-size:0.8em;
  }
  table.lineas{
    font-size:0.9em;
  }
  input, select{
    padding:5px 2px;
  }
  table td, table th {
    padding: 2px;
  }
  #cart a img {
    width: 90px;
    height: 60px;
  }
  .ocultaEnMovil{
    display:none;
  }
}
@media only screen and (min-width: 600px) and (max-width: 639px)
{
  body {
    font-size: 0.85em;
  }
  form.ValoresDefecto{
    font-size:0.8em;
  }
  table.lineas{
    font-size:0.9em;
  }
  input, select{
    padding:5px 2px;
  }
  table td, table th {
    padding: 2px;
  }
}
@media only screen and (min-width: 640px) and (max-width: 719px)
{
  body {
    font-size: 0.9em;
  }
  form.ValoresDefecto{
    font-size:0.9em;
  }
  table.lineas{
    font-size:0.9em;
  }
  input{
    padding:5px 2px;
  }
  table td, table th {
    padding: 0.5rem;
  }
}
@media only screen and (min-width: 720px) and (max-width: 767px)
{
  body {
    font-size: 0.9em;
  }
  form.ValoresDefecto{
    font-size:0.9em;
  }
  table.lineas{
    font-size:0.9em;
  }
  input{
    padding:5px 2px;
  }
  table td, table th {
    padding: 0.5rem;
  }
}
@media only screen and (min-width: 768px) and (max-width: 799px)
{
  body {
    font-size: 0.9em;
  }
  form.ValoresDefecto{
    font-size:0.9em;
  }
  input{
    padding:5px 3px;
  }
  table td, table th {
    padding: 0.5rem;
  }
}
@media only screen and (min-width: 800px) and (max-width: 959px)
{
  body {
    font-size: 0.95em;
  }
  form.ValoresDefecto{
    font-size:0.9em;
  }
  input{
    padding:5px 4px;
  }
  table td, table th {
    padding: 0.5rem;
  }
}
@media only screen and (min-width: 960px) and (max-width: 1023px)
{
  body {
    font-size: 0.9em;
  }
  input{
    padding:5px 4px;
  }
  table td, table th {
    padding: 0.5rem;
  }
}
@media only screen and (min-width: 1024px) and (max-width: 1279px)
{
  body {
  }
  input{
    padding:5px 4px;
  }
  table td, table th {
    padding: 0.5rem;
  }
}
@media only screen and (min-width: 1280px)
{
  body {
  }
}

.tablesorter {
  width: 100%;
  background-color: #fff;
  margin: 10px 0 15px;
  text-align: left;
  border-spacing: 0;
  border: 1px solid #c78f98;
  padding: 4px;
  vertical-align: top;
}

.tablesorter   th, .tablesorter td {
  border: 1px solid #c78f98;
  border-width: 0 1px 0 0;
  border-bottom-color: #fff;
}

.tablesorter-blue tbody th.CeldaVacia, .tablesorter-blue tbody td.CeldaVacia,
.tablesorter-blue thead th.CeldaVacia, .tablesorter-blue thead td.CeldaVacia,
.tablesorter tbody th.CeldaVacia, .tablesorter tbody td.CeldaVacia,
.tablesorter thead th.CeldaVacia, .tablesorter thead td.CeldaVacia {
  padding:0;
  border-right-width: 0;
}

.tablesorter tbody td a.EnlaceMenu{
  background: inherit;
  padding: inherit;
}

.tablesorter   th, .tablesorter thead td {
  font-weight: bold;
  color: #8e1f30;
  border-collapse: collapse;
  padding: 4px;
  text-shadow: 0 1px 0 rgba(204, 204, 204, 0.7);
  background-color: #f9f4f5;
	border: 1px solid #c78f98;
	border-width: 0 1px 0 0;
  border-bottom-color: #fff;

}

.tablesorter   tbody td, .tablesorter tfoot th,.tablesorter  tfoot td {
  padding: 0.5rem;
  vertical-align: middle;
}

.tablesorter   .header,.tablesorter  .tablesorter-header {
  /* black (unsorted) double arrow */
  background-image: url(data:image/gif;base64,R0lGODlhFQAJAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAkAAAIXjI+AywnaYnhUMoqt3gZXPmVg94yJVQAAOw==);
  /* white (unsorted) double arrow */
  /* background-image: url(data:image/gif;base64,R0lGODlhFQAJAIAAAP///////yH5BAEAAAEALAAAAAAVAAkAAAIXjI+AywnaYnhUMoqt3gZXPmVg94yJVQAAOw==); */
  /* image */
  /* background-image: url(images/black-unsorted.gif); */
  background-repeat: no-repeat;
  background-position: center right;
  padding: 4px 18px 4px 4px;
  white-space: normal;
  cursor: pointer;
}
.tablesorter .headerSortUp,.tablesorter .tablesorter-headerSortUp,.tablesorter .tablesorter-headerAsc {
  background-color: #e9d2d6;
  background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAQAAAINjI8Bya2wnINUMopZAQA7);
}
.tablesorter   .headerSortDown,
.tablesorter .tablesorter-headerSortDown,
.tablesorter .tablesorter-headerDesc {
  background-color: #e9d2d6;
  background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAQAAAINjB+gC+jP2ptn0WskLQA7);
}

.tablesorter   thead .sorter-false {
  background-image: none;
  cursor: default;
  padding: 0.5rem;
}

.tablesorter   tfoot .tablesorter-headerSortUp,
.tablesorter   tfoot .tablesorter-headerSortDown,
.tablesorter   tfoot .tablesorter-headerAsc,
.tablesorter   tfoot .tablesorter-headerDesc {
  /* remove sort arrows from footer */
  background-image: none;
}

.tablesorter  td {
  color: #222324;
  background-color: #fff;
  padding: 0.5rem;
  vertical-align: middle;
}

.tablesorter  td  a{
  color: #000;
  font-weight: bold;
}

.tablesorter  tbody > tr.hover > td,
.tablesorter  tbody > tr:hover > td,
.tablesorter    tbody > tr:hover + tr.tablesorter-childRow > td,
.tablesorter    tbody > tr:hover + tr.tablesorter-childRow + tr.tablesorter-childRow > td,
.tablesorter    tbody > tr.even.hover > td,
.tablesorter   tbody > tr.even:hover > td,
.tablesorter    tbody > tr.even:hover + tr.tablesorter-childRow > td,
.tablesorter   tbody > tr.even:hover + tr.tablesorter-childRow + tr.tablesorter-childRow > td {
  background-color: #d9d9d9;
}
.tablesorter  tbody > tr.odd.hover > td,
.tablesorter  tbody > tr.odd:hover > td,
.tablesorter  tbody > tr.odd:hover + tr.tablesorter-childRow > td,
.tablesorter  tbody > tr.odd:hover + tr.tablesorter-childRow + tr.tablesorter-childRow > td {
  background-color: #bfbfbf;
}
.tablesorter  .tablesorter-processing {
  background-position: center center !important;
  background-repeat: no-repeat !important;
  /* background-image: url(images/loading.gif) !important; */
  background-image: url('data:image/gif;base64,R0lGODlhFAAUAKEAAO7u7lpaWgAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQBCgACACwAAAAAFAAUAAACQZRvoIDtu1wLQUAlqKTVxqwhXIiBnDg6Y4eyx4lKW5XK7wrLeK3vbq8J2W4T4e1nMhpWrZCTt3xKZ8kgsggdJmUFACH5BAEKAAIALAcAAAALAAcAAAIUVB6ii7jajgCAuUmtovxtXnmdUAAAIfkEAQoAAgAsDQACAAcACwAAAhRUIpmHy/3gUVQAQO9NetuugCFWAAAh+QQBCgACACwNAAcABwALAAACE5QVcZjKbVo6ck2AF95m5/6BSwEAIfkEAQoAAgAsBwANAAsABwAAAhOUH3kr6QaAcSrGWe1VQl+mMUIBACH5BAEKAAIALAIADQALAAcAAAIUlICmh7ncTAgqijkruDiv7n2YUAAAIfkEAQoAAgAsAAAHAAcACwAAAhQUIGmHyedehIoqFXLKfPOAaZdWAAAh+QQFCgACACwAAAIABwALAAACFJQFcJiXb15zLYRl7cla8OtlGGgUADs=')      !important
}
/* Zebra Widget - row alternating colors */
.tablesorter   tbody     tr.odd > td {
  background-color: #fdfbfb;
}
.tablesorter   tbody     tr.even > td {
  background-color: #fff;
}

.tablesorter   td.primary,.tablesorter tr.odd td.primary {
  background-color: #99b3e6;
}
.tablesorter  tr.even td.primary {
  background-color: #c2d1f0;
}
.tablesorter  td.secondary, .tablesorter  tr.odd td.secondary {
  background-color: #c2d1f0;
}
.tablesorter  tr.even td.secondary {
  background-color: #d6e0f5;
}
.tablesorter  td.tertiary, .tablesorter  tr.odd td.tertiary {
  background-color: #d6e0f5;
}
.tablesorter tr.even td.tertiary {
  background-color: #ebf0fa;
}
/* filter widget */
.tablesorter   .tablesorter-filter-row {
  background-color: #f9f4f5;

  /* optional disabled input styling */


}
.tablesorter   .tablesorter-filter-row td {
  background-color: #f9f4f5;
  line-height: normal;
  text-align: center; /* center the input */
  transition: line-height 0.1s ease;
}
.tablesorter   .tablesorter-filter-row .disabled {
  opacity: 0.5;
  filter: alpha(opacity=50);
  cursor: not-allowed;
}
.tablesorter   .tablesorter-filter-row

.tablesorter.hideme td {
  /*** *********************************************** ***/
  /*** change this padding to modify the thickness     ***/
  /*** of the closed filter row (height = padding x 2) ***/
  padding: 2px;
  /*** *********************************************** ***/
  margin: 0;
  line-height: 0;
  cursor: pointer;
}
.tablesorter.hideme * {
  height: 1px;
  min-height: 0;
  border: 0;
  padding: 0;
  margin: 0;
  /* don't use visibility: hidden because it disables tabbing */
  opacity: 0;
  filter: alpha(opacity=0);
}

/* filters */
.tablesorter  input.tablesorter-filter,
.tablesorter  select.tablesorter-filter {
  width: 98%;
  height: auto;
  margin: 0;
  padding: 4px;
  background-color: #fff;
  border: 1px solid #bbb;
  color: #333;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: height 0.1s ease;
  -moz-transition: height 0.1s ease;
  -o-transition: height 0.1s ease;
  transition: height 0.1s ease;
}

/* rows hidden by filtering (needed for child rows) */
.tablesorter  .filtered {
  display: none;
}

/* ajax error row */
.tablesorter  .tablesorter-errorRow td {
  text-align: center;
  cursor: pointer;
  background-color: #e6bf99;
}


.columnSelectorWrapper {
  position: relative;
  margin: 0;
  display: inline-block;
  float: right;
}

.columnSelectorWrapper .hidden {
  display: none;
}

.columnSelectorWrapper .columnSelectorButton {
  z-index: 4;
  position: relative;
  background: #c78f98;
  cursor: pointer;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  padding: 0.9rem 1rem 0.3rem 3rem;
  margin: 0;
}

.columnSelectorWrapper .columnSelectorButton:hover{
  background: #8e1f30;
}


.columnSelectorWrapper  #colSelect1:checked + label {
  background: #8e1f30;
  border-color: #555;
}

.columnSelectorWrapper #colSelect1:checked ~ #columnSelector {
  display: block;
}

.columnSelectorWrapper .columnSelector {
  display: none;
  width: auto;
  position: absolute;
  top: 23px;
  padding: 10px;
  background: #fff;
  border: 1px solid #8e1f30;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  z-index: 10;  
}

.columnSelectorWrapper .columnSelector  label {
  display: block;

}
.columnSelectorWrapper .columnSelector  label:nth-child(1) {
  border-bottom: #8e1f30 solid 1px;
  margin-bottom: 5px;
}

.columnSelectorWrapper .columnSelector input {
  margin-right: 5px;
}

.columnSelectorWrapper .columnSelector  .disabled {
  color: #ddd;
}

.table-responsive-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    margin-bottom: 1em; /* Space below the table */
    clear: both;
}

/* Ensure tables inside don't try to force width too much */
.table-responsive-wrapper .tablesorter {
/*    min-width: 600px; /* Example: set a min-width if tables have a reasonable minimum size */
}
.table-responsive-wrapper .tablesorter {
  margin-top: -1px;
}



/* Responsive Styles for Valores_X_Defecto Footer Form */

.site-footer {
  margin-top: auto; /* Pushes footer to the bottom if content is short */
  width: 100%;
}

.valores-defecto-form {
  border-top: 1px solid #000; /* Matches .ValoresDefecto table border */
  padding: 0.5em;
  background-color: #eee; /* Matches .ValoresDefecto table background */
}

.form-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.8em; /* Space between items */
  align-items: end; /* Aligns items at the bottom if they have different heights */
}

.form-option-item {
  position: relative;
}
.form-option-item.option-item-ancho2{
  grid-column: span 2;
}

.form-option-item label {
  display: block;
  text-align: center;
  font-weight: 300;
  font-size: 0.75em;
  background: #fffafa;
  padding: 0.2em 0;
  border: 1px solid #ccc;
  border-bottom: 0;
}

.form-option-item select,
.form-option-item input[type="text"] {
  width: 100%; /* Make form controls take full width of their container */
  padding: 0.5em;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box; /* Important for width: 100% */
  font-size: 0.95em;
}

/* Specific styling for the input fields from your original CSS if needed */
.form-option-item input[type="text"] {
  /* Original size was '6' for Serie, adjust padding or width as needed */
}


.company-info-footer {
  text-align: center;
  font-size: 0.9em;
  font-weight: bold;
  padding: 1em 0.5em;
  color: #333; /* Example color */
}


/* Minor adjustments to existing styles for better harmony if needed */
.site-footer #mensaje { /* Targeting the message div within the new footer */
  margin-bottom: 0.5em;
  text-align: center;
}

@media (min-width: 320px) {  .form-options-grid {  grid-template-columns: 1fr 1fr 1fr 1fr;  } }
@media (min-width: 480px) {  .form-options-grid {  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;  } }
@media (min-width: 600px) {  .form-options-grid {  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;  } }
@media (min-width: 760px) {  .form-options-grid {  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;  } }
