/* R46: page sub-menus inside the page, network board, book board. Shares the R44 board styles. */
body .page-subnav {display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px;}
body .page-subnav:empty {display:none;}
body .page-subnav button {min-height:36px;padding:6px 12px;border:1px solid #ccd5df;border-radius:8px;background:#fff;cursor:pointer;}

/* Network board toolbar: 망 구분 chips + current connection IP + IP 등록 */
body .r46-network-toolbar {display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin:0 0 12px;}
body .r46-chips {display:flex;flex-wrap:wrap;gap:6px;}
body .r46-chip {min-height:36px;padding:6px 14px;border:1px solid #ccd5df;border-radius:999px;background:#fff;color:#17233c;
  font-size:14px;cursor:pointer;}
body .r46-chip[aria-pressed=true] {background:var(--ui-accent,#3159d9);border-color:var(--ui-accent,#3159d9);color:#fff;font-weight:600;}
body .r46-chip:focus-visible {outline:3px solid #3159d955;outline-offset:2px;}
body .r46-toolbar-side {display:flex;flex-wrap:wrap;align-items:center;gap:10px;}
body .r46-current-ip {font-size:14px;color:#5b6884;font-variant-numeric:tabular-nums;}
body .r46-network-table td,body .r46-book-table td {vertical-align:middle;}
/* Korean words are never split mid-word. Only free-text cells (title, hostname, project) may break
   long unbroken strings, and they keep a minimum width so no column collapses. */
body .r46-network-table td,body .r46-book-table td {word-break:keep-all;overflow-wrap:break-word;}
/* styles.css sets `th, td {padding:13px 14px !important}` globally; only !important can narrow it here. */
body table.r46-book-table th,body table.r46-book-table td,
body table.r46-network-table th,body table.r46-network-table td {padding:10px 8px !important;font-size:14px;}
/* Headers wrap between words only ("전체 / 수량"), so twelve columns fit a 1440px screen. */
body .r46-book-table th,body .r46-network-table th {white-space:normal;word-break:keep-all;}
body .r46-book-table td[data-label="전체 수량"],body .r46-book-table td[data-label="대여 가능"],
body .r46-book-table td[data-label="대여 중"] {white-space:nowrap;}
/* Short headers (번호, 전체 수량, 대여 가능, 대여 중) stay on one line instead of one letter per line. */
body table.r46-book-table th:is(:nth-child(1),:nth-child(6),:nth-child(7),:nth-child(8)),
body table.r46-network-table th:nth-child(1) {white-space:nowrap;}
body .r46-book-table td[data-label="저자 / 출판사"],body .r46-book-table td[data-label="현재 대여자"] {min-width:80px;}
body table.r46-book-table td.r46-book-title,body .r46-network-table td[data-label="호스트명"],
body .r46-network-table td[data-label="프로젝트 / 용도"] {min-width:120px;overflow-wrap:anywhere;}
body table.r46-book-table td.r46-book-title {min-width:124px;}
body .r46-book-table .r44-actions-cell,body .r46-network-table .r44-actions-cell {min-width:162px;}
body .r46-book-title {font-weight:600;}
body .r46-book-loans .ops-table-wrap {max-height:60vh;overflow:auto;}
body .r46-book-detail h3 {margin:16px 0 8px;font-size:16px;}
body [aria-busy=true] .r46-network-board,body [aria-busy=true] .r46-book-board {opacity:.6;transition:opacity .15s;}
@media(prefers-reduced-motion:reduce) {
  body [aria-busy=true] .r46-network-board,body [aria-busy=true] .r46-book-board {transition:none;}
}

@media(max-width:767px) {
  body .r46-network-toolbar {flex-direction:column;align-items:stretch;}
  body .r46-chips {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}
  body .r46-chip {width:100%;min-height:44px;}
  body .r46-toolbar-side {justify-content:space-between;}
  body .r46-book-title {min-width:0;}
  body .r46-book-table .r44-actions-cell,body .r46-network-table .r44-actions-cell {min-width:0;}
  body .r46-book-table td[data-label] {white-space:normal;}
  body .r46-pager button,body .page-subnav button {min-height:44px;min-width:44px;}
}

/* R47: notice for loans approved before R47 that still wait for hand-over (shown only if any). */
body .r47-legacy-notice {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;
  margin:0 0 16px;padding:12px 16px;border:1px solid #f0d28a;background:#fffaf0;border-radius:12px;}
body .r47-legacy-notice p {margin:0;color:#6b4e00;}
