/* ============================================================
   03-modal-footer.css
   모달 공통 + 모달별 + 푸터
   ============================================================ */

  /* ============================================
     모달
  ============================================ */
  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    /* 깜빡임 방지: display 토글 대신 opacity + visibility */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
    pointer-events: none;
  }

  .modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .modal {
    background: var(--ios-card);
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    /* 살짝 스케일 + 페이드인 (오버레이와 동시 전환) */
    transform: scale(0.97);
    opacity: 0;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
    will-change: transform, opacity;
  }

  .modal-overlay.active .modal {
    transform: scale(1);
    opacity: 1;
  }

  @keyframes modalIn {
    from { transform: translateY(-10px) scale(0.96); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
  }

  .modal-header {
    padding: 18px 20px;
    border-bottom: 0.5px solid var(--ios-separator-thin);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .modal-header h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--ios-text);
    letter-spacing: -0.3px;
  }

  .modal-close {
    background: var(--ios-fill);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    color: var(--ios-text-secondary);
    transition: background 0.15s;
  }

  .modal-close:hover { background: var(--ios-text-tertiary); color: white; }

  /* 새창(팝업) 열기 버튼 — 닫기(×)와 동일한 원형 스타일로 일관성 유지.
     margin-left:auto 로 제목은 왼쪽, 버튼+× 는 오른쪽에 그룹(헤더 space-between). */
  .modal-popout-btn {
    background: var(--ios-fill);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    color: var(--ios-text-secondary);
    transition: background 0.15s;
    margin-left: auto;
    margin-right: 8px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .modal-popout-btn:hover { background: var(--ios-text-tertiary); color: white; }

  /* 새창(팝업) focus 모드 — 상세 모달을 독립 창으로 열 때(?focusModal=) 앱 배경을 숨기고
     모달만 밝은 배경 위에 표시. 모달은 .container 밖(body 직속)이라 .container 만 숨기면 됨. */
  /* ⚠️ 깜빡임 방지 — JS(spa-focus)는 스크립트가 다 로드된 뒤에야 붙어 그 사이 전체 화면이 한 번
     번쩍인다. 그래서 <head> 인라인 스크립트가 URL 을 보고 로드 시작 즉시 html.spa-focus-boot 를
     붙여, 첫 페인트부터 배경(.container)을 숨긴다. */
  html.spa-focus-boot .container { display: none !important; }
  html.spa-focus-boot body { background: var(--ios-grouped-bg, #f2f2f7); }
  body.spa-focus .container { display: none !important; }
  body.spa-focus .modal-overlay { background: var(--ios-grouped-bg, #f2f2f7); }
  /* focus 모드에선 새창 버튼(⧉)은 숨김(이미 새창임). */
  body.spa-focus .modal-popout-btn { display: none !important; }
  /* 창 하나에 모달 하나뿐 → 카드를 팝업창 전체에 맞춘다(여백·둥근모서리·그림자 제거).
     폼별 인라인 스타일(max-width:760px, height:calc(90vh - 140px) 등)을 눌러야 해서 !important.
     .modal 을 flex column 으로 만들어 헤더/푸터는 고정, 본문만 늘어나며 스크롤. */
  body.spa-focus .modal-overlay { padding: 0; }
  body.spa-focus .modal-overlay > .modal {
    width: 100%;
    max-width: none !important;
    height: 100vh !important;
    max-height: none !important;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
  }
  body.spa-focus .modal-overlay > .modal > .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    height: auto !important;
    max-height: none !important;
    overflow-y: auto;   /* 내부 스크롤 영역을 따로 둔 본문(인라인 overflow:hidden)은 그대로 둠 */
  }
  body.spa-focus .modal-overlay > .modal > .modal-header,
  body.spa-focus .modal-overlay > .modal > .modal-footer { flex: 0 0 auto; }

  .modal-body { padding: 20px; }

  .form-row { margin-bottom: 14px; }

  .form-row label {
    display: block;
    font-size: 12px;
    color: var(--ios-text-secondary);
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }

  .form-row input[type="text"],
  .form-row input[type="date"],
  .form-row select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--ios-separator);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: var(--ios-text);
    background: var(--ios-card);
    transition: border-color 0.15s;
    -webkit-appearance: none;
  }

  .form-row input:focus,
  .form-row select:focus {
    outline: none;
    border-color: var(--ios-blue);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
  }

  /* 읽기 전용 (다른 사람 일정 보기) */
  .form-row input.readonly,
  .form-row input[readonly] {
    background: var(--ios-bg);
    color: var(--ios-text-secondary);
    cursor: default;
  }
  .form-row input.readonly:focus,
  .form-row input[readonly]:focus {
    border-color: var(--ios-separator);
    box-shadow: none;
  }
  .type-select input[type="radio"]:disabled + label,
  .type-card input[type="radio"]:disabled + label {
    opacity: 0.6;
    cursor: default;
  }

  /* 사내뉴스 카테고리 선택 */
  .news-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ios-text);
    margin-bottom: 8px;
  }

  .news-category-select {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
  }

  .news-category-card {
    position: relative;
    cursor: pointer;
  }

  .news-category-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .news-category-card .news-cat-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px 6px;
    border: 1px solid var(--ios-separator);
    border-radius: 10px;
    background: var(--ios-card);
    font-size: 13px;
    font-weight: 500;
    color: var(--ios-text);
    transition: all 0.15s;
  }

  .news-category-card input[type="radio"]:checked + .news-cat-label {
    background: rgba(0, 122, 255, 0.1);
    border-color: var(--ios-blue);
    color: var(--ios-blue);
    font-weight: 600;
  }

  .news-category-card input[type="radio"]:disabled + .news-cat-label {
    opacity: 0.6;
    cursor: default;
  }

  /* 사내뉴스 단일 날짜 - 좁은 폭 */
  .news-date-row {
    margin-top: 8px;
    max-width: 220px;
  }
  .news-date-row .date-field {
    margin: 0;
  }
  .news-date-row .date-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--ios-text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }
  .news-date-row .date-field input[type="date"] {
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
    box-sizing: border-box;
  }

  @media (max-width: 480px) {
    .news-date-row {
      max-width: 100%;
    }
    .news-category-select {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  /* 시작일/종료일 가로 배치 */
  .form-row-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    min-width: 0;
  }

  /* 사내뉴스 전용 - 달력에 표시 옵션 */
  .write-cal-row {
    background: var(--ios-bg);
    padding: 14px;
    border-radius: 10px;
    border: 1px dashed var(--ios-separator);
  }

  .write-cal-row .cal-toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ios-text);
    cursor: pointer;
  }

  .write-cal-row .cal-toggle-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--ios-blue);
    cursor: pointer;
  }

  .write-cal-dates {
    margin-top: 12px;
  }

  .form-row-dates .date-field {
    min-width: 0;
  }

  .form-row-dates .date-field input[type="date"] {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .form-row-dates .date-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--ios-text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }

  .form-row-dates .optional-tag {
    font-weight: 500;
    color: var(--ios-text-tertiary);
    text-transform: none;
    letter-spacing: 0;
    margin-left: 2px;
  }

  /* 일정 카드 - 기간 표시 */
  .evt-range {
    color: var(--ios-text-secondary);
    font-size: 12px;
    margin-left: 4px;
  }

  /* 일정 종류 */
  .type-select {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
  }

  .type-select label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 4px;
    border: 1.5px solid var(--ios-separator-thin);
    border-radius: 10px;
    cursor: pointer;
    font-size: 12px;
    color: var(--ios-text-secondary);
    text-align: center;
    transition: all 0.15s;
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
  }

  .type-select input[type="radio"] { display: none; }

  .type-select label::before {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-bottom: 4px;
  }

  /* 달력 범례(.dot-*)·칩(.fc-evt-*)과 같은 색을 써야 종류 선택이 달력과 이어져 보인다. */
  .type-select label[data-type="holiday"]::before { background: #c47a72; }
  .type-select label[data-type="dayoff"]::before { background: #c07a90; }
  .type-select label[data-type="birthday"]::before { background: #c99a5c; }
  .type-select label[data-type="vacation"]::before { background: #4faa8e; }
  .type-select label[data-type="business"]::before { background: #6f8bc4; }
  .type-select label[data-type="event"]::before { background: #9b6fbf; }
  .type-select label[data-type="meeting"]::before { background: #96477f; }
  /* ⚠️ 이 목록은 타입별 하드코딩이라 새 종류를 추가하면 여기도 넣어야 한다 — 안 넣으면 그 타일만
     점이 투명해져 '색이 없는' 것처럼 보인다(외부회의를 추가하며 실제로 빠뜨렸다). */
  .type-select label[data-type="meetingext"]::before { background: #5d2b4a; }
  .type-select label[data-type="education"]::before { background: #b8860b; }
  .type-select label[data-type="approval"]::before { background: var(--ios-text-tertiary); }

  /* 일정 내용 에디터 — 컨테이너에 고정높이를 주면 전역 `.ql-editor{min-height:320px}` 가 넘쳐
     모달 푸터(저장/취소) 위를 덮어 클릭을 막는다. 높이는 반드시 .ql-editor 쪽에서 제어. */
  #evtCntnEditor.ql-container { height: auto; }
  #evtCntnEditor .ql-editor {
    min-height: 150px;
    max-height: 240px;
    overflow-y: auto;
  }

  .type-select label:has(input:checked) {
    border-color: var(--ios-blue);
    background: rgba(0, 122, 255, 0.08);
    color: var(--ios-blue);
    font-weight: 600;
  }

  .modal-footer {
    padding: 14px 20px;
    border-top: 0.5px solid var(--ios-separator-thin);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
  }

  /* taskDetailModal 처럼 좌측 고정 버튼군(출력/수정요청)과 우측 버튼군(승인/반려/…/닫기)을
     양끝 정렬하는 2분할 푸터. 닫기는 항상 modal-footer-right 의 마지막(최우측)에 위치. */
  .modal-footer:has(.modal-footer-left, .modal-footer-right) {
    justify-content: space-between;
  }
  .modal-footer-left,
  .modal-footer-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .btn {
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s, background 0.15s;
  }

  .btn-cancel {
    background: var(--ios-fill);
    color: var(--ios-text);
  }
  .btn-cancel:hover { background: var(--ios-text-tertiary); }

  .btn-save {
    background: var(--ios-blue);
    color: white;
    font-weight: 600;
  }
  .btn-save:hover { opacity: 0.85; }

  .btn-reject {
    background: rgba(255, 59, 48, 0.12);
    color: var(--ios-red);
    border: 1px solid rgba(255, 59, 48, 0.3);
  }
  .btn-reject:hover { background: rgba(255, 59, 48, 0.2); }

  .btn-delete {
    background: rgba(255, 59, 48, 0.1);
    color: var(--ios-red);
    margin-right: auto;
  }
  .btn-delete:hover { background: rgba(255, 59, 48, 0.2); }

  /* 근무현황 모달 — 고정 너비/높이 (탭·행수에 따라 안 변함) */
  .modal-large {
    width: 840px;
    max-width: 95vw;
    height: 82vh;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .modal-large .modal-header,
  .modal-large .status-tabs { flex-shrink: 0; }
  /* 활성 탭(모달 바디) = 세로 flex, 표 영역만 스크롤 */
  .modal-large .status-view {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .modal-large .status-toolbar { flex-shrink: 0; }

  .status-tabs {
    display: flex;
    padding: 8px 16px 0;
    border-bottom: 0.5px solid var(--ios-separator-thin);
    gap: 4px;
  }

  .status-tab {
    background: transparent;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ios-text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
    font-family: inherit;
  }

  .status-tab:hover { color: var(--ios-text); }

  .status-tab.active {
    color: var(--ios-blue);
    border-bottom-color: var(--ios-blue);
    font-weight: 600;
  }

  .status-select {
    padding: 5px 10px;
    border: 1px solid var(--ios-separator);
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    color: var(--ios-text);
    background: var(--ios-card);
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3e%3cpath fill='%238E8E93' d='M6 8L0 0h12z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
  }

  .status-select:focus {
    outline: none;
    border-color: var(--ios-blue);
  }

  .status-body { padding: 12px 20px 20px; }

  .status-date-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
  }

  .status-date-row input[type="date"] {
    flex: 0 1 150px;
    padding: 5px 10px;
    border: 1px solid var(--ios-separator);
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    color: var(--ios-text);
    background: var(--ios-card);
    -webkit-appearance: none;
    text-align: center;
  }

  .status-date-row input[type="date"]:focus {
    outline: none;
    border-color: var(--ios-blue);
  }

  .status-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
  }

  .summary-card {
    background: var(--ios-bg);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
  }

  .summary-label {
    font-size: 11px;
    color: var(--ios-text-secondary);
    margin-bottom: 4px;
    font-weight: 500;
  }

  .summary-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--ios-text);
    letter-spacing: -0.5px;
  }

  .summary-value.in { color: var(--ios-green); }
  .summary-value.late { color: var(--ios-orange); }
  .summary-value.absent { color: var(--ios-red); }
  .summary-value.out { color: var(--ios-blue); }
  .summary-value.vacation { color: var(--ios-orange); }
  .summary-value.business { color: var(--ios-purple); }

  .status-table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;   /* 좁은 화면에서 넓은 표는 가로 스크롤(컬럼 보존) */
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    border: 0.5px solid var(--ios-separator-thin);
  }

  .status-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
  }

  .status-table thead {
    position: sticky;
    top: 0;
    background: var(--ios-bg);
    z-index: 1;
  }

  .status-table th {
    padding: 10px 12px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: var(--ios-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 0.5px solid var(--ios-separator);
  }

  .status-table td {
    padding: 10px 12px;
    border-bottom: 0.5px solid var(--ios-separator-thin);
    color: var(--ios-text);
  }

  .status-table tbody tr:last-child td {
    border-bottom: none;
  }

  .status-table tbody tr:hover {
    background: var(--ios-bg);
  }

  /* 본인 행 하이라이트 */
  .status-table tbody tr.is-me {
    background: rgba(0, 122, 255, 0.06);
    position: relative;
  }

  .status-table tbody tr.is-me:hover {
    background: rgba(0, 122, 255, 0.1);
  }

  .status-table tbody tr.is-me td:first-child {
    box-shadow: inset 3px 0 0 var(--ios-blue);
  }

  .status-photo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(180deg, var(--ios-blue-light) 0%, var(--ios-blue) 100%);
    color: white;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .status-name {
    font-weight: 500;
  }

  .status-dept {
    font-size: 12px;
    color: var(--ios-text-secondary);
  }

  .status-time {
    font-variant-numeric: tabular-nums;
    color: var(--ios-text);
  }

  .status-time.empty {
    color: var(--ios-text-tertiary);
  }

  .status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
  }

  .status-badge.in {
    background: rgba(52, 199, 89, 0.15);
    color: var(--ios-green);
  }

  .status-badge.late {
    background: rgba(255, 149, 0, 0.15);
    color: var(--ios-orange);
  }

  .status-badge.absent {
    background: rgba(255, 59, 48, 0.15);
    color: var(--ios-red);
  }

  .status-badge.out {
    background: rgba(0, 122, 255, 0.15);
    color: var(--ios-blue);
  }

  .status-badge.weekend {
    background: var(--ios-fill);
    color: var(--ios-text-secondary);
  }

  .status-badge.vacation {
    background: rgba(255, 149, 0, 0.15);
    color: var(--ios-orange);
  }

  .status-badge.business {
    background: rgba(175, 82, 222, 0.15);
    color: var(--ios-purple);
  }

  /* ============================================
     근무현황 모달 — 레거시 workTime 원본 (상태 색점/근무표/범례)
  ============================================ */
  .status-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 0.5px solid var(--ios-separator-thin);
  }
  /* 개인별 연/월은 좁게, 직원은 넓게 */
  #personalYear, #personalMonth { flex: 0 0 auto; min-width: 66px; }
  #personalStaff { flex: 1 1 auto; min-width: 130px; }

  .work-legend {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--ios-text-secondary);
  }
  .work-legend span { display: inline-flex; align-items: center; gap: 4px; }

  /* 상태 색점 (레거시 div_circle) */
  .div_circle {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 6px;
    vertical-align: middle;
  }
  /* 색점 — 메인 출퇴근 색과 통일(근무중=출근 녹색, 퇴근=빨강) */
  .div_circle_not   { background-color: #b0b0b5; }            /* 미출근 */
  .div_circle_ing   { background-color: var(--ios-green); }   /* 근무중(출근) */
  .div_circle_end   { background-color: var(--ios-red); }     /* 퇴근 */
  .div_circle_etc   { background-color: var(--ios-blue); }    /* 경영진 */

  /* 상태 셀 — 알약형 배지 (점 + 텍스트) */
  .wt-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.7;
    white-space: nowrap;
  }
  .wt-status .div_circle { width: 7px; height: 7px; border-radius: 50%; }
  .wt-status.st-not { background: rgba(142,142,147,0.15); color: #6c6c70; }
  .wt-status.st-ing { background: rgba(52,199,89,0.15);   color: #1f8b3b; }
  .wt-status.st-end { background: rgba(255,59,48,0.13);   color: #d62f24; }
  .wt-status.st-etc { background: rgba(0,122,255,0.13);   color: #0a6dff; }

  /* 휴가/출장 배지 (휴가=주황, 출장=보라 — 달력 출장색과 통일) */
  .vo-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    white-space: nowrap;
  }
  .vo-badge + .vo-badge { margin-left: 4px; }
  .vo-vact { background: rgba(255,149,0,0.16);  color: #b56a00; }   /* 휴가 */
  .vo-otrp { background: rgba(175,82,222,0.15); color: #8e3fc4; }   /* 출장 */

  /* 근무표 */
  .work-table th, .work-table td {
    display: table-cell;
    position: static;
    text-align: center;
    white-space: nowrap;
    font-size: 12px;
    padding: 6px 6px;
  }
  .work-table td.wt-name { font-weight: 600; }
  .work-table td.wt-cntn { text-align: center; white-space: nowrap; color: var(--ios-text-secondary); }
  .work-table tr.is-me { background: #faeded; }
  .work-table .work_minus { color: var(--ios-red); }
  .work-table a.wt-sort { color: inherit; text-decoration: none; }
  .work-table a.wt-sort:hover { text-decoration: underline; }
  .wt-info { color: var(--ios-blue); cursor: pointer; font-size: 13px; text-decoration: none; }

  /* 개인별 편집 버튼 */
  .wt-info-btn {
    border: 1px solid var(--ios-separator);
    background: var(--ios-card);
    color: var(--ios-blue);
    border-radius: 6px;
    padding: 2px 10px;
    font-size: 12px;
    font-family: inherit;
    white-space: nowrap;
    cursor: pointer;
  }
  .wt-info-btn:hover { background: var(--ios-fill); }

  /* 정보 팝업 (myWorkTimeInfo) */
  #workDetailModal { z-index: 10000; }
  #workDetailModal .modal { max-width: 520px; }
  .wd-table { width: 100%; border-collapse: collapse; }
  .wd-table th, .wd-table td {
    border: 0.5px solid var(--ios-separator);
    padding: 9px 12px;
    font-size: 13px;
    text-align: left;
    vertical-align: middle;
  }
  .wd-table th { background: var(--ios-fill); font-weight: 600; white-space: nowrap; width: 76px; }
  .wd-table th.wd-sub { width: 56px; }
  .wd-table .work_minus { color: var(--ios-red); }
  .wd-tsel { white-space: nowrap; }
  .wd-sel {
    padding: 4px 6px;
    border: 1px solid var(--ios-separator);
    border-radius: 6px;
    font-size: 13px; font-family: inherit;
    background: var(--ios-card);
  }
  .wd-cntn {
    width: 100%; box-sizing: border-box;
    padding: 6px 8px;
    border: 1px solid var(--ios-separator);
    border-radius: 8px;
    font-size: 13px; font-family: inherit;
    resize: vertical;
  }
  .wd-hint { margin-top: 10px; font-size: 12px; color: var(--ios-text-secondary); }

  /* 비고 보기 버튼 */
  .wt-cntn-btn {
    display: inline-block;
    padding: 2px 10px;
    border: 1px solid var(--ios-separator);
    border-radius: 6px;
    background: var(--ios-card);
    color: var(--ios-blue);
    font-size: 12px;
    font-family: inherit;
    white-space: nowrap;
    cursor: pointer;
  }
  .wt-cntn-btn:hover { background: var(--ios-fill); }

  /* 비고 내용 팝업 */
  .wt-cntn-pop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.35);
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  .wt-cntn-pop.active { display: flex; }
  .wt-cntn-box {
    background: var(--ios-card);
    border-radius: 14px;
    width: min(480px, 90vw);
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  }
  .wt-cntn-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 0.5px solid var(--ios-separator);
    font-weight: 600;
  }
  .wt-cntn-head .wt-cntn-close {
    border: none;
    background: none;
    font-size: 20px;
    line-height: 1;
    color: var(--ios-text-secondary);
    cursor: pointer;
  }
  .wt-cntn-text {
    padding: 16px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.6;
    color: var(--ios-text);
    white-space: pre-wrap;
    word-break: break-word;
  }

  /* ============================================
     하단 푸터
  ============================================ */
  .footer {
    background: var(--ios-card);
    border-top: 0.5px solid var(--ios-separator);
    padding: 8px 24px 10px;
    margin-top: 8px;
  }

  .footer-inner {
    display: grid;
    grid-template-columns: 1fr;
  }

  .footer-addresses {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .addr-item {
    min-width: 0;
  }

  .address-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: white;
    background: var(--ios-blue);
    padding: 2px 9px;
    border-radius: 10px;
    margin-bottom: 6px;
  }

  .address-block {
    font-size: 13px;
    color: var(--ios-text);
    line-height: 1.4;
  }

  .address-zip {
    font-size: 11px;
    font-weight: 600;
    color: var(--ios-text-secondary);
    margin-bottom: 2px;
  }

  .address-ko {
    color: var(--ios-text);
    margin-bottom: 3px;
    word-break: keep-all;
  }

  .address-en {
    font-size: 11px;
    color: var(--ios-text-secondary);
    line-height: 1.4;
    word-break: break-word;
  }

  .footer-copyright {
    max-width: 1600px;
    margin: 24px auto 0;
    padding-top: 16px;
    border-top: 0.5px solid var(--ios-separator-thin);
    text-align: center;
    font-size: 12px;
    color: var(--ios-text-secondary);
  }

  /* ============================================
     모바일 메뉴 - 프로필 영역 (기본 숨김)
  ============================================ */
  .mobile-menu-profile {
    display: none;
  }

  /* 모바일 메뉴 - 빠른 액션(상단바 이전) 기본 숨김 */
  .mobile-menu-actions {
    display: none;
  }

/* 휴가 종류 등 라디오 칩 — 개인/일괄 휴가 공통 (글씨 크기·모양 일관) */
.radio-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--ios-separator);
  border-radius: 18px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ios-text);
  background: var(--ios-bg);
  cursor: pointer;
  user-select: none;
  transition: background .12s, border-color .12s, color .12s;
}
.radio-chip input[type="radio"] { accent-color: var(--ios-blue, #007aff); margin: 0; }
.radio-chip:hover { border-color: var(--ios-blue, #007aff); }
.radio-chip:has(input[type="radio"]:checked) {
  background: var(--ios-blue, #007aff);
  border-color: var(--ios-blue, #007aff);
  color: #fff;
}

