/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
  background-color: antiquewhite;
  font-family: 'Open Sans', sans-serif;
	font-size: 14px;
  color: #333;
  height: 100vh;
  min-height: 100vh;
}

h2 {
  margin: 10px 0
}

fieldset legend {
  color: #fff;
  font-weight: bold;
  background: #c97300;
  border-radius: 4px;
  padding: 2px 4px;
}

fieldset {
  border: 1px solid #c97300;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
  background-color: #fff;
}

label {
  display: block;
  margin-bottom: 5px;
}

input {
  border: 1px solid #CCC;
  border-radius: 3px;
  padding: 6px;
}

a,
a:hover {
  color: #00263B;
}

#mycanvas {
  cursor: auto;
  width: 100%;
}

.dialog-body {
  margin: 20px 0;
}

.dialog-body label {
  margin: 0;
}

#dlg_wait {
  visibility: hidden;
  position: absolute;
  left: 0px;
  top: 0px;
  width:100%;
  height:100%;
  z-index: 1000;
  background-image:url('../../images/background-trans.png');
}

#dlg_wait div {
  border-radius: 25px;
  border: 2px solid #8AC007;
  padding: 20px;
  width:400px;
  margin: 70px auto;
  background-color: #fff;
  text-align:center;
}

#dlg_pieza_cantos {
  display: none;
  position: absolute;
  left: 0px;
  top: 0px;
  width:100%;
  height:100%;
  text-align:center;
  z-index: 1000;
  background-image:url('../../images/background-trans.png');
}

#dlg_pieza_cantos > div {
  width:500px;
  margin: 100px auto;
  background-color: #f0f0f0;
  border: 2px solid #000;
  padding:20px;
}

#dlg_shapes {
  display: none;
  position: absolute;
  left: 0px;
  top: 0px;
  width:100%;
  height:100%;
  z-index: 1000;
  background-image:url('../../images/background-trans.png');
}

#dlg_shapes  div {
  width:900px;
  height:500px;
  margin: 100px auto;
  background-color: #f0f0f0;
  border:2px solid #000;
  padding:5px;
  line-height:30px;
}

#screen_planilla {
  text-align:center;
  z-index: 1000;
  background-color: antiquewhite;
  display: block;
  border: solid 1px gray;
  height: calc(100dvh - 315px);
  overflow: hidden;
}

#screen_animacion {
  position: absolute;
  left: 0px;
  top: 0px;
  width:100%;
  height:100%;
  text-align:center;
  z-index: 1000;
  background-color: antiquewhite;
  display: none;
  pointer-events: none;
}

#screen_animacion #navbar {
  height: 40px;
  gap: 10px;
}

#optimizando {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(255,255,255,.6);
  z-index: 100000;
}

#optimizando-long-poling {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(255,255,255,.6);
  z-index: 100000;
}

#dlg_agregar_placa {
  display:  none;
  position: absolute;
  left: 0px;
  top: 0px;
  width:100%;
  height:100%;
  z-index: 2000;
  background-image:url('../../images/background-trans.png');
}

#dlg_agregar_pieza {
  display: none;
  position: absolute;
  left: 0px;
  top: 0px;
  width:100%;
  height:100%;
  z-index: 2000;
  background-image:url('../../images/background-trans.png');
}

#dlg_cortar_sobrante {
  display: none;
  position: absolute;
  left: 0px;
  top: 0px;
  width:100%;
  height:100%;
  z-index: 2000;
  background-image:url('../../images/background-trans.png');
}

.dialog {
  background: rgb(240,240,240);
  overflow: hidden;
  border: solid 1px steelblue;
  -moz-border-radius: 6px 6px 4px 4px;
  -webkit-border-radius: 6px 6px 4px 4px;
  border-radius: 6px 6px 3px 3px;
}

.dialog-header {
  background-image: url(images/dlgheader.png);
  background-repeat: repeat-x;
  text-align: left;
  color: cornsilk;
  padding: 5px;
  padding-left: 10px;
  font-size: 1.02em;
  font-weight: bold;
  position: relative;
  -moz-border-radius: 4px 4px 0px 0px;
  -webkit-border-radius: 4px 4px 0px 0px;
  border-radius: 4px 4px 0px 0px;
  cursor:move;
}

.dialog-top {
 -moz-border-radius: 4px 4px 0px 0px;
 -webkit-border-radius: 4px 4px 0px 0px;
 border-radius: 4px 4px 0px 0px;
}

.dialog-bottom {
  -moz-border-radius: 0 0 3px 3px;
  -webkit-border-radius: 0 0 3px 3px;
  border-radius: 0 0 3px 3px;
}

.dialog-content {
  padding: 15px;
}

.dialog-statusbar, .dialog-toolbar {
  background: #eeeeee;
  background-image: url(images/DialogStrip.png);
  background-repeat: repeat-x;
  padding: 5px;
  padding-left: 10px;
  border-top: solid 1px silver;
  border-bottom: solid 1px silver;
  font-size: 0.8em;
}

.dialog-statusbar {
  -moz-border-radius: 0 0 3px 3px;
  -webkit-border-radius: 0 0 3px 3px;
  border-radius: 0 0 3px 3px;
  padding-right: 10px;
}

.closebox {
  position: absolute;
  right: 2px;
  top: 2px;
  background-image: url(images/close.png);
  background-repeat: no-repeat;
  width: 49px;
  height: 20px;
  cursor: pointer;
  opacity: 0.60;
  filter: alpha(opacity="80");
}

.closebox:hover {
  opacity: 1;
  filter: alpha(opacity="100");
}

#dlg_opciones_impresion {
  display: none;
  position: absolute;
  left: 0px;
  top: 0px;
  width:100%;
  height:100%;
  z-index: 2000;
  background-image:url('../../images/background-trans.png');
}

#dlg_opciones_etiquetas {
  display: none;
  position: absolute;
  left: 0px;
  top: 0px;
  width:100%;
  height:100%;
  z-index: 2000;
  background-image:url('../../images/background-trans.png');
}

/* Navbar Styles */
.navbar {
  background-color: rgb(240,240,240);
  border-bottom: 1px solid rgb(197, 180, 158);
  color: black;
  height: 45px;
}

.horizontal-menu ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.horizontal-menu li {
  float: left;
}

.horizontal-menu li a {
  display: block;
  color: #333;
  text-align: center;
  padding: 6px 16px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
}

.horizontal-menu li a:hover,
.horizontal-menu li a.active {
  background-color: rgb(221, 170, 102);
  color: #FFF;
}

.horizontal-menu.cuttin-plan-menu input{
  background: none;
  border: 1px solid #DDD;
  padding: 0;
  margin: 2px 6px;
  max-height: 32px;
}

.horizontal-menu.cuttin-plan-menu #tipoCortes {
  padding: 6px;
  margin: 4px;
}

.horizontal-menu.cuttin-plan-menu #cerrar_planilla {
  margin: 2px 4px 4px 6px;
  padding: 9px;
}

.horizontal-menu.cuttin-plan-menu #scoreboard,
.horizontal-menu.cuttin-plan-menu #scoreboard2 {
  color: #333;
  padding: 0 6px;
}

/* Container for sidebar and content */
.container {
  display: flex;
  flex-wrap: nowrap;
  height: 100vh; /* Adjust height taking navbar height into account */
}

/* Sidebar Styles */
.sidebar-left,
.sidebar-right {
  flex: 0 0 auto; /* Do not grow or shrink */
}

.sidebar-left {
  width: 240px; /* Fixed width for the left sidebar */
  background-color: #333;
  flex-shrink: 0;
  transition: all 0.3s ease-in-out;
  border-right: 1px solid #000;
}

.sidebar-right {
  width: 400px;
  max-height: 100vh;
  flex-grow: 1;
  background-color: antiquewhite;
  overflow-y: auto;
  border-left: 1px solid #00263B;
  flex-shrink: 0;
  transition: all 0.3s ease-in-out;
}

.sidebar-hidden {
  width: 0;
  overflow: hidden;
  flex-grow: unset;
  border: 0;
}

/* Vertical Menu */

.sidebar-left ul {
  list-style-type: none;
  margin: 0;
  padding: 0 0 20px 0;
}

.sidebar-left ul li a {
  display: block;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 18px;
  border-left: 6px solid #333;
}

.sidebar-left ul li a:hover,
.sidebar-left ul li a.active {
  border-left: 6px solid #9d6318;
}

/* Main Content Styles */
.main-content {
  flex-grow: 1;
  background-color: #fff;
  overflow: hidden;
  max-height: 100vh;
  position: relative;
}

.main-content > header {
  z-index: 1001;
  background: #00263B;
  height: 82px;
}

.piece-list-container {
  width: 100%;
  top: 135px;
  left: 0px;
  color: #333;
  padding: 0px;
}


.table-container {
  width: 50%;
  height: 360px;
  overflow-x:hidden;
  overflow-y: scroll;
  border: 1px solid gray;
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
}

.styled-table th, .styled-table td {
  border: 1px solid #CCC;
  padding: 1px;
  text-align: left;
}

.styled-table th {
  background-color: #a0a0a0;
  color: white;
  /* Hace que el encabezado sea fijo */
  position: sticky;
  top: -1px;
  z-index: 500;
}


.styled-table input[type="text"] {
  width: 100%;
}

.styled-table input[type="text"], .styled-table input[type="checkbox"], .styled-table label {
  padding: 3px;
  margin: 0;
  border: none;
  color: #333;
  height: 100%;
}

.styled-table input[type="text"]:disabled {
  background-color: #555;
}

.styled-table canvas {
  display: block;
  margin: 0 auto;
  border: 1px solid;
  background-color: #fff;
}

.tab {
  overflow: hidden;
  border-bottom: 1px solid #00263B;
  margin-bottom: 10px;
  color: #00263B;
}

.tab button {
  background-color: #e8f3f8;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 4px 16px;
  transition: 0.3s;
  font-size: 14px;
  border-top: 1px solid gray;
  border-left: 1px solid gray;
  border-right: 1px solid gray;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  margin-right: 15px;
}

.tab button:hover {
  background-color: gray;
  }


.tab .tablink:hover {
  background-color: #00263B;
  color: #FFF;
}

.tab button.active {
  background-color: #00263B;
  color: #FFF;
}


.tab .tablink.active {
  background-color: #00263B;
  color: #FFF;
}

#tabs.tab,
#newTabContainer.tab {
  background-color: #DDD;
  border-bottom: 1px solid #DDD;
  margin-bottom: 0;
}

#tabs.tab .tablink:hover,
#newTabContainer.tab .tablink:hover {
  background-color: #999999;
}

/* Create an active/current tablink class */
#tabs.tab .tablink.active,
#newTabContainer.tab .tablink.active {
  background-color:#999999;
}

#newTabContainer.tab .tablink:hover,
#tabs.tab .tablink:hover {
  color: #FFF;
}

#newTabContainer.tab .tablink.active button,
#tabs.tab .tablink.active button {
  color: #FFF;
}

/* Style the tab content */
.tabcontent {
  display: none;
  padding: 6px 12px;
  border-top: none;
}

.tabcontent.active {
  display: block;
}

.material-data {
  top: 2px;
  left: 10px;
  padding: 15px;
}

.material-data h2 {
  margin-bottom: 10px;
}

.material-data .row-container {
  border: 1px solid #CCC;
  padding: 4px;
  border-radius: 4px;
}

.form-row {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  height: 30px;
}

.form-row label {
  margin-right: 5px;
}

.long-input {
  width: 200px;
}

.short-input {
  width: 45px;
  margin-right: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  margin-right: 10px;
}


.form-inputs {
  display: flex; /* Asegura que los elementos internos se alineen en fila */
  align-items: center; /* Centra los elementos verticalmente */
  flex-wrap: wrap; /* Permite que los elementos se pasen a la siguiente línea si no hay espacio */
  margin: 2px;
}


.form-inputs > label {
  white-space: nowrap; /* Evita que el texto del label se pase a la siguiente línea */
}


.alternative-measures {
  height: auto;
  padding: 2px;
}

.alternative-measures .row-container {
  display: flex;
  flex-wrap: wrap;
}

.alternative-measures .form-row {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.alternative-measures .form-inputs {
  margin-right: 10px;
}

.alternative-measures .form-inputs label {
  display: block;
}

.alternative-measures .short-input {
  width: 40px;
  margin-right: 10px;
}

.alternative-measures .medium-input {
  width: 70px;
  margin-right: 10px;
}

/* BUTTONS */

.btn {
  background-color: #00263B;
  color: white;
  border: none;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  border-radius: 0.25rem;
  transition: background-color 0.2s;
}

/* Small Button */
.btn-small {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Medium Button (Default size) */
.btn-medium {
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
}

/* Large Button */
.btn-large {
  padding: 0.5rem 1rem;
  font-size: 1.25rem;
  line-height: 1.5;
}

.btn:hover {
  background-color: #0056b3;
}

.btn.btn-red {
  background-color: #b33900;
}

.btn.btn-red:hover {
  background-color: #903105;
}

.btn.btn-grey {
  background-color: #d1cfcf;
  color: #333;
}

.btn.btn-grey:hover {
  background-color: #a7a7a7;
  color: #333;
}

.btn-grey.btn-border {
  border: 1px solid #a7a7a7;
}

.btn-outline-white {
  background: none;
  border: 2px solid #fff;
  color: #fff;
}

.btn-outline-white:hover {
  color: #333;
  background: #FFF;
}

.btn-toggle-sidebar {
  color: #333;
  border: 1px solid #333;
  background: none;
  border-radius: 6px;
  font-size: 14px;
}

.label-configuration {
  margin: auto;
  padding: 2px;
  color: #333;
}

.label-configuration h3,
.optimizer-options h3,
.alternative-measures h3,
.project-data h3 {
  margin: 0 0 10px 0;
}

.input-group,
.label-configuration fieldset {
  margin-bottom: 10px;
}

.input-group label,
.label-configuration label {
  display: block;
  margin-bottom: 5px;
}

.input-small {
  width: 50px;
}

.label-configuration fieldset {
  padding: 10px;
  border-radius: 5px;
}

.optimizer-options .select-input{
  width: 100%;
  padding: 6px;
}

/* FLEX CLASSES */
.flex {
  display: flex !important;
}

/* Flex Directions */
.flex-row {
  flex-direction: row;
}

.flex-row-reverse {
  flex-direction: row-reverse;
}

.flex-column {
  flex-direction: column;
}

.flex-column-reverse {
  flex-direction: column-reverse;
}

/* Justify Content */
.flex-justify-start {
  justify-content: flex-start;
}

.flex-justify-end {
  justify-content: flex-end;
}

.flex-justify-center {
  justify-content: center;
}

.flex-justify-between {
  justify-content: space-between;
}

.flex-justify-around {
  justify-content: space-around;
}

.flex-justify-evenly {
  justify-content: space-evenly;
}

/* Align Items */
.flex-align-start {
  align-items: flex-start;
}

.flex-align-end {
  align-items: flex-end;
}

.flex-align-center {
  align-items: center;
}

.flex-align-baseline {
  align-items: baseline;
}

.flex-align-stretch {
  align-items: stretch;
}

/* Flex Wrap */
.flex-wrap {
  flex-wrap: wrap;
}

.flex-nowrap {
  flex-wrap: nowrap;
}

.flex-wrap-reverse {
  flex-wrap: wrap-reverse;
}

/* Flex Grow, Shrink, and Basis */
.flex-1 {
  flex: 1;
}

.flex-auto {
  flex: auto;
}

.flex-none {
  flex: none;
}

/* Additional utilities for flex children */
.flex-grow {
  flex-grow: 1;
}

.flex-shrink {
  flex-shrink: 1;
}

.flex-basis-auto {
  flex-basis: auto;
}

.flex-gap-10 {
  gap: 10px;
}

/* Element Sizing */

.w-100 {
  width: 100%;
}

/* Utility Classes */

.text-center {
  text-align: center !important;
}

.text-left {
  text-align: left !important;
}

.text-right {
  text-align: right !important;
}

/* Margin Utilities */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 5px; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 20px; }

.mr-0 { margin-right: 0; }
.mr-1 { margin-right: 5px; }
.mr-2 { margin-right: 10px; }
.mr-3 { margin-right: 15px; }
.mr-4 { margin-right: 20px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 5px; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 15px; }
.mb-4 { margin-bottom: 20px; }

.ml-0 { margin-left: 0; }
.ml-1 { margin-left: 5px; }
.ml-2 { margin-left: 10px; }
.ml-3 { margin-bottom: 15px; }
.ml-4 { margin-bottom: 20px; }

/* Padding Utilities */
.pt-0 { padding-top: 0; }
.pt-1 { padding-top: 5px; }
.pt-2 { padding-top: 10px; }
.pt-3 { padding-top: 15px; }
.pt-4 { padding-top: 20px; }

.pr-0 { padding-right: 0; }
.pr-1 { padding-right: 5px; }
.pr-2 { padding-right: 10px; }
.pr-3 { padding-right: 15px; }
.pr-4 { padding-right: 20px; }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: 5px; }
.pb-2 { padding-bottom: 10px; }
.pb-3 { padding-bottom: 15px; }
.pb-4 { padding-bottom: 20px; }

.pl-0 { padding-left: 0; }
.pl-1 { padding-left: 5px; }
.pl-2 { padding-left: 10px; }
.pl-3 { padding-left: 15px; }
.pl-4 { padding-left: 20px; }

/* Color Utilities */

.bg-orange {
  background-color: #c97300;
}

.bg-light-grey {
  background-color: #DDD;;
}

.color-white {
  color: #FFFFFF !important;
}

.color-dark {
  color: #333 !important;
}

.color-danger {
  color: #d32b2b !important;
}

/* Border utilities */

.border-radius-1 {
  border-radius: 1px;
}

.border-radius-2 {
  border-radius: 2px;
}

.border-radius-3 {
  border-radius: 3px;
}

.border-radius-4 {
  border-radius: 4px;
}

.border-radius-5 {
  border-radius: 5px;
}

.border-radius-6 {
  border-radius: 6px;
}

/* Slider Switch */

.switch {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:checked + .slider:before {
  transform: translateX(10px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Visibility */

.hidden {
  visibility: hidden;
}

.d-none {
  display: none !important;
}

.overflow-hidden {
  overflow: hidden;
}

/* Edgeband Squares */

.edge-band-square {
  width: 20px;
  height: 20px;
  border: 1px solid #333;
}

.edge-band-white {
  background-color: white;
}

.edge-band-brown {
  background-color: brown;
}

.edge-band-red {
  background-color: red;
}

.edge-band-green {
  background-color: green;
}

.edge-band-blue {
  background-color: blue;
}

.edge-band-yellow {
  background-color: yellow;
}

.edge-band-pink {
  background-color: pink;
}

.edge-band-black {
  background-color: black;
}

/* Loading Screen */
.initial_block_screen {
  display: flex;
  display: -webkit-flex;
  position: fixed;
  z-index: 99;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color:antiquewhite;
  text-align: center;
  padding-top: 40vh;
  flex-direction: column;
  align-items: center;
}

.initial_block_screen .fa-spin {
  font-size: 2rem;
}

.loading-screen {
  position: absolute;
  width: 600px;
  top: 50%;
  left: 50%;
  margin-left: -300px;
  margin-top: -100px;
  border-radius: 20px;
  border: none;
  background-color: rgb(44, 44, 44);
  text-align: left;
  padding: 30px;
}

.loading-content {
  gap: 10px;
}

.loading-screen h1,
.loading-screen #opti_scoreboard {
  color: white;
}

.progress-bar-container {
  width: 500px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid #999999;
  position: relative;
  background-size: contain;
}

#loadspan {
  font-size: 20px;
  color: #FFF;
  text-align: center;
  position: absolute;
  left: 48%;
  bottom: -3px;
}

.progress-bar {
  width: 0%;
  height: 22px;
  background: #c97300;
  border-radius: 4px;
  background-size: contain;
}

#canvas_animacion {
  width: 100%;
  height: 100vh;
}

.login-container,
.register-container {
  width: 320px;
  margin: 100px auto;
  border: 1px solid #c97300;
  padding: 20px;
  border-radius: 6px;
  background: #FEFEFE;
}

.register-container input,
.login-container input,
.register-container button,
.login-container button {
  width: 100%;
}

.btn.btn-text {
  border: none;
  background: none;
  color: inherit;
}

#empty-materials {
  border: 1px dashed #CCC;
  padding: 20px;
  border-radius: 6px;
}

.user-icon {
  border-radius: 300px;
  border: 1px solid #00263B;
  background-color: #00263B;
  padding: 18px 20px;
  font-size: 2rem;
  color: #fff !important;
}

.company-logo {
  padding: 4px 4px;
  margin-bottom: 24px;
}

#materials,
#material-heading {
  padding: 15px;
}

#new_material_type {
  padding: 4px;
}

.material_data {
  border: 1px solid #CCC;
  border-radius: 6px;
  padding: 6px;
}

#mat_codigo {
  width: calc(100% - 90px);
  text-overflow: ellipsis;
  overflow: hidden;
  text-wrap: nowrap;
}

.material-codigo {
  display: block; /* Hace que el código y descripción se muestre en su propia línea */
  font-weight: bold; /* Hace el texto más grueso */
  width: calc(100% - 160px);
}

.material-medida {
  background-color: #f0f0f0; /* Color de fondo claro */
  border: 1px solid #ccc; /* Borde gris */
  border-radius: 4px; /* Bordes redondeados */
  display: inline-block; /* Permite que el tamaño se ajuste al contenido */
  padding: 2px 4px; /* Espaciado interno */
  margin: 2px; /* Espaciado externo */
  width: 90px;
}

.material-espesor {
  float: right; /* Alinea el espesor a la derecha */
  background-color: #f9f9f9; /* Otro color de fondo */
  padding: 2px 4px; /* Espaciado interno */
  border-radius: 4px; /* Bordes redondeados */
  width: 70px;
}

.material-line {
  margin-top: -9px;
  display: flex; /* Activa Flexbox */
  align-items: center; /* Alinea verticalmente todos los elementos al centro */
  justify-content: space-between; /* Distribuye el espacio disponible */
}

.material-codigo, .material-medida, .material-espesor {
  margin-right: 10px; /* Añade un pequeño margen derecho a cada elemento para separación */
}

.material-medida {
  font-weight: bold; /* Hace que el texto esté en negrita */
  border-bottom: 3px solid black; /* Añade una línea negra debajo del texto */
  padding-bottom: 1px; /* Añade un poco de espacio debajo del texto para la línea */
}

.material-btn {
  margin-left: auto; /* Empuja el botón hacia la derecha */
}


.main-sticky {
  position: -webkit-sticky; /* Safari */
  position: sticky;
  bottom: 0;
  padding: 10px 0;
  border-top: 1px solid #000;
  background-color: #333;
}

#optimizar {
  border: 2px solid;
}

/* Responsive Design */
@media (max-width: 700px) {
  .sidebar-left,
  .sidebar-right {
    width: 100%;
    order: 3;
  }

  .main-content {
    flex: 0 0 100%;
    order: 2;
  }

  .navbar {
    order: 1;
  }

  .container {
    flex-direction: column;
    transition: all 0.3s ease-in-out;
  }
}

@media (max-width: 700px) {
  .material-data {
    width: 100%;
    height: auto;
    position: static;
    padding: 10px;
  }

  .form-row {
    flex-direction: column;
  }

  .long-input, .short-input {
    width: 100%;
    margin-bottom: 5px;
  }

  .form-row label {
    width: 100%;
  }
}



.toolbar-left {
  position: fixed;
  top: 45px;
  left: 0;
  width: 50px;
  height: 100%;
  background-color: #d1cfcf;
  color: #fff;
  z-index: 500;
}

.toolbar-left div {
  padding: 10px; /* Espaciado interno para los íconos */
}


.banner-container {
  position: fixed;
  bottom: 0;
  overflow: hidden;
  background-color: darkgray;
  padding: 10px;
  height: 100px;
  width: 100%;
      z-index: 20;
}

.banner-container img {
  width: auto; /* Mantiene la proporción de la imagen */
  height: 100%; /* Ajusta la imagen a la altura del contenedor */
}

#tables {
  height: calc(100dvh - 315px);
  overflow-y: scroll;
  border: 1px solid;
}

#maquina_sel {
  color: #FFF;
}

/* Styling the input to look like a dropdown */
input[list] {
  box-sizing: border-box;
  cursor: pointer;
}

/* Optionally, add a dropdown arrow icon */
input[list]::after {
  content: "▼";
  position: absolute;
  right: 0px;
  top: 0px;
  pointer-events: none;
}

/* Ensure the input has enough right padding to display the arrow */
input[list] {
  padding-right: 30px;
}

/* Remove default arrow for datalist on some browsers */
input[list]::-webkit-calendar-picker-indicator {
  display: none;
}

input[list]::placeholder {
  color: #aaa;
}

#project-actions,
#project-new {
  border-right: 1px solid #fc8c4e;
  padding-right: 10px;
  height: 100%;
}

.fa-trash {
  cursor: pointer;
}

.load-more-row {
  background-color: #f8f9fa;
}

.load-more-row td {
  padding: 15px !important;
}

.load-more-row button {
  padding: 8px 16px;
  background-color: #e8f3f8;
  border: 1px solid #00263B;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.load-more-row button:hover {
  background-color: #00263B;
  color: #FFF;
}

@media (max-width: 950px) {
      /* Reducir el tamaño de los botones */
      .toolbar-btn {
        transform: scale(0.9)!important;
        margin-left: -3px;
      }
      .btn-mas {
        transform: scale(1)!important;
        
      }
    
      /* Ajustar tamaños de texto */
      .toolbar-btn-label {
        font-size: 0.8rem!important;
      }
    }
 
    @media (max-width: 700px) {
    .navbar > * {
        transform: scale(0.9);
        transform-origin: center left;
    }
}

.toolbar-btn1 {
  color: white;
  transition: all 0.3s ease;
}

.toolbar-btn1:hover {
  filter: brightness(1.2);
}

@media (max-width: 1500px) {
    #maquina_sel {
    font-size: 12px !important; 
 }                       
}

/* Clase específica para los botones "Seleccionar Sucursal" */
.select-sucursal-btn {
    width: calc(100% - 120px);
    height: 30px;
    cursor: pointer;
    font-weight: bold;
    margin-left: 10px;
}

/* Estilos para pantallas pequeñas, como el iPad Mini */
 @media (max-width: 1090px) {
    .select-sucursal-btn {
      font-size: 1.1rem;  /* Reducir el tamaño de la fuente solo en los botones */
    }
}
/* Estilos para pantallas pequeñas, como el iPad Mini */
 @media (max-width: 974px) {
    .select-sucursal-btn {
       font-size: 1rem;  /* Reducir el tamaño de la fuente solo en los botones */
    }
 }

  @media (max-width: 1500px) {
              
    #mat_tapa0, #mat_tapa1, #mat_tapa2, #mat_tapa0-btn, #mat_tapa1-btn, #mat_tapa2-btn,
     label[for="mat_tapa0"], label[for="mat_tapa1"], label[for="mat_tapa2"] {
      display: none !important;
     }
  }

.unidad-badge {
  width: 38px;
  height: 38px;
  flex-shrink: 0;           /* evita que se achique */
  flex-grow: 0;             /* evita que se estire */
  border-radius: 10px;
  background: #1f2937;      /* gris oscuro */
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 13px;
  color: #fff;
  transition: background 0.2s;
  box-sizing: border-box;
}