.clearfix:after {
    content: "";
    display: table;
    clear: both;
  }
  
  a {
    color: #5D6975;
    text-decoration: underline;
  }
  main {
    page-break-after: always;
  }
  @media print {
    main {
      page-break-after: always;
    }
  }
  body {
    position: relative;
    width: 21cm;  
    height: 29.7cm; 
    margin: 0 auto; 
    color: #001028;
    background: #FFFFFF; 
    font-family: Arial, sans-serif; 
    font-size: 16px; 
    font-family: Arial;
  }
  
  header {
    padding: 10px 0;
    margin-bottom: 30px;
  }
  
  #logo {
    text-align: center;
    margin-bottom: 10px;
  }
  
  #logo img {
    width: 150px;
    object-fit: contain;
    max-height: 90px;
  }
  
  h1 {
    border: 1px solid  grey;
    color: grey;
    font-size: 2.4em;
    line-height: 1.4em;
    font-weight: normal;
    text-align: center;
    margin: 0 0 20px 0;
  }
  h3 {
    border: 1px solid  grey;
    color: grey;
    font-size: 1.6em;
    line-height: 1em;
    font-weight: normal;
    text-align: center;
    margin: 0 0 20px 0;
  }
  #project {
    float: left;
    border: 1px solid lightgrey;
    width: 100%;
  }
  
  #project span {
    color: grey;
    text-align: right;
    width: 120px;
    margin-right: 20px;
    display: inline-block;
    font-size: 16px;
    margin-top: 2px;
    margin-bottom: 2px;
  }
  
  #company {
    float: right;
    text-align: right;
  }
  
  #project div,
  #company div {
    white-space: nowrap;
    margin-bottom: 4px;
    margin-top: 2px;
  }
  
  table {
    border: 1px solid lightgrey;
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin-bottom: 20px;
  }
  table.condiciones tbody td {
    padding: 6px;
  }
  table.condiciones tbody tr.separator {
    padding-top: 10px
  }
  .firma {
    text-align: center;
    width: 80%;
    border-top: 1px solid black;
    margin-bottom: 10px;
    margin-top: 20px;
    left: 10%;
    position: absolute;
    margin-top: 20px !important;
    margin-bottom: 20px !important;
  }
  table.condiciones tbody tr.separator td {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
  }
  #condiciones_uso {
    padding: 5px;
    font-size: 10px;
  }
  .condicion_left {
    padding-bottom: 5px;
    border-bottom: 1px solid black;
    margin: 5px;
    padding: 20px;
    width: 60%;
    padding-top: 5px;
    padding-bottom: 5px;
  }
  table tr:nth-child(2n-1) td {
    background: #FAFAFA;
  }
  
  table th,
  table td {
    text-align: center;
  }
  
  table th {
    padding: 5px 20px;
    color: grey;
    border-bottom: 1px solid #C1CED9;
    white-space: nowrap;        
    font-weight: normal;
  }
  
  table .service,
  table .desc {
    text-align: center;
  }
  
  table td {
    padding: 20px;
    text-align: right;
  }
  
  table td.service,
  table td.desc {
    vertical-align: top;
  }
  
  table td.unit,
  table td.qty,
  table td.total {
    font-size: 1.2em;
  }
  
  table td.grand {
    border-top: 1px solid lightgrey;;
  }
  
  #notices .notice {
    color: lightgrey;
    font-size: 1.2em;
  }
  
  footer {
    color: lightgrey;
    width: 100%;
    height: 30px;
    position: absolute;
    bottom: 0;
    border-top: 1px solid #C1CED9;
    padding: 8px 0;
    text-align: center;
  }
  .line {
    width: 100%;
    border-bottom: 1px solid black;
  }