@page {
    size          : A4;
    margin-left   : 2cm;
    margin-right  : 1cm;
    margin-top    : 1cm;
    margin-bottom : 1cm;
}
@page :first {
    margin-top: 0.5cm;
}

@media print {
    body, .container, .card, .card-body {
        background: white !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
        font-family: 'Calibri', Arial, sans-serif !important;
        font-size: 10pt !important;
    }

    * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        font-family: 'Calibri', Arial, sans-serif !important;
        font-size: 10pt !important;
    }

    /* Entfernt das Navigation-Padding vom Main-Element */
    main {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin: 0 !important;
    }

    .container-fluid {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .d-print-block {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Erste Print-Block ohne oberen Abstand */
    .d-print-block:first-of-type {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Reduziert Abstände zwischen Zeilen und Absätzen */
    .row {
        margin-bottom: 0.25rem !important;
    }
    
    br {
        line-height: 0.5 !important;
    }
}

.logoprint {
    margin-top: 1rem;
}

.addressprint {
    font-size     : 14px;
    line-height: 1.2 !important;
}
  
.invoiceprint {
    background-color            : lightgrey !important;
    print-color-adjust          : exact !important;
    font-size                   : 16px;
    font-weight                 : bold;
}

.dataheader {
    background-color            : lightgrey !important;
    print-color-adjust          : exact !important;
    font-size                   : 16px;
    font-weight                 : bold;
    border-bottom               : 1px solid #000;
}
/* vor Carinas Invoice format */
.dataheader1 {
    print-color-adjust          : exact !important;
    font-size                   : 16px;
    font-weight                 : bold;
    border-bottom               : 1px solid #000;
}

.datarow {
    font-size               : 16px;
    border-bottom           : 1px dashed #ccc;
  }

.dataprint {
    position: relative;
/*    top: 90pt;  */
}

.datasum {
    background-color: lightgrey !important;
    print-color-adjust: exact;
    font-weight: bold;
    border-top: 2px solid #000;
  }
/* vor Carinas Invoice format */
.datasum1 {
    print-color-adjust: exact;
    font-weight: bold;
    border-top: 2px solid #000;
  }

.datasumprint {
    background-color            : lightgrey !important;
    -webkit-print-color-adjust  : exact !important;
    print-color-adjust          : exact !important;
    position                    : relative;
    top                         : 90pt;
    font-size                   : large;
    font-weight                 : bold;
    border-top-style            : solid;
    border-top-width            : 1px;
    border-top-color            : black;
}

.footerprint {
    text-align: center;
    font-size: 10px;
}

.fs-7 {
  font-size: 0.75rem !important;  /* etwas kleiner als fs-6 (0.875rem) */
}

.fs-8 {
  font-size: 0.625rem !important; /* noch kleiner */
}
