/* R44 work dashboard and equipment board. Uses the integrated.css palette. */
body .r44-dashboard-head,body .r44-board-toolbar,body .r44-section-head {display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;}
body .r44-dashboard-head {margin-bottom:16px;}
body .r44-scope,body .r44-count {margin:0;color:#5b6884;font-size:14px;}
body .r44-section-head h3 {margin:0;}
body .r44-section-head .r44-count {font-weight:400;margin-left:4px;}

/* R47: five tiles (승인 대기, 대여 중, 반납 확인 대기, 연체, 대여 가능); no 출고 대기. */
body .r44-kpi-grid {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:20px;}
body .r44-kpi {display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-height:0;padding:14px 16px;text-align:left;
  background:#fff;border:1px solid #dce2ef;border-radius:12px;color:#17233c;box-shadow:0 2px 8px #17233c05;}
body .r44-kpi:hover,body .r44-kpi:focus-visible {border-color:var(--ui-accent);outline:none;box-shadow:0 0 0 3px #3159d922;}
body .r44-kpi-label {font-size:13px;color:#5b6884;}
body .r44-kpi-value {font-size:28px;line-height:1.1;font-variant-numeric:tabular-nums;}
body .r44-kpi-split {font-size:12px;color:#5b6884;}
body .r44-kpi.alert {border-color:#f0b4bb;background:#fff7f8;}
body .r44-kpi.alert .r44-kpi-value {color:#a51f30;}
body .r44-kpi-available .r44-kpi-value {color:#13674e;}

body .r44-list-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:16px;}
body #r44-list-recent {grid-column:1 / -1;}
body .r44-list {min-width:0;padding:16px;}
body .r44-list .ops-table th,body .r44-list .ops-table td {padding:10px 8px;font-size:14px;}
body .r44-empty {color:#5b6884;margin:12px 0 0;}
body .r44-actions {display:flex;flex-wrap:wrap;gap:6px;}
body .r44-nowrap,body .r44-table .badge {white-space:nowrap;}
body .r44-actions button {min-height:34px;padding:6px 10px;font-size:13px;}
body .r44-table td {vertical-align:middle;}
body .r44-board th {white-space:nowrap;}
body .r44-sort {background:none;border:0;padding:0;min-height:0;font:inherit;font-weight:700;color:inherit;}
body .r44-sort.active {color:var(--ui-accent);}
body .r44-board-search label {min-width:150px;}
body .r44-pager {display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin:16px 0;}
body .r44-pager button.active {background:#eaf0ff;color:#2448b2;font-weight:700;border-color:#b9c8f5;}
body .r44-sr {position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}
body .r44-warning {background:#fff6e5;color:#7a4b00;border-radius:8px;padding:10px 12px;}
body .r44-summary {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px;margin:0 0 4px;}
body .r44-summary div {min-width:0;}
body .r44-summary dt {font-size:12px;color:#5b6884;}
body .r44-summary dd {margin:2px 0 0;overflow-wrap:anywhere;}
body .r44-timeline {margin:0;padding-left:20px;display:grid;gap:8px;}
body .r44-timeline p {margin:4px 0 0;color:#35486b;overflow-wrap:anywhere;}

/* Korean words wrap between words, never mid-word ("장비 창/고"); long codes still break. */
body .r44-table th,body .r44-table td {word-break:keep-all;overflow-wrap:anywhere;}
body .r44-sort:focus-visible,body .r44-pager button:focus-visible,body .r44-actions button:focus-visible,
body .r44-board-search :is(input,select,button):focus-visible,body .r44-list:focus-visible,body .r44-count:focus-visible {
  outline:3px solid var(--ui-accent);outline-offset:2px;}
body .r44-list:focus:not(:focus-visible),body .r44-count:focus:not(:focus-visible) {outline:none;}
body .r44-empty.panel {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;}
body .r44-empty.panel p {margin:0;}
body [aria-busy=true] .r44-board,body [aria-busy=true] .r44-kpi-grid {opacity:.6;transition:opacity .15s;}
body .integrated-dialog form [role=alert].error,body .integrated-dialog form [role=status].error {color:var(--danger,#c62828);font-weight:600;}
@media(prefers-reduced-motion:reduce) { body [aria-busy=true] .r44-board,body [aria-busy=true] .r44-kpi-grid {transition:none;} }

@media(max-width:1599px) { body .r44-list-grid {grid-template-columns:1fr;} }
@media(max-width:1199px) { body .r44-kpi-grid {grid-template-columns:repeat(3,minmax(0,1fr));} }
@media(max-width:767px) {
  body .r44-kpi-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
  body .r44-kpi {padding:12px;}
  body .r44-kpi-value {font-size:24px;}
  body .r44-summary {grid-template-columns:1fr;}
  /* Tables become labelled cards on phones so nothing scrolls sideways. */
  body .r44-table thead {position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);}
  /* styles.css gives every table min-width:700px; cards must fit the phone width instead. */
  body .r44-table {min-width:0;}
  body .r44-table,body .r44-table tbody,body .r44-table tr,body .r44-table td {display:block;width:100%;box-sizing:border-box;}
  body .r44-table tr {border:1px solid #dce2ef;border-radius:12px;padding:8px 12px;margin-bottom:10px;background:#fff;}
  body .r44-table td {display:grid;grid-template-columns:96px minmax(0,1fr);gap:8px;border:0;padding:6px 0;}
  body .r44-table td::before {content:attr(data-label);color:#5b6884;font-size:13px;}
  body .r44-table td.r44-actions-cell {display:block;}
  body .r44-table td.r44-actions-cell::before {display:block;margin-bottom:6px;}
  body .r44-nowrap {white-space:normal;}
  body .r44-board-search label {min-width:0;}
  /* Compact two-column filter so the first results are visible without long scrolling. */
  body .r44-board-search {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px;}
  body .r44-board-search :is(input,select) {width:100%;min-width:0;box-sizing:border-box;}
  body .r44-pager button,body .r44-actions button {min-height:44px;min-width:44px;}
}

/* Loan dialogs (checkout/return/approve/detail) share one single-column layout. */
body .integrated-dialog .ops-form:has(> .r44-summary) {grid-template-columns:minmax(0,1fr);}
body .integrated-dialog .ops-form:has(> .r44-summary) > button {width:100%;}
