/* force background colour printing in chrome browser */

html, body {
    margin: 0;
}


body, span, div, table, tr, tbody, tfoot, td, hr {
    -webkit-print-color-adjust: exact;
}

@font-face {
    font-family: 'neo_sansregular';
    src: url('../fonts/neosans-webfont.eot');
    src: url('../fonts/neosans-webfont.eot?#iefix') format('embedded-opentype'),
    url('../fonts/neosans-webfont.woff') format('woff'),
    url('../fonts/neosans-webfont.ttf') format('truetype'),
    url('../fonts/neosans-webfont.svg#neo_sansregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

.display-only {
    width: 315px;
    text-align: center;
    margin: 10px auto;
}
.display-only input {
    display: inline-block;
    font-size: 16px;
    padding: 2px 15px;
}
.hide {
    display: none;
}
.wrapper {
    margin-right: auto;
    margin-left: auto;
    border: solid 1px black;
    padding: 5px;
    width: 315px;
    /*background-color: #5cb8ff59;*/


    background-color: #ffffff;
    background-image: url('../img/logo_licenca.svg');
    background-position: 63% 64%;
    background-size: 170%;

}

.cartao {
    width: 315px;
    height: 190px;
    font-family: 'neo_sansregular';
    font-size: 10px;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    margin-top: 5px;
    /*background-color: #5cb8ff6b;*/
}

/*.cartao.madeira>.col-right {*/
    /*margin-right: 10px;*/
/*}*/
/*.cartao.madeira>.col-left {*/
    /*max-width: 190px;*/
/*}*/

.col-left {
    float: left;
    max-width: 220px;
}
.col-right {
    float: right;
    width: 95px;
}

.field {
    clear: both;
}

.col-left .field {
    margin-top: 3px;
}

.col-right .field {
    float: right;
}

.field label {
    font-size: 9px;
    color: #000000;
}
.field label .en {
    margin-left: 10px;
}

.field div {
    font-weight: bold;
    overflow: hidden;
    /* /* /* /* /*margin-top: 1px;*/
}


/*
.header {
    padding-left: 45px;
    font-size: 18px;

    background-image: url(/images/tpl/header.png);
    height: 34px;
    background-repeat: no-repeat;
    color: white;
    line-height: 34px;
}
*/
.footer {
    position: absolute;
    bottom: 0px;
    width: 100%;
}

.footer .field,
.footer .field label,
.footer .field div{
    font-size: 7px;
    font-weight: normal;
    font-style: normal;
    color: #000000;
}

.footer .field {
    font-weight: bold;
    font-style: italic;
}




#tipo {
    margin-bottom: 2px;
    margin-left: -30px;
}

#tipo div{
    max-height: 34px;
}
#nome div {
    max-height: 27px;
}
#titular div{
    max-height: 27px;
}

#logos {
    height: 35px;
}

#logos div {
    background-repeat: no-repeat;
    /*background-size: 42px;*/
    background-position-x: center;
    height: 100%;
}
#logos div.fia {
    background-image: url('../img/licenca/fia.png');
}
#logos div.cik {
    background-image: url('../img/licenca/cik.png');
}
#logos div.ue {
    background-image: url('../img/licenca/nu.png');
}
#logos div.pt {
    background-image: url('../img/licenca/pt.png');
}

.equiv {
    margin-bottom: 2px;
    margin-left: -30px;
    font-weight: 700;
    font-size: 12px;
}

#numero {
    width: 100%;
    margin-left: -18px;
    margin-top: -2px;
    width: auto;
    float: left;
}

#via {
    clear: none;
    font-size: 9px;
    line-height: 14px;
}

#numero label {
    color: black;
    font-weight: bold;
}

#numero div {
    margin-left: 3px;
    display: inline;
}


#tipo div {
    font-size: 12px;
}

#numero label,
#numero div {
    font-size: 13px;
}

#foto {
    height: 80px;
    line-height: 80px;
    overflow: hidden;
    text-align: center;
    width: 80px;
}

#foto img {
    /*width: 80px;*/
    height: 80px;
    margin: 0 -100%;
}
#nome {
    margin-top: -2px;
}
#validade {
    height: 14px;
    overflow: hidden;
    margin-top: 7px;
}
.cartao .red {
    display: inline-block;
    border: solid 2px red;
}
#validade label {
    float: left;
    line-height: 13px;
}
#validade div {
    font-size: 12px;
    margin-left: 15px;
    float: left;
    padding-right: 1px;
}

#nome .pt {
    margin-right: 11px;
}




#sangue {
    /*float: right;*/
    width: 105px;
    /*text-align: right;*/
    /*margin-top: 4px;*/
    margin-right: 10px;
}
#sangue label {
    /*float: right;*/
    clear: both;
    font-size: 7px;

}
#sangue label span {
    /*display: block;*/
}
#sangue div {
    color: black;
    font-weight: bold;
    /*float: right;*/
    clear: both;
    font-size: 12px;
}

#apto .en {
   margin-left: 0px;
}

#med {
    clear: none;
    float: left;
}
#med .pt {
    /*margin-right: 21px;*/
}
#vista {
    float: left;
    clear: none;
    margin-left: 20px;
}

#med div,
#vista div{
    margin-left: 3px;
}

#obs {
    clear: left;
}
#obs label {
    float: left;
}
#obs div {
    color: black;
    margin-left: 3px;
    max-width: 260px;
    overflow: hidden;
    max-height: 8px;
    white-space: nowrap;
    margin-left: 15px;
}

#dob {
    float: left;
    margin-right: 50px;
}

#sangue {
    float: left;
    width: auto;
    clear: none;
    margin-top: 1px;
}

#sangue label span,
#dob label span {
    display: block;
    margin-left: 0;
}



/* Margin for card holder */

.col-left {
    padding-left: 45px;
    max-width: 185px;
        width: 185px;
}
.col-right {
    width: 80px;
}

div[class*='card'] {
    margin-top: 6px;
}
.card1 {
    margin-top: 0px !important;
}

label {
    font-weight: normal;
}
.field div {
    font-weight : 700;
}

@media print
{
    .display-only {
        display: none;
    }

    .wrapper {
        border: none;
    }
    div[class*='card'] {
        page-break-before: always;
        margin-top: 10px;
        padding-top: 0px;
    }
    .card1 {
       page-break-before: avoid !important;
        margin-top: 0px !important;
        padding-top: 0px !important;
    }

}
