@charset "UTF-8";
/* ══════════════════════════════════════════════════════════════
   시간외 근무 신청 — 전용 스타일
   (사이드바/테마 변수 --card, --text, --border … 는 timesheet.css 의 것을 재사용)
   ══════════════════════════════════════════════════════════════ */
body { font-family: 'Inter', 'Noto Sans KR', sans-serif; }

/* 역할 탭 버튼 상태 */
.role-btn { color: #a5b4fc; }
.role-btn:hover { color: #fff; }
.role-btn.active { background: #4f46e5; color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); }

/* ── 공통 카드/툴바/입력 (테마 변수 기반) ────────────────────── */
.ot-card { background: var(--card); color: var(--text); border: 1px solid var(--border2); border-radius: 16px; }
.ot-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.ot-input { width: 100%; margin-top: 4px; padding: 7px 9px; font-size: 13px; background: var(--card2); color: var(--text); border: 1px solid var(--border2); border-radius: 8px; outline: none; }
.ot-input:focus { border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99,102,241,.25); }
.ot-input:disabled { opacity: .55; cursor: not-allowed; }
#ot-main label, .ot-modal label { font-weight: 600; color: var(--sub); }
.ot-btn-primary, .ot-btn-sub, .ot-btn-pdf, .ot-btn-danger { font-size: 12px; font-weight: 700; padding: 7px 13px; border-radius: 9px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: filter .15s; }
.ot-btn-primary { background: #4f46e5; color: #fff; }
.ot-btn-pdf { background: #0f766e; color: #fff; }
.ot-btn-danger { background: rgba(244,63,94,.15); color: #fb7185; border-color: rgba(244,63,94,.4); }
.ot-btn-sub { background: var(--card2); color: var(--text); border-color: var(--border2); }
.ot-btn-primary:hover, .ot-btn-pdf:hover, .ot-btn-sub:hover, .ot-btn-danger:hover { filter: brightness(1.12); }
.ot-btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.ot-icon-btn { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--card2); color: var(--text); border: 1px solid var(--border2); cursor: pointer; font-size: 12px; }
.ot-icon-btn:hover { filter: brightness(1.15); }

/* ── 글자입력 + 드롭다운 콤보박스 (JOB NO. / PM) ───────────── */
.ot-flabel { font-weight: 600; color: var(--sub); }
.ot-combo { position: relative; }
.ot-combo .ot-input { padding-right: 34px; }
.ot-combo-btn { position: absolute; right: 1px; top: 5px; width: 30px; height: calc(100% - 6px); display: flex; align-items: center; justify-content: center; color: var(--sub); font-size: 13px; border-left: 1px solid var(--border2); border-radius: 0 8px 8px 0; cursor: pointer; background: transparent; }
.ot-combo-btn:hover { color: var(--text); background: rgba(99,102,241,.15); }
.ot-combo-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin-top: 3px; max-height: 240px; overflow-y: auto; background: var(--card); border: 1px solid var(--border2); border-radius: 10px; box-shadow: 0 12px 28px rgba(0,0,0,.45); }
.ot-combo-list.hidden { display: none; }
.ot-combo-item { padding: 7px 10px; font-size: 12px; color: var(--text); cursor: pointer; display: flex; gap: 8px; align-items: baseline; }
.ot-combo-item b { font-weight: 800; white-space: nowrap; }
.ot-combo-item span { color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ot-combo-item:hover, .ot-combo-item.act { background: rgba(99,102,241,.22); }
.ot-combo-group { padding: 5px 10px; font-size: 10px; font-weight: 800; color: #818cf8; background: var(--card2); position: sticky; top: 0; }
.ot-star { margin-left: auto; padding: 0 2px; font-size: 14px; line-height: 1; font-style: normal; color: var(--sub); opacity: .55; cursor: pointer; flex-shrink: 0; }
.ot-star:hover { opacity: 1; color: #fbbf24; }
.ot-star.on { color: #fbbf24; opacity: 1; }
.ot-combo-empty { padding: 10px; font-size: 12px; color: var(--sub); text-align: center; }

.ot-date-hidden { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; }

/* PM 확인 탭: 미확인 / 확인완료 서브탭 (타임시트 본부장 결재 탭과 동일한 형태) */
.ot-subtabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--card2); border: 1px solid var(--border); border-radius: 12px; }
.ot-subtabs button { font-size: 12px; font-weight: 700; padding: 8px 16px; border-radius: 9px; color: var(--sub); transition: all .15s; }
.ot-subtabs button:hover { color: var(--text); }
.ot-subtabs button.active { background: rgba(148,163,184,.22); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.ot-subtabs .cnt { margin-left: 5px; padding: 1px 7px; border-radius: 99px; font-size: 10px; background: rgba(148,163,184,.25); color: var(--sub); }
#pm-tab-pending .cnt.has { background: rgba(245,158,11,.25); color: #fbbf24; }

/* 정렬 가능한 표 머리글 */
.ot-table th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.ot-table th.sortable:hover { filter: brightness(1.25); }
.ot-table th.sortable .sort-ind { font-size: 9px; opacity: .4; margin-left: 2px; }
.ot-table th.sortable.on .sort-ind { opacity: 1; color: #818cf8; }

/* 달력/목록 세그먼트 */
.ot-seg { display: inline-flex; background: var(--card2); border: 1px solid var(--border2); border-radius: 10px; padding: 3px; gap: 2px; }
.ot-seg button { font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 8px; color: var(--sub); }
.ot-seg button.active { background: #4f46e5; color: #fff; }
.ot-range-label { min-width: 120px; text-align: center; font-size: 14px; font-weight: 800; color: var(--text); white-space: nowrap; }

/* ── 월 요약 ─────────────────────────────────────────────────── */
.ot-summary { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; padding: 14px 18px; }
@media (max-width: 760px) { .ot-summary { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.ot-stat { background: var(--card2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; }
.ot-stat .k { font-size: 11px; color: var(--sub); font-weight: 600; }
.ot-stat .v { font-size: 20px; font-weight: 800; margin-top: 2px; }
.ot-stat .s { font-size: 11px; color: var(--sub); }
.ot-bar { height: 8px; border-radius: 99px; background: rgba(148,163,184,.25); overflow: hidden; margin-top: 6px; }
.ot-bar > i { display: block; height: 100%; background: #6366f1; border-radius: 99px; }
.ot-bar.warn > i { background: #f59e0b; }
.ot-bar.full > i { background: #f43f5e; }

/* ── 달력 ───────────────────────────────────────────────────── */
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)) 150px; }
.cal-head { padding: 8px 4px; text-align: center; font-size: 12px; font-weight: 800; background: rgba(6,182,212,.12); border-bottom: 1px solid var(--border2); border-right: 1px solid var(--border); }
.cal-head.sun { color: #fb7185; } .cal-head.sat { color: #38bdf8; }
.cal-head.wk { background: rgba(14,165,233,.15); }
.cal-cell { min-height: 108px; padding: 5px 6px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); cursor: pointer; position: relative; transition: background .12s; overflow: hidden; }
.cal-cell:hover { background: rgba(99,102,241,.10); }
.cal-cell.other { opacity: .45; }
.cal-cell.today { box-shadow: inset 0 0 0 2px #6366f1; }
.cal-date { font-size: 12px; font-weight: 800; display: flex; align-items: center; gap: 4px; }
.cal-cell.sun .cal-date, .cal-cell.holiday .cal-date { color: #fb7185; }
.cal-cell.sat .cal-date { color: #38bdf8; }
.cal-hol { font-size: 9px; font-weight: 700; color: #fb7185; }
.cal-add { margin-left: auto; font-size: 11px; opacity: 0; color: #818cf8; }
.cal-cell:hover .cal-add { opacity: 1; }
.chip { display: block; margin-top: 3px; font-size: 11px; line-height: 1.25; padding: 3px 5px; border-radius: 6px; border-left: 3px solid; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip b { font-weight: 800; }
.chip .chip-job { display: block; margin-bottom: 1px; font-size: 11px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; }
.chip.st-self { background: rgba(245,158,11,.16); border-color: #f59e0b; }
.chip.st-done { background: rgba(16,185,129,.18); border-color: #10b981; }
.chip.st-rej { background: rgba(239,68,68,.18); border-color: #ef4444; }
.chip .chip-rej { display: block; margin-top: 1px; font-size: 10px; font-weight: 800; color: #fb7185; }
.chip .cut { color: #fb7185; font-weight: 700; }
.cal-more { font-size: 10px; color: var(--sub); margin-top: 2px; }
.cal-week { padding: 8px 10px; border-bottom: 1px solid var(--border); background: rgba(14,165,233,.07); font-size: 11px; }
.cal-week .row { display: flex; justify-content: space-between; margin-top: 2px; }
.cal-week .row span:first-child { color: var(--sub); font-weight: 600; }
.cal-week .row b { font-weight: 800; }
.cal-week .over { color: #fb7185; font-size: 10px; font-weight: 700; margin-top: 3px; }
@media (max-width: 900px) {
  .cal-grid { grid-template-columns: repeat(7, minmax(0,1fr)); }
  .cal-head.wk { display: none; }
  .cal-week { grid-column: 1 / -1; display: flex; gap: 14px; flex-wrap: wrap; }
  .cal-week .row { gap: 6px; margin-top: 0; }
  .cal-cell { min-height: 78px; }
  .chip { font-size: 9px; padding: 2px 3px; }
}
.ot-legend { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 18px; font-size: 11px; color: var(--sub); }
.ot-legend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }
.dot.st-rej { background: #ef4444; }
.dot.st-self { background: #f59e0b; } .dot.st-done { background: #10b981; }

/* ── 표 ─────────────────────────────────────────────────────── */
.ot-table { width: 100%; border-collapse: collapse; font-size: 12px; color: var(--text); }
.ot-table th { background: rgba(6,182,212,.12); padding: 9px 8px; text-align: center; font-weight: 800; border-bottom: 1px solid var(--border2); white-space: nowrap; }
.ot-table td { padding: 8px; text-align: center; border-bottom: 1px solid var(--border); vertical-align: middle; }
.ot-table td.left { text-align: left; }
.ot-table th.col-reason { width: 40%; min-width: 220px; }   /* 사유 컬럼을 가장 넓게 */
.ot-table th.col-reason-wide { min-width: 330px; }   /* 작성(직원) 목록·PM 확인 탭 사유 컬럼: 기준폭 220px의 1.5배 */
.ot-table tr:hover td { background: rgba(99,102,241,.06); }
.ot-table .empty { padding: 36px; color: var(--sub); }
.ot-table tfoot td { font-weight: 800; background: rgba(14,165,233,.08); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 10px; font-weight: 800; border: 1px solid; white-space: nowrap; }
.badge.st-self { background: rgba(245,158,11,.15); color: #fbbf24; border-color: rgba(245,158,11,.45); }
.chip.st-pm, .chip.st-design, .chip.st-head, .chip.st-ga { background: rgba(99,102,241,.18); border-color: #6366f1; }
.dot.st-pm, .dot.st-design, .dot.st-head, .dot.st-ga { background: #6366f1; }
.badge.st-pm, .badge.st-design, .badge.st-head, .badge.st-ga { background: rgba(99,102,241,.16); color: #a5b4fc; border-color: rgba(99,102,241,.5); }
.badge.st-rej { background: rgba(239,68,68,.16); color: #fb7185; border-color: rgba(239,68,68,.5); }
.badge.st-none { background: transparent; color: var(--sub); border-color: var(--border2); font-weight: 700; }
.ot-entry.st-pm, .ot-entry.st-design, .ot-entry.st-head, .ot-entry.st-ga { border-left-color: #6366f1; }
#stg-tab-pending .cnt.has { background: rgba(245,158,11,.25); color: #fbbf24; }
.badge.st-done { background: rgba(16,185,129,.15); color: #34d399; border-color: rgba(16,185,129,.45); }
.cut-text { color: #fb7185; font-weight: 700; }
.row-actions button { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--card2); border: 1px solid var(--border2); color: var(--text); margin: 0 1px; }
.row-actions button.del { color: #fb7185; }
.row-actions button.ok { color: #34d399; }

/* 담당 탭: 날짜+본부 카드 */
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.sheet-head .t { font-size: 14px; font-weight: 800; }
.sheet-head .t small { font-weight: 600; color: var(--sub); margin-left: 6px; }

/* ── 모달 ───────────────────────────────────────────────────── */
.ot-modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 1500; display: flex; align-items: flex-start; justify-content: center; padding: 4vh 12px; overflow-y: auto; }
.ot-modal.hidden { display: none; }
.ot-modal-box { width: 100%; max-width: 640px; background: var(--card); color: var(--text); border: 1px solid var(--border2); border-radius: 18px; box-shadow: 0 25px 60px rgba(0,0,0,.5); }
.ot-modal-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.ot-modal-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.ot-weekbox { background: var(--card2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; font-size: 12px; }
.ot-weekbox .line { display: flex; justify-content: space-between; margin-bottom: 4px; }
.ot-entry { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--card2); border: 1px solid var(--border); border-left: 4px solid #f59e0b; border-radius: 10px; padding: 9px 12px; font-size: 12px; }
.ot-entry.st-done { border-left-color: #10b981; }
.ot-entry.st-rej { border-left-color: #ef4444; }
.ot-entry .main { font-weight: 800; font-size: 13px; }
.ot-entry .sub { color: var(--sub); margin-top: 2px; }
.ot-date-hint { display: block; margin-top: 4px; font-size: 11px; opacity: .8; }
.ot-date-hint.off { color: #fb7185; font-weight: 700; opacity: 1; }
.ot-formbox { border: 1px dashed var(--border2); border-radius: 12px; padding: 14px; }
.ot-preview { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(99,102,241,.12); border: 1px solid rgba(99,102,241,.35); font-size: 12px; line-height: 1.6; }
.ot-preview.warn { background: rgba(245,158,11,.14); border-color: rgba(245,158,11,.45); }
.ot-preview.err  { background: rgba(244,63,94,.14);  border-color: rgba(244,63,94,.45); }
.ot-lock { padding: 12px; border-radius: 10px; background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.4); font-size: 12px; font-weight: 700; }

/* ══════════════════════════════════════════════════════════════
   PDF 미리보기 / 인쇄용 시간외 근무 신청서 (A4 세로, 원본 PDF 양식 재현)
   ══════════════════════════════════════════════════════════════ */
#ot-print-modal { position: fixed; inset: 0; z-index: 3000; background: #475569; overflow: auto; padding: 0 0 40px; }
#ot-print-modal.hidden { display: none; }
.ot-print-toolbar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 18px; background: #1e293b; color: #fff; }
.ot-print-hint { text-align: center; font-size: 12px; color: #e2e8f0; padding: 8px; }
#ot-print-root { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 6px; }

.ot-page { width: 210mm; height: 297mm; background: #fff; color: #000; padding: 15mm 15mm 12mm; box-sizing: border-box; position: relative; font-family: 'Noto Sans KR', 'Malgun Gothic', 'Gulim', sans-serif; box-shadow: 0 6px 24px rgba(0,0,0,.4); overflow: hidden; }
@media (max-width: 860px) { .ot-page { zoom: .55; } }
.ot-title { text-align: center; font-size: 24pt; font-weight: 500; letter-spacing: 6px; margin-top: 2mm; }   /* 원본 24pt */

/* 결재란 */
.ot-sign { position: absolute; top: 33mm; right: 15mm; display: flex; border: 2.5px solid #000; width: 66mm; height: 17mm; }
.ot-sign .lbl { width: 8mm; border-right: 1pt solid #000; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 11pt; line-height: 1.5; padding: 1mm; }   /* 결재: 원본 11pt */
.ot-sign .col { flex: 1; display: flex; flex-direction: column; border-right: 1pt solid #000; }
.ot-sign .col:last-child { border-right: 0; }
.ot-sign .col .h { height: 5.5mm; border-bottom: 1pt solid #000; font-size: 10pt; text-align: center; line-height: 5.5mm; letter-spacing: 1px; }   /* 담당/총무/팀장: 원본 10pt */
.ot-sign .col .b { flex: 1; display: flex; align-items: center; justify-content: center; }

.ot-meta { margin-top: 30mm; display: flex; justify-content: space-between; align-items: flex-end; font-size: 16pt; font-weight: 700; padding: 0 0 1mm; }   /* 부서명: 원본 16pt (제목 확대분만큼 위 여백을 줄여 표 위치는 유지) */
.ot-meta .dept { letter-spacing: 3px; border-bottom: 1.2px solid #000; padding-bottom: 1px; }
.ot-meta .date { font-weight: 500; font-size: 12pt; }   /* 일시: 원본 12pt */
.ot-meta .date b { display: inline-block; min-width: 9mm; text-align: center; font-weight: 700; }

/* 본 표 */
.ot-box { border: 2.5px solid #000; box-sizing: border-box; width: 100%; }   /* 표 + 하단 승인란을 하나의 외곽선으로 묶어 좌·우 세로선을 일치시킴 */
.ot-form { width: 100%; border-collapse: collapse; table-layout: fixed; border: 0; font-size: 10pt; }   /* 표 머리글: 원본 10pt */
.ot-form thead tr:first-child th { border-top: 0; }
.ot-form thead tr:first-child th:first-child, .ot-form tbody td:first-child { border-left: 0; }
.ot-form thead tr:first-child th:last-child, .ot-form tbody td:last-child { border-right: 0; }
.ot-form col:nth-child(7) { width: auto !important; }   /* 사유 칸이 남는 폭을 흡수 → 굵은 외곽선 안쪽에 표가 정확히 맞음 */
.ot-form th, .ot-form td { border: 1pt solid #000; text-align: center; padding: 0; overflow: hidden; }
.ot-form thead th { font-weight: 600; height: 8mm; line-height: 1.25; }
.ot-form thead tr.sub th { height: 6mm; font-size: 9pt; }   /* 개시시각/종료시각/적용시간: 원본 9pt */
.ot-form thead tr:first-child th[rowspan], .ot-form thead tr.sub th { border-bottom: 4px double #000; }   /* 머리글 아래 이중선 (전체 폭) */
.ot-form tbody tr:first-child td { border-top: 4px double #000; }
.ot-form thead tr:first-child th:nth-child(2), .ot-form tbody td:nth-child(2) { border-right: 4px double #000; }   /* 승인요청시간 | 연장근로시간 사이 세로 이중선 */
.ot-form thead tr:first-child th:nth-child(3), .ot-form thead tr.sub th:first-child, .ot-form tbody td:nth-child(3) { border-left: 4px double #000; }
.ot-form tbody td { height: 8.3mm; font-size: 10pt; }
.ot-form td.reason { text-align: left; padding: 0 1.5mm; font-size: 9pt; line-height: 1.2; }
.ot-form td.num { font-weight: 500; }
.ot-form td.name { font-weight: 600; }
.ot-form td.pend { color: #000; }
.ot-note { height: 66mm; position: relative; }
.ot-note .msg { text-align: center; font-size: 14pt; padding-top: 7mm; letter-spacing: .3px; }
.ot-approve { position: absolute; right: 0; bottom: 0; width: 64mm; border-top: 1pt solid #000; border-left: 1pt solid #000; font-size: 10pt; }   /* 승인권자·승인여부·승인/불승인: 원본 10pt */
.ot-approve .r1 { display: flex; height: 8mm; border-bottom: 1pt solid #000; }
.ot-approve .r1 div { flex: 1; display: flex; align-items: center; justify-content: center; }
.ot-approve .r1 div:first-child { border-right: 1pt solid #000; flex: 1.35; }
.ot-approve .r2 { display: flex; height: 13mm; }
.ot-approve .r2 div { flex: 1; }
.ot-approve .r2 div:first-child { border-right: 1pt solid #000; flex: 1.35; }
.ot-approve .r2 .ox .ok { display: inline-block; border: 1.2px solid #000; border-radius: 50%; padding: 1px 3px; line-height: 1.1; }
.ot-approve .r2 .ox { display: flex; align-items: center; justify-content: center; letter-spacing: 1px; text-indent: 1px; }   /* 승인 / 불승인: 셀 가운데 */
.ot-pageno { position: absolute; bottom: 5mm; left: 0; right: 0; text-align: center; font-size: 10px; color: #444; }

/* 필기체 서명 */
/* 사인 폰트는 사용자별(설정 > 사인)로 인라인 font-family 가 지정된다. --hs 는 폰트별 글자 크기 보정 배율 */
.hand { font-family: 'Nanum Pen Script', 'Segoe Script', 'Bradley Hand', cursive; font-weight: 400; font-size: calc(21px * var(--hs, 1)); line-height: 1; color: #1b2a6b; display: inline-block; white-space: nowrap; }
.ot-form .hand { font-size: calc(17px * var(--hs, 1)); }
.hand.long { font-size: calc(14px * var(--hs, 1)); }   /* 4글자 이상 이름 (표 안 기본 크기) */
.ot-sign .hand { font-size: calc(34px * var(--hs, 1)); }          /* 담당·총무팀장 서명: 결재란 칸 높이(약 11.5mm)에 맞춰 확대 */
.ot-sign .hand.long { font-size: calc(24px * var(--hs, 1)); }
.ot-approve .hand { font-size: calc(36px * var(--hs, 1)); }       /* 본부장 서명: 승인권자 칸 높이(13mm)에 맞춰 확대 */
.ot-approve .hand.long { font-size: calc(26px * var(--hs, 1)); }

/* 인쇄 모드 */
@media print {
  @page { size: A4 portrait; margin: 0; }
  html, body { background: #fff !important; }
  body.ot-print-mode > *:not(#ot-print-modal) { display: none !important; }
  body.ot-print-mode #ot-print-modal { position: static !important; display: block !important; background: #fff !important; overflow: visible !important; padding: 0 !important; }
  body.ot-print-mode .ot-print-toolbar, body.ot-print-mode .ot-print-hint { display: none !important; }
  body.ot-print-mode #ot-print-root { display: block !important; padding: 0 !important; gap: 0 !important; }
  body.ot-print-mode .ot-page { box-shadow: none !important; margin: 0 !important; zoom: 1 !important; page-break-after: always; break-after: page; }
  body.ot-print-mode .ot-page:last-child { page-break-after: auto; break-after: auto; }
  .ot-page, .ot-page * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
}

.ot-table th.sortable { cursor: pointer; user-select: none; }
.ot-table th.sortable:hover { filter: brightness(1.3); }
.ot-table th.chk-cell, .ot-table td.chk-cell { text-align: left; padding-left: 16px; padding-right: 4px; white-space: nowrap; }   /* 체크박스 열: 머리글·행 체크박스를 같은 세로선에 */
.ot-table th .sort-ico { opacity: .45; margin-left: 2px; }
.ot-stage-title { font-size: 15px; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 8px; }
.ot-stage-dot { width: 9px; height: 9px; border-radius: 50%; background: #f59e0b; display: inline-block; }
.ot-stage-desc { font-size: 12px; color: var(--sub); margin: 3px 0 0 17px; }
.ot-stage-desc:empty { display: none; }
.ot-stage-head { min-height: 72px; }   /* 탭 전환·설명 유무와 관계없이 윗줄 높이를 고정 → 구분선이 움직이지 않게 */

/* 결재 단계 탭: 결재대기/결재완료(좌) · 본부 버튼(가운데) · 일괄 결재 버튼(우) */
.ot-stage-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
@media (max-width: 720px) {
    .ot-stage-bar { grid-template-columns: 1fr; justify-items: start; }
    .ot-stage-bar > * { grid-column: 1 !important; justify-self: start !important; }
}

/* 결재 단계 탭 목록: 한 줄 표시 · 항목 간 여백 · 사유 폭 축소(길면 … 처리, 마우스를 올리면 전체 표시) */
.ot-table-stage th, .ot-table-stage td { white-space: nowrap; padding-left: 10px; padding-right: 10px; }
.ot-table-stage th.chk-cell, .ot-table-stage td.chk-cell { padding-left: 16px; padding-right: 10px; }
.ot-table-stage th.col-reason { width: 360px; min-width: 210px; }
.ot-table-stage td.left { max-width: 360px; overflow: hidden; text-overflow: ellipsis; }

/* 관리자 탭: 본부별 작성현황 카드 + 모달 */
.ot-dept-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ot-dept-card { display: flex; align-items: center; gap: 16px; padding: 16px 20px; text-align: left; width: 100%; cursor: pointer; background: var(--card); color: var(--text); border: 1px solid var(--border2); border-radius: 16px; transition: filter .15s, transform .15s; }
.ot-dept-card:hover { filter: brightness(1.12); transform: translateY(-1px); }
.ot-dept-card .ico { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; background: var(--card2); flex-shrink: 0; }
/* 아이콘 배경·색: 이 페이지 배지 색(st-design 보라 / st-done 초록)과 같은 계열의 옅은 배경 + 밝은 아이콘 */
.ot-dept-card .ico.d1 { background: rgba(99,102,241,.16); color: #a5b4fc; }
.ot-dept-card .ico.d2 { background: rgba(16,185,129,.15); color: #34d399; }
.ot-dept-card .nm { font-size: 12px; color: var(--sub); font-weight: 600; }
.ot-dept-card .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 2px 0; }
.ot-dept-card .cnt { font-size: 24px; font-weight: 800; }
.ot-dept-card .note { font-size: 11px; color: var(--sub); }
/* 전체 소속 카드 조회자(사번 0000·관리자·총무팀/재정팀 담당·총무담당·재정담당): 한 줄 컴팩트 카드 + 상단 안내 바. 그 외 담당은 위의 기본 카드 그대로 */
.ot-dept-cards.compact { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.ot-dept-cards.compact .ot-dept-card { gap: 12px; padding: 12px 14px; min-width: 0; }
.ot-dept-cards.compact .ico { width: 38px; height: 38px; font-size: 18px; }
.ot-dept-cards.compact .ico svg { width: 20px; height: 20px; }
.ot-dept-cards.compact .head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ot-dept-cards.compact .cnt { font-size: 20px; }
.ot-dept-cards.compact .row { gap: 6px; margin: 3px 0 0; }
.ot-dept-note { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 2px 0 10px; padding: 9px 14px; font-size: 13px; line-height: 1.4; color: var(--text); background: rgba(99,102,241,.10); border: 1px solid rgba(99,102,241,.28); border-left: 3px solid #818cf8; border-radius: 10px; }
.ot-dept-note svg { flex-shrink: 0; color: #a5b4fc; }
.ot-dept-note b { font-weight: 800; color: #fff; }
.ot-dept-note .sep { opacity: .35; }
.ot-dept-note .hint { color: #c7d2fe; font-weight: 600; }
@media (max-width: 720px) { .ot-dept-cards { grid-template-columns: 1fr; } }

/* 본부별 작성현황 모달: 정렬 기준으로 선택된 항목 머리글 강조 (타임시트 주차 머리글과 동일한 방식) */
.ot-table th.sortable.on { background: rgba(99,102,241,.28); }

/* 관리자 탭: 직원 × 기간(일/주차/월) 시간외 합계표 — 타임시트의 직원별·프로젝트별 합계표와 같은 구성 */
.ot-matrix th, .ot-matrix td { white-space: nowrap; }
.ot-matrix th.left, .ot-matrix td.left { text-align: left; }
.ot-matrix th.num, .ot-matrix td.num { text-align: right; padding-left: 12px; padding-right: 12px; }
.ot-matrix.compact th.num, .ot-matrix.compact td.num { text-align: center; padding-left: 5px; padding-right: 5px; min-width: 34px; }
.ot-matrix th .sub { display: block; font-size: 10px; font-weight: 500; opacity: .65; }
.ot-matrix th.sun { color: #fb7185; } .ot-matrix th.sat { color: #60a5fa; }
.ot-matrix th.tot, .ot-matrix td.tot { background: rgba(99,102,241,.16); color: #a5b4fc; font-weight: 800; }
.ot-matrix td.pend { color: #fbbf24; font-weight: 700; }
.ot-matrix td.dim { opacity: .35; }


/* 관리자 일별 목록: 같은 날짜 묶음(날짜 칸 병합) 구분선 */
.ot-table-admday td.day-cell { font-weight: 700; vertical-align: middle; border-right: 1px solid var(--border2); }
.ot-table-admday tr.day-first > td { border-top: 2px solid var(--border2); }
.ot-table-admday tbody tr:first-child > td { border-top: 0; }

/* 직원별(일) 목록: 성명 묶음 + 성명별 계 */
.ot-table-empday td.emp-cell { font-weight: 700; vertical-align: middle; border-right: 1px solid var(--border2); }
.ot-table-empday tr.emp-first > td { border-top: 2px solid var(--border2); }
.ot-table-empday tr.emp-sum > td { background: rgba(99,102,241,.14); font-weight: 800; border-top: 1px solid var(--border2); }
.ot-table-empday tr.emp-sum > td:first-child { text-align: right; padding-right: 16px; }
.ot-table-empday tr.emp-grand > td { background: rgba(99,102,241,.26); border-top: 2px solid var(--border2); }

/* 월별(주차) 목록: 부서·성명·직급 병합 칸은 왼쪽 정렬, 직원별 계 행 */
.ot-table-weekjob th.ctr, .ot-table-weekjob td.ctr, .ot-table-weekjob td.emp-cell { text-align: center; }
.ot-table-weekjob tr.emp-sum > td { text-align: right; }
.ot-table-weekjob tr.emp-sum > td.ctr { text-align: center; padding-right: 8px; }
.ot-table-weekjob tr.emp-sum > td.left { text-align: left; padding-right: 8px; }
.ot-table-yearjob th.num, .ot-table-yearjob td.num { padding-left: 8px; padding-right: 8px; min-width: 44px; }

/* 관리자 표: 열 너비 고정 (colgroup 로 지정, 본부 탭을 바꿔도 동일) */
.ot-table.ot-fixed { table-layout: fixed; }
.ot-table.ot-fixed th, .ot-table.ot-fixed td { overflow: hidden; text-overflow: ellipsis; }
.ot-table.ot-fixed th.col-reason { width: auto; min-width: 0; }

/* ── 월 허용시간 초과 표시 ───────────────────────────────── */
.ot-over-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 99px; font-size: 10px; font-weight: 800; line-height: 1.5; color: #fb7185; background: rgba(239,68,68,.16); border: 1px solid rgba(239,68,68,.5); white-space: nowrap; vertical-align: 1px; cursor: help; }
.ot-over-badge.lg { margin-left: 8px; font-size: 12px; padding: 2px 9px; vertical-align: 3px; }
.ot-over-chip { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 6px; font-size: 10px; font-weight: 800; color: #fb7185; background: rgba(239,68,68,.16); border: 1px solid rgba(239,68,68,.5); cursor: help; }
.ot-over-band { margin-bottom: 8px; padding: 8px 12px; border-radius: 10px; font-size: 12px; color: inherit; background: rgba(239,68,68,.14); border: 1px solid rgba(239,68,68,.45); }
.ot-over-band b:first-child { margin-right: 4px; padding: 1px 7px; border-radius: 99px; font-size: 10px; color: #fb7185; background: rgba(239,68,68,.2); border: 1px solid rgba(239,68,68,.5); }
.ot-stat.over { border-color: rgba(239,68,68,.55); }
.ot-subtabs .ot-over-cnt { margin-left: 8px; font-size: 11px; font-weight: 800; color: #f87171; }
.ot-subtabs .ot-over-cnt.zero { opacity: .75; }


/* ══ 모바일 보강 ══════════════════════════════════════════════ */
/* 역할 탭이 2개 이하: 모바일에서 헤더 우측 상단 배치 + 글자 2줄 */
@media (max-width: 1023px) {
  #ot-hdr-inner.ot-hdr-few { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 8px; }
  #ot-hdr-inner.ot-hdr-few .ot-hdr-left { flex: 1 1 auto; min-width: 0; }
  #ot-hdr-inner.ot-hdr-few #ot-role-bar { flex: 0 0 auto; flex-wrap: nowrap; }
  #ot-role-bar.ot-role-few .role-btn { padding: 5px 8px; font-size: 11px; line-height: 1.2; text-align: center; }
  #ot-role-bar.ot-role-few .rl-a, #ot-role-bar.ot-role-few .rl-b { display: block; }
}
@media (max-width: 720px) {
  /* 달력/목록 버튼 글자 1줄: 월 이동 줄 축소 */
  #section-employee > .ot-card > .ot-toolbar { flex-wrap: nowrap; gap: 6px; padding: 10px; }
  .ot-nav-group { gap: 4px !important; min-width: 0; }
  .ot-nav-group .ot-icon-btn { width: 26px; height: 26px; font-size: 10px; flex-shrink: 0; }
  .ot-nav-group .ot-btn-sub { padding: 5px 8px; font-size: 11px; }
  .ot-month-title { min-width: 0 !important; font-size: 14px !important; white-space: nowrap; }
  #ot-view-seg { flex-shrink: 0; }
  #ot-view-seg button { padding: 5px 7px; font-size: 11px; white-space: nowrap; }
  /* 요약 3칸 1줄 */
  .ot-summary { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; padding: 10px; }
  .ot-stat { padding: 7px 8px; border-radius: 10px; min-width: 0; }
  .ot-stat .k { font-size: 10px; line-height: 1.25; }
  .ot-stat .v { font-size: 15px; }
  .ot-stat .s { font-size: 9px; }
  .ot-stat .ot-bar { margin-top: 4px; height: 6px; }
}

/* ══ 모바일: 1줄 고정 + 폰트 자동 축소(JS: otFitText) ═══════════ */
@media (max-width: 720px) {
  .ot-hdr-left > div:last-child { min-width: 0; flex: 1 1 auto; flex-direction: column; align-items: flex-start; flex-wrap: nowrap !important; gap: 4px !important; }
  header h1, #user-badge { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; }
  #user-badge { padding: 3px 8px; }
  .ot-stat .k { white-space: nowrap; overflow: hidden; }
  .ot-subtabs { max-width: 100%; overflow: hidden; }
  .ot-subtabs button { white-space: nowrap; padding: 8px 10px; }
  .ot-subtabs .cnt { margin-left: 3px; }
}

/* 달력 범례: PC는 기존 배치(행 래퍼 투명) / 모바일은 2줄 고정 + 폰트 자동 축소 */
.ot-legend-row { display: contents; }
@media (max-width: 720px) {
  #ot-view-calendar .ot-legend { display: block; padding: 10px 12px; }
  .ot-legend-row { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; overflow: hidden; white-space: nowrap; }
  .ot-legend-row + .ot-legend-row { margin-top: 4px; }
  .ot-legend-row span { white-space: nowrap; }
  .ot-legend-hint { display: none; }
}

/* PM 확인 탭: 미확인·확인완료·선택확인·전체확인 4개 버튼 1줄 (폰트는 JS 로 자동 축소) */
@media (max-width: 720px) {
  #section-pm > .ot-card > .ot-toolbar { flex-wrap: nowrap; justify-content: flex-start; gap: 6px; padding: 10px; }
  #section-pm .ot-subtabs { flex: 0 0 auto; overflow: visible; padding: 3px; gap: 2px; }
  #section-pm .ot-subtabs button { padding: 6px 7px; }
  #section-pm .ot-subtabs .cnt { font-size: .85em; padding: 1px 5px; margin-left: 2px; }
  #section-pm .ot-toolbar > div:last-child { flex: 0 0 auto; gap: 4px !important; }
  #pm-bulk-btn { gap: 4px !important; white-space: nowrap; }
  #pm-bulk-btn .ot-btn-primary { padding: 6px 8px; font-size: inherit; }
}

/* 모바일 목록 표(작성 목록 / PM 확인 / 결재 단계): 한 줄 표시 — 폰트는 JS(otFitText)가 폭에 맞춰 자동 축소 */
@media (max-width: 720px) {
  #ot-emp-table, #ot-pm-table, table.ot-table.ot-table-stage:not(.ot-fixed) { width: 100%; font-size: 12px; }   /* 폰트 고정(자동 축소 안 함) — 넘치면 가로 스크롤 */
  #ot-emp-table th, #ot-emp-table td,
  #ot-pm-table th, #ot-pm-table td,
  table.ot-table-stage:not(.ot-fixed) th, table.ot-table-stage:not(.ot-fixed) td {
    padding: 8px 7px !important; white-space: nowrap !important; line-height: 1.3;
  }
  #ot-emp-table th.col-reason-wide, #ot-pm-table th.col-reason-wide,
  table.ot-table-stage:not(.ot-fixed) th.col-reason { min-width: 0 !important; width: auto !important; }
  #ot-emp-table td.left, #ot-pm-table td.left, table.ot-table-stage:not(.ot-fixed) td.left {
    max-width: 9em !important; overflow: hidden; text-overflow: ellipsis; text-align: left;
  }
  #ot-emp-table td.row-actions, #ot-pm-table td.row-actions, table.ot-table-stage:not(.ot-fixed) td.row-actions { white-space: nowrap !important; }
  #ot-emp-table .row-actions button, #ot-pm-table .row-actions button, table.ot-table-stage:not(.ot-fixed) .row-actions button {
    display: inline-block; white-space: nowrap; font-size: inherit; padding: 2px 5px; margin: 0 1px; line-height: 1.3;
  }
  #ot-emp-table .badge, #ot-pm-table .badge, table.ot-table-stage:not(.ot-fixed) .badge { font-size: .9em; padding: 1px 6px; }
  #ot-emp-table th.sortable .sort-ind, #ot-pm-table th.sortable .sort-ind, table.ot-table-stage:not(.ot-fixed) th .sort-ico { font-size: .8em; margin-left: 1px; }
}

/* 달력 기념일 이름: 줄바꿈 대신 말줄임(…) */
.cal-cell { min-width: 0; }
.cal-date { min-width: 0; overflow: hidden; white-space: nowrap; }
.cal-hol { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 720px) { .cal-add { display: none; } }

/* 모바일: PM 확인·결재 단계의 일괄 버튼(선택확인/전체확인 등)은 줄 오른쪽 끝 */
@media (max-width: 720px) {
  #section-pm .ot-toolbar > div:last-child { margin-left: auto; }
  .ot-stage-bar { grid-template-columns: 1fr auto; }
  .ot-stage-bar > .ot-subtabs { grid-column: 1 !important; grid-row: 1; justify-self: start !important; }
  .ot-stage-bar > #stg-head-actions { grid-column: 2 !important; grid-row: 1; justify-self: end !important; }
  .ot-stage-bar > #stg-dept-seg { grid-column: 1 / -1 !important; grid-row: 2; justify-self: start !important; }
}

/* ── 출퇴근 기록 (출입통제 엑셀 업로드) ─────────────────────── */
.cal-att { display: flex; flex-wrap: wrap; gap: 0 6px; margin-top: 2px; font-size: 10px; font-weight: 700; line-height: 1.35; color: var(--sub); font-variant-numeric: tabular-nums; }
.cal-att span { white-space: nowrap; }
.cal-att .att-out { color: #34d399; }
.cal-att .att-last { color: #fbbf24; font-style: italic; }
.cal-att .att-none { opacity: .55; font-weight: 600; }
.ot-att-box { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 8px 12px; border-radius: 10px; font-size: 12px; background: rgba(16,185,129,.10); border: 1px solid rgba(16,185,129,.35); }
.ot-att-box.hidden { display: none; }
.ot-att-box .att-title { font-weight: 800; margin-right: 4px; }
.ot-att-box .att-dot { opacity: .5; }
.ot-att-box .att-sub { font-size: 11px; opacity: .7; }
.att-chip { display: inline-block; margin: 0 4px 4px 0; padding: 2px 9px; border-radius: 99px; font-size: 11px; font-weight: 700; background: var(--card2); border: 1px solid var(--border2); }
.att-chip i { font-style: normal; opacity: .6; margin-left: 2px; }
@media (max-width: 700px) { .cal-att { font-size: 9px; } }

/* 퇴근 배지 (신청 항목·목록) */
.att-badge { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 99px; font-size: 11px; font-weight: 800; line-height: 1.5; white-space: nowrap; vertical-align: 1px; border: 1px solid; font-variant-numeric: tabular-nums; }
.att-badge.out  { color: #34d399; background: rgba(16,185,129,.14); border-color: rgba(16,185,129,.5); }
.att-badge.last { color: #fbbf24; background: rgba(245,158,11,.14); border-color: rgba(245,158,11,.5); font-style: italic; }
.att-badge.none { color: var(--sub); background: transparent; border-color: var(--border2); font-weight: 600; opacity: .7; }
.ot-table td .att-badge { margin-left: 0; }

/* 출퇴근 경고 (시간외 신청일: 18시 이전 퇴근 / 18시 이후 출입 없음 / 출입기록 없음) */
.att-badge.warn { color: inherit; background: rgba(239,68,68,.2); border-color: rgba(239,68,68,.7); }
.cal-att.warn .att-warnt { color: #fb7185; font-weight: 800; }
.ot-att-box.warn { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.55); }
.ot-att-box .att-warn-msg { flex-basis: 100%; margin-top: 2px; font-size: 12px; font-weight: 700; color: #fb7185; }
.ot-over-band.att a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.att-warn { display: block; margin-top: 2px; font-size: 10px; font-weight: 800; line-height: 1.3; color: #fb7185; white-space: normal; cursor: help; }
.ot-table-empday td .att-warn { display: block; margin: 2px 0 0; }   /* 날짜 칸(고정폭)에서 잘리지 않도록 날짜 아래 줄에 표시 */
.ot-att-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-radius: 12px; font-size: 12px; color: inherit; background: rgba(239,68,68,.14); border: 1px solid rgba(239,68,68,.5); }
.ot-att-banner b { color: #fb7185; }
.ot-att-banner b { font-weight: 800; }

/* 경고 글자색 (다크·화이트 모드 공용)
   고정 분홍색(#fb7185·#fecdd3)은 밝은 배경에서 안 보이므로, 빨강을 현재 테마의 글자색과 섞는다.
   → 다크 모드: 밝은 분홍 / 화이트 모드: 진한 크림슨.  (color-mix 미지원 브라우저는 위의 기본색 사용) */
@supports (color: color-mix(in srgb, red, blue)) {
  .att-warn,
  .att-badge.warn,
  .cal-att.warn .att-warnt,
  .ot-att-box .att-warn-msg,
  .ot-att-banner b,
  .ot-over-badge,
  .ot-over-chip,
  .ot-over-band b:first-child,
  .ot-subtabs .ot-over-cnt { color: color-mix(in srgb, #e11d48 62%, currentColor); }
}

/* 모바일 달력: 날짜 칸 안의 출퇴근 시간은 숨긴다 (좁은 칸에서 신청 칩을 가리지 않도록).
   경고가 있는 날만 작은 ⚠ 표시를 남기고, 자세한 내용은 달력 위 경고 띠·작성 창에서 확인한다. */
@media (max-width: 860px) {
    .cal-att > span { display: none; }
    .cal-att.warn > .att-warnt { display: inline; font-size: 0; }
    .cal-att.warn > .att-warnt::before { content: '⚠'; font-size: 11px; }
}

/* 작성 창 상단: 제목은 한 줄 유지(글자 크기는 otFitDayTitle 이 자동 축소), 버튼은 줄어들지 않게 */
.ot-modal-head .ot-icon-btn, .ot-modal-head .relative { flex-shrink: 0; }

.ot-delreq-card { border: 1px solid rgba(245,158,11,.6) !important; box-shadow: 0 0 0 1px rgba(245,158,11,.25); margin-bottom: 14px; }
.ot-delreq-card .sheet-head { background: rgba(245,158,11,.12); }
.ot-delreq-note { margin-bottom: 10px; padding: 8px 12px; border-radius: 10px; font-size: 12px; background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.45); }
.ot-delreq-note a { text-decoration: underline; font-weight: 800; }
/* 결재 탭 배지: 삭제요청이 포함되면 주황색 */
.stg-badge.has-del, [id^="stg-badge-"].has-del { background: #f59e0b !important; color: #1f1300 !important; }
.ot-delreq-chip { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 6px; font-size: 10px; font-weight: 800; color: #fbbf24; background: rgba(245,158,11,.16); border: 1px solid rgba(245,158,11,.5); white-space: nowrap; }

/* 작성 창 상단: ◀ 제목 ▶ 📅 묶음은 제목 바로 옆에 붙이고(남는 폭을 제목이 차지하지 않음), ✕ 버튼과는 간격을 둔다 */
.ot-modal-head { gap: 16px; }

/* ── 이전 달 결재 미완료 경고 배너 (주황/앰버) ───────────────────
   출퇴근 확인 경고(.ot-att-banner, 빨강)와 구분되도록 주황 계열로 표시한다. */
.ot-prev-wrap:empty { display: none; }
.ot-prev-wrap { margin-bottom: 16px; }
.ot-prev-banner { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-radius: 12px; font-size: 13px; line-height: 1.5; color: inherit;
  background: rgba(245,158,11,.15); border: 1px solid rgba(245,158,11,.55); border-left: 4px solid #f59e0b; }
.ot-prev-banner .pv-ico { flex-shrink: 0; font-size: 20px; line-height: 1.3; }
.ot-prev-banner .pv-body { flex: 1 1 auto; min-width: 0; }
.ot-prev-banner .pv-title { font-size: 14px; font-weight: 800; }
.ot-prev-banner .pv-title b { color: #fbbf24; }
.ot-prev-banner .pv-line { margin-top: 4px; font-size: 12px; opacity: .95; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ot-prev-banner .pv-line > b { font-weight: 800; }
.ot-prev-banner .pv-chip { display: inline-block; padding: 1px 9px; border-radius: 99px; font-size: 11px; font-weight: 700; color: inherit;
  background: rgba(245,158,11,.22); border: 1px solid rgba(245,158,11,.6); }
.ot-prev-banner button.pv-chip { cursor: pointer; font-family: inherit; }
.ot-prev-banner button.pv-chip:hover { background: rgba(245,158,11,.4); }
.ot-prev-banner .pv-go { flex-shrink: 0; align-self: center; padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; color: inherit;
  background: rgba(245,158,11,.22); border: 1px solid rgba(245,158,11,.65); white-space: nowrap; }
.ot-prev-banner .pv-go:hover { background: rgba(245,158,11,.4); }
@supports (color: color-mix(in srgb, red, blue)) {
  .ot-prev-banner .pv-title b { color: color-mix(in srgb, #d97706 62%, currentColor); }   /* 다크: 밝은 앰버 / 화이트: 진한 앰버 */
}
@media (max-width: 640px) { .ot-prev-banner { flex-wrap: wrap; } .ot-prev-banner .pv-go { align-self: flex-start; margin-left: 32px; } }

/* ══════════════════════════════════════════════════════════════
   화이트 모드 (body.theme-light — 타임시트와 같은 테마 클래스)
   다크 모드용으로 정한 밝은 글자색(#fbbf24 · #34d399 · #a5b4fc · #fb7185 · #fff …)은 흰 배경에서 거의 안 보이므로,
   배지·칩·안내바 글자를 진한 색으로, 배경은 같은 계열을 조금 더 진하게 바꾼다. (상단 헤더·사이드바는 어두운 색 그대로라 건드리지 않는다)
   ══════════════════════════════════════════════════════════════ */
/* 배지 (결재 상태 · 작성/PM 확인 진행 · 본부별 완료/대기) */
body.theme-light .badge.st-self { background: rgba(245,158,11,.20); color: #92400e; border-color: rgba(217,119,6,.65); }
body.theme-light .badge.st-pm, body.theme-light .badge.st-design, body.theme-light .badge.st-head, body.theme-light .badge.st-ga { background: rgba(99,102,241,.14); color: #3730a3; border-color: rgba(79,70,229,.55); }
body.theme-light .badge.st-done { background: rgba(16,185,129,.16); color: #047857; border-color: rgba(5,150,105,.6); }
body.theme-light .badge.st-rej { background: rgba(239,68,68,.14); color: #be123c; border-color: rgba(225,29,72,.55); }
body.theme-light .badge.st-none { color: #475569; border-color: #94a3b8; }
/* 탭 옆 건수 (결재대기 146 · 미확인 57 …) */
body.theme-light .ot-subtabs .cnt { background: rgba(100,116,139,.18); color: #475569; }
body.theme-light #pm-tab-pending .cnt.has, body.theme-light #stg-tab-pending .cnt.has { background: rgba(245,158,11,.28); color: #92400e; }
body.theme-light .ot-subtabs button.active { background: rgba(100,116,139,.16); }
/* 본부별 작성현황 카드 · 상단 안내 바 */
body.theme-light .ot-dept-card .ico.d1 { background: rgba(99,102,241,.14); color: #4338ca; }
body.theme-light .ot-dept-card .ico.d2 { background: rgba(16,185,129,.16); color: #047857; }
body.theme-light .ot-dept-card .nm, body.theme-light .ot-dept-card .note { color: #475569; }
body.theme-light .ot-dept-note { background: rgba(99,102,241,.10); border-color: rgba(79,70,229,.35); border-left-color: #4f46e5; }
body.theme-light .ot-dept-note svg { color: #4f46e5; }
body.theme-light .ot-dept-note b { color: #1e1b4b; }
body.theme-light .ot-dept-note .hint { color: #4338ca; }
/* 표 · 합계 · 기타 강조 글자 */
body.theme-light .ot-matrix th.tot, body.theme-light .ot-matrix td.tot { background: rgba(99,102,241,.14); color: #3730a3; }
body.theme-light .ot-matrix td.pend { color: #b45309; }
body.theme-light .ot-matrix th.sun { color: #be123c; } body.theme-light .ot-matrix th.sat { color: #1d4ed8; }
body.theme-light .ot-table th.sortable.on .sort-ind { color: #4f46e5; }
body.theme-light .ot-combo-group { color: #4f46e5; }
body.theme-light .ot-star:hover, body.theme-light .ot-star.on { color: #d97706; }
body.theme-light .row-actions button.del, body.theme-light .cut-text, body.theme-light .chip .cut, body.theme-light .chip .chip-rej, body.theme-light .ot-date-hint.off { color: #be123c; }
body.theme-light .row-actions button.ok { color: #047857; }
body.theme-light .ot-btn-danger { background: rgba(244,63,94,.10); color: #be123c; border-color: rgba(225,29,72,.5); }
/* 달력 */
body.theme-light .cal-head.sun, body.theme-light .cal-cell.sun .cal-date, body.theme-light .cal-cell.holiday .cal-date, body.theme-light .cal-hol, body.theme-light .cal-week .over { color: #be123c; }
body.theme-light .cal-head.sat { color: #0369a1; }
/* 초과 · 삭제요청 · 출퇴근 배지 */
body.theme-light .ot-over-badge, body.theme-light .ot-over-chip, body.theme-light .ot-over-band b:first-child, body.theme-light .att-warn, body.theme-light .att-badge.warn,
body.theme-light .cal-att.warn .att-warnt, body.theme-light .ot-att-box .att-warn-msg, body.theme-light .ot-att-banner b { color: #be123c; }
body.theme-light .ot-delreq-chip { color: #92400e; background: rgba(245,158,11,.20); border-color: rgba(217,119,6,.6); }
body.theme-light .att-badge.out { color: #047857; } body.theme-light .cal-att .att-out { color: #047857; }
body.theme-light .att-badge.last { color: #92400e; } body.theme-light .cal-att .att-last { color: #92400e; }
/* 이전 달 결재 미완료 경고(주황) */
body.theme-light .ot-prev-banner { background: rgba(245,158,11,.16); border-color: rgba(217,119,6,.6); border-left-color: #d97706; }
body.theme-light .ot-prev-banner .pv-title b { color: #b45309; }
body.theme-light .ot-prev-banner .pv-chip, body.theme-light .ot-prev-banner .pv-go { color: #78350f; background: rgba(245,158,11,.26); border-color: rgba(217,119,6,.7); }
body.theme-light .ot-prev-banner button.pv-chip:hover, body.theme-light .ot-prev-banner .pv-go:hover { background: rgba(245,158,11,.45); }

/* 본부별 컴팩트 카드: 소속명과 건수는 항상 한 줄 (예: '대전 기술연구소 18건' 이 두 줄로 갈라지지 않도록) */
.ot-dept-cards.compact .ot-dept-card { gap: 10px; padding: 12px 12px; }
.ot-dept-cards.compact .ico { width: 34px; height: 34px; }
.ot-dept-cards.compact .ico svg { width: 18px; height: 18px; }
.ot-dept-cards.compact .head { flex-wrap: nowrap; gap: 6px; min-width: 0; }
.ot-dept-cards.compact .head .nm { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ot-dept-cards.compact .head .cnt { font-size: 18px; white-space: nowrap; flex-shrink: 0; }
