/*@media all {*/

@page {
    margin-top: 15mm;
    margin-bottom: 0;
    margin-left: 4mm;
    margin-right: 4mm;
}

@page narrow {
    size: 210mm 297mm
}

@page rotated {
    size: portrait
}

* {
    background: transparent !important;
    color: #000 !important;
    text-shadow: none !important;
    box-sizing: border-box;
    filter: none !important;
    -ms-filter: none !important;
}

body {
    margin: 0;
    padding: 0;
    line-height: 1.4em;
    font: normal normal 14px/110% "Helvetica", sans-serif;
    position: relative;
}

.container{
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
}

.tag {
    display: block;
    position: relative;
    width: 113.89mm;
    height: 37.67mm;
    /*outline: #ccc dashed .5mm;*/
    margin: 0;
    float: left;
    overflow: hidden;
    -webkit-region-break-inside: avoid;
}

.tag:nth-child(2n) {
    margin-left: 2mm;
}

.tag:nth-child(14n + 15),
.tag:nth-child(14n + 16) {
    margin-top: 14mm;
    page-break-after: always;
}

.tag span {
    display: block;
    font-size: 3.5mm;
    line-height: 5mm;
}

.tag .first-chunk,
.tag .second-chunk {
    display: block;
    position: absolute;
}

.tag .first-chunk {
    padding: 4mm 6mm;
    text-align: left;
    width: 100%;
    top: 0;
    left: 0;
}

.tag .second-chunk {
    display: block;
    right: 0;
    bottom: 0;
    text-align: right;
    width: 100%;
    text-transform: uppercase;
    padding: 4mm;
}

.tag .name {
    text-transform: uppercase;
    font-size: 4mm;
    line-height: 5mm;
    margin-bottom: 2mm;
    font-weight: 600;
}

.tag .code {
    font-size: 4mm;
}

/*}*/

@media screen {
    /*.tag {*/
    /*display: none;*/
    /*}*/
}

.container-tag {
    /*padding-top: 5.7mm;
    padding-bottom: 5.7mm;*/
    margin-top: 5.7mm;
    margin-bottom: 24.35mm;
    display: block;

    width: 230mm;
    page-break-after: always;
}

.container-tag:after {
    content: "";
    display: block;
    clear: both;
}
