/* 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. */

/* The page: the status cells, the tool row, the list -- no headline (the screen's name is read aloud only). */
#gw-detections-root{gap:var(--sp-4)}
#gw-detections-root .gd-top:not([hidden]){gap:var(--sp-2)}

/* The tool row (.lx-ltools): the detections' 찾기 and dropdowns, the period and 출처 flow in it as its own items. */
#gw-detections-root .gd-first{flex-wrap:wrap;row-gap:var(--sp-2)}
#gw-detections-root .gd-first>.gd-tools-at:not([hidden]),#gw-detections-root .gd-first .gd-filters,#gw-detections-root .gd-first .gd-person-at{display:contents}
#gw-detections-root .gd-first .gd-find{flex:1 1 200px;min-width:160px;max-width:280px}
#gw-detections-root .gd-first .gw-period{flex:none}
#gw-detections-root .gd-first>.gd-lede{display:contents}
#gw-detections-root .gd-first>.gd-lede>.lx-lede-sub{flex:0 1 auto;min-width:0;margin:0}
#gw-detections-root .gd-first>.gd-lede>.lx-lede-sub:empty{display:none}
#gw-detections-root .gd-first .lx-fdd-pop .gd-fdd-said{margin:0;padding:6px 10px 2px}

/* The list's card: the table under its grey head band, the rows two lines high, the › at the row's end, the foot. */
#gw-detections-root .gd-list-card{min-width:0}
#gw-detections-root .gd-list-card>.gd-table-wrap{overflow-x:auto}
#gw-detections-root .gd-list-card .gd-table{width:100%;min-width:0}
#gw-detections-root .gd-list-card .gd-table th{background:var(--bg-head);white-space:nowrap}
#gw-detections-root .gd-list-card .gd-table td{padding-block:var(--sp-3);vertical-align:middle}
#gw-detections-root .gd-list-card .gd-table :is(th,td):first-child{padding-left:var(--sp-5)}
#gw-detections-root .gd-list-card .gd-table :is(th,td):last-child{width:1%;padding-right:var(--sp-5);text-align:right}
#gw-detections-root .gd-list-card .gd-table:not([data-gd-web-ai-table]) th:nth-child(1){width:12%}
#gw-detections-root .gd-list-card .gd-table:not([data-gd-web-ai-table]) th:nth-child(2){width:26%}
#gw-detections-root .gd-list-card .gd-table:not([data-gd-web-ai-table]) th:nth-child(3){width:23%}
#gw-detections-root .gd-list-card .gd-table:not([data-gd-web-ai-table]) th:nth-child(4){width:19%}
#gw-detections-root .gd-list-card .gd-table:not([data-gd-web-ai-table]) th:nth-child(5){width:8%}
#gw-detections-root .gd-list-card .gd-table tbody td:nth-child(3){white-space:normal}
#gw-detections-root .gd-list-card .gd-table td>:is(.lx-nm,.lx-lbl){max-width:300px}
#gw-detections-root .gd-main{min-width:0}
#gw-detections-root .gd-main>.lx-mcell-tx{min-width:0}
#gw-detections-root .gd-main .gd-cat>.gd-source{display:inline}
#gw-detections-root .gd-main .gd-cat>.gd-source::before{content:"·";margin-right:6px}
#gw-detections-root .gd-main .gd-rules .lx-counts{margin:0}
#gw-detections-root .gd-table .gd-id{display:inline-flex;justify-content:flex-end}
#gw-detections-root .gd-foot>[data-gd-pager]>.lx-pager{justify-content:flex-start;gap:var(--sp-1);padding:0;color:inherit;font-size:inherit}
#gw-detections-root .gd-foot>[data-gd-pager]>.lx-pager>span{margin-right:6px}
#gw-detections-root .gd-foot>[data-gd-web-ai-pager]{margin-left:auto}
#gw-detections-root .gd-foot>[data-gd-web-ai-pager]>.lx-pager{gap:var(--sp-1);padding:0;color:inherit;font-size:inherit}

/* 웹 AI 탐지 under the list: its title, then its card. */
#gw-detections-root [data-gd-web-ai]:not([hidden]){display:flex;flex-direction:column;gap:var(--sp-2);min-width:0}
#gw-detections-root [data-gd-web-ai]>.lx-h3{margin:var(--sp-2) 0 0}

/* Narrow windows (the design's 768): the five cells stay on one line, and with no panel open the list keeps its columns
   and scrolls sideways in its card, as the design's table runs past the window (a panel beside it still drops them). */
@media (max-width:900px){
  #gw-detections-root .gd-cells .lx-scells{grid-template-columns:repeat(5,minmax(0,1fr))}
  #gw-detections-root .gd-cells .lx-scell{padding-inline:var(--sp-4)}
}
@media (max-width:1100px){
  .lx-split:not(:has(>.lx-aside)) #gw-detections-root .gd-list-card .gd-table:not([data-gd-web-ai-table]){min-width:960px}
  .lx-split:not(:has(>.lx-aside)) #gw-detections-root .gd-list-card .gd-table .lx-drop{display:table-cell}
  .lx-split:not(:has(>.lx-aside)) #gw-detections-root .gd-list-card .gd-table .lx-dropsum{display:none}
}
