/* 현장용(AOS.Field) 스타일.
   사무용의 Dense 밀도 오버라이드를 여기에 가져오지 않는다 — 장갑 낀 손으로 쓰는
   화면이라 MudBlazor 기본 터치 타깃(48px)을 그대로 유지해야 한다. */

/* 노치 있는 기기에서 하단 버튼이 홈 인디케이터에 가리지 않게 한다. */
body {
    padding-bottom: env(safe-area-inset-bottom);
}

/* 실외 강한 햇빛에서도 읽히도록 본문 대비를 약간 올린다. */
.mud-typography-body1,
.mud-typography-body2 {
    -webkit-font-smoothing: antialiased;
}

/* 촬영 버튼처럼 자주 누르는 컨트롤은 최소 44px 를 보장한다. */
.mud-button-root {
    min-height: 40px;
}

/* ── Blazor 로딩·오류 UI (index.html이 참조) ── */

.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: #14456F;
    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, "불러오는 중");
}

#blazor-error-ui {
    color-scheme: light only;
    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: 3000;
}

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

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "오류가 발생했습니다.";
}
