@media print {

  * html body {
    zoom:0.7;
  }

  html,
  body {
    font-size: 8pt;
    color: #000000;
    background-color: #FFFFFF;
    margin:0 !important;
    padding:0 !important;
    line-height: 1.4;
    word-spacing:1.1pt;
    letter-spacing:0.2pt;
    width: 100%;
  }

  div {
    max-width: 800px !important;
  }
  a:link,
  a:visited {
    text-decoration: underline;
    color: #000000;
  }

  #header,
  #footer,
  #contents-foot,
  #main-navi,
  .btn-print {
    display: none;
  }

  #maincontents,
  #maincontents .cont01,
  #maincontents .cont02 {
  }

  #maincontents,
  #maincontents .cont01,
  #maincontents .cont02 {
    background: none;
  }

  #maincontents .cont02 {
    padding: 0;
  }

  #estimate-header .fLeft,
  #estimate-header .fRight {
  }

  #estimate-header .fRight {
  }

  .detail {
    clear: both;
  }

  .cost .total span {
    font-size: 15pt;
    position: static;
  }

  .cost h4 {
    margin-bottom: 5px;
  }

  .cost .total {
    margin-top: 0px;
    margin-bottom: 20px;
  }

  .cost .consumption {
    position:static;
    left: auto;
    bottom: auto;
    float: right;
    padding-top: 50px;
    font-size: 100%
  }

  .cost .consumption span {
    width: auto;
  }

  .detail table th,
  .detail table td {
    padding: 4px 10px 4px 0;
  }

  .detail table .name {
    width: 500px;
  }

  #estimate-header .data dl dt,
  #estimate-header .data dl dd {
    display: block;
  }

  #subtotal {
    border-color: #333333;
    margin-bottom: 40px;
  }

  .cost {
    overflow: visible;
    height: 70px
  }
  .cost .total {
    position: absolute;
    float: none;
    width: 64%;
    left: 0;
  }
  .cost .consumption  {
    position: absolute;
    float: none;
    right: 0;
  }

  #estimate-header .fLeft h3 {
    font-size: 220%;
    margin-bottom: 10px;
  }
  #subtotal dt {
    width: 80%;
  }
  #nav {
    display: none;
  }
  .switch-tax button,.layout_contact-estimate {
    display: none;
  }
  .resources th {
    white-space: nowrap;
  }
  #optemo__main {
    display: none;
  }
}