/* Print specific styles for Inizya Mudra */

@media print {
    /* Hide everything by default except the print area */
    body * {
        visibility: hidden;
    }
    
    .no-print {
        display: none !important;
    }
    
    .print-only, .print-only * {
        visibility: visible;
        display: block !important; /* Override d-none */
    }
    
    /* Document Setup */
    @page {
        size: A4;
        margin: 1cm;
    }
}

/* Layout styling for the bill (Used by both @media print and html2pdf generation) */
.print-only {
    width: 100%;
    margin: 0;
    padding: 20px;
    background-color: white;
    color: black;
}

.print-header {
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.print-logo {
    height: 60px;
    margin-right: 15px;
}

.print-brand-text {
    font-size: 24px;
    font-weight: bold;
    color: #000;
    letter-spacing: 2px;
}

.print-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.print-table {
    width: 100%;
    border-collapse: collapse;
}

.print-table th, .print-table td {
    border: 1px solid #333;
    padding: 6px 8px;
    text-align: left;
    font-size: 13px;
    vertical-align: middle;
}

.print-table th {
    background-color: #f5f5f5 !important;
    -webkit-print-color-adjust: exact;
    font-weight: bold;
}

.nowrap, .print-table th.nowrap, .print-table td.nowrap {
    white-space: nowrap !important;
    word-break: keep-all !important;
}

.text-right {
    text-align: right !important;
}

.text-center {
    text-align: center !important;
}

.print-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 20px;
}

.print-footer div {
    width: 200px;
    border-top: 1px solid #333;
    text-align: center;
    padding-top: 5px;
    font-size: 14px;
    font-weight: bold;
}

/* Modal styles for screen */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.d-none {
    display: none !important;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    max-width: 500px;
    width: 90%;
}

.text-success {
    color: #2e7d32;
}

.gap-2 {
    gap: 0.5rem;
}
