/* 공통 하단 버튼 보정 + PC 화면(860px 이상) 전용 배치 — 모바일 배치는 바꾸지 않는다.
   1) 위쪽 메뉴 막대  2) 목록·결과 화면 폭 넓히기  3) 아래에서 올라오는 선택 창을 가운데 창으로 */

.ez-topbar { display: none; }

/* 공통(모든 화면 크기): 하단 버튼 막대 — 링크(<a>)와 버튼(<button>)의 크기를 맞춘다.
   button 은 사이트 공통 스타일(폭 100%·위 여백)을 받아 높이·위치가 어긋나므로 여기서 덮어쓴다. */
.bottom-nav-bar .nav-btn { box-sizing: border-box; height: 48px; margin: 0; padding: 0 12px; line-height: 1; }
.bottom-nav-bar button.nav-btn { width: auto; }

@media (min-width: 860px) {
    body { background: #f4f6fa; }

    /* 1) 위쪽 메뉴 막대 */
    .ez-topbar {
        display: block; position: sticky; top: 0; z-index: 400;
        background: rgba(255,255,255,0.96); border-bottom: 1px solid #e6ebf2;
        backdrop-filter: blur(6px);
    }
    .ez-topbar-in {
        max-width: 1120px; margin: 0 auto; padding: 0 32px; height: 62px;
        display: flex; align-items: center; gap: 28px; box-sizing: border-box;
    }
    .ez-brand img { display: block; height: 34px; width: auto; }
    .ez-nav { display: flex; gap: 4px; }
    .ez-nav a {
        font-size: 15px; font-weight: 700; color: #4b5563; text-decoration: none;
        padding: 8px 14px; border-radius: 10px; transition: background .15s, color .15s;
    }
    .ez-nav a:hover { background: #eef5fc; color: #0e5fae; }
    .ez-nav a.on { color: #0e5fae; background: #e8f2fc; }
    .ez-user { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 14px; color: #374151; }
    .ez-user .bi { font-size: 18px; color: #0e5fae; }
    .ez-user b { font-weight: 800; }
    .ez-logout {
        font-size: 13px; font-weight: 700; color: #6b7280; text-decoration: none;
        border: 1px solid #d9dee7; border-radius: 9px; padding: 6px 12px; background: #fff;
    }
    .ez-logout:hover { color: #0e5fae; border-color: #9cc3ea; }

    /* 2) 목록·결과 화면은 넓게 (입력 양식 화면은 읽기 좋은 폭 그대로) */
    body.ez-wide .page-wrap,
    body.ez-wide .claims-wrap,
    body.ez-wide .sl-wrap,
    body.ez-wide .search-wrap,
    body.ez-wide .mgmt-wrap { max-width: 920px !important; padding-left: 24px; padding-right: 24px; }
    body.ez-wide .bottom-nav-bar { max-width: 920px !important; }

    /* 입력 화면: 가운데 흰 판 위에 올려 PC에서도 정돈되게 */
    body.ez-form .page-wrap,
    body.ez-form .form-wrap,
    body.ez-form .proc-wrap {
        max-width: 560px !important; background: #fff; border-radius: 22px; margin-top: 28px !important;
        box-shadow: 0 6px 30px rgba(15,40,80,0.07); padding-left: 32px !important; padding-right: 32px !important;
    }
    body.ez-form .bottom-nav-bar { max-width: 560px !important; border-radius: 16px 16px 0 0; }

    /* 3) 아래에서 올라오는 선택 창 → 가운데 창 */
    div[style*="bottom:0"][style*="border-radius:24px 24px 0 0"] {
        top: 50% !important; bottom: auto !important; transform: translate(-50%, -50%) !important;
        border-radius: 24px !important; max-width: 460px !important; padding-bottom: 24px !important;
    }
    div[style*="bottom:0"][style*="border-radius:24px 24px 0 0"] > div:first-child[style*="width:36px"] { display: none; }
}
