header {
  position: fixed; /* Fijo en la pantalla */
  background-color: #fff;
  border-bottom: 1px solid #001d3d32;
  left: 0;
  top: 0;
  width:100%;
  padding: 10px 3%; /* Añadido padding vertical */
  display: flex; /* Activa Flexbox */
  justify-content: space-between; /* Separa los elementos a los extremos */
  align-items: center; /* Centra verticalmente los elementos */
  z-index: 1000; /* Para que esté por encima de otros elementos */
  box-sizing: border-box; /* ¡Importante! Evita que el padding afecte el ancho */
}

header .button-container {
  display: flex;
  background-color: #001d3d;
  width: 250px;
  height: 40px;
  align-items: center;
  justify-content: space-around;
  border-radius: 10px;
}

header .button {
  outline: 0 !important;
  border: 0 !important;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all ease-in-out 0.3s;
  cursor: pointer;
}

header .button:hover {
  transform: translateY(-3px);
}

header .icon {
  font-size: 20px;
}

body {
  background-color: #EBF4FF;
  margin: 0;
  padding: 0;
}

.bodyDashboard{
  margin-top: 3%;
}

.bodyDashboard h1, .bodyDashboard h2{
  font-family: Anton;
  text-transform: uppercase;
  color: #001D3D;
}

/* aside */

.bodyDashboard a{
  font-family: Arial, Helvetica, sans-serif;
  color: #001D3D;
}

.sidebarDashboard {
  padding: 1%;
  width: 15%;
  background-color: #fff;
  position: fixed;
  height: 100%;
  border-right: 1px solid #001d3d13;
  padding-left: 1%;
  left: 0; /* Asegúrate que esté pegado a la izquierda */
  box-sizing: border-box; /* Esto asegura que el padding no aumente el ancho total */

}

.sidebarDashboard, 
.sidebarDashboard h2, 
.sidebarDashboard ul {
  font-family: Arial, Helvetica, sans-serif;
  color: #001D3D;
  list-style: none;
  padding-left: 0; /* Elimina el padding izquierdo por defecto */
}

/* Espaciado entre elementos del menú */
.sidebarDashboard ul li {
  margin-bottom: 1%; /* Espacio vertical entre items */
}

.sidebarDashboard ul li a {
  padding: 10px 15px; /* Espacio interno en cada item */
  display: block;
  text-decoration: none;
  color: #001D3D;
  border-radius: 4px; /* Opcional: bordes redondeados */
  transition: background 0.3s ease; /* Efecto hover suave */
}

.sidebarDashboard ul li a:hover {
  background-color: #EBF4FF; /* Color de fondo al pasar el mouse */
}

.sidebarDashboard a {
  font-family: Arial, Helvetica, sans-serif;
  text-decoration: none;
  color: #001D3D;
}

.logolayout{
  height:5vh;
}

.mainSidebar {
  height: 70vh;
}

.footerSidebar{
  height:25vh;
}

/* main */

.contentDashboard {
  margin-left: 20%;
  padding-left: 5%;
  padding-right: 5%;
  padding-top: 0.5%;
  padding-bottom: 5%;
  height: 100%;
}

.headerDash{
  height: 2%;
}

.contentDash{
  height: 98%;
}

.contentDash a {
  color: #001D3D; 
  text-decoration: none; 
  padding: 4%;
  font-size: 12px;
  border-style: solid;
  border-width: 1px;
  border-radius: 30px;
  border-color: #001D3D;
  font-family: Arial, Helvetica, sans-serif;
}

.contentDash a:hover {
  color: #fff;
  background-color: #001D3D;
}

/* Encabezado general con la información del cliente y documento */
.headerInfo {
  display: flex;
  justify-content: space-between;
  background-color: #fff;
  margin: 1%;
  padding: 3%;
  margin-right: 4%;
  border-radius: 10px;
  border: 1px solid #001d3d22;
  font-family: Arial, Helvetica, sans-serif;
}

/* Sección izquierda: Datos del cliente */
.leftSection {
  width: 30%;
  padding-right: 20px;
}

/* Estilo para el h3 que será usado como título */
.leftSection h3 {
  font-family: Anton;
  text-transform: uppercase;
  color: #001D3D;
  font-size: 14px;
  margin-bottom: 1px;
}

.leftSection select{
  width: 100%;
  padding: 6px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  border: 1px solid #001d3d42;
  border-radius: 5px;
  margin-top: 2%;
  margin-bottom: 2px;
}

.leftSection p {
  margin-top: 10px;
  font-family: Arial, Helvetica, sans-serif;
  color: #001D3D;
}

/* Sección derecha: Documento (ticket/factura) */
.rightSection {
  width: 30%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rightSection h2{
  font-family: Anton;
  text-transform: uppercase;
  color: #001D3D;
  font-size: 40px;
  margin-bottom: 1px;
}

.docHeader {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rightSection select,
.rightSection label,
.rightSection input {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}


.mainDash {
  color: #001D3D;   
  text-align: right;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #fff;
  padding: 3%;
  height: 70%;
  margin: 1%;
  margin-right: 4%;
  border-radius: 10px;
  border: 1px solid #001d3d22;
}

.mainDash button{
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #001D3D;
  border-radius: 30px;
  padding: 8px;
  padding-left: 3%;
  padding-right: 3%;
  margin-top: 8px;
  margin-bottom: 8px;
}

.dashboardContent {
  display: flex;
  justify-content: space-between;
  gap: 2%;
}

.productsTableContainer {
  width: 65%;
}

.totalsSection {
  width: 33%;
  font-family: Helvetica, sans-serif;
  font-size: 12px;
}

.totalsTable {
  width: 100%;
  border-collapse: collapse;
}

.totalsTable td {
  padding: 4px;
  text-align: left;
}

.totalsValue {
  text-align: right;
}

.mainDash table {
  width: 100%;
  font-family: Arial, Helvetica, sans-serif;
  overflow: hidden;
}

caption {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: 50px;
  padding: 10px;
}

thead tr {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #001D3D;
  color: white;
}

th{
  font-family: Arial, Helvetica, sans-serif;
  padding: 8px;
  font-size: 12px;
  text-align: center; 
}

td {
  font-family: Arial, Helvetica, sans-serif;
  padding: 8px;
  text-align: center;
  border-bottom: 1px solid #001d3d30;
}

#productTableBody td {
  font-family: 'Helvetica', sans-serif;
  font-size: 12px;
  padding: 13px;
  text-align: center; /* Alinea por defecto todas las celdas al centro */
}

#productTableBody td:nth-child(3) { /* Alinea la columna de "Descripción" a la izquierda */
  text-align: left !important;
}
/* Sección de totales debajo de la tabla */
.totalsSection {
  width: 45%;
  margin-left: auto;
  margin-top: 20px;
}

/* Estilo general para la tabla de totales */
.totalsTable {
  width: 100%;
  border-collapse: collapse;
  font-family: Helvetica, sans-serif;
  font-size: 12px;
  background-color: #f8f9fa;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1);
}

/* Celdas */
.totalsTable td {
  padding: 6px 10px;
  text-align: right;
  color: #001D3D;
}

/* Estilo del valor numérico (columna derecha) */
.totalsValue {
  font-weight: bold;
}

.footerContentDash {
  padding-left: 1%;
  padding-right: 5%;
  padding-top: 0.5%;
  padding-bottom: 5%;
  height: 100%;
}

.footerContentDash button {
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #001D3D;
  border-radius: 30px;
  padding: 8px;
  padding-left: 3%;
  padding-right: 3%;
}

.footerContentDash button:hover {
  color: #001D3D;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #fff;
  border-radius: 30px;
  border-style: solid;
  border-width: 1px;
  border-color: #001D3D;
  padding: 8px;
  padding-left: 3%;
  padding-right: 3%;
}

#clientPhone, #clientBrand {
  display: block;
  margin-bottom: 8px; /* Espacio entre los elementos */
}
