html {
  font-size: 14px;
}

td{
    font-size:12px;
}



/* Force break before certain elements if needed */
.page-break {
    page-break-before: always;
}

/* Make sure table fits A4 nicely */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 6px;
    border: 1px solid #000;
    font-size: 12px;
}

@media print {
    .no-print {
        display: none !important;
    }
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

input.serial {
    border: none;
    outline: none;
    background-color: transparent; /* optional: to make it look like plain text */
    pointer-events: none; /* optional: disables click/focus if needed */
}


.fade-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease, color 0.5s ease;
}

.fade-scale.show {
    opacity: 1;
    transform: scale(1);
    color: #007bff; /* Blue tone */
}

.totalBalance strong {
    background: linear-gradient(90deg, #007bff, #00c6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(0, 198, 255, 0.6);
}

body {
    font-family: Arial, sans-serif;
    color: #333;
}

.invoice-header {
    background-color: #f2f2f2;
    padding: 10px;
    text-align: start;
}

    .invoice-header h1 {
        margin: 0;
    }

.invoice-details {
    margin-bottom: 20px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

    .table th, .table td {
        border: 1px solid #ddd;
        padding: 8px;
        text-align: left;
    }


.total {
    float: right;
    font-weight: bold;
}

@media print {
    @page {
        size: A4;
        margin: 10mm 10mm 10mm 10mm;

        @bottom-center {
            content: "Page " counter(page) " of " counter(pages);
            font-size: 12px;
            font-family: Arial, sans-serif;
        }
    }

    body {
        margin: 0;
        padding: 0;
    }

    .no-print {
        display: none !important;
    }

    table {
        width: 100%;
        page-break-inside: auto;
/*        border-collapse: collapse;*/
    }

    #ledgerTable thead {
        display: table-header-group; /* Ensure table headers repeat */
    }

    tr {
        page-break-inside: auto;
    }
}

/* Optional: Apply similar centering for screen preview */
.container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%; /* Match with print */
}
