Files
safekat/httpdocs/themes/vuexy/css/pdf.factura.css
2024-08-16 15:44:45 +02:00

313 lines
6.6 KiB
CSS

/* Facturas Safekat */
* {
box-sizing: border-box;
}
body {
font-family: 'Open Sans', sans-serif;
font-size: 14px;
line-height: 1.42857143;
color: #333;
background-color: #fff;
}
table {
border-spacing: 0;
background-color: transparent;
border-collapse: collapse;
}
th {
text-align: left;
}
td {
padding: 0;
}
body table.logo {
padding: 0;
width: 100%;
color: black;
}
body table.logo td.logo img {
width: 100%;
vertical-align: middle;
}
/* Estilos intro-factura */
body table.intro-factura {
width: 100%;
font-size: 12px;
margin-top: -22px;
}
body table.intro-factura th {
background: black;
color: white;
padding: 7px;
}
body table.intro-factura th.intro_num_factura {
width: 20%;
padding-left: 15px;
}
body table.intro-factura th.num_factura {
width: 47%;
font-weight: lighter;
text-align: left;
}
body table.intro-factura th.intro_fecha {
width: 17%;
text-align: right;
}
body table.intro-factura th.fecha {
width: 15%;
text-align: right;
font-weight: lighter;
}
body table.intro-factura td {
background: #e3e4e7;
padding-left: 15px;
color: black;
font-size: 12px;
}
body table.intro-factura td.intro_direccion {
padding-top: 10px;
padding-right: 8px;
font-weight: bold;
}
body table.intro-factura td.direccion {
padding-right: 8px;
}
/* Estilos cuerpo factura */
div.cuerpo-factura {
margin-bottom: 25px;
}
table.factura-data-superior {
width: 100%;
}
table.factura-data-superior th {
padding: 5px !important;
background: #0C2C84;
color: white;
padding-left: 10px;
font-weight: lighter;
font-size: 12px;
border-right: 1px solid white;
}
table.factura-data-superior td {
border: 1px dotted #4e4e4e;
border-top: none;
padding: 5px !important;
text-align: right;
font-size: 11px;
}
table.factura-data-superior td.tipo_trabajo {
border-left: none;
text-align: left;
}
table.factura-data-superior td.subtotal {
border-right: none;
}
/* Estilos para el sello de Solunion */
.sello-solunion {
float: left; /* Hace que el sello flote a la izquierda */
margin-left: 100px; /* Espacio entre el sello y la tabla */
}
.sello-solunion img {
display: block; /* Asegura que la imagen se comporte como un bloque dentro del div */
width: 80px; /* Ajusta el tamaño de la imagen según sea necesario */
height: auto;
}
/* Contenedor para manejar el flujo de contenido */
.container {
overflow: hidden; /* Asegura que el contenedor se ajuste al contenido flotante */
}
/* Estilos para la tabla de precios inferior */
table.factura-precio-inferior {
width: 60%; /* Ajusta el ancho de la tabla al 100% del contenedor */
text-align: right;
border-collapse: collapse; /* Asegura que los bordes se colapsen para evitar espacio extra */
margin-bottom: 0; /* Elimina el margen inferior para evitar espacio extra */
}
table.factura-precio-inferior th, table.factura-precio-inferior td {
padding: 5px;
border-bottom: 1px dotted #4e4e4e;
}
table.factura-precio-inferior th.intro_base,
table.factura-precio-inferior th.intro_iva,
table.factura-precio-inferior th.intro_total {
background: #0C2C84;
color: white;
font-size: 12px;
}
table.factura-precio-inferior td.base,
table.factura-precio-inferior td.iva,
table.factura-precio-inferior td.value_iva,
table.factura-precio-inferior td.total {
font-size: 11px;
}
/* Estilos para la tabla de totales */
table.totales {
width: 28%; /* Ajusta el ancho de la tabla según sea necesario */
background: #0C2C84;
color: white;
font-size: 12px;
border-collapse: collapse; /* Asegura que los bordes se colapsen para evitar espacio extra */
margin-top: 0; /* Elimina el margen superior para evitar espacio extra */
margin-bottom: 0; /* Elimina el margen inferior para evitar espacio extra */
}
table.totales td.intro_total_factura {
width: 20%;
text-align: right;
padding: 5px;
}
table.totales td.total_factura {
width: 15%;
text-align: right;
padding-right: 10px;
}
/* Estilos factura-data-inferior-iva */
table.factura-data-inferior-iva {
width: 100%;
margin-top: 8px;
}
table.factura-data-inferior-iva th {
padding: 5px !important;
background: rgb(233, 240, 255);
font-weight: lighter;
font-size: 12px;
padding-left: 7px;
color: black;
border-right: 1px solid white;
}
table.factura-data-inferior-iva th.intro_vencimiento,
table.factura-data-inferior-iva th.inferior_intro_fecha {
width: 15%;
}
table.factura-data-inferior-iva th.intro_forma_pago {
width: 20%;
}
table.factura-data-inferior-iva th.intro_bic {
width: 50%;
}
table.factura-data-inferior-iva td {
border-bottom: 1px dotted #4e4e4e;
border-top: none;
padding-left: 8px;
padding: 3px !important;
font-size: 11px;
}
table.factura-data-inferior-iva td.vencimiento,
table.factura-data-inferior-iva td.inferior_fecha,
table.factura-data-inferior-iva td.forma_pago {
border-right: 1px dotted black;
}
/* Estilos factura-precio-inferior */
table.factura-data-inferior {
width: 100%;
background: #e3e4e7;
font-size: 12px;
margin-top: 5px;
}
table.factura-data-inferior th {
padding-top: 2px;
font-weight: lighter;
}
table.factura-data-inferior th.intro_vencimiento,
table.factura-data-inferior th.intro_base,
table.factura-data-inferior th.base {
padding-top: 8px;
}
table.factura-data-inferior th.intro_vencimiento,
table.factura-data-inferior th.inferior_intro_fecha,
table.factura-data-inferior th.intro_forma_pago,
table.factura-data-inferior th.intro_bic {
font-weight: bold;
padding-left: 10px;
}
table.factura-data-inferior th.intro_base,
table.factura-data-inferior th.intro_value_iva,
table.factura-data-inferior th.intro_iva,
table.factura-data-inferior th.intro_total {
color: #0C2C84;
text-align: right;
padding-right: 5px;
}
table.factura-data-inferior th.base,
table.factura-data-inferior th.iva,
table.factura-data-inferior th.value_iva,
table.factura-data-inferior th.total {
border-left: 1px dashed grey;
text-align: right;
padding-right: 10px;
width: 15%;
}
table.factura-data-inferior th.intro_bic,
table.factura-data-inferior th.intro_total,
table.factura-data-inferior th.total {
padding-bottom: 8px;
}
/* Estilos para el pie de página */
.footer {
width: 95%;
position: fixed; /* Fija el pie de página en la parte inferior */
bottom: 15px; /* Coloca el pie de página en la parte inferior de la página */
}
/* Estilos pie */
div.pie {
font-family: sans-serif;
font-size: 7px;
margin: 5mm 0 5mm 0;
}
/* Estilos pie-pagina */
table.pie-pagina {
font-family: sans-serif;
color: #0C2C84;
float: left;
vertical-align: bottom;
font-size: 10px;
font-weight: bold;
}