/* پایهٔ اپلیکیشن Clinic — فونت و قواعد عمومیِ غیرتم */

@font-face {
    font-family: IRANSansWeb;
    font-style: normal;
    font-weight: normal;
    src: url('Fonts/IRANSansWeb.woff') format('woff');
}

html, body {
    font-family: 'IRANSansWeb', sans-serif;
}

* {
    font-family: 'IRANSansWeb', sans-serif !important;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1.25rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "خطایی رخ داد.";
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 8mm;
    }

    html, body {
        background: #fff !important;
        color: #111 !important;
        height: auto !important;
        overflow: visible !important;
    }

    .sidebar,
    .top-row,
    .navbar-toggler,
    .d-print-none,
    .invoice-toolbar,
    #blazor-error-ui,
    .k-animation-container,
    .k-notification-group {
        display: none !important;
    }

    .clinic-shell,
    .page,
    main,
    article.content,
    .k-widget {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: none !important;
        background: #fff !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    .invoice-sheet {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        font-size: 11px !important;
    }
}
