html, body {
    font-family: "Segoe UI", Arial, "Noto Sans Hebrew", sans-serif;
}

h1:focus {
    outline: none;
}

/* Latin text (license key) typed left-to-right, while the field itself (label, frame) stays right-to-left. */
.ltr-input input, .ltr-input textarea { direction: ltr; text-align: left; }

/* התקנה וטלפונים */
.install-steps { margin: .5rem 1.5rem 1rem 0; }
.install-steps li { margin-bottom: .5rem; }

/* הגדרות תצוגה */
.color-input { width: 3rem; height: 2.5rem; padding: 0; border: 1px solid #ccc; border-radius: 6px; cursor: pointer; background: none; }
.preset-swatch { display: inline-block; width: 1rem; height: 1rem; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); margin-inline-start: 2px; }

.owes { color: var(--mud-palette-error); font-weight: 600; }
.cheque-due { background: #fff8e1; }
.in-credit { color: var(--mud-palette-success); font-weight: 600; }

/* ---------- Receipt (קבלה), 80mm thermal paper ---------- */
.receipt {
    width: 76mm;
    margin: 0 auto;
    padding: 4mm;
    background: #fff;
    color: #000;
    text-align: center;
    font-family: David, "David Libre", "Times New Roman", serif;
    border: 1px dashed #bbb;
    line-height: 1.35;
}
.receipt hr { border: 0; border-top: 1px dashed #000; margin: 2mm 0; }
.receipt .r-small { font-size: 10pt; }
.receipt .r-medium { font-size: 12pt; }
.receipt .r-big { font-size: 15pt; font-weight: 600; }
.receipt .r-title { font-size: 16pt; font-weight: 700; margin: 1mm 0 2mm; }
.receipt .r-amount { font-size: 22pt; font-weight: 700; margin: 1mm 0; }

.statement .st-table { width: 100%; border-collapse: collapse; font-size: 9pt; text-align: right; }
.statement .st-table th, .statement .st-table td { padding: 1mm 0.5mm; border-bottom: 1px dotted #999; vertical-align: top; }

/* Printouts made from a normal page: only the .print-only part is printed. */
.print-only { display: none; }

@media print {
    .screen-only { display: none !important; }
    .print-only { display: block !important; }
    @page { size: 80mm auto; margin: 0; }
    .no-print, .mud-appbar, .mud-drawer, .mud-snackbar-provider { display: none !important; }
    .mud-main-content { padding: 0 !important; margin: 0 !important; }
    .mud-container { padding: 0 !important; max-width: none !important; }
    .receipt { border: 0; width: auto; }
    body { background: #fff; }
}

.center-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    /* The top-bar color from הגדרות תצוגה, a little lighter towards the corner. */
    background: linear-gradient(160deg, var(--mud-palette-appbar-background) 0%,
        color-mix(in srgb, var(--mud-palette-appbar-background) 75%, white) 100%);
}

.center-card {
    width: 100%;
    max-width: 420px;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 2000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        left: 0.75rem;
        top: 0.5rem;
    }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1e3a5f;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "טוען");
    }
