html {
  font-size: 14px;
}

td{
    font-size:12px;
}

/* Responsive tweaks */
@media (max-width: 991px) {
    .product-grid {
        height: 520px;
    }

    .cart-panel {
        min-height: unset;
    }
}

@media print {
    /* Set the page size for thermal printer */
    @page {
        size: 80mm auto; /* width 80mm, height auto */
        margin: 0; /* remove default margins */
    }

    body {
        width: 80mm;
        font-size: 10px;
        margin: 0;
        padding: 0;
    }

    #pdfContent {
        width: 80mm;
        margin: 0;
    }

    /* Hide elements you don't want to print */
    .no-print {
        display: none !important;
    }
}




.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;
}

.section.register::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /*  background: linear-gradient(to bottom, rgba(65, 84, 241, 0.8), rgba(65, 84, 241, 0.3));*/
    z-index: 1;
}

.section.register .container {
    position: relative;
    z-index: 2;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

@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 */
}
