/* ── 공용 물품 대여(#/items — views/items.js, 사용자 결정 2026-10-14) ─────────────────
   휴대폰 먼저(QR 을 찍어 연다): 글자 17px 이상, 누르는 곳 48px 이상, 큰 버튼 60px. PC 는 한눈에(카드 + 대여 기록).
   앱 색은 짙은 하늘색(--items) — 앱 전환 · 빠른 메뉴의 그림 칸 · 물품 그림에만. 상태 색은 포털의 badge(보관 중 ok · 사용 중 npms · 반납 지연 dgr). */
:root { --items: #0369A1; --items-d: #075985; --items-t: #E0F2FE; }
.appicon.items { background: var(--items); }
.tile.items { background: var(--items-t); color: var(--items-d); }
.quick-app i.items { background: var(--items); }

.it-page { max-width: 1240px; gap: 18px; font-size: 16px; }
.it-one { max-width: 720px; }
.it-crumb { font-size: 15px; color: var(--ink3); }
.it-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.it-head .grow { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.it-head h1 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
.it-summary, .it-kind { font-size: 16px; color: var(--ink2); }
.it-icon { width: 52px; height: 52px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; background: var(--items-t); color: var(--items-d); }
.it-icon .ic { width: 28px; height: 28px; }
.it-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge.it-badge { padding: 5px 12px; font-size: 14px; }
.it-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.it-tools .btn { height: 44px; font-size: 15px; gap: 6px; }
.it-page .notice { font-size: 16px; padding: 14px 16px; }
.it-howto { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink2); }

/* 한눈에 — 물품 카드 */
.it-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.it-card { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 14px; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--ok); border-radius: 16px; color: var(--ink); text-decoration: none; }
.it-card:hover, .it-card:focus-visible { color: var(--ink); box-shadow: 0 4px 16px rgba(23, 33, 46, .1); }
.it-card.out { border-left-color: var(--npms); }
.it-card.late { border-left-color: var(--dgr); }
.it-card.lost { border-left-color: var(--wrn); }
.it-card.off { opacity: .6; }
.it-card-head { display: flex; align-items: center; gap: 12px; }
.it-card-head .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.it-card-head .it-icon { width: 44px; height: 44px; border-radius: 12px; }
.it-card-name { font-size: 20px; }
.it-card-line { display: flex; flex-direction: column; gap: 2px; font-size: 16px; }
.it-card-line b { font-size: 17px; }
.it-card-line b.it-ok { color: var(--ok); }
.it-place { margin-top: -8px; font-size: 16px; color: var(--ink2); }
.it-card-lost { font-size: 15px; color: var(--wrn-ink); font-weight: 700; }
.it-mini { margin: 0; padding: 8px 0 0; list-style: none; border-top: 1px solid #EEF1F5; display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; }
.it-mini li { display: flex; justify-content: space-between; gap: 10px; }
.it-open { align-self: flex-end; display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 700; color: var(--items-d); }

/* 대여 기록 */
.it-history { display: flex; flex-direction: column; gap: 12px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.it-hist-head { display: flex; align-items: baseline; gap: 10px; }
.it-sub { font-size: 19px; font-weight: 700; }
.it-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.input.it-filter { width: auto; min-width: 150px; height: 44px; font-size: 15px; }
/* 검색 칸(대여 기록 · 최근 기록) — 돋보기 그림을 칸 안 왼쪽에 */
.it-searchbox { position: relative; flex: 1 1 260px; max-width: 420px; }
.it-searchbox > .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink3); pointer-events: none; }
.input.it-search { width: 100%; height: 44px; padding-left: 40px; font-size: 15px; }
.it-hist { margin: 0; padding: 0; list-style: none; }
.it-hrow { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr) minmax(0, .9fr) minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 4px 14px; padding: 12px 4px; border-top: 1px solid #EEF1F5; font-size: 15.5px; }
.it-hrow:first-child { border-top: none; }
.it-hrow.open { background: #F5FAFE; }
.it-hrow.it-hhead { padding: 6px 4px; font-size: 13px; font-weight: 700; color: var(--ink3); border-bottom: 1px solid var(--line); }
.it-hmeta { min-width: 0; overflow-wrap: anywhere; }
.it-hmeta.none { color: var(--ink3); }
.it-hlbl { display: none; }
.it-hwho, .it-htime, .it-hend { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.it-hwho b { font-size: 16.5px; }
.it-hitem { font-size: 14px; font-weight: 700; color: var(--items-d); }
.it-hvia, .it-hdur, .it-hreason { font-size: 14px; color: var(--ink3); }
.it-hend .badge { font-size: 12.5px; }

.it-day { display: flex; flex-direction: column; gap: 4px; }
.it-dayh { display: flex; align-items: baseline; gap: 8px; font-size: 16.5px; font-weight: 700; padding-bottom: 4px; border-bottom: 2px solid var(--line); }
.it-daycnt { font-size: 14px; font-weight: 400; color: var(--ink3); }
.it-more { align-self: stretch; min-height: 48px; }

/* 물품 화면 */
.it-box { display: flex; flex-direction: column; gap: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.it-box.mine { border-color: #9CC9F5; background: #F8FBFF; }
.it-box.late { border-color: #EBB0AA; background: #FFFAF9; }
.it-state-line { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; }
.it-state-line.ok { color: var(--ok); }
.it-state-line.npms { color: var(--npms-d); }
.it-state-line.dgr { color: var(--dgr); }
.it-holder { display: flex; flex-direction: column; gap: 4px; }
.it-holder b { font-size: 22px; line-height: 1.35; }
.it-holder span { font-size: 17px; color: var(--ink2); }
.it-label { font-size: 15px; font-weight: 700; color: var(--ink2); }
.it-due, .it-field { display: flex; flex-direction: column; gap: 8px; }
.it-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.it-chip { min-height: 48px; padding: 0 18px; border: 1px solid var(--line2); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 17px; font-weight: 700; }
.it-chip[aria-checked="true"] { border-color: var(--items); background: var(--items); color: #fff; }
.input.it-input, .input.it-due-input { height: 52px; font-size: 17px; border-radius: 12px; }
.input.it-text { height: auto; padding: 10px 14px; font-size: 16px; line-height: 1.5; resize: vertical; }
.it-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn.it-big { height: 64px; border-radius: 16px; font-size: 21px; gap: 10px; }
.btn.it-big .ic { width: 24px; height: 24px; }
.btn.it-big.go { background: var(--items); border-color: var(--items); }
.btn.it-big.go:hover:not(:disabled) { background: var(--items-d); }
.btn.it-big.back { background: var(--ok); border-color: var(--ok); }
.btn.it-big.back:hover:not(:disabled) { background: #0F6A33; }
.btn.it-big.call { height: 56px; font-size: 18px; }
.it-facts { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px 12px; margin: 0; padding: 14px 16px; background: var(--soft); border-radius: 12px; font-size: 17px; }
.it-facts dt { color: var(--ink3); }
.it-facts dd { margin: 0; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.it-facts dd.dgr { color: var(--dgr); }
.it-hint, .it-note, .it-managers { font-size: 15.5px; color: var(--ink2); }
.it-note { white-space: pre-line; }
.it-manage { gap: 14px; }
.it-act { display: flex; flex-wrap: wrap; gap: 8px; }
.it-act .btn { height: 48px; font-size: 15.5px; gap: 6px; }
.it-qr { display: flex; align-items: center; gap: 16px; }
.it-qr svg { width: 128px; height: 128px; flex: none; border: 1px solid var(--line); border-radius: 8px; }
.it-qr p { min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.it-url { color: var(--ink3); overflow-wrap: anywhere; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.it-alerts details { font-size: 15px; }
.it-alerts summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; color: var(--ink2); }
.it-alert-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.it-alert-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; }
.it-when { color: var(--ink3); font-variant-numeric: tabular-nums; }
.it-back a { display: inline-flex; align-items: center; gap: 4px; min-height: 48px; font-size: 16px; font-weight: 700; color: var(--items-d); }

/* 창(등록 · 수정 · 넘겨받기 · 사유) — dom.js#dialog 의 cls 'it-dialog' */
.it-dlg { display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 1.55; }
.dlg.it-dialog h2 { font-size: 20px; }
.dlg.it-dialog .dlg-body p, .dlg.it-dialog .it-dlg p { font-size: 17px; line-height: 1.55; }
.dlg.it-dialog .dlg-foot .btn { height: 52px; min-width: 96px; padding: 0 20px; border-radius: 12px; font-size: 17px; }
.it-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.it-form .field:nth-child(5), .it-form .field:nth-child(6), .it-form .it-check { grid-column: 1 / -1; }
.it-mgr-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.it-mgr { display: flex; flex-wrap: wrap; gap: 6px; }
.it-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; }
.it-check input { width: 20px; height: 20px; }

@media (max-width: 719px) {
  .it-page { padding: 14px 16px 32px; gap: 14px; font-size: 17px; }
  .it-crumb { display: none; }
  .it-head h1 { font-size: 26px; }
  .it-summary, .it-kind, .it-howto { font-size: 17px; }
  .it-cards { grid-template-columns: 1fr; }
  .it-mini { font-size: 16px; }
  .it-open { font-size: 16px; }
  .it-tools .btn { height: 48px; font-size: 16px; }
  .it-history { padding: 14px; }
  .input.it-filter { flex: 1 1 140px; height: 48px; font-size: 17px; }
  .it-hrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: 'who who' 'purpose site' 'time time' 'end end'; gap: 4px 12px; padding: 12px 2px; font-size: 17px; }
  .it-hrow.it-hhead { display: none; }
  .it-hwho { grid-area: who; } .it-htime { grid-area: time; } .it-hend { grid-area: end; }
  .it-hmeta.purpose { grid-area: purpose; } .it-hmeta.site { grid-area: site; }
  .it-hmeta { font-size: 16px; color: var(--ink2); }
  .it-hlbl { display: inline; margin-right: 6px; font-weight: 700; color: var(--ink3); }
  .it-searchbox { max-width: none; flex: 1 1 100%; }
  .input.it-search { height: 48px; font-size: 17px; }
  .it-hvia, .it-hdur, .it-hreason, .it-hitem { font-size: 16px; }
  .it-box { padding: 16px; }
  .it-two { grid-template-columns: 1fr; }
  .it-hint, .it-note, .it-managers { font-size: 17px; }
  .it-dayh { font-size: 18px; }
  .it-daycnt { font-size: 16px; }
  .it-act .btn { flex: 1 1 calc(50% - 4px); font-size: 16px; }
  .it-form { grid-template-columns: 1fr; }
  .it-qr svg { width: 112px; height: 112px; }
}
