/* ==========================================================================
   검사자 관리 — examiner-management.css  (prefix .em-)
   workspace.css 위에서 이 화면만의 것: 표 안 수정·삭제 버튼, 등록 모달 폭.
   ========================================================================== */

@media screen {

/* 레거시 _dashboard.css 의 .dashboard 틀(최대 1400px·좌우 20px)을 걷어 낸다 — 폭은 .app-main 이 정한다 */
.ls-app .em-section.dashboard { max-width: none; margin: 0; padding: 0; }
.ls-app .em-section .dashboard-card { margin-bottom: 0; }

/* 이용권 안내 (2026-11-23, examiner-management.js renderEntitlementNotice — .ls-lock) */
.ls-app .em-plan-lock { margin-bottom: var(--ls-space-5); }

.ls-app .em-table td:first-child { width: 72px; color: var(--ls-fg-subtle); }
.ls-app .em-table td:nth-child(2) { font-weight: var(--ls-weight-semibold); }
.ls-app .em-table td:nth-child(3) { color: var(--ls-fg-muted); word-break: break-all; }
.ls-app .em-table th:last-child,
.ls-app .em-table td:last-child { width: 1%; white-space: nowrap; text-align: right; }

/* 표 안 동작: 수정은 보조, 삭제는 위험 — 글자색으로 구분하고 크기는 같게 */
.ls-app .em-table .btn-edit,
.ls-app .em-table .btn-delete { background-color: var(--ls-surface); border-color: var(--ls-border-strong); }
.ls-app .em-table .btn-delete { color: var(--ls-danger-fg); }
.ls-app .em-table .btn-delete:hover { background-color: var(--ls-danger-bg); border-color: var(--ls-danger-border); color: var(--ls-danger-fg); }

/* 등록·수정 모달 */
.ls-app #examinerModal .em-modal { width: min(520px, calc(100vw - 32px)); max-width: 520px; }
.ls-app #examinerModal .modal-body { padding: var(--ls-space-6); }
.ls-app #examinerModal .form-group { margin-bottom: var(--ls-space-5); }
.ls-app #examinerModal .form-group:last-child { margin-bottom: 0; }
.ls-app #examinerModal .form-group label { display: block; margin-bottom: var(--ls-space-2); }
.ls-app #examinerModal .form-group input { width: 100%; padding: 0 14px; }
.ls-app #examinerModal .input-hint { margin: var(--ls-space-2) 0 0; }
.ls-app #examinerModal .modal-footer { padding: var(--ls-space-4) var(--ls-space-6); }
.ls-app #examinerModal .modal-actions { display: flex; justify-content: flex-end; gap: var(--ls-space-2); width: 100%; }

/* 좁은 화면: 한 사람을 한 줄 묶음으로 — 이름·아이디·만든 날 왼쪽, 수정·삭제 오른쪽 */
@media (max-width: 768px) {
  .ls-app .em-table { display: block; min-width: 0; }
  .ls-app .em-table thead { display: none; }
  .ls-app .em-table tbody { display: block; }
  .ls-app .em-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name act" "id act" "date act";
    column-gap: var(--ls-space-3);
    row-gap: 2px;
    margin: 0;
    padding: var(--ls-space-4);
    background: none;
    border: 0;
    border-bottom: 1px solid var(--ls-border-subtle);
    border-radius: 0;
    box-shadow: none;
  }
  .ls-app .em-table tbody tr:last-child { border-bottom: 0; }
  .ls-app .ws-panel .em-table td,
  .ls-app .ws-panel .em-table td:last-child { display: block; width: auto; padding: 0; border: 0; text-align: left; }
  .ls-app .em-table td::before { content: none; display: none; }
  .ls-app .ws-panel .em-table td:first-child:not([colspan]) { display: none; }
  .ls-app .em-table td:nth-child(2) { grid-area: name; font-size: var(--ls-text-md); }
  .ls-app .em-table td:nth-child(3) { grid-area: id; font-size: var(--ls-text-sm); }
  .ls-app .em-table td:nth-child(4) { grid-area: date; color: var(--ls-fg-subtle); font-size: var(--ls-text-xs); }
  .ls-app .ws-panel .em-table td:nth-child(5) { grid-area: act; align-self: center; display: flex; gap: var(--ls-space-2); }
  .ls-app .ws-panel .em-table td .btn + .btn { margin-left: 0; }
  .ls-app .ws-panel .em-table td[colspan] { grid-column: 1 / -1; display: block; padding: var(--ls-space-8) 0; text-align: center; }
}

@media (max-width: 767px) {
  .ls-app #examinerModal .modal-body { padding: var(--ls-space-5); }
  .ls-app #examinerModal .modal-actions .btn { flex: 1; }
}

/* 360px 미만(320 등): 수정·삭제가 오른쪽 칸을 150px 넘게 차지해 왼쪽이 80px 만 남고, 아이디가 글자 단위로 끊겼다
   (han.balanc / e — 검사자에게 불러 줄 때 끝 글자를 놓친다) → 버튼을 아래 줄로 내린다 */
@media (max-width: 359px) {
  .ls-app .em-table tbody tr { grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "id" "date" "act"; }
  .ls-app .ws-panel .em-table td:nth-child(5) { margin-top: var(--ls-space-2); }
  .ls-app .ws-panel .em-table td:nth-child(5) .btn { flex: 1 1 0; }
}

} /* @media screen */
