/* 운영 관리 상세 화면 — pen.dev 디자인(module1·module2) 그대로 재현.
   사이드바는 기존 셸을 그대로 쓰고, 상단바·본문만 .pn 스코프 안에서 정의한다.
   색·치수는 pen 파일의 값을 그대로 옮겼다. */
.pn {
  --pn-ink: #18312b; --pn-sub: #8a9894; --pn-acc: #243640; --pn-bg: #f6f5f1; --pn-line: #dde4e0;
  --pn-blue: #2f6fed; --pn-blue-bg: #eaf1fe; --pn-green: #12a150; --pn-green-bg: #e9f8ef; --pn-green-chip: #e7f7ee;
  --pn-orange: #f08c00; --pn-orange-bg: #fff4e5; --pn-purple: #7a5af8; --pn-purple-bg: #f0ecff;
  --pn-red: #e5484d; --pn-red-bg: #fdebec; --pn-gray: #8a94a6; --pn-gray-bg: #f1f3f6; --pn-soft: #eef3f8;
  font-family: "Noto Sans KR", "Inter", system-ui, sans-serif; color: var(--pn-ink); background: var(--pn-bg);
  display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 0; gap: 0; font-size: 11px; line-height: 1.4;
}
.pn *, .pn *::before, .pn *::after { box-sizing: border-box; }
:where(.pn) button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; text-align: inherit; }
:where(.pn) input, :where(.pn) select { font: inherit; color: inherit; border: 0; background: transparent; outline: 0; min-width: 0; }
:where(.pn) h1, :where(.pn) h2, :where(.pn) h3, :where(.pn) p { margin: 0; font: inherit; }
.pn .icon { flex: none; }
.pn :focus-visible { outline: 2px solid var(--pn-acc); outline-offset: 2px; }

/* ── 공통 조각 ── */
.pn-row { display: flex; align-items: center; }
.pn-col { display: flex; flex-direction: column; }
.pn-between { justify-content: space-between; }
.pn-fill { flex: 1; min-width: 0; }
.pn-sub { color: var(--pn-sub); }
.pn-b { font-weight: 600; }
.pn-card { background: #fff; border: 1px solid var(--pn-line); border-radius: 12px; }
.pn-dot { display: inline-block; flex: none; border-radius: 50%; }
.pn-chip { display: inline-flex; align-items: center; gap: 5px; padding: 0 8px; border-radius: 8px; font-weight: 600; white-space: nowrap; flex: none; }
.pn-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--pn-line) !important; background: #fff !important; font-size: 10px; font-weight: 600; white-space: nowrap; flex: none; }
.pn-btn--dark { background: var(--pn-acc) !important; border-color: var(--pn-acc) !important; color: #fff; }
.pn-btn:hover { filter: brightness(0.97); }
.pn-btn--dark:hover { filter: brightness(1.15); }

/* ── 상단바 / 요약 띠 ── */
.pn-top { height: 72px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 24px; background: #fff; border-bottom: 1px solid var(--pn-line); }
.pn-top__title { display: flex; align-items: center; gap: 20px; min-width: 0; }
.pn-top__title.is-col { flex-direction: column; align-items: flex-start; gap: 4px; }
.pn-top h1 { font-size: 22px; font-weight: 600; line-height: 32px; white-space: nowrap; }
.pn-top .pn-date { font-size: 13px; color: var(--pn-sub); }
.pn-top__desc { font-size: 12px; color: var(--pn-sub); }
.pn-user { display: flex; align-items: center; gap: 10px; flex: none; }
.pn-user__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--pn-bg); color: var(--pn-sub); }
.pn-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #dce6f2; color: var(--pn-acc); font-size: 13px; font-weight: 600; flex: none; }
.pn-user__name { font-size: 13px; font-weight: 600; line-height: 19px; }
.pn-user__role { font-size: 10px; color: var(--pn-sub); line-height: 14px; }

.pn-band { padding: 16px 20px; background: var(--pn-bg); }
.pn-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.pn-kpis.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pn-kpi { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 84px; padding: 13px 16px; }
.pn-kpi__body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pn-kpi__label { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--pn-sub); white-space: nowrap; }
.pn-kpi__label .pn-dot { width: 8px; height: 8px; }
.pn-kpi__value { display: flex; align-items: flex-end; gap: 9px; font-size: 25px; font-weight: 600; line-height: 36px; }
.pn-kpi__value small { font-size: 10px; font-weight: 600; line-height: 14px; padding-bottom: 5px; }
.pn-kpi__foot { font-size: 9px; color: var(--pn-sub); }
.pn-kpi__ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: #f3f5f7; flex: none; }
.pn-kpis:not(.is-4) .pn-kpi__value { font-size: 26px; line-height: 38px; }
.pn-kpis:not(.is-4) .pn-kpi__label { font-size: 12px; }
.pn-kpis:not(.is-4) .pn-kpi__ic { background: #f4f6f8; }
.pn-kpi.is-danger { background: #fff5f5; }
.pn-kpi.is-danger .pn-kpi__ic { background: var(--pn-red-bg); }

.pn-work { display: flex; gap: 16px; padding: 0 20px 20px; align-items: flex-start; }
.pn-body { display: flex; flex-direction: column; gap: 14px; padding: 0 20px 20px; }

/* ── 객실 현황 ── */
.pn-grid-panel { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.pn-filter { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pn-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.pn-tab { height: 32px; padding: 0 11px !important; border-radius: 8px; background: var(--pn-bg) !important; border: 1px solid var(--pn-line) !important; color: var(--pn-sub); font-size: 11px; display: inline-flex; align-items: center; }
.pn-tab[aria-selected="true"] { background: var(--pn-acc) !important; border-color: var(--pn-acc) !important; color: #fff; font-weight: 600; }
.pn-select { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 11px; border-radius: 8px; background: #fff; border: 1px solid var(--pn-line); color: var(--pn-sub); }
.pn-select select { font-size: 11px; font-weight: 600; color: var(--pn-ink); appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2px; }
.pn-floors { display: flex; flex-direction: column; gap: 4px; padding: 0 1px 1px 0; }
.pn-floor { display: grid; grid-template-columns: 34px repeat(12, minmax(0, 1fr)); gap: 5px; align-items: stretch; }
.pn-floor__label { display: grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--pn-sub); }
.pn-room { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-height: 58px; padding: 5px 4px; border-radius: 8px; border: 1px solid var(--pn-line); text-align: left; min-width: 0; transition: transform 0.12s; }
.pn-room:hover { transform: translateY(-1px); }
.pn-room[aria-pressed="true"] { border: 2px solid var(--pn-acc) !important; padding: 4px 3px; }
.pn-room__top { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 600; color: var(--pn-ink); }
.pn-room__st { display: flex; align-items: center; gap: 4px; font-size: 9px; font-weight: 600; white-space: nowrap; }
.pn-room__st .pn-dot { width: 5px; height: 5px; }
.pn-room__staff { font-size: 8px; color: var(--pn-sub); }
.pn-s-wait { background: var(--pn-orange-bg); color: var(--pn-orange); }
.pn-s-doing { background: var(--pn-blue-bg); color: var(--pn-blue); }
.pn-s-review { background: #f2eeff; color: var(--pn-purple); }
.pn-s-done { background: var(--pn-green-bg); color: var(--pn-green); }
.pn-s-stay { background: var(--pn-gray-bg); color: var(--pn-gray); }
.pn-s-issue { background: var(--pn-red-bg); color: var(--pn-red); }
.pn-room .pn-dot { background: currentColor; }

.pn-detail { width: 360px; flex: none; }
.pn-detail__head { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--pn-line); }
.pn-detail__head h2 { font-size: 17px; font-weight: 600; line-height: 28px; }
.pn-x { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--pn-bg) !important; color: var(--pn-sub); }
.pn-detail__body { display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.pn-sec-title { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; }
.pn-sec-title small { font-size: 10px; font-weight: 600; }
.pn-tl { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.pn-tl__item { display: flex; align-items: center; gap: 9px; min-height: 22px; color: var(--pn-sub); }
.pn-tl__item time { font-size: 10px; font-weight: 600; min-width: 27px; }
.pn-tl__item .pn-dot { width: 8px; height: 8px; }
.pn-tl__item.is-last { color: var(--pn-ink); font-weight: 600; }
.pn-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 9px; }
.pn-img { border-radius: 8px; background-size: cover; background-position: center; background-color: #e6e9ec; display: block; }
.pn-photos .pn-img { aspect-ratio: 105 / 86; }
.pn-facility { display: flex; flex-direction: column; gap: 9px; padding: 12px; border-radius: 8px; background: var(--pn-bg); border: 1px solid var(--pn-line); }
.pn-facility b { font-size: 12px; font-weight: 600; }
.pn-facility small { font-size: 10px; }
.pn-empty { display: grid; place-items: center; min-height: 160px; color: var(--pn-sub); font-size: 12px; text-align: center; padding: 24px; }

/* ── 청소 기록 ── */
.pn-search { display: flex; align-items: center; gap: 10px; padding: 14px 20px; background: #fff; border-bottom: 1px solid var(--pn-line); flex-wrap: wrap; }
.pn-field { display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 13px; border-radius: 8px; border: 1px solid var(--pn-line); background: #fff; color: var(--pn-sub); font-size: 12px; }
.pn-field.is-search { width: 280px; background: var(--pn-bg); }
.pn-field.is-search input { flex: 1; font-size: 12px; color: var(--pn-ink); }
.pn-field.is-search input::placeholder { color: var(--pn-gray); }
.pn-field.is-period { width: 220px; color: var(--pn-acc); font-weight: 600; }
.pn-field.is-period span { color: var(--pn-ink); }
.pn-field.is-sel { width: 180px; gap: 8px; }
.pn-field.is-sel select { flex: 1; font-size: 11px; font-weight: 600; color: var(--pn-ink); appearance: none; -webkit-appearance: none; cursor: pointer; }
.pn-count { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--pn-sub); }
.pn-split { display: flex; gap: 16px; padding: 16px 20px 20px; align-items: flex-start; }
.pn-hist { width: 420px; flex: none; overflow: hidden; }
.pn-hist__head { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-bottom: 1px solid var(--pn-line); }
.pn-hist__head h2 { font-size: 17px; font-weight: 600; line-height: 25px; }
.pn-hist__list { display: flex; flex-direction: column; gap: 8px; padding: 10px; }
.pn-rec { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 10px; border: 1px solid var(--pn-line) !important; background: #fff !important; width: 100%; }
.pn-rec[aria-pressed="true"] { background: var(--pn-soft) !important; border: 2px solid var(--pn-acc) !important; padding: 13px; }
.pn-rec__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 26px; }
.pn-rec__top b { font-size: 14px; font-weight: 600; margin-right: 8px; }
.pn-rec__top .pn-chip { height: 26px; font-size: 9px; }
.pn-rec__meta { display: flex; align-items: center; gap: 18px; font-size: 11px; }
.pn-rec__meta span { display: inline-flex; align-items: center; gap: 6px; }
.pn-rec__meta .icon { color: var(--pn-sub); }
.pn-rdetail { flex: 1; min-width: 0; overflow: hidden; }
.pn-rdetail__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 0 18px; min-height: 78px; border-bottom: 1px solid var(--pn-line); }
.pn-rdetail__head h2 { font-size: 18px; font-weight: 600; line-height: 26px; }
.pn-rdetail__head p { font-size: 11px; color: var(--pn-sub); margin-top: 4px; }
.pn-rdetail__actions { display: flex; gap: 7px; flex-wrap: wrap; }
.pn-rdetail__body { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.pn-rphotos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
.pn-pcard { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 10px; background: #fff; border: 1px solid var(--pn-line); }
.pn-pcard__img { position: relative; }
.pn-pcard__img .pn-img { width: 100%; height: 142px; }
.pn-pcard.is-short .pn-pcard__img .pn-img { height: 122px; }
.pn-pass { position: absolute; top: 7px; left: 7px; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border-radius: 8px; background: var(--pn-green-chip); color: var(--pn-green); font-size: 8px; font-weight: 600; }
.pn-pcard__meta { display: flex; align-items: center; justify-content: space-between; font-size: 10px; font-weight: 600; }
.pn-pcard__meta span { font-size: 9px; font-weight: 400; color: var(--pn-sub); }
.pn-cmp { display: flex; align-items: center; justify-content: center; gap: 6px; height: 26px; border-radius: 8px; background: var(--pn-purple-bg); font-size: 8px; font-weight: 600; }
.pn-cmp span:first-child { color: var(--pn-sub); } .pn-cmp span:last-child { color: var(--pn-purple); }
.pn-note { font-size: 8px; font-weight: 600; color: var(--pn-purple); }
.pn-complaint { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 10px; background: #fff9ee; border: 1px solid #ffe3b0; }
.pn-complaint__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #fff0d5; color: var(--pn-orange); flex: none; }
.pn-complaint__body { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; }
.pn-complaint__body b { font-size: 12px; font-weight: 600; }
.pn-complaint__body .t2 { font-size: 11px; font-weight: 600; }
.pn-complaint__body .t3 { font-size: 10px; color: var(--pn-sub); }

/* ── 리포트 ── */
.pn-rep-mid { display: flex; gap: 14px; }
.pn-rep-bot { display: flex; gap: 14px; align-items: stretch; }
.pn-panel { display: flex; flex-direction: column; gap: 12px; padding: 16px; min-width: 0; }
.pn-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pn-panel__head h2 { font-size: 15px; font-weight: 600; line-height: 22px; }
.pn-panel__head p { font-size: 10px; color: var(--pn-sub); margin-top: 3px; }
.pn-legend { display: flex; gap: 12px; font-size: 9px; color: var(--pn-sub); }
.pn-legend span { display: inline-flex; align-items: center; gap: 5px; }
.pn-legend .pn-dot { width: 7px; height: 7px; }
.pn-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.pn-chart text { font-family: inherit; fill: var(--pn-sub); font-size: 8px; }
.pn-hbars { display: flex; flex-direction: column; gap: 10px; }
.pn-hbar { display: flex; align-items: center; gap: 9px; height: 39px; }
.pn-hbar__label { width: 100px; flex: none; font-size: 10px; font-weight: 600; }
.pn-hbar__track { flex: 1; height: 14px; border-radius: 7px; background: #eef0f3; overflow: hidden; }
.pn-hbar__fill { display: block; height: 100%; border-radius: 7px; }
.pn-hbar__val { width: 14px; text-align: right; font-size: 10px; font-weight: 600; }
.pn-vbars { display: flex; align-items: flex-end; gap: 14px; height: 275px; }
.pn-vbar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 7px; min-width: 0; }
.pn-vbar b { font-size: 10px; font-weight: 600; }
.pn-vbar i { display: block; width: 100%; border-radius: 6px 6px 0 0; }
.pn-vbar span { font-size: 9px; font-weight: 600; color: var(--pn-sub); }
.pn-repeat { display: flex; align-items: center; gap: 7px; font-size: 9px; color: var(--pn-sub); }
.pn-repeat .pn-chip { height: 26px; font-size: 8px; background: var(--pn-red-bg); color: var(--pn-red); }
.pn-insights { display: flex; flex-direction: column; gap: 8px; }
.pn-insight { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 10px; min-height: 87px; }
.pn-insight__ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: rgba(255, 255, 255, 0.67); flex: none; }
.pn-insight__body { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 0; }
.pn-insight__body p { font-size: 10px; font-weight: 600; line-height: 1.5; }
.pn-insight__tag { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 7px; background: rgba(255, 255, 255, 0.67); font-size: 8px; font-weight: 600; }

/* ── 점검 계획 ── */
.pn-plan { display: flex; gap: 14px; align-items: stretch; }
.pn-cal { flex: 1.45; min-width: 0; overflow: hidden; }
.pn-ins { flex: 1; min-width: 0; overflow: hidden; }
.pn-ph { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 70px; padding: 0 16px; border-bottom: 1px solid var(--pn-line); }
.pn-ph h2 { font-size: 16px; font-weight: 600; line-height: 23px; }
.pn-ph p { font-size: 11px; color: var(--pn-sub); margin-top: 4px; }
.pn-ph__acts { display: flex; gap: 7px; }
.pn-cal__body { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.pn-key { display: flex; align-items: center; gap: 14px; min-height: 24px; flex-wrap: wrap; font-size: 9px; color: var(--pn-sub); }
.pn-key span { display: inline-flex; align-items: center; gap: 5px; }
.pn-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; align-items: start; }
.pn-day { display: flex; flex-direction: column; border-radius: 8px; background: var(--pn-bg); border: 1px solid var(--pn-line); overflow: hidden; min-width: 0; }
.pn-day.is-today { background: #f6f9fc; }
.pn-day__head { display: flex; flex-direction: column; gap: 3px; padding: 8px 9px; background: #fff; border-bottom: 1px solid var(--pn-line); }
.pn-day.is-today .pn-day__head { background: #e9eef5; }
.pn-day__line { display: flex; align-items: center; justify-content: space-between; }
.pn-day__line b { font-size: 12px; font-weight: 600; }
.pn-day__line span { font-size: 9px; color: var(--pn-sub); }
.pn-day__who { font-size: 9px; font-weight: 600; color: var(--pn-acc); }
.pn-day__rooms { display: flex; flex-direction: column; gap: 4px; padding: 6px; }
.pn-rm { display: flex; align-items: center; justify-content: space-between; height: 27px; padding: 0 7px !important; border-radius: 6px; border: 1px solid var(--pn-line) !important; background: #fff !important; font-size: 9px; font-weight: 600; color: var(--pn-ink); width: 100%; cursor: default !important; }
.pn-rm.is-done { background: var(--pn-green-bg) !important; color: var(--pn-ink); }
.pn-rm.is-doing { background: var(--pn-blue-bg) !important; }
.pn-rm.is-moved { background: #eef0f3 !important; color: var(--pn-sub); }
.pn-rm.is-edit { cursor: pointer !important; }
.pn-rm.is-edit:hover { border-color: var(--pn-acc) !important; }
.pn-rm .pn-dot { width: 5px; height: 5px; background: var(--pn-sub); }
.pn-tbl { display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.pn-tr { display: grid; grid-template-columns: 58px 92px 104px 86px minmax(0, 1fr); align-items: center; }
.pn-th { padding: 0 8px; height: 30px; font-size: 9px; font-weight: 600; color: var(--pn-sub); }
.pn-th .pn-tr { height: 30px; }
.pn-trow { display: flex; flex-direction: column; gap: 8px; padding: 10px 8px; border-radius: 8px; background: var(--pn-bg); border: 1px solid var(--pn-line); }
.pn-trow.is-urgent { background: #fff8f8; border-color: #f7caca; }
.pn-trow .pn-tr b { font-size: 11px; font-weight: 600; }
.pn-trow .pn-tr .d { font-size: 9px; color: var(--pn-sub); }
.pn-trow .pn-tr .n { font-size: 10px; font-weight: 600; color: var(--pn-acc); }
.pn-elapsed { display: flex; flex-direction: column; gap: 5px; padding-right: 18px; }
.pn-elapsed b { font-size: 10px !important; }
.pn-elapsed i { display: block; height: 5px; border-radius: 3px; background: #e4e7ec; overflow: hidden; }
.pn-elapsed i u { display: block; height: 100%; border-radius: 3px; text-decoration: none; }
.pn-trow .hint { font-size: 8px; color: var(--pn-sub); }
.pn-trow.is-urgent .hint { color: var(--pn-red); }
.pn-issues-head { display: flex; align-items: center; justify-content: space-between; }
.pn-issues-head h2 { font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.pn-issues-head .pn-chip { height: 22px; background: var(--pn-red-bg); color: var(--pn-red); font-size: 9px; }
.pn-issues-head a { font-size: 10px; font-weight: 600; color: var(--pn-acc); cursor: pointer; }
.pn-issues { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.pn-issue { display: flex; align-items: center; gap: 12px; min-height: 106px; padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--pn-line); }
.pn-issue__ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: #f4f6f8; flex: none; }
.pn-issue__body { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; }
.pn-issue__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pn-issue__row b { font-size: 12px; font-weight: 600; }
.pn-issue__row .pn-chip { height: 24px; background: #f4f6f8; font-size: 8px; }
.pn-issue__row .pn-dot { width: 6px; height: 6px; }
.pn-issue small { font-size: 9px; color: var(--pn-sub); }

/* ── 모바일 플로우 ── */
.pn-flow { display: flex; align-items: flex-start; gap: 12px; padding: 24px 32px 40px; background: #eef1f5; flex: 1; overflow-x: auto; }
.pn-flow__col { display: flex; flex-direction: column; gap: 16px; flex: none; width: 390px; }
.pn-cap { height: 50px; display: grid; place-items: center; font-size: 16px; font-weight: 600; text-align: center; }
.pn-flow__arrow { display: grid; place-items: center; width: 40px; height: 50px; flex: none; color: var(--pn-sub); }
.pn-flow__arrow span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid #dde1e7; }
.pn-phone { display: flex; flex-direction: column; width: 390px; height: 844px; border-radius: 24px; border: 1px solid #dde1e7; background: var(--pn-bg); overflow: hidden; scroll-margin: 24px; }
.pn-phone.is-focus { box-shadow: 0 0 0 3px rgba(36, 54, 64, 0.35); }
.pn-status { height: 62px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; background: #fff; font-size: 13px; font-weight: 600; }
.pn-status span { display: inline-flex; align-items: center; gap: 6px; }
.pn-screen { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow-y: auto; }
.pn-m { display: flex; flex-direction: column; flex: 1; }
.pn-m h2 { font-size: 22px; font-weight: 600; line-height: 32px; }
.pn-prog { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 12px; background: #fff; border: 1px solid var(--pn-line); }
.pn-prog > div:first-child { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; }
.pn-prog > div:first-child span:last-child { color: var(--pn-acc); }
.pn-track { height: 8px; border-radius: 4px; background: #e8ebef; overflow: hidden; }
.pn-track i { display: block; height: 100%; border-radius: 4px; background: var(--pn-acc); }
.pn-track.is-thin { height: 6px; border-radius: 3px; } .pn-track.is-thin i { border-radius: 3px; }
.pn-mtabs { display: flex; gap: 4px; }
.pn-mtab { flex: 1; height: 40px; border-radius: 8px; background: #fff !important; border: 1px solid var(--pn-line) !important; font-size: 10px; font-weight: 600; color: var(--pn-sub); display: grid; place-items: center; text-align: center !important; }
.pn-mtab[aria-selected="true"] { background: var(--pn-acc) !important; border-color: var(--pn-acc) !important; color: #fff; }
.pn-mcard { display: flex; flex-direction: column; gap: 11px; padding: 16px; border-radius: 12px; background: #fff; border: 1px solid var(--pn-line); }
.pn-mcard__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.pn-mcard__no { font-size: 22px; font-weight: 600; line-height: 32px; }
.pn-mcard__type { font-size: 11px; color: var(--pn-sub); }
.pn-mcard .pn-chip { height: 26px; font-size: 9px; }
.pn-mcard__info { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--pn-sub); }
.pn-mcard__info .pn-chip { height: 24px; background: var(--pn-red-bg); color: var(--pn-red); }
.pn-mbtn { display: flex; align-items: center; justify-content: center; gap: 7px; height: 42px; border-radius: 8px; background: var(--pn-acc) !important; color: #fff; font-size: 13px; font-weight: 600; width: 100%; }
.pn-mbtn.is-lg { height: 48px; }
.pn-mbtn.is-ghost { background: #fff !important; color: var(--pn-ink); border: 1px solid var(--pn-line) !important; height: 44px; font-size: 12px; }
.pn-mbtn.is-off { background: #d9dee5 !important; color: var(--pn-gray); cursor: default; }
.pn-zone { display: flex; align-items: center; gap: 10px; padding: 7px 9px; min-height: 91px; border-radius: 10px; background: #fff; border: 1px solid var(--pn-line); }
.pn-zone .pn-img { width: 52px; height: 52px; flex: none; }
.pn-zone__cam { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 8px; flex: none; background: var(--pn-acc) !important; color: #fff; }
.pn-zone__cam.is-idle { background: var(--pn-bg) !important; color: var(--pn-sub); border: 1px solid var(--pn-line) !important; }
.pn-zone__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pn-zone__row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 600; }
.pn-zone__row em { font-style: normal; display: inline-flex; align-items: center; gap: 4px; font-size: 9px; font-weight: 600; color: var(--pn-green); }
.pn-zone__row em.is-wait { color: var(--pn-orange); }
.pn-zone__hint { font-size: 9px; color: var(--pn-sub); }
.pn-finding { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 12px; background: #fff; border: 1px solid var(--pn-line); }
.pn-finding__img { position: relative; height: 104px; border-radius: 8px; overflow: hidden; }
.pn-finding__img .pn-img { width: 100%; height: 100%; border-radius: 0; }
.pn-finding__box { position: absolute; border: 2px solid var(--pn-purple); border-radius: 4px; }
.pn-finding__tag { position: absolute; top: 6px; left: 6px; display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 4px; background: var(--pn-purple); color: #fff; font-size: 8px; font-weight: 600; }
.pn-finding__t b { display: block; font-size: 12px; font-weight: 600; } .pn-finding__t small { font-size: 10px; color: var(--pn-purple); }
.pn-finding__acts { display: flex; gap: 7px; }
.pn-finding__acts button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; height: 34px; border-radius: 8px; font-size: 10px; font-weight: 600; background: #fff !important; border: 1px solid var(--pn-line) !important; color: var(--pn-sub); }
.pn-finding__acts button:first-child { background: var(--pn-acc) !important; border-color: var(--pn-acc) !important; color: #fff; }
.pn-finding__acts button span { font-size: 9px; }
.pn-pass-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--pn-line); }
.pn-pass-row > div { display: flex; align-items: center; gap: 8px; }
.pn-pass-row b { display: block; font-size: 11px; font-weight: 600; } .pn-pass-row small { font-size: 9px; color: var(--pn-sub); }
.pn-bigcheck { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--pn-green-chip); color: var(--pn-green); }
.pn-saved { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.pn-saved .pn-img { width: 100%; aspect-ratio: 113 / 90; }
.pn-saved__cap { display: flex; justify-content: space-between; align-items: center; margin-top: 5px; font-size: 9px; font-weight: 600; }
.pn-saved__cap span { font-size: 8px; font-weight: 400; color: var(--pn-sub); }
.pn-info { display: flex; align-items: center; gap: 9px; padding: 13px; border-radius: 10px; background: var(--pn-soft); color: var(--pn-acc); font-size: 11px; }

/* 시설 담당 앱 */
.pn-frow { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 88px; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--pn-line); }
.pn-frow__no { display: flex; align-items: center; gap: 7px; font-size: 18px; font-weight: 600; line-height: 26px; }
.pn-frow__no .pn-dot { width: 7px; height: 7px; background: var(--pn-red); }
.pn-frow small { display: block; margin-top: 5px; font-size: 9px; color: var(--pn-sub); }
.pn-frow small.is-red { color: var(--pn-red); }
.pn-frow .pn-chip { height: 28px; font-size: 9px; background: var(--pn-green-chip); color: var(--pn-green); }
.pn-frow .pn-chip.is-off { background: #eef0f3; color: var(--pn-gray); }
.pn-chk { display: flex; flex-direction: column; gap: 5px; }
.pn-chk__row { display: flex; align-items: center; justify-content: space-between; min-height: 43px; padding: 0 9px; border-radius: 9px; background: #fff; border: 1px solid var(--pn-line); font-size: 11px; font-weight: 600; }
.pn-chk__ctl { display: flex; align-items: center; gap: 5px; }
.pn-seg { display: flex; padding: 0; border-radius: 7px; background: var(--pn-bg); border: 1px solid var(--pn-line); overflow: hidden; }
.pn-seg button { display: grid; place-items: center; width: 38px; height: 26px; border-radius: 6px; font-size: 8px; font-weight: 600; color: var(--pn-sub); text-align: center !important; }
.pn-seg button.is-ok { background: var(--pn-green-chip); color: var(--pn-green); }
.pn-seg button.is-bad { background: var(--pn-red-bg); color: var(--pn-red); }
.pn-sq { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--pn-bg) !important; border: 1px solid var(--pn-line) !important; color: var(--pn-sub); }
.pn-exp { display: flex; flex-direction: column; gap: 7px; padding: 10px; border-radius: 10px; background: #fff8f8; border: 1px solid #f7caca; }
.pn-exp .pn-seg { background: #fff; }
.pn-exp__ph { display: flex; gap: 7px; }
.pn-exp__ph .pn-img { width: 76px; height: 66px; flex: none; }
.pn-exp__memo { flex: 1; min-width: 0; padding: 8px; border-radius: 8px; background: #fff; border: 1px solid var(--pn-line); font-size: 9px; white-space: pre-line; }
.pn-sev { display: flex; align-items: center; gap: 7px; }
.pn-sev > span { font-size: 9px; font-weight: 600; color: var(--pn-sub); }
.pn-sev button { flex: 1; display: grid; place-items: center; height: 30px; border-radius: 7px; background: #fff !important; border: 1px solid var(--pn-line) !important; font-size: 8px; font-weight: 600; color: var(--pn-sub); text-align: center !important; }
.pn-sev button[aria-pressed="true"] { background: #fff0d5 !important; border-color: #fff0d5 !important; color: var(--pn-orange); }
.pn-mbtn.is-sm { height: 34px; font-size: 10px; }
.pn-summary90 { display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; border-radius: 10px; background: var(--pn-soft); font-size: 10px; font-weight: 600; color: var(--pn-acc); }
.pn-summary90 i { width: 1px; height: 18px; background: #c9d5e3; }
.pn-hist-tl { display: flex; flex-direction: column; gap: 8px; }
.pn-ht { display: flex; gap: 9px; align-items: stretch; }
.pn-ht__rail { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 18px; flex: none; padding-top: 14px; }
.pn-ht__rail .pn-dot { width: 10px; height: 10px; }
.pn-ht__rail i { flex: 1; width: 1px; background: #d6dae1; }
.pn-ht__card { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; padding: 10px; border-radius: 10px; background: #fff; border: 1px solid var(--pn-line); min-height: 90px; }
.pn-ht__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.pn-ht__top { display: flex; align-items: center; justify-content: space-between; } .pn-ht__top b { font-size: 11px; font-weight: 600; }
.pn-ht__top .pn-chip { height: 24px; font-size: 8px; }
.pn-ht__who { display: flex; align-items: center; gap: 6px; font-size: 9px; color: var(--pn-sub); }
.pn-ht__sum { font-size: 10px; font-weight: 600; }
.pn-ht__ph { display: flex; gap: 5px; flex: none; }
.pn-ht__ph .pn-img { width: 48px; height: 48px; border-radius: 7px; }
.pn-ht__ph em { display: grid; place-items: center; width: 26px; height: 48px; border-radius: 7px; background: var(--pn-bg); font-style: normal; font-size: 10px; font-weight: 600; color: var(--pn-acc); }

/* ── 반응형 ── */
@media (max-width: 1399px) {
  .pn-work { flex-direction: column; align-items: stretch; }
  .pn-detail { width: auto; }
  .pn-split { flex-direction: column; align-items: stretch; }
  .pn-hist { width: auto; }
  .pn-rep-mid, .pn-rep-bot, .pn-plan { flex-direction: column; }
  .pn-week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .pn-kpis, .pn-kpis.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pn-top { height: auto; min-height: 72px; padding: 12px 16px; flex-wrap: wrap; }
  .pn-top__title { flex-wrap: wrap; gap: 8px 14px; }
  .pn-issues, .pn-rphotos { grid-template-columns: 1fr; }
  .pn-floor { grid-template-columns: 34px repeat(6, minmax(0, 1fr)); }
  .pn-week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pn-field.is-search, .pn-field.is-period, .pn-field.is-sel { width: 100%; }
  .pn-work, .pn-body, .pn-split { padding-left: 12px; padding-right: 12px; }
  .pn-flow { padding: 16px; }
}

/* ── 실제 동작하는 현장 앱 (한 화면씩) ── */
.pn-flow.pn-app { justify-content: center; }
.pn-foot { flex: none; display: flex; flex-direction: column; gap: 9px; padding: 12px 18px calc(18px + env(safe-area-inset-bottom)); background: var(--pn-bg); border-top: 1px solid var(--pn-line); }
.pn-m.has-foot { padding-bottom: 12px; }
.pn-steps { display: flex; gap: 5px; justify-content: center; }
.pn-steps i { width: 22px; height: 4px; border-radius: 2px; background: #d6dae1; }
.pn-steps i.on { background: var(--pn-acc); }
.pn-back { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--pn-sub); height: 28px; margin: -6px 0 -4px -6px; padding: 0 6px !important; }
.pn-mtab, .pn-frow, .pn-chk__row button { -webkit-tap-highlight-color: transparent; }
button.pn-zone { width: 100%; text-align: left; }
@media (max-width: 767px) {
  body:has(.pn-app) .bottom-nav { display: none; }
  body:has(.pn-app) .shell { padding-bottom: 0; }
  body:has(.pn-app) .pn-top { display: none; }
  .pn-flow.pn-app { padding: 0; background: var(--pn-bg); gap: 0; }
  .pn-app .pn-flow__col { width: 100%; gap: 0; }
  .pn-app .pn-cap { display: none; }
  .pn-app .pn-phone { width: 100%; height: 100dvh; border: 0; border-radius: 0; }
  .pn-app .pn-status { display: none; }
  .pn-app .pn-screen { padding-top: env(safe-area-inset-top); }
}
