/* ① 직원 PC: 바탕화면 + 창 2개(문서 보기, PSL PC agent) + 작업 표시줄.
   Agent 창은 실제 창 크기(800×652 = 제목줄 30 + 화면 622)로 그린 뒤 칸에 맞춰 통째로 축소한다(pc.js 의 fit).
   Agent 화면의 치수·색·글꼴(SUIT)은 실제 Agent 소스(psl-pc-agent 의 pages, components)의 값을 그대로 옮겼다. */
@font-face { font-family: 'SUIT'; font-weight: 400; font-display: swap; src: local('SUIT Regular'), local('SUIT-Regular'), url(/fonts/SUIT-Regular.woff2) format('woff2'); }
@font-face { font-family: 'SUIT'; font-weight: 500; font-display: swap; src: local('SUIT Medium'), local('SUIT-Medium'), url(/fonts/SUIT-Medium.woff2) format('woff2'); }
@font-face { font-family: 'SUIT'; font-weight: 600; font-display: swap; src: local('SUIT SemiBold'), local('SUIT-SemiBold'), url(/fonts/SUIT-SemiBold.woff2) format('woff2'); }
@font-face { font-family: 'SUIT'; font-weight: 700; font-display: swap; src: local('SUIT Bold'), local('SUIT-Bold'), url(/fonts/SUIT-Bold.woff2) format('woff2'); }

.desk { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #24598f; font-family: var(--font); }
.desk-area { position: relative; flex: 1; min-height: 0; min-width: 0; padding: 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; }

/* 작업 표시줄 */
.taskbar { flex: none; height: 40px; display: flex; align-items: stretch; gap: 2px; padding: 0 6px 0 0; background: #1b2430; color: #e8ecf2; }
.start { flex: none; width: 44px; display: flex; align-items: center; justify-content: center; }
.start svg { width: 16px; height: 16px; fill: #6cc3ff; }
.task { min-width: 0; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #e8ecf2; font-size: 13px; white-space: nowrap; }
.task span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.task:hover { background: rgba(255, 255, 255, .08); }
.task.is-on { background: rgba(255, 255, 255, .13); border-bottom-color: #6cc3ff; }
.clock { flex: none; margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; padding-left: 8px; font-size: 12px; line-height: 1.3; white-space: nowrap; }

/* 창 공통 */
.win { display: flex; flex-direction: column; background: #fff; border: 1px solid #101216; border-radius: 6px; overflow: hidden; box-shadow: 0 8px 22px rgba(0, 0, 0, .32); }
.win.is-hidden, .ag-fit.is-hidden { display: none; }
.win-bar { flex: none; height: 30px; display: flex; align-items: center; background: #202020; color: #fff; font-size: 12px; }
.win-ico { flex: none; width: 14px; height: 14px; border-radius: 2px; background: #9aa4b2; }
.win-ico.is-psl { border-radius: 0; background: linear-gradient(135deg, #0d59ab, #3a8be2); clip-path: polygon(30% 0, 100% 0, 100% 70%, 62% 70%, 62% 100%, 0 100%, 0 46%, 30% 46%); }
.win-bar > .win-ico { margin: 0 8px 0 10px; }
.win-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-ctl { flex: none; display: flex; height: 100%; }
.win-ctl i { width: 44px; display: flex; align-items: center; justify-content: center; }
.win-ctl svg { width: 10px; height: 10px; stroke: #fff; fill: none; stroke-width: 1; }
.win-ctl i.is-off svg { stroke: #6f6f6f; }
.win-body { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }

/* 문서 보기: 칸을 가득 채우는 창. 도구 줄에서 문서를 고르고 [인쇄]를 누른다. */
.win-doc { align-self: stretch; flex: 1; min-width: 0; min-height: 0; }
.dw-toolbar { flex: none; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 8px; background: #f3f3f3; border-bottom: 1px solid #d6d6d6; font-size: 13px; }
.dw-select { flex: 1; min-width: 0; height: 28px; padding: 0 6px; font-size: 13px; border: 1px solid #c2c2c2; border-radius: 4px; background: #fff; color: #1b1b1b; }
.dw-meta { flex: none; color: #5c5c5c; font-size: 12px; white-space: nowrap; }
.dw-print { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border: 1px solid #0067c0; border-radius: 4px; background: #0067c0; color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.dw-print svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 1.6; }
.dw-frame { flex: 1; min-height: 0; width: 100%; border: 0; background: #8b939f; }
@container zone (max-width: 300px) { .dw-meta { display: none; } }
/* 다른 칸을 크게 보는 동안 아주 좁아진 칸: 작업 표시줄은 아이콘만, 알림은 숨긴다. */
@container zone (max-width: 250px) { .clock, .task span:last-child, .desk-toast, .dw-print svg { display: none; } .task { padding: 0 10px; } .dw-toolbar { gap: 4px; padding: 0 4px; } .dw-print { padding: 0 8px; } .desk-area { padding: 6px; } }

/* 인쇄 대화상자 */
.pd-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, .3); display: flex; align-items: center; justify-content: center; padding: 10px; }
.pd { width: 340px; max-width: 100%; background: #fff; border: 1px solid #8f8f8f; border-radius: 6px; overflow: hidden; font-size: 13px; color: #1b1b1b; box-shadow: 0 10px 28px rgba(0, 0, 0, .3); }
.pd-title { padding: 12px 16px 4px; font-size: 16px; font-weight: 600; }
.pd-main { padding: 8px 16px 14px; }
.pd p { margin: 0; line-height: 1.55; }
.pd-field { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pd-field:last-child { margin-bottom: 0; }
.pd-field span { flex: none; width: 56px; color: #444; }
.pd-field select, .pd-field input { flex: 1; min-width: 0; height: 30px; padding: 0 8px; font-size: 13px; border: 1px solid #b8b8b8; border-radius: 4px; background: #fff; color: #1b1b1b; }
.pd-field select:disabled { background: #f3f3f3; color: #444; opacity: 1; }
.pd-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; background: #f3f3f3; border-top: 1px solid #e0e0e0; }
.pd-btn { min-width: 84px; height: 30px; padding: 0 14px; border: 1px solid #b8b8b8; background: #fff; border-radius: 4px; font-size: 13px; color: #1b1b1b; }
.pd-btn.is-primary { background: #0067c0; border-color: #0067c0; color: #fff; font-weight: 600; }

/* Agent 가 띄우는 알림(바탕화면 오른쪽 아래) */
.desk-toast { position: absolute; right: 12px; bottom: 10px; width: 300px; max-width: calc(100% - 24px); background: #1f1f1f; color: #fff; border: 1px solid #3c3c3c; border-radius: 6px; padding: 10px 12px; font-size: 13px; line-height: 1.5; box-shadow: 0 6px 18px rgba(0, 0, 0, .4); display: flex; flex-direction: column; gap: 2px; z-index: 3; }
.desk-toast b { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #cfd4dc; }

/* ── PSL PC agent ── */
.ag-fit { position: relative; flex: none; }
.win-agent { position: absolute; left: 0; top: 0; width: 800px; height: 652px; transform-origin: 0 0; border: 0; box-shadow: 0 0 0 1px #101216, 0 8px 22px rgba(0, 0, 0, .32); }
.ag { position: relative; flex: 1; min-height: 0; background: #f8fafc; font-family: 'SUIT', "Malgun Gothic", sans-serif; font-size: 14px; line-height: normal; color: #0f172a; overflow: hidden; }
.ag button, .ag input, .ag select { font-family: inherit; }
.ag button { cursor: pointer; }
.ag-header { padding: 13px 25px 0; display: flex; justify-content: space-between; align-items: center; }
.ag-header.is-login { padding: 16px 28px 0; }
.ag-logo { display: block; width: 58px; margin: 20px 0 27px; cursor: pointer; }
.is-login .ag-logo { width: 66px; margin: 19px 0 28px; cursor: default; }
.ag-logo-button { display: block; width: max-content; margin: 20px 0 27px; padding: 0; border: 0; background: transparent; }
.ag-logo-button .ag-logo { margin: 0; }
.ag-logo-button:focus-visible { outline: 2px solid #2563eb; outline-offset: 4px; border-radius: 4px; }
.ag-logo.is-custom { width: auto; max-width: 90px; max-height: 32px; object-fit: contain; }
.is-login .ag-logo.is-custom { max-width: 180px; max-height: 56px; }
.ag-brand { font-size: 14px; font-weight: 700; letter-spacing: .01em; line-height: 1.2; margin-top: 4px; }
.is-login .ag-brand { font-size: 16px; margin-top: 6px; }
.ag-sub { font-size: 13px; font-weight: 500; color: #64748b; letter-spacing: .01em; line-height: 1.2; margin-top: 2px; }
.ag-right { display: flex; align-items: center; column-gap: 12px; }
.ag-switch { width: 56px; height: 24px; background: #2563eb; border-radius: 999px; position: relative; display: flex; align-items: center; justify-content: flex-end; padding: 0 9px; box-shadow: inset 0 1px 2px rgba(15, 23, 42, .12); }
.ag-switch::after { content: ""; width: 18px; height: 18px; background: #fff; border-radius: 50%; position: absolute; left: 3px; box-shadow: 0 1px 2px rgba(15, 23, 42, .18); }
.ag-switch span { font-size: 14px; font-weight: 700; color: #fff; letter-spacing: .04em; }
.ag-card { display: flex; flex-direction: column; row-gap: 18px; width: 340px; box-sizing: content-box; margin: 56px auto 0; padding: 28px 28px 24px; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; box-shadow: 0 12px 28px rgba(15, 23, 42, .06), 0 2px 6px rgba(15, 23, 42, .04); }
.ag-field { display: flex; flex-direction: column; row-gap: 6px; }
.ag-field label { font-size: 14px; font-weight: 600; color: #334155; letter-spacing: .02em; }
.ag-input { height: 40px; padding: 10px 12px; border: 1px solid #e2e8f0; background: #fff; border-radius: 10px; font-size: 14px; color: #0f172a; outline: none; }
.ag-input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .18); }
.ag-select { height: 40px; padding: 0 36px 0 14px; border: 0; border-radius: 10px; background: #1f2a44 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23ffffff' d='M6 8L0 0h12z'/></svg>") right 14px center / 10px 6px no-repeat; color: #fff; font-size: 14px; font-weight: 500; appearance: none; -webkit-appearance: none; }
.ag-button { width: 100%; height: 42px; background: #2563eb; color: #fff; border-radius: 10px; font-size: 14px; font-weight: 600; letter-spacing: .01em; border: 0; box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 1px rgba(15, 23, 42, .04); }
.ag-button:hover:not(:disabled) { background: #1d4ed8; }
.ag-button:disabled { background: #cbd5e1; color: #f8fafc; box-shadow: none; cursor: not-allowed; }
.ag-error { min-height: 16px; margin-top: 4px; font-size: 13px; color: #ef4444; text-align: center; font-weight: 500; }
/* 상단 사용자 영역: 잔여 할당량 · 새로고침 · 이름 */
.ag-pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; font-size: 14px; font-weight: 600; white-space: nowrap; color: #334155; background: #fff; border: 1px solid #e2e8f0; border-radius: 999px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.ag-pill svg { flex: none; color: #64748b; }
.ag-pill:hover { background: #f8fafc; border-color: #cbd5e1; }
.ag-name { display: flex; align-items: center; justify-content: flex-end; column-gap: 8px; min-height: 30px; padding: 2px 20px 2px 0; }
.ag-name .who { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.ag-name b { font-size: 14px; font-weight: 600; color: #334155; }
.ag-name small { margin-top: 2px; font-size: 14px; color: #64748b; white-space: nowrap; }
.ag-user { flex: none; display: flex; padding: 1px 1px 0; border: 1px solid #64748b; border-radius: 50%; }
/* 메뉴 */
.ag-menu { display: flex; justify-content: center; column-gap: 20px; margin: 64px auto 0; }
.ag-tile { border: 1px solid #e2e8f0; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); border-radius: 16px; width: 210px; height: 210px; background: #fff; font-size: 17px; font-weight: 700; color: #0f172a; letter-spacing: .01em; }
.ag-tile:hover { border-color: #60a5fa; box-shadow: 0 8px 24px rgba(37, 99, 235, .12), 0 2px 6px rgba(15, 23, 42, .04); color: #1d4ed8; }
.ag-approval { display: flex; justify-content: center; margin-top: 28px; }
.ag-small { border: 1px solid #e2e8f0; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); border-radius: 10px; width: 108px; height: 38px; background: #fff; font-size: 13px; font-weight: 600; color: #475569; }
.ag-approval .ag-small { color: #0f172a; }
.ag-small:hover { border-color: #60a5fa; color: #1d4ed8; }
.ag-option { position: absolute; left: 160px; bottom: 40px; }
.ag-pwd { position: absolute; left: 280px; bottom: 40px; width: 130px; }
.ag-logout { position: absolute; left: 40px; bottom: 40px; width: 105px; height: 36px; display: flex; align-items: center; column-gap: 12px; padding: 8px 16px; background: #737373; border: 1px solid rgba(100, 174, 99, .1); border-radius: 5.6px; color: #fff; font-size: 12px; font-weight: 600; }
.ag-float { position: absolute; right: 20px; bottom: 20px; display: flex; align-items: center; column-gap: 8px; padding: 6px 12px; background: rgba(100, 174, 99, .1); border: 1px solid rgba(100, 174, 99, .1); border-radius: 50px; font-size: 11px; font-weight: 600; color: #64ae63; }
.ag-float i { width: 8px; height: 8px; border-radius: 50%; background: #64ae63; }
/* 목록(출력 대기 · 스캔 · 팩스) */
.ag-list-head { display: flex; justify-content: space-between; align-items: center; margin: 10px auto 8px; width: 90%; height: 20px; }
.ag-list-name { flex: 1; font-weight: 600; font-size: 13px; color: #475569; }
.ag-list-btns { display: flex; gap: 10px; }
.ag-btn { height: 25px; border: 0; border-radius: 10px; background: #2563eb; color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; box-shadow: 0 1px 2px rgba(15, 23, 42, .06); }
.ag-btn.is-red { background: #b22222; }
.ag-btn.is-13 { font-size: 13px; }
.ag-btn:disabled { background: #cbd5e1; color: #f8fafc; box-shadow: none; cursor: not-allowed; }
.ag-btn.is-red:disabled { background: #b22222; color: #fff; opacity: .5; }
.ag-table { width: 90%; margin: 10px auto 0; border: 1px solid #dadada; }
.ag-tr { display: grid; height: 40px; align-items: center; text-align: left; background: #fff; }
.ag-tr > div { padding: 10px 6px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid #e4e4e4; height: 100%; display: flex; align-items: center; }
.ag-tr > div > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ag-th { background: #f1f5f9; border-bottom: 1px solid #e2e8f0; }
.ag-th > div { color: #64748b; font-weight: 700; border-bottom: 0; }
.ag-table.is-12 .ag-tr > div { font-size: 12px; }
.ag-table.is-13 .ag-tr > div { font-size: 13px; padding: 12px; }
.ag-tbody { height: 340px; overflow-y: auto; scrollbar-width: thin; }
.ag-tbody .ag-tr.is-link { cursor: pointer; }
.ag-tbody .ag-tr:hover > div { background: #f8fafc; }
.ag-empty { margin: 16px auto; text-align: center; color: #64748b; font-size: 13px; }
.ag-cancel { width: 60px; height: 20px; background: #b22222; color: #fff; border: 0; border-radius: 10px; font-size: 14px; font-weight: 600; }
.ag-dl { padding: 2px 8px; font-size: 11px; border: 1px solid #767676; border-radius: 3px; background: #efefef; color: #000; }
.ag-dl:disabled { color: #9a9a9a; border-color: #c4c4c4; cursor: default; }
.ag-back { position: absolute; left: 20px; bottom: 20px; width: 90px; height: 28px; background: #fff; border: 1px solid #e2e8f0; border-radius: 5.6px; font-weight: 600; font-size: 11px; color: #0f172a; }
.ag-banner { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 8px 16px; font-size: 12px; color: #64748b; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; white-space: nowrap; }
/* Agent 창 안의 창(확인 안내, 팩스 미리보기) */
.ag-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); display: flex; align-items: center; justify-content: center; z-index: 5; }
.ag-modal { width: 320px; background: #fff; border-radius: 12px; padding: 22px 22px 16px; box-shadow: 0 16px 40px rgba(15, 23, 42, .16); text-align: center; }
.ag-modal p { margin: 0 0 16px; font-size: 14px; line-height: 1.55; color: #0f172a; white-space: pre-line; }
.ag-modal .ag-button { width: 110px; height: 34px; font-size: 13px; }
.ag-pvbox { width: 70%; height: 90%; background: #fff; border-radius: 8px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.ag-pvhead { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid #e5e7eb; font-size: 14px; font-weight: 600; color: #111827; }
.ag-pvclose { min-width: 40px; height: 40px; margin: -8px -10px -8px 0; border: 0; border-radius: 6px; background: none; padding: 0 8px; font-size: 26px; line-height: 1; color: #6b7280; cursor: pointer; }
.ag-pvclose:hover { background: #f3f4f6; color: #111827; }
/* 데모용 미리보기 표시(결정 C4): 제품에 없는 미리보기임을 알린다 */
.ag-pvbadge { margin-left: 8px; padding: 2px 8px; border: 1px solid #d1d5db; border-radius: 999px; background: #f9fafb; color: #4b5563; font-size: 11px; font-weight: 500; font-style: normal; white-space: nowrap; }
.ag-pvimg { flex: 1; min-height: 0; width: 100%; border: 0; object-fit: contain; background: #f3f4f6; }
.ag-pvmsg { flex: 1; display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center; padding: 0 16px; text-align: center; background: #f3f4f6; color: #6b7280; font-size: 13px; }
.ag-pvmsg p { margin: 0; }
.ag-pvmsg .ag-btn { min-width: 90px; }

/* ── 좁은 화면(휴대폰, 태블릿 세로): Agent 창은 읽을 수 있는 크기를 지키고, 넘치면 밀어서 본다. 누르는 곳은 크게 ── */
@media (max-width: 1000px) {
  .desk-area { overflow: auto; align-items: flex-start; justify-content: flex-start; padding: 6px 0; }
  .ag-fit { margin: auto; }
  .taskbar { height: 46px; }
  .task { padding: 0 14px; font-size: 14px; }
  .dw-toolbar { height: 48px; }
  .dw-select, .dw-print { height: 40px; }
  /* Agent 창은 0.8배로 그려지므로, 로그인 단추와 목록 글자를 조금 키워 누르고 읽을 수 있게 한다(40px, 11px 이상) */
  .ag-card .ag-button { height: 50px; }
  .ag-table.ag-table .ag-tr > div { font-size: 14px; }
  .dw-meta { display: none; }
  .pd-btn { height: 40px; }
  .pd-field select, .pd-field input { height: 38px; }
}

/* ── 휴대폰(세로 폭 760px 이하, 가로로 눕힌 휴대폰): Agent 화면을 축소하지 않고 휴대폰 폭에 맞춰 세로로 다시 배치한다 ──
   기능·문구는 데스크톱 Agent 와 같고 배치만 다르다. 가로로 밀 일이 없게 모든 줄은 칸 폭 안에서 접히고, 칸 안에서 위아래로만 민다.
   누르는 곳은 44px 이상, 입력란 글자는 16px(키보드가 올라올 때 화면이 확대되지 않게). 기준은 shell.js 의 phone() 과 같아야 한다. */
@media (max-width: 760px), (max-width: 1000px) and (max-height: 480px) {
  .desk-area { padding: 0; overflow: hidden; align-items: stretch; justify-content: stretch; }
  .ag-fit { flex: 1; min-width: 0; margin: 0; display: flex; }
  .win-agent { position: relative; flex: 1; min-width: 0; width: auto; height: auto; transform: none; border-radius: 0; box-shadow: none; }
  .win-agent > .win-bar { display: none; }
  .win-doc { border-radius: 0; }
  .ag { overflow-x: hidden; overflow-y: auto; display: flex; flex-wrap: wrap; align-content: flex-start; align-items: center; gap: 10px 8px; padding: 0 12px 14px; }
  .ag > * { flex: 1 1 100%; min-width: 0; }
  .ag-header, .ag-header.is-login { padding: 10px 0 0; flex-wrap: wrap; gap: 6px; }
  .ag-logo, .is-login .ag-logo { width: 48px; margin: 0 0 6px; }
  .ag-logo-button { margin: 0 0 6px; }
  .ag-right { flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
  .ag-pill { height: 44px; padding: 0 12px; font-size: 14px; }
  .ag-name { padding: 0; }
  .ag-card { width: auto; box-sizing: border-box; margin: 0; padding: 16px 14px 12px; row-gap: 12px; }
  .ag-input, .ag-select { height: 46px; font-size: 16px; }
  .ag-field label { font-size: 13px; }
  .ag-card .ag-button { height: 48px; font-size: 16px; }
  .ag-menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0 0; }
  .ag-tile { width: auto; height: 96px; font-size: 16px; }
  .ag-approval { margin: 0; }
  .ag-small { width: auto; height: 44px; padding: 0 14px; }
  /* 화면 구석에 떠 있던 단추(로그아웃, 옵션, 비밀번호 변경, 이전, 상태 표시, 보관 기간 안내)는 맨 아래 줄로 내린다 */
  .ag > .ag-logout, .ag > .ag-option, .ag > .ag-pwd, .ag > .ag-back, .ag > .ag-float { position: static; flex: 0 0 auto; order: 10; transform: none; }
  .ag > .ag-logout { width: auto; height: 44px; padding: 0 16px; }
  .ag > .ag-back { width: auto; height: 44px; padding: 0 18px; font-size: 13px; }
  .ag > .ag-float { order: 11; margin-left: auto; }
  .ag > .ag-banner { position: static; transform: none; order: 9; white-space: normal; text-align: center; }
  /* 목록: 제목과 단추 줄은 접히고, 표는 줄마다 카드처럼 쌓는다(머리 줄은 전체 선택 칸만 남긴다) */
  .ag-list-head { width: auto; height: auto; margin: 4px 0 0; flex-wrap: wrap; gap: 8px; }
  .ag-list-name { flex: 1 1 100%; font-size: 15px; }
  .ag-list-btns { flex-wrap: wrap; gap: 6px; }
  .ag-btn, .ag-btn[style] { height: 44px; width: auto !important; min-width: 0 !important; padding: 0 12px; font-size: 13px; }
  .ag-table { width: auto; margin: 0; }
  .ag-tbody { height: auto; overflow: visible; }
  .ag-tr.ag-tr { display: flex; flex-wrap: wrap; align-items: center; height: auto; column-gap: 4px; padding: 6px 4px; border-bottom: 1px solid #e4e4e4; }
  .ag-table.ag-table .ag-tr > div { height: auto; padding: 2px 4px; border-bottom: 0; font-size: 13px; white-space: normal; }
  .ag-th:not(:has(input)) { display: none; }
  .ag-th > div:not(:has(input)) { display: none; }
  .ag-tr > div:has(> input[type=checkbox]) { min-width: 44px; min-height: 44px; justify-content: center; }
  .ag-tr input[type=checkbox] { width: 24px; height: 24px; margin: 0; }
  /* 줄 카드의 첫 줄 = 파일 이름(인쇄·스캔), 맨 끝 = 동작 단추 */
  .ag-table:not(.is-12):not(.is-13) .ag-tbody .ag-tr > div:nth-child(2), .ag-table.is-12 .ag-tbody .ag-tr > div:nth-child(3) { order: -1; flex: 1 1 100%; font-weight: 600; }
  .ag-table.is-12 .ag-tbody .ag-tr > div:first-child { order: -2; }
  .ag-tbody .ag-tr > div:last-child:has(button) { margin-left: auto; }
  .ag-cancel, .ag-dl { height: 40px; width: auto; padding: 0 14px; font-size: 13px; }
  /* Agent 안의 창은 칸 전체를 덮는다(목록을 밀어 내려도 가운데에 보이게) */
  .taskbar { height: 44px; }
  .ag-overlay { position: fixed; }
  .ag-modal { width: min(320px, calc(100% - 24px)); }
  .ag-modal .ag-button { width: 140px; height: 44px; }
  .ag-pvbox { width: calc(100% - 20px); height: 86%; }
  .ag-pvclose { min-width: 44px; height: 44px; }
  /* 인쇄 대화상자: 칸 폭에 맞추고 누르는 곳을 키운다. 칸이 낮으면(가로로 눕힌 휴대폰) 대화상자 안에서 위아래로 민다 */
  .pd-dim { overflow-y: auto; align-items: flex-start; }
  .pd { margin: auto 0; }
  .pd-field select, .pd-field input { height: 44px; font-size: 16px; }
  .pd-btn { height: 44px; }
}
