﻿/* Base styling for the printable label */
#printLabel, #printLabel * {
    font-family: Arial, sans-serif !important;
    font-size: 9pt;
    color: #000 !important;
    background: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}
.ubuntu-condensed {
    font-family: 'Ubuntu Condensed', sans-serif;
    font-size: 9px;
}
.print-label {
    /*padding: 12px;*/
    margin: 0 auto;
    /*background: white;*/
    /*width: 100%;
    max-width: 100mm;*/
    box-sizing: border-box;
    font-family: Arial, sans-serif !important;
    font-size: 9pt;
    color: black;
    width: 96mm;
    height: 146mm;
    padding: 5mm;
    background: white;
}

/* Header and title styling */
/*.headerp img {
    max-height: 60px;
}*/
.headerp {
    text-align: center;
    margin-bottom: 6px;
}

    .headerp img {
        /*display: inline-block;*/
        max-height: 50px;
        display: block;
        width: 100%; /* Prevent overflow */
        height: auto; /* Maintain aspect ratio */
        max-width: 80px; /* Or adjust as needed */
        /*margin: 0 auto;*/
        text-align: center;
    }

.titlep {
    text-align: center;
    font-size: 12pt;
    font-weight: bold;
    margin: 6px 0 10px;
}

/* No border table: order/invoice and billed/shipped */
.no-border-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 9pt;
}

    .no-border-table td {
        padding: 2px 0;
        vertical-align: top;
    }

.bold-row td {
    font-weight: bold;
}

/* Item table styling */
.item-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid black;
    table-layout: fixed;
    font-size: 9pt;
    margin-top: 10px;
}

    .item-table th, .item-table td {
        border: 1px solid black;
        padding: 3px 4px;
        box-sizing: border-box;
        word-wrap: break-word;
    }

    .item-table th {
        font-weight: bold;
        background-color: #eee;
        text-align: left;
    }

        /* Column widths */
        .item-table th:nth-child(1), .item-table td:nth-child(1) {
            width: 10%;
        }

        .item-table th:nth-child(2), .item-table td:nth-child(2) {
            width: 42%;
        }

        .item-table th:nth-child(3), .item-table td:nth-child(3) {
            width: 12%;
            text-align: center;
        }

        .item-table th:nth-child(4), .item-table td:nth-child(4) {
            width: 16%;
            text-align: right;
        }

        .item-table th:nth-child(5), .item-table td:nth-child(5) {
            width: 20%;
            text-align: right;
        }

/* Total section below the table */
.totals-container {
    margin-top: 6px;
    font-size: 9pt;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3px;
}

.total-label {
    font-weight: bold;
}

/* Declaration and footer */
.declarationp {
    font-size: 8pt;
    margin-top: 10px;
    border-top: 1px dashed black;
    padding-top: 4px;
}

/*.signature-table {
    width: 100%;
    margin-top: 30px;
    font-size: 9pt;
}

    .signature-table td {
        padding: 5px;
        vertical-align: bottom;
    }*/
/* Signature line */
/*.signature-section {
    margin-top: 10px;
    font-size: 9pt;
    text-align: right;
}

.signature-line {
    display: inline-block;
    width: 150px;
    border-top: 1px solid black;
    margin-top: 30px;
    text-align: center;
    font-size: 8pt;
}*/

/* Ensure print colors are retained */
/*action button for pending table*/
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.action-icon-btn {
    background: none;
    border: none;
    padding: 8px; /* Add padding for touch area */
    font-size: 20px; /* Make icon large enough */
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

/*end of action button*/
@media print {
    body {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .print-label {
        margin: 0 auto;
    }
}
