/* LLM Gateway › 모니터링 › 요청 기록, the user's design (Click LLM Gateway.html; DESIGN-FIX 11-21): the screen's own layout on the parts
   it draws. Values are click-tokens.css tokens; parts keep their own size, colour and type.
   Top to bottom: one quiet line (the period, the collection's state, 분석) at the right; the status cells (lx-scard); the
   toolbar (lx-ltools: the view segment, the find, 사람 · 모델 · 필터, CSV and the other files); the list's card (lx-lcard: a
   banded table, its foot the page turn and a short note). 거절 사유 and 세션 are the same toolbar over their own card. */

#gw-requests-root .gwr-page{display:flex;flex-direction:column;gap:var(--sp-4);min-width:0}
#gw-requests-root .gwr-body{display:flex;flex-direction:column;gap:var(--sp-4);min-width:0}
#gw-requests-root .gwr-body>*{margin-top:0;margin-bottom:0}
#gw-requests-root .gwr-body>:empty{display:none}

/* -- the quiet line: the period and the collection's state at the right -- */
#gw-requests-root .gwr-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--sp-2) var(--sp-3);min-width:0}
#gw-requests-root .gwr-meta>.lx-grow{flex:1 1 0}
#gw-requests-root .gwr-env:empty{display:none}

/* -- the toolbar -- */
#gw-requests-root .gwr-tools{min-width:0}
#gw-requests-root .gwr-tools>.gwr-views{display:inline-flex;flex:none}
#gw-requests-root .gwr-tools>.lx-find{flex:0 1 280px;min-width:180px}
#gw-requests-root .gwr-tools>[data-gwc-person-slot]:empty{display:none}
#gw-requests-root .gwr-tools>[data-gwc-person-slot]{display:inline-flex}
#gw-requests-root .gwr-out{display:inline-flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2)}
#gw-requests-root .gwr-out:empty{display:none}
#gw-requests-root .gwr-out .lx-fdd-o{white-space:nowrap}
#gw-requests-root .lx-fdd-pop>.lx-find{display:flex;width:100%;margin:0 0 var(--sp-1)}
#gw-requests-root .lx-fdd-pop>.rm9-people{display:flex;flex-direction:column;align-items:stretch;gap:2px}
#gw-requests-root .lx-fdd-pop>.rm9-people:empty{display:none}
#gw-requests-root .gwr-more{padding:0 var(--sp-2)}

/* -- the list: a line said only where a condition narrows it; the period's plain total is the foot's -- */
#gw-requests-root [data-gwc-rows]{display:flex;flex-direction:column;gap:var(--sp-2);min-width:0}
#gw-requests-root [data-gwc-lead]:empty,#gw-requests-root [data-gwc-lead]:not(:has(>:not([data-gwc-total-count]))){position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
#gw-requests-root [data-gwc-lead]>*{margin:0}
#gw-requests-root .gwr-card{min-width:0}
#gw-requests-root .gwr-card>[data-gwc-list-slot]>.lx-empty,#gw-requests-root .gwr-card>[data-gwc-list-slot]>[data-gwc-none],#gw-requests-root .gwr-card>[data-gwc-list-slot]>[data-gwc-unfound]{padding:var(--sp-5)}
#gw-requests-root .gwr-card .gwr-unread{padding:var(--sp-5)}
#gw-requests-root .gwr-card>[data-gwc-list-slot]>.ui-skeleton,#gw-requests-root .gwr-card [data-gwc-waiting]>.ui-skeleton{padding:0 var(--sp-5) var(--sp-4)}
#gw-requests-root .gwr-t{border:0;border-radius:0}
#gw-requests-root .gwr-t>.lx-tr.lx-th{min-height:42px;border-top:0}
#gw-requests-root .gwr-t>.lx-tr:not(.lx-th){min-height:58px;cursor:pointer}
#gw-requests-root .gwr-t>.lx-tr:last-child{border-bottom:1px solid var(--divider-soft)}
#gw-requests-root .gwr-foot{min-height:44px}
#gw-requests-root .gwr-foot>.gwr-note{margin-left:auto}
#gw-requests-root .gwr-note{flex-wrap:wrap}

/* -- 요청's columns: 시각 · 보낸 사람 · 모델 · 결과 · 토큰 · 가드레일 · › -- */
#gw-requests-root .gwr-cols{grid-template-columns:132px minmax(0,1.25fr) minmax(0,1fr) minmax(0,1.1fr) 88px minmax(0,.7fr) 20px;align-items:center}
#gw-requests-root .gwr-cols>.lx-cell{min-width:0}
#gw-requests-root .gwr-cols>.gwr-c-tokens{align-items:flex-end;text-align:right;font-variant-numeric:tabular-nums}
#gw-requests-root .gwr-cols>.gwr-c-go{display:flex;justify-content:flex-end}
#gw-requests-root .gwr-cols>.gwr-c-guard{flex-direction:row;flex-wrap:wrap;align-items:center;gap:var(--sp-1)}
#gw-requests-root .gwr-c-person [data-gwc-basis]{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
#gw-requests-root .gwr-result{display:inline-flex;flex-wrap:wrap;align-items:center;column-gap:6px;row-gap:2px;min-width:0}
#gw-requests-root .gwr-result>.lx-tdot{flex:none}
#gw-requests-root .gwr-why{min-width:0}
#gw-requests-root .rm9-sort{padding:0;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer}
/* the panel open beside the list: 시각 · 보낸 사람 · 결과 and › stay */
.lx-split:has(>.lx-aside):where(:not([data-lx-roomy])) #gw-requests-root .gwr-cols,
#gw-requests-root .lx-split:has(>.lx-aside):where(:not([data-lx-roomy])) .gwr-cols{grid-template-columns:112px minmax(0,1fr) minmax(0,1fr) 20px}
.lx-split:has(>.lx-aside):where(:not([data-lx-roomy])) #gw-requests-root .gwr-cols>:is(:nth-child(3),:nth-child(5),:nth-child(6)),
#gw-requests-root .lx-split:has(>.lx-aside):where(:not([data-lx-roomy])) .gwr-cols>:is(:nth-child(3),:nth-child(5),:nth-child(6)){display:none}

/* -- 거절 사유: 사유 · 요청 · 다음 행동 · 요청 보기 -- */
#gw-requests-root .gwr-t>.rm9-reason-cols{grid-template-columns:minmax(0,1.6fr) 72px minmax(0,2.4fr) auto 20px}
#gw-requests-root .gwr-t>.rm9-reason-cols>.gwr-c-go{display:flex;justify-content:flex-end}
#gw-requests-root .gwr-t>.rm9-reason-cols>.gwr-reason-nm{font-weight:var(--fw-semibold)}
#gw-requests-root .gwr-t>.rm9-reason-cols>.lx-r:nth-child(2){font-weight:var(--fw-semibold);font-variant-numeric:tabular-nums}

/* -- 세션: the same card; an empty period is the design's icon tile, one line and one way on -- */
#gw-requests-root .gwr-t>.rm9-session-cols{grid-template-columns:minmax(0,1.5fr) minmax(0,.8fr) minmax(0,1.2fr) 132px minmax(0,.9fr) 20px}
#gw-requests-root .gwr-t>.rm9-session-cols>.gwr-c-go{display:flex;justify-content:flex-end}
#gw-requests-root .gwr-card .lx-lempty>.lx-btn{margin-top:var(--sp-1)}
#gw-requests-root .gwr-beside{flex-wrap:wrap;gap:var(--sp-1) var(--sp-3)}
#gw-requests-root .gwr-beside:empty{display:none}
.lx-split:has(>.lx-aside):where(:not([data-lx-roomy])) #gw-requests-root .gwr-t>.rm9-session-cols,
#gw-requests-root .lx-split:has(>.lx-aside):where(:not([data-lx-roomy])) .gwr-t>.rm9-session-cols{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,.9fr) 20px}
.lx-split:has(>.lx-aside):where(:not([data-lx-roomy])) #gw-requests-root .gwr-t>.rm9-session-cols>:is(:nth-child(3),:nth-child(4)),
#gw-requests-root .lx-split:has(>.lx-aside):where(:not([data-lx-roomy])) .gwr-t>.rm9-session-cols>:is(:nth-child(3),:nth-child(4)){display:none}

/* -- narrower (the design at 768): 시각 · 보낸 사람 · 모델 · 결과; the rest is the panel's -- */
@media (max-width:1100px){
  #gw-requests-root .gwr-cols{grid-template-columns:116px minmax(0,1fr) minmax(0,1fr) minmax(0,1fr)}
  #gw-requests-root .gwr-cols>:is(:nth-child(5),:nth-child(6),:nth-child(7)){display:none}
}
@media (max-width:900px){
  #gw-requests-root .gwr-t>.lx-tr.gwr-cols{grid-template-columns:104px minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);row-gap:0}
  #gw-requests-root .gwr-t>.lx-tr.gwr-cols.lx-th{position:static;width:auto;height:auto;margin:0;overflow:visible;clip-path:none;white-space:normal}
  #gw-requests-root .gwr-t>.gwr-cols>[data-label]::before{content:none}
  /* 거절 사유 keeps its four columns and its head (the cells' own names off) */
  #gw-requests-root .gwr-t>.lx-tr.rm9-reason-cols{grid-template-columns:minmax(0,1.3fr) 56px minmax(0,1.6fr) auto 20px;row-gap:0}
  #gw-requests-root .gwr-t>.lx-tr.rm9-reason-cols.lx-th{position:static;width:auto;height:auto;margin:0;overflow:visible;clip-path:none;white-space:normal}
  #gw-requests-root .gwr-t>.rm9-reason-cols>[data-label]::before{content:none}
  #gw-requests-root .gwr-t>.rm9-reason-cols>.lx-r{justify-self:end;text-align:right}
  #gw-requests-root .gwr-tools>.lx-find{flex:1 1 200px}
}
