﻿/* Custom styles for table */
.table-responsive {
    margin-top: 20px;
}

.table th, .table td {
    vertical-align: middle;
}
/* Reduce the width of the 'Item' column */
.item-column {
    width: 2%;
    white-space: nowrap; /* Prevent text wrapping */
}
/* Allow other columns to adjust */
.data-column {
    width: auto;
}
/* Responsive table styling */
.table-container {
    overflow-x: auto;
}

@media print {
    @page {
        margin: 0;  
        size: A4 portrait;  
    }

    body {
        margin: 0;  
        padding: 0;
    }
     /*Hide elements that contain URLs*/ 
    a[href]:after,
    form[action]:after {
        content: none !important;
    }

    .page {
        page-break-before: always;
        page-break-after: always;
    }

    header, footer, .submit_btn, .no-print {
        display: none !important;
        visibility: hidden !important;
        height: 0px !important;
    }

    .container {
        width: 100%;
        max-width: 95%;
        margin: 0 auto;
    }

    table {
        width: 100%;
        border-collapse: collapse;
    }

    th, td {
        padding: 8px;
        font-size: 12px;
        color: black !important;
    }
    .pig-sales-page {
        writing-mode: horizontal-tb;
        size: A4 landscape;
        page: pig-sales-landscape;
    }
    @page pig-sales-landscape {
        size: A4 landscape;
        margin: 1in;
    }
     .pig-sales-table {
    width: 100%;
    border-collapse: collapse;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 12px;
    transform: scale(0.7);
    transform-origin: top left;
    page-break-inside: avoid;
  }

  .pig-sales-table th,
  .pig-sales-table td {
    border: 1px solid #333;
    padding: 4px 6px;
    text-align: center;
  }

  .pig-sales-table thead {
    background-color: #f2f2f2;
    display: table-header-group;
  }

  .pig-sales-table tfoot {
    display: table-footer-group;
  }
}



