body {
    background: #f5f7fb;
}

.page-header {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.card {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(31, 45, 61, .08);
}

.form-section {
    border-top: 1px solid #e5e9f2;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
}

.table td,
.table th {
    vertical-align: middle;
}

.hms-qty-stepper {
    min-width: 128px;
}

.hms-qty-stepper .btn {
    min-width: 34px;
    touch-action: manipulation;
}

.hms-qty-input {
    font-size: 16px;
    min-width: 52px;
    pointer-events: auto;
    -webkit-user-select: text;
    user-select: text;
}

.required::after {
    color: #dc3545;
    content: " *";
}

.website-hero {
    background: linear-gradient(120deg, #0d6efd, #20c997);
    border-radius: 8px;
    color: white;
    padding: 3rem;
}

.stat-card {
    min-height: 126px;
}

.patient-photo-preview {
    height: 4cm;
    max-width: 4cm;
    object-fit: cover;
    width: 4cm;
}

.patient-photo-empty {
    align-items: center;
    background: #f8f9fa;
    color: #6c757d;
    display: flex;
    height: 4cm;
    justify-content: center;
    max-width: 4cm;
    text-align: center;
    width: 4cm;
}

.consent-urdu {
    font-family: "Noto Nastaliq Urdu", "Segoe UI", Arial, sans-serif;
    line-height: 2;
    text-align: right;
}

.opd-register-table {
    font-size: 12px;
}

.opd-register-table th,
.opd-register-table td {
    vertical-align: top;
}

.opd-report-page {
    margin-bottom: 1rem;
}

.opd-page-footer {
    font-weight: 600;
    margin-top: 1rem;
    text-align: center;
}

@media print {
    nav,
    .report-actions,
    .alert {
        display: none !important;
    }

    body {
        background: #fff;
    }

    main.container-fluid {
        padding: 0 !important;
    }

    .opd-register.card {
        border: 0;
        box-shadow: none;
    }

    .opd-register .card-body {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        padding: 0;
    }

    .opd-register-table {
        font-size: 10px;
    }

    .opd-report-page {
        break-after: page;
        page-break-after: always;
    }

    .opd-report-page:last-of-type {
        break-after: auto;
        page-break-after: auto;
    }

    .opd-page-footer {
        margin-top: auto;
        padding-top: 8px;
    }
}
