/*
 * 임대인 앱 PC 뼈대(2026-11-05, 1단계) — 1024px 이상 브라우저에서만 덧씌운다.
 *
 * 폰·앱 WebView(<1024px)에는 이 파일의 규칙이 한 줄도 적용되지 않는다(@media 안 + html.pc 표식).
 * html.pc 는 _head2.jsp 의 인라인 스크립트가 첫 그리기 전에 붙인다 — 사이드바 자리(왼쪽 220px)를
 * 미리 비워 두어 사이드바가 나중에 그려져도 내용이 밀리지 않는다. 사이드바 자체는 /js/pc.js 가
 * /pc/sidebar(JSON)를 받아 그린다.
 *
 * 설계: Landly_docs/spec/owner-app-pc-responsive-2026-11-05.html (사장 결정 2026-11-05: 기준 폭 1024, 사이드바 6묶음, P0 5목록 표)
 * 화면별 PC 규칙은 아래 「화면별」 절에 <body data-screen="..."> 표식 단위로 모은다.
 */
@media (min-width: 1024px) {
  /* ── 뼈대 ─────────────────────────────────────────── */
  html.pc body { padding-left: 220px; }
  /* 글자 크기(4단계, 2026-11-06) — 폰 화면은 10~13px 가 인라인 style 로 82개 화면에 박혀 있어 CSS 로는 못 키운다.
     PC 에선 콘텐츠 영역만 8% 확대(zoom)하고 폭·높이를 그만큼 되돌려 겉보기 폭 1120px 은 그대로 둔다. 사이드바(zoom 밖)는 영향 없음. */
  html.pc { --pcz: 1.08; }
  html.pc .app2 { zoom: var(--pcz); max-width: calc(1120px / var(--pcz)); min-height: calc(100vh / var(--pcz)); padding-bottom: 32px; }
  html.pc .nav2 { display: none; }                 /* 하단 탭 → 사이드바 */
  html.pc { -webkit-user-select: text; user-select: text; }   /* PC 에선 글자 긁어 복사할 수 있게(폰 롱프레스 차단은 그대로) */

  /* ── 사이드바 ─────────────────────────────────────── */
  html.pc .pcnav { position: fixed; left: 0; top: 0; bottom: 0; width: 220px; background: #fff; border-right: 1px solid #E5E8EB;
    display: flex; flex-direction: column; z-index: 60; color: #191F28; }
  html.pc .pcnav-brand { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 16px; border-bottom: 1px solid #F2F4F6; flex: none; }
  html.pc .pcnav-brand b { font-weight: 800; font-size: 16px; letter-spacing: -.01em; color: #1E5FE0; }
  html.pc .pcnav-brand small { font-weight: 600; font-size: 11px; color: #8B95A1; }
  html.pc .pcnav-bldg { padding: 12px 12px 6px; flex: none; }
  html.pc .pcnav-bldg select { width: 100%; padding: 9px 30px 9px 12px; border: 1.5px solid #E5E8EB; border-radius: 10px; background: #F9FAFB;
    font-family: inherit; font-weight: 700; font-size: 13px; color: #191F28; appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235A6472' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat; background-position: right 10px center; cursor: pointer; }
  html.pc .pcnav-bldg select:focus { outline: none; border-color: #1E5FE0; }
  html.pc .pcnav-scroll { flex: 1; overflow-y: auto; padding: 4px 10px 10px; }
  html.pc .pcnav-grp { padding: 12px 8px 4px; font-weight: 700; font-size: 10.5px; letter-spacing: .04em; color: #8B95A1; }
  html.pc .pcnav-item { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 10px; font-weight: 600; font-size: 13px;
    line-height: 1.2; color: #333D4B; text-decoration: none; }
  html.pc .pcnav-item .ms { font-size: 19px; color: #8B95A1; flex: none; }
  html.pc .pcnav-item:hover { background: #F4F6F8; color: #191F28; }
  html.pc .pcnav-item.on { background: #EEF4FF; color: #1E5FE0; font-weight: 800; }
  html.pc .pcnav-item.on .ms { color: #1E5FE0; }
  html.pc .pcnav-item.lock { color: #B0B8C1; }
  html.pc .pcnav-item.lock .ms { color: #C6CDD6; }
  html.pc .pcnav-item .pcnav-lock { margin-left: auto; font-size: 15px; }
  html.pc .pcnav-foot { flex: none; border-top: 1px solid #F2F4F6; padding: 8px 10px 10px; }
  html.pc .pcnav-badge { margin-left: auto; min-width: 18px; height: 18px; border-radius: 99px; background: #F04452; color: #fff; font-weight: 800;
    font-size: 10px; line-height: 18px; text-align: center; padding: 0 5px; }

  /* ── 아래 시트 → 가운데 대화상자 ─────────────────────── */
  html.pc .dp-back { align-items: center; }                         /* 달력(datepicker.js) */
  html.pc .dp-sheet { border-radius: 20px; max-width: 360px; }
  html.pc .ss-back { align-items: center; }                         /* 고르기 시트(터치 기기에서만 뜬다) */
  html.pc .ss-sheet { border-radius: 20px; max-width: 420px; max-height: 70vh; padding-bottom: 6px; }
  html.pc #previewModal { align-items: center; }                    /* 임대료 설정 청구 미리보기(settings/rental-fee.jsp) */
  html.pc #previewModal > .pv-panel { border-radius: 18px; max-width: 440px; }

  /* ── 폰 기준으로 가운데 고정한 요소 보정(1단계 3곳 중 실제 쓰는 2곳) ── */
  html.pc #bulkForm { left: calc(50% + 110px); max-width: 560px; }  /* 임차인 초대 일괄 발송 바(invite/center.jsp) */

  /* ── 마우스 ───────────────────────────────────────── */
  html.pc a.mrow:hover { background: #F9FAFB; margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 10px; }
  html.pc button:focus-visible, html.pc a:focus-visible, html.pc select:focus-visible, html.pc input:focus-visible { outline: 2px solid #93C5FD; outline-offset: 1px; }

  /* ── 표 + 상세 패널(2단계 공용, pc.js initPanel) ──────────── */
  html.pc .pc-list { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 16px; align-items: start; }
  html.pc .pc-cards { display: none; }
  html.pc .pc-table { display: table; width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: 16px;
    box-shadow: 0 3px 14px rgba(17,24,39,.04); overflow: hidden; font-size: 13.5px; color: #191F28; }
  html.pc .pc-table th { text-align: left; font-weight: 700; font-size: 11.5px; letter-spacing: .02em; color: #8B95A1; background: #F9FAFB;
    padding: 11px 12px; border-bottom: 1px solid #EDEFF2; white-space: nowrap; }
  html.pc .pc-table td { padding: 12px; border-bottom: 1px solid #F2F4F6; vertical-align: middle; white-space: nowrap; }
  html.pc .pc-table tr:last-child td { border-bottom: none; }
  html.pc .pc-table th.num, html.pc .pc-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
  html.pc .pc-table td.num { font-weight: 700; }
  html.pc .pc-table td.num.pos { color: #0B7A43; }
  html.pc .pc-table td.num.neg { color: #F04452; }
  html.pc .pc-table td.pc-main b { font-weight: 800; font-size: 14px; }
  html.pc .pc-table td.pc-main small { display: block; margin-top: 3px; font-size: 11px; color: #8B95A1; font-weight: 500; }
  html.pc .pc-table td.pc-muted { color: #5A6472; font-variant-numeric: tabular-nums; }
  html.pc .pc-table td.pc-wrap { white-space: normal; max-width: 260px; }
  html.pc .pc-table .pc-dim { color: #B0B8C1; }
  html.pc .pc-table td.pc-go { width: 28px; padding-left: 0; color: #C4CDD5; }
  html.pc .pc-table td.pc-go .ms { font-size: 18px; }
  html.pc .pc-table .pc-late { display: block; margin-top: 3px; font-size: 11px; font-weight: 600; color: #F04452; }
  html.pc .pc-tr { cursor: pointer; }
  html.pc .pc-tr:hover td { background: #F9FAFB; }
  html.pc .pc-tr.sel td { background: #EEF4FF; }
  html.pc .pc-tr.sel td:first-child { box-shadow: inset 3px 0 0 #1E5FE0; }
  html.pc .pc-tr.sel td.pc-go { color: #1E5FE0; }
  html.pc .pc-pill { display: inline-block; padding: 4px 9px; border-radius: 8px; font-weight: 600; font-size: 11.5px; line-height: 1; }
  html.pc .pc-pill.green { color: #0B7A43; background: #F0FBF6; }
  html.pc .pc-pill.orange { color: #B54708; background: #FFF6EF; }
  html.pc .pc-pill.red { color: #F04452; background: #FFF4F5; }
  html.pc .pc-pill.gray { color: #5A6472; background: #F4F6F8; }
  html.pc .pc-pill.purple { color: #7C5CFC; background: #F3F1FF; }
  html.pc .pc-pill.blue { color: #1E5FE0; background: #EEF4FF; }
  html.pc .pc-detail { display: block; position: sticky; top: 16px; }
  html.pc .pc-detail-head { display: flex; align-items: center; gap: 6px; padding: 0 4px 10px; font-weight: 700; font-size: 12px; color: #8B95A1; }
  html.pc .pc-detail-head .ms { font-size: 17px; }
  html.pc .pc-detail-empty { background: #fff; border: 1.5px dashed #E5E8EB; border-radius: 18px; padding: 36px 20px; text-align: center;
    font-weight: 500; font-size: 12.5px; line-height: 1.6; color: #8B95A1; }
  html.pc .pc-detail-empty[hidden], html.pc .pc-detail-body[hidden] { display: none; }
  html.pc .pc-detail-body { max-height: calc(100vh - 72px); overflow-y: auto; border-radius: 20px; }
  html.pc .pc-list.nopanel { grid-template-columns: minmax(0, 1fr); }   /* 링크 행 표(패널 없음) */
  html.pc .pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }   /* 2열 묶음 — 자식 .pc-col 두 개 */
  html.pc .pc-grid > :not(.pc-col), html.pc .pc-grid > .pc-col:only-of-type { grid-column: 1 / -1; }  /* 알림 띠·묶음 하나뿐이면 가로 전부 */
  html.pc .pc-col { gap: 16px; }
  html.pc .pc-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; align-items: start; }   /* 입력 카드 안 2열 */
  html.pc .pc-2col > :not(.fg), html.pc .pc-2col > .fg.wide { grid-column: 1 / -1; }
  html.pc .pc-filter { display: flex; align-items: center; gap: 10px; }                                  /* 검색칸 + 칩 한 줄 */
  html.pc .pc-filter > div:first-child { width: 300px; flex: none; }
  html.pc .pc-filter input { font-size: 13.5px; padding-top: 9px; padding-bottom: 9px; }
  html.pc .pc-filter .chips { overflow: visible; }
  html.pc .pc-narrow { max-width: 800px; }                                                               /* 설정·입력 화면 폭 */
  html.pc .app { max-width: 1120px; }                                                                    /* 옛 landly.css 레이아웃(정산·수납계좌) */
  html.pc .app > .body { padding-bottom: 32px; }
  html.pc .pc-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; white-space: normal; }
  html.pc .inp { font-size: 14px; }                               /* 폰은 iOS 확대 방지로 16px, PC 는 14px */
  html.pc .ec-wrap { padding-bottom: 32px; }                      /* 전자계약 화면 하단 여백(하단 탭 없음) */
  html.pc .ec-modal { align-items: center; }                      /* 전자계약 확인 창 → 가운데 대화상자 */
  html.pc .ec-sheet { border-radius: 20px; max-width: 440px; padding-bottom: 18px; }

  /* ── 화면별(body[data-screen]) ───────────────────────── */

  /* 수납 원장(billing/ledger.jsp) — 요약 4칸 한 줄, 할 일·예정 청구 나란히, 버튼 한 줄, 검색·칩 한 줄 */
  html.pc body[data-screen="ledger"] .lg-top { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 12px; }
  html.pc body[data-screen="ledger"] .lg-top > :only-child { grid-column: 1 / -1; }
  html.pc body[data-screen="ledger"] .lg-summary { grid-template-columns: repeat(4, 1fr); }
  html.pc body[data-screen="ledger"] .lg-actions { flex-direction: row; flex-wrap: wrap; gap: 10px; }
  html.pc body[data-screen="ledger"] .lg-actions > .lg-btns { display: flex; gap: 10px; }
  html.pc body[data-screen="ledger"] .lg-actions > .lg-btns > a { padding-left: 16px; padding-right: 16px; }
  html.pc body[data-screen="ledger"] .lg-actions > a { flex: 1 1 240px; }
  html.pc body[data-screen="ledger"] .lg-filter { display: flex; align-items: center; gap: 10px; }
  html.pc body[data-screen="ledger"] .lg-filter > div:first-child { width: 300px; flex: none; }
  html.pc body[data-screen="ledger"] .lg-filter input { font-size: 13.5px; padding-top: 9px; padding-bottom: 9px; }
  html.pc body[data-screen="ledger"] .lg-chips { margin-top: 0; overflow: visible; }

  /* 홈(home/index.jsp) — 왼쪽: 바로가기·세팅·오늘 할 일·일정·다음 청구 / 오른쪽: 민원·수납 요약·미납·정산·현황 */
  html.pc body[data-screen="home"] .hm-body { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 16px; align-items: start; padding: 16px 24px 24px; }
  html.pc body[data-screen="home"] .hm-main, html.pc body[data-screen="home"] .hm-side { gap: 16px; }
  html.pc body[data-screen="home"] .hm-quick { padding: 18px 24px; order: -2; }
  html.pc body[data-screen="home"] .hm-bt { order: -1; overflow-x: auto; }

  /* 입금 내역(billing/bank-transactions.jsp) — 공용 표·패널만 쓴다 */

  /* 계약 등록(contracts/new.jsp) — 800px 2열 폼. 부과 설정(#billSec)은 안쪽이 이미 2칸이라 그대로 */
  html.pc body[data-screen="contract-new"] .cf-body { max-width: 800px; }
  html.pc body[data-screen="contract-new"] .cf-card { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; align-items: start; }
  html.pc body[data-screen="contract-new"] .cf-card > :not(.fg), html.pc body[data-screen="contract-new"] .cf-card > .fg.wide { grid-column: 1 / -1; }
  html.pc body[data-screen="contract-new"] .cf-actions { flex-direction: row-reverse; }
  html.pc body[data-screen="contract-new"] .cf-actions > button { flex: 2; }
  html.pc body[data-screen="contract-new"] .cf-actions > a { flex: 1; }

  /* 문자 쓰기(message/new.jsp) — 받는 사람(왼쪽) / 내용·보낼 때(오른쪽) */
  html.pc body[data-screen="message-new"] .ms-body { max-width: 900px; }
  html.pc body[data-screen="message-new"] .card.ms-main { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; align-items: start; }
  html.pc body[data-screen="message-new"] .card.ms-main > .fg:first-child { grid-row: 1 / 3; }
  html.pc body[data-screen="message-new"] .rlist { max-height: 460px; }
  html.pc body[data-screen="message-new"] #sendBtn { align-self: flex-end; padding-left: 36px; padding-right: 36px; }

  /* 호실 목록(buildings/units.jsp)·임차인 목록(tenants/list.jsp)·문자 기록(message/list.jsp)·전자계약(econtract/list.jsp) — 링크 행 표 */
  html.pc body[data-screen="units"] .chips, html.pc body[data-screen="units"] #floorView { max-width: 100%; }

  /* ── 3단계 P1(2026-11-06) ── */
  /* 계약 목록 — 요약·갱신 입구 나란히, 검색·칩 한 줄, 표(공용). 갱신 — 협의(왼쪽)·만료 임박(오른쪽) */
  html.pc body[data-screen="contracts"] .ct-top { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: stretch; }
  html.pc body[data-screen="renewals"] .pc-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  /* 리포트 — 손익·월간·방식별(왼쪽) / 문서함·최근 계약서·이력(오른쪽) */
  html.pc body[data-screen="reports"] .pc-grid { grid-template-columns: 1fr 1fr; }
  /* 설정 3종 — 임대료 800px 2열 카드, 청구 설정 자동 청구(왼쪽)·추가 관리비(오른쪽), 정책 현황(왼쪽)·편집(오른쪽) */
  html.pc body[data-screen="billing-settings"] .pc-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  html.pc body[data-screen="unit-policy"] .pc-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  /* 퇴거 상세 — 일정·정산·공제·반환(왼쪽) / 사유·검침·체크리스트·증빙(오른쪽) */
  html.pc body[data-screen="moveout"] .pc-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  /* 입실 현황 — 건물·호실 목록(왼쪽) / 스케줄표·호실 달력(오른쪽). 표 높이를 창에 맞춰 날짜 줄이 늘 보이게 한다 */
  html.pc body[data-screen="occupancy"] .oc-lay { display: grid; grid-template-columns: 200px minmax(0, 1fr); align-items: start; }
  html.pc body[data-screen="occupancy"] .oc-side { flex-direction: column; overflow-x: visible; overflow-y: auto; max-height: calc(100vh / var(--pcz) - 196px); position: sticky; top: 12px; }
  html.pc body[data-screen="occupancy"] .oc-side a { flex: none; white-space: normal; overflow-wrap: anywhere; word-break: keep-all; }
  html.pc body[data-screen="occupancy"] .oc-side a small { flex: none; white-space: nowrap; }
  html.pc body[data-screen="occupancy"] .oc-side h2 { display: block; }
  html.pc body[data-screen="occupancy"] .oc-sb { --lw: 104px; max-height: calc(100vh / var(--pcz) - 196px); }
  html.pc body[data-screen="occupancy"] .oc-calx { display: grid; grid-template-columns: minmax(0, 1fr) 240px; }
  html.pc body[data-screen="occupancy"] .oc-det { border-top: 0; border-left: 1px solid #E5E8EB; }
  html.pc body[data-screen="occupancy"] .oc-wk { height: 88px; }
  /* 정산 내역(옛 레이아웃) — 정산 카드(왼쪽) / 수납계좌·정산 설정(오른쪽). 수납계좌 — 등록된 계좌(왼쪽) / 등록 폼(오른쪽) */
  html.pc body[data-screen="settlement"] .body, html.pc body[data-screen="collection-account"] .body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; align-items: start; }
  html.pc body[data-screen="settlement"] .body > .error-msg, html.pc body[data-screen="collection-account"] .body > .error-msg { grid-column: 1 / -1; }
}

/* 큰 화면(2026-11-06 사장 지적: 1920 에서 여백이 너무 많다) — 1120px 에 묶지 않고 화면을 채운다. 글자도 함께 키운다.
   표·2열 화면은 폭을 그대로 쓰고, 입력 폼은 너무 길어지지 않게 넓힌 뒤 가운데에 둔다. */
@media (min-width: 1600px) {
  html.pc { --pcz: 1.16; }
  html.pc .app2 { max-width: calc(1800px / var(--pcz)); }
  html.pc .app { max-width: 1800px; }
  html.pc body[data-screen="home"] .hm-body { grid-template-columns: minmax(0, 1fr) 480px; }
  html.pc .pc-list { grid-template-columns: minmax(0, 1fr) 460px; }
  html.pc .pc-list.nopanel { grid-template-columns: minmax(0, 1fr); }
  html.pc .pc-narrow, html.pc body[data-screen="contract-new"] .cf-body, html.pc body[data-screen="message-new"] .ms-body { max-width: 1040px; margin-left: auto; margin-right: auto; }
}

/* ── 업무대(2026-11-07 사장 지적: 아직 좌우만 늘린 화면이 있다) ─────────────────
   상세 화면은 왼쪽에 문패(이 건물·호실·사람이 누구인지 + 바로 할 일)를 세워 두고, 오른쪽을 장부처럼 쌓는다.
   설정 화면은 왼쪽 구획 이름 / 오른쪽 내용의 구획표로 짠다. 배치는 pc.js 가 PC 에서만 옮긴다 — 폰 DOM 은 그대로다.
   JSP 쪽 표식: 뿌리에 data-pc-desk 또는 data-pc-sheet, 왼쪽으로 보낼 묶음에 data-pc-to="id". */
@media (min-width: 1024px) {
  /* 표식이 없는 나머지 화면 — 늘어나지 않게 문서 폭으로 가운데 둔다 */
  html.pc body:not([data-screen]):not(:has([data-pc-desk], [data-pc-sheet], .pc-list, .pc-grid, .pc-narrow, .pc-filter, .pc-table, .pc-2col)) .app2 > div:not(:first-child) { max-width: 860px; margin-left: auto; margin-right: auto; }
  html.pc body:not([data-screen]):not(:has([data-pc-desk], [data-pc-sheet], .pc-list, .pc-grid, .pc-narrow, .pc-filter, .pc-table, .pc-2col)) .app2 > div:first-child { padding-left: max(16px, calc((100% - 860px) / 2 + 16px)) !important; padding-right: max(16px, calc((100% - 860px) / 2 + 16px)) !important; }

  html.pc body:has([data-pc-desk]) .app2 { max-width: calc(1360px / var(--pcz)); }
  html.pc [data-pc-desk] { display: grid !important; grid-template-columns: 316px minmax(0, 1fr); gap: 14px 20px !important; padding: 18px 24px 0 !important; align-items: start; }
  html.pc .pc-desk-top { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; }
  html.pc .pc-desk-top:empty { display: none; }
  html.pc .pc-desk-id { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh / var(--pcz) - 24px); overflow-y: auto; scrollbar-width: none; }
  html.pc .pc-desk-id::-webkit-scrollbar { display: none; }
  html.pc .pc-desk-work { min-width: 0; column-gap: 16px; }
  html.pc .pc-desk-work > * { break-inside: avoid; margin-bottom: 16px; }
  html.pc .pc-sec { display: flex; flex-direction: column; gap: 8px; }

  /* 카드는 그림자 대신 가는 선 — 장부 칸처럼 납작하게 */
  html.pc [data-pc-desk] [style*="box-shadow:0 3px 14px"], html.pc [data-pc-desk] [style*="box-shadow:0 2px 10px"],
  html.pc [data-pc-sheet] [style*="box-shadow:0 3px 14px"] { box-shadow: none !important; border: 1px solid #E8EBEE; border-radius: 12px !important; }
  /* 묶음 제목 — 작은 머리글 + 오른쪽으로 뻗는 선 */
  html.pc .pc-sec > .pc-sec-h { margin: 0 !important; display: flex; align-items: center; gap: 10px; font-size: 12px !important; letter-spacing: .01em; color: #4E5968 !important; }
  html.pc .pc-sec > .pc-sec-h::after { content: ""; flex: 1; height: 1px; background: #E2E6EA; order: 1; }
  html.pc .pc-sec > .pc-sec-h > :last-child:not(:first-child) { order: 2; }
  /* 항목·값 줄 — 칸 사이를 점선으로 잇는다(임대차 대장 양식) */
  html.pc [data-pc-desk] [style*="justify-content:space-between"][style*="padding:11px 0"] { padding: 7px 0 !important; border-bottom: none !important; align-items: baseline !important; gap: 8px; font-variant-numeric: tabular-nums; }
  html.pc [data-pc-desk] [style*="justify-content:space-between"][style*="padding:11px 0"] > :first-child { flex: 1; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
  html.pc [data-pc-desk] [style*="justify-content:space-between"][style*="padding:11px 0"] > :first-child::after { content: ""; flex: 1; border-bottom: 1px dotted #C9CFD6; }

  /* 문패 — 폰의 색 덩어리를 흰 판 + 윗줄 색으로 바꾼다(색은 pc.js 가 --plate 로 넘긴다) */
  html.pc .pc-plate { --plate: #1E5FE0; background: #fff !important; color: #191F28 !important; border: 1px solid #E8EBEE; border-top: 4px solid var(--plate); border-radius: 12px !important; padding: 16px !important; }
  html.pc .pc-plate * { color: #191F28 !important; opacity: 1 !important; }
  html.pc .pc-plate [style*="font-weight:500"] { color: #6B7684 !important; }
  html.pc .pc-plate .ms { color: var(--plate) !important; }
  html.pc .pc-plate [style*="background:rgba(255"] { background: #F4F6F8 !important; }
  html.pc .pc-plate [style*="border-top:1px solid rgba(255"] { border-top-color: #D5DAE0 !important; }
  html.pc .pc-plate [style*="height:100%"] { background: var(--plate) !important; }
  html.pc .pc-plate [style*="grid-template-columns:1fr 1fr"] { display: block !important; margin-top: 12px !important; border-top: 1px dashed #D5DAE0; }
  html.pc .pc-plate [style*="grid-template-columns:1fr 1fr"] > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 9px 0 !important; background: none !important; border-radius: 0 !important; border-bottom: 1px dashed #D5DAE0; font-variant-numeric: tabular-nums; }
  html.pc .pc-plate [style*="grid-template-columns:1fr 1fr"] > div > * { margin: 0 !important; }

  html.pc [data-pc-desk] input[type="file"] { font-size: 12px; max-width: 100%; }
  /* 왼쪽 칸 입력 폼 — 폭이 좁으니 글자를 줄이고 칸은 줄바꿈 */
  html.pc .pc-desk-id form input, html.pc .pc-desk-id form select { font-size: 13px !important; min-width: 0; }
  html.pc .pc-desk-id form [style*="display:flex"] { flex-wrap: wrap; }
  html.pc .pc-desk-id form [style*="display:flex"] > * { flex: 1 1 130px; min-width: 0; }
  html.pc body:has([data-pc-desk]) .app2 > div:first-child form { max-width: 260px; }
  /* 왼쪽 칸 바로가기 — 네 칸 격자를 세 칸으로 */
  html.pc .pc-desk-id [style*="repeat(4,1fr)"] { grid-template-columns: repeat(3, 1fr) !important; }
  html.pc .pc-desk-id [style*="repeat(4,1fr)"] > a { box-shadow: none !important; border: 1px solid #E8EBEE; border-radius: 10px !important; }

  /* 구획표 — 설정·내 정보 */
  html.pc body:has([data-pc-sheet]) .app2 > div:first-child { padding-left: max(16px, calc((100% - 920px) / 2 + 16px)) !important; padding-right: max(16px, calc((100% - 920px) / 2 + 16px)) !important; }
  html.pc [data-pc-sheet] { max-width: 920px; margin: 0 auto; padding: 18px 24px 0 !important; gap: 0 !important; }
  html.pc [data-pc-sheet] > .pc-sec { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 0 24px; padding: 18px 0; border-top: 1px solid #E2E6EA; align-items: start; }
  html.pc [data-pc-sheet] > :first-child { border-top: 0; }
  html.pc [data-pc-sheet] .pc-sec > .pc-sec-h { padding-top: 12px; font-size: 13px !important; color: #191F28 !important; }
  html.pc [data-pc-sheet] .pc-sec > .pc-sec-h::after { display: none; }
  html.pc [data-pc-sheet] > :not(.pc-sec) { margin-top: 14px; }
  html.pc [data-pc-sheet] .nsub { display: block; }

  /* 요금제 — 세 요금제를 나란히 견준다 */
  html.pc .pc-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
  /* 수납 현황 — 임차인 카드 2열 */
  html.pc body[data-screen="payment-status"] .app2 { max-width: calc(1360px / var(--pcz)); }
  html.pc body[data-screen="payment-status"] #list { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 12px !important; align-items: start; }
  /* 전체 메뉴 — 사이드바와 겹치니 한눈에 보는 메뉴 지도로 */
  html.pc body[data-screen="menu"] .app2 { max-width: calc(1360px / var(--pcz)); }
  html.pc body[data-screen="menu"] .pc-menu { display: block !important; columns: 3; column-gap: 16px; padding: 18px 24px 0 !important; }
  html.pc body[data-screen="menu"] .mgrp { break-inside: avoid; margin-bottom: 16px; box-shadow: none; border: 1px solid #E8EBEE; border-radius: 12px; padding: 4px 14px 8px; }
  html.pc body[data-screen="menu"] .mgrp-title { color: #191F28; font-size: 13px; font-weight: 800; padding: 12px 0 8px; border-bottom: 1px solid #E2E6EA; margin-bottom: 2px; }
  html.pc body[data-screen="menu"] .mrow { padding: 7px 0; border-bottom: none; gap: 10px; }
  html.pc body[data-screen="menu"] .mico { width: 28px; height: 28px; border-radius: 8px; }
  html.pc body[data-screen="menu"] .mico .ms { font-size: 16px !important; }
  html.pc body[data-screen="menu"] .mchev { display: none; }

  /* 건물 관리 — 숫자 띠 + 건물 명부(호실 칸 막대) */
  html.pc body[data-screen="buildings"] .app2 { max-width: calc(1360px / var(--pcz)); }
  html.pc body[data-screen="buildings"] .bl-root { display: grid !important; grid-template-columns: 320px minmax(0, 1fr); gap: 12px 16px !important; padding: 18px 24px 0 !important; align-items: center; }
  html.pc body[data-screen="buildings"] .bl-root > #buildingList, html.pc body[data-screen="buildings"] .bl-root > .pc-plate { grid-column: 1 / -1; }
  html.pc body[data-screen="buildings"] .bl-root > .pc-plate { display: flex; align-items: center; gap: 32px; padding: 12px 18px !important; }
  html.pc body[data-screen="buildings"] .bl-root > .pc-plate > div:nth-child(2) { margin: 0 !important; }
  html.pc body[data-screen="buildings"] .bl-root > .pc-plate > div:nth-child(3) { flex: 1; margin: 0 !important; padding: 0 !important; border: 0 !important; max-width: 420px; }
  html.pc body[data-screen="buildings"] #buildingList { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 12px !important; align-items: start; }
  html.pc body[data-screen="buildings"] .bcard { box-shadow: none !important; border: 1px solid #E8EBEE; border-radius: 12px !important; }
  html.pc body[data-screen="buildings"] .bcard:hover { border-color: #1E5FE0; }
  html.pc .pc-cells { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, 9px); gap: 2px; }
  html.pc .pc-cells i { height: 12px; border-radius: 2px; background: #E5E8EB; }
  html.pc .pc-cells i.on { background: #0B7A43; }
}
@media (min-width: 1400px) {
  html.pc .pc-desk-work { columns: 2; }
}
@media (min-width: 1600px) {
  html.pc body:has([data-pc-desk]) .app2, html.pc body[data-screen="menu"] .app2, html.pc body[data-screen="buildings"] .app2 { max-width: calc(1800px / var(--pcz)); }
  html.pc body[data-screen="menu"] .pc-menu { columns: 4; }
}
