/* 인수인계·요청·승인 보드(workBoardHTML 공통). 색·모서리·그림자는 style.css 토큰만 쓴다(계약서 2-5·2-6·2-7·2-14, 결정 5b).
   --h-* 이름은 별칭으로 남긴다(값은 토큰). 아이콘 탭 구조(규칙 85행)는 그대로. 폰 분기는 700(6단계 통일). 탭 4개는 규칙 100행대로 한 줄 격자라 가로 스크롤을 쓰지 않는다. */
.handover-board,.handover-editor,.handover-dialog{--h-line:var(--line);--h-surface:var(--bg-surface);--h-ink:var(--text);--h-muted:var(--text-3);box-sizing:border-box;color:var(--text);font:inherit}
.handover-board *,.handover-editor *,.handover-dialog *{box-sizing:border-box}
/* 2-9 화면 제목(h2로 그려짐) 24px 700, 설명 13px 보조색. 제목 블록 위 16px(B11-2) */
.handover-board h2{font-size:var(--text-h1);font-weight:700;letter-spacing:var(--tracking-h1);line-height:var(--leading-tight);margin:0}
.handover-editor h2,.handover-dialog h2{font-size:var(--text-xl);font-weight:700;margin:0}
.handover-board>.handover-heading{margin-top:var(--space-4)}
.handover-heading,.handover-dialog>header,.handover-editor>header,.handover-card>header{display:flex;gap:16px;align-items:center;justify-content:space-between}
.handover-heading p{color:var(--text-2);font-size:var(--text-base);line-height:1.5;margin-top:var(--space-1)}
/* 화면 머리 오른쪽 버튼 = secondary 36·13·600(fix-review-b12 6). 업무 화면(main)만: 태블릿 인수인계 창의 터치 버튼 크기는 그대로 */
@media(min-width:701px){main .handover-heading>div:last-child>button{padding:8px 14px;font-size:var(--text-base);font-weight:600;line-height:var(--leading-tight)}}
.handover-meta,.handover-help{color:var(--text-3);font-size:var(--text-sm);line-height:1.7}
/* 2-5 기본 = secondary(흰 면 + 선 + 본문색, 36px), :disabled = 결정 6 */
.handover-board button,.handover-dialog button,.handover-editor button{background:var(--bg-surface);color:var(--text);border:1px solid var(--line);padding:8px 12px;min-height:var(--btn-h);border-radius:var(--radius-md);cursor:pointer;font:inherit}
.handover-board button:hover,.handover-dialog button:hover,.handover-editor button:hover{background:var(--bg-hover)}
.handover-board button:disabled,.handover-dialog button:disabled,.handover-editor button:disabled{background:var(--bg-surface);border-color:var(--line);color:var(--text-3);opacity:1;cursor:not-allowed}
/* 분류 탭 = 세그먼트(2026-11-09 사용자 결정): 회색 트랙 + 선택만 흰 칸. 아이콘 색은 유지, 건수는 회색(선택 시 브랜드) */
.handover-tabs{display:inline-flex;gap:2px;flex-wrap:wrap;max-width:100%;background:var(--bg-sunken);border:0;border-radius:var(--radius-md);padding:3px;margin:16px 0 12px}
.handover-tabs button{display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:var(--text-base);font-weight:600;min-height:32px;padding:5px 14px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--text-2);box-shadow:none}
.handover-tabs button:hover{background:transparent;color:var(--text)}
.handover-tabs :is([data-h-count],[data-request-count]){font-size:var(--text-xs);font-weight:600;color:var(--text-3);opacity:1}
.handover-tabs [aria-current=page] :is([data-h-count],[data-request-count]){color:var(--brand)}
.handover-category-icon{display:block;width:18px;height:18px;flex-shrink:0}
.handover-tabs [data-h-category-icon=student]{color:var(--ok)}
.handover-tabs [data-h-category-icon=seat]{color:var(--info)}
.handover-tabs [data-h-category-icon=operations]{color:var(--warn)}
.handover-tabs [data-h-category-icon=notices]{color:var(--violet)}
.handover-category-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.handover-tabs [aria-current=page],.handover-tabs [aria-current=page]:hover{background:var(--bg-surface);border-color:var(--line);color:var(--text);font-weight:700;box-shadow:0 1px 2px color-mix(in srgb,var(--text) 14%,transparent)}
/* 2-8 조회 줄: 조건 사이 8px, 같은 하단선. 라벨 12px 600 보조색(2-13) */
.handover-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px;align-items:end}
.handover-toolbar label,.handover-editor label{display:grid;gap:4px;font-size:var(--text-sm);font-weight:600;color:var(--text-2)}
.handover-board input,.handover-board select,.handover-editor input,.handover-editor select,.handover-editor textarea{background:var(--bg-surface);border:1px solid var(--line);color:var(--text);border-radius:var(--radius-md);font:inherit;font-weight:400;padding:8px;max-width:100%;min-height:var(--control-h)}
.handover-search{flex:1;min-width:180px}
.handover-toolbar input,.handover-toolbar select,.handover-editor input,.handover-editor select{width:100%;min-width:0}
[data-h-cards]{display:grid;gap:12px}
/* 2-7 카드: 흰 면 + 선 + 14px + 카드 그림자, 제목 16px 700 */
.handover-card{background:var(--bg-surface);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow-card);padding:16px;min-width:0}
.handover-card h3{font-size:var(--text-lg);font-weight:700;margin:7px 0 0;overflow-wrap:anywhere}
.handover-status{font-size:var(--text-xs);font-weight:600;color:var(--ok);background:var(--ok-bg);border-radius:var(--radius-sm);padding:4px 7px;display:inline-flex;align-items:center;gap:5px}
.handover-status .handover-category-icon{width:14px;height:14px}
.handover-status.important{color:var(--warn);background:var(--warn-bg)}
.handover-card>header>span{font-size:var(--text-xs);white-space:nowrap;color:var(--text-3)}
.handover-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;margin:14px 0;font-size:var(--text-base)}
.handover-card footer{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}
.handover-card details{border-top:1px solid var(--line);padding-top:12px;font-size:var(--text-sm);line-height:1.8;overflow-wrap:anywhere}

.handover-read{display:flex!important;align-items:center;gap:8px;margin:12px 0;font-size:var(--text-sm)}
.handover-read input{min-height:0;width:16px;height:16px}
/* 2-14 빈 상태 한 가지 */
.handover-empty{padding:24px;text-align:center;border:0;border-radius:var(--radius-md);background:var(--bg-sunken);color:var(--text-2);font-size:var(--text-base)}
.handover-error{color:var(--danger);line-height:1.6;white-space:pre-wrap}
.handover-error:empty{display:none}
.handover-editor,.handover-dialog{width:min(920px,96vw);max-height:92dvh;overflow:auto;border:1px solid var(--line);border-radius:var(--radius-lg);padding:24px;background:var(--bg-surface);color:var(--text);font-size:var(--text-base)}
.handover-editor{width:min(620px,96vw)}
.handover-editor form{display:grid;gap:16px;margin-top:20px}
.handover-editor textarea{width:100%;resize:vertical;min-height:100px}
.handover-editor footer{display:flex;gap:8px;justify-content:flex-end}
.handover-editor [type=submit]{background:var(--brand);color:var(--text-on-brand);border-color:var(--brand);font-weight:700}
.handover-editor [type=submit]:hover:not(:disabled){background:var(--brand-strong)}
.handover-dates{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.handover-editor [hidden],.handover-board [hidden]{display:none!important}
.handover-dialog::backdrop,.handover-editor::backdrop{background:var(--overlay)}
.handover-dialog .handover-heading{margin-top:20px}
.handover-dialog .handover-heading h2{display:none}
.handover-dialog>header{position:sticky;top:-16px;z-index:6;background:var(--bg-surface);padding:8px 0 12px}
.handover-toolbar input[type=date]{min-width:0;max-width:100%}
/* 좌석 타일 위 표식: 9px은 좌석 타일 예외(2-2) */
.handover-seat-marker{position:absolute;top:2px;right:2px;z-index:4;background:var(--warn);color:var(--text-on-brand);border:1px solid var(--bg-surface);border-radius:4px;font-size:9px;line-height:1.4;padding:2px 3px;cursor:pointer}
.handover-student-summary{margin:12px 0}
.handover-student-summary .handover-card{padding:14px}
.handover-card>header>div:first-child{min-width:0}
.handover-card-tools{display:flex;align-items:center;gap:10px;flex-shrink:0}
.handover-read-state{font-size:var(--text-xs);white-space:nowrap;color:var(--text-3)}
.handover-card .handover-actions{position:relative;border:0;padding:0;font:inherit;overflow:visible}
/* ⋯ 메뉴: consultation-card.css의 .consultation-more>summary와 같은 36px 외곽선 */
.handover-actions>summary{display:flex;align-items:center;justify-content:center;list-style:none;width:36px;min-height:36px;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--bg-surface);color:var(--text-2);font-size:20px;line-height:1;cursor:pointer}
.handover-actions>summary::-webkit-details-marker{display:none}
.handover-actions>summary:hover,.handover-actions[open]>summary{background:var(--bg-hover)}
.handover-actions>summary:focus-visible{outline:3px solid var(--focus-ring-color);outline-offset:1px}
.handover-action-list{position:absolute;top:calc(100% + 6px);right:0;z-index:10;display:grid;width:min(190px,70vw);max-height:min(360px,60dvh);overflow:auto;padding:6px;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--bg-surface);box-shadow:var(--shadow-pop)}
.handover-actions[data-above]>.handover-action-list{top:auto;bottom:calc(100% + 6px)}
.handover-card .handover-action-list button{display:block;width:100%;text-align:left;border:0;background:var(--bg-surface);border-radius:var(--radius-sm);white-space:nowrap}
.handover-card .handover-action-list button:hover{background:var(--bg-hover)}
.handover-card .handover-action-list [data-h-action=delete],.handover-card .handover-action-list [data-h-action=notice-delete]{color:var(--danger)}
@media(max-width:700px){.handover-card-tools{gap:7px;flex-direction:column-reverse;align-items:flex-end}.handover-actions>summary{width:44px;min-height:44px}}
@media(max-width:700px){.handover-heading{align-items:start;flex-direction:column}.handover-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px}.handover-tabs button{min-width:0;flex-direction:column;gap:5px;white-space:nowrap;padding:8px 3px;font-size:var(--text-base)}.handover-toolbar{gap:10px}.handover-toolbar label{flex:1;min-width:130px}.handover-search{flex-basis:100%}.handover-dialog,.handover-editor{padding:16px}.handover-card{padding:12px}.handover-dates{grid-template-columns:1fr}.handover-board button,.handover-dialog button,.handover-editor button{min-height:44px}.handover-board input,.handover-board select,.handover-editor input,.handover-editor select{min-height:44px}}
@media(max-width:700px){.handover-dialog .handover-toolbar label{flex-basis:100%}}
/* 좌석 인계 배지(fix-review-b3 5): 타일 안 오른쪽 위에서 좌석 번호를 가리던 것을 위 모서리 바깥으로 반쯤 걸친다. PC 순찰·태블릿(/tablet/) 배치도 공통.
   좁은 타일(폰 태블릿)에서 세로로 접히지 않게 한 줄로 두고, 배지가 옆·윗줄 타일 아래로 깔리지 않도록 배지가 있는 타일을 한 단 올린다. */
.handover-seat-marker{top:0;right:-4px;transform:translateY(-65%);white-space:nowrap}
.seat:has(>.handover-seat-marker){z-index:6}
