/* TTM PMO 경량 화면 (먼데이 화면 체계) */
@font-face {
  font-family: "Pretendard Variable";
  font-weight: 45 920;
  font-display: swap;
  src: url("/fonts/PretendardVariable.woff2") format("woff2-variations");
}

:root {
  --primary: #0073ea;
  --primary-soft: #cce5ff;
  --app: #eceff8;
  --text: #323338;
  --sub: #676879;
  --line: #e6e9ef;
  --hover: #f5f6f8;
  --left: 660px;
  --row: 38px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--app);
  color: var(--text);
  font: 15px/1.4 "Pretendard Variable", Pretendard, -apple-system, "Malgun Gothic", sans-serif;
  letter-spacing: -0.01em;
}

button, input, select { font: inherit; color: inherit; }

header.top {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.logo { display: flex; align-items: center; gap: 4px; text-decoration: none; }
.logo img { height: 23px; }
.logo span {
  padding: 2px 7px; border-radius: 4px; background: var(--primary); color: #fff;
  font-size: 13px; font-weight: 800; letter-spacing: 0.04em;
}
.top-right { color: var(--sub); font-size: 14px; }

.layout { display: flex; height: calc(100% - 52px); }

.side { width: 220px; flex: 0 0 220px; padding: 8px 12px; }
.proj { font-weight: 700; padding: 8px 12px 12px; border-bottom: 1px solid #d5d9e8; margin-bottom: 6px; }
.side a {
  display: flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 4px;
  color: var(--text); text-decoration: none;
}
.side a:hover { background: #dcdfec; }
.side a.on { background: var(--primary-soft); font-weight: 700; }
.side hr { border: 0; border-top: 1px solid #d5d9e8; margin: 8px 0; }

.main {
  flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column;
  background: #fff; border-radius: 16px 16px 0 0; margin-right: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.bar { display: flex; align-items: center; gap: 8px; padding: 18px 24px 12px; flex-wrap: wrap; }
.bar h1 { font-size: 26px; margin: 0 12px 0 0; }
.bar input, .bar select, .bar button {
  height: 32px; border: 1px solid #c3c6d4; border-radius: 4px; background: #fff; padding: 0 10px;
}
.bar input { width: 180px; }
.bar button { cursor: pointer; }
.bar button:hover { background: var(--hover); }
.seg { display: inline-flex; }
.seg button { border-radius: 0; margin-left: -1px; }
.seg button:first-child { border-radius: 4px 0 0 4px; margin-left: 0; }
.seg button:last-child { border-radius: 0 4px 4px 0; }
.seg button.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.ms { margin-left: auto; color: var(--sub); font-size: 13px; }

.board { flex: 1 1 auto; overflow: auto; position: relative; border-top: 1px solid var(--line); }

.head, .row { width: max-content; min-width: 100%; }

/* 머리줄: 위로 고정 */
.head { position: sticky; top: 0; z-index: 5; display: flex; background: #fff; border-bottom: 1px solid var(--line); }
.head .cols {
  position: sticky; left: 0; z-index: 6; flex: 0 0 var(--left); display: flex; background: #fff;
  border-right: 1px solid #d0d4e4; color: var(--sub); font-size: 14px;
}
.cols > div { padding: 0 8px; display: flex; align-items: center; }
.c-sub { flex: 1 1 auto; min-width: 0; gap: 2px; }
.cols > div { overflow: hidden; }
.c-asg { flex: 0 0 96px; }
.c-st { flex: 0 0 88px; justify-content: center; }
.c-dr { flex: 0 0 84px; justify-content: center; }
.head .cols > div { height: 52px; }
.scale { position: relative; height: 52px; flex: 0 0 auto; }
.scale .m, .scale .d {
  position: absolute; white-space: nowrap; overflow: hidden; font-size: 13px; color: var(--sub);
  border-left: 1px solid var(--line); padding-left: 4px;
}
.scale .m { top: 0; height: 26px; line-height: 26px; font-weight: 700; color: var(--text); }
.scale .d { top: 26px; height: 26px; line-height: 26px; border-top: 1px solid var(--line); }
.scale .d.we { color: #b0b3c2; }

/* 행 */
.row { display: flex; height: var(--row); border-bottom: 1px solid var(--line); }
.row:hover .cols, .row:hover .tl { background-color: var(--hover); }
.row .cols {
  display: flex; align-items: stretch; height: 100%;
  position: sticky; left: 0; z-index: 3; flex: 0 0 var(--left); background: #fff;
  border-right: 1px solid #d0d4e4; box-shadow: inset 6px 0 0 var(--gc, transparent);
}
.row.parent .cols, .row.parent .tl { background-color: #fafbfc; }
.row.parent .c-sub { font-weight: 700; }
.row.top .c-sub { color: var(--gc); font-size: 16px; }
.c-sub .tw { width: 18px; flex: 0 0 18px; cursor: pointer; color: var(--sub); user-select: none; text-align: center; }
.c-sub a { color: inherit; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-sub a:hover { text-decoration: underline; }
.c-asg { overflow: hidden; white-space: nowrap; font-size: 14px; }
.av {
  width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; margin-right: 6px; flex: 0 0 22px;
}
.c-st { padding: 0 !important; }
.pill {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 500;
}
.drp { width: 100%; font-size: 12px; color: var(--sub); }
.drp i { display: block; height: 6px; border-radius: 3px; background: var(--line); margin-top: 2px; overflow: hidden; }
.drp b { display: block; height: 100%; background: #579bfc; }

.tl { position: relative; flex: 0 0 auto; }
.tl.new { cursor: crosshair; }
.today { position: absolute; top: 0; bottom: 0; width: 2px; background: #df2f4a; z-index: 2; pointer-events: none; }

.b {
  position: absolute; top: 9px; height: 18px; border-radius: 9px; z-index: 1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); overflow: hidden;
}
.b .p { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(0, 0, 0, 0.18); }
.b.leaf.edit { cursor: grab; }
.b.leaf.edit::before, .b.leaf.edit::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 7px; cursor: ew-resize; z-index: 2;
}
.b.leaf.edit::before { left: 0; }
.b.leaf.edit::after { right: 0; }
.b.sum { top: 13px; height: 10px; border-radius: 2px; background: #323338; box-shadow: none; }
.b.ms { width: 14px !important; height: 14px; top: 11px; border-radius: 2px; transform: rotate(45deg); background: #fdab3d; }
.b.drag { opacity: 0.85; outline: 2px solid var(--primary); cursor: grabbing; }
.lbl {
  position: absolute; top: 9px; height: 18px; line-height: 18px; font-size: 13px; color: var(--sub);
  white-space: nowrap; pointer-events: none;
}

.tip, .toast {
  position: fixed; z-index: 50; display: none; background: #323338; color: #fff;
  border-radius: 6px; padding: 6px 10px; font-size: 13px; pointer-events: none;
}
.toast { left: 50%; bottom: 24px; transform: translateX(-50%); font-size: 15px; padding: 10px 16px; }
.toast.err { background: #df2f4a; }
.empty { padding: 40px; text-align: center; color: var(--sub); }

/* 버튼 */
.btn {
  height: 32px; padding: 0 12px; border: 1px solid #c3c6d4; border-radius: 4px; background: #fff;
  cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; color: var(--text); font-size: 14px;
}
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: #0060b9; }
.btn.danger { color: #df2f4a; border-color: #f0b8c1; }
.btn.danger:hover { background: #fdecef; }
.btn:disabled { opacity: 0.5; cursor: default; }
.bar .btn.on { background: var(--primary-soft); border-color: var(--primary); font-weight: 700; }
.lnk { border: 0; background: none; color: var(--primary); cursor: pointer; font-size: 13px; margin-left: 8px; }

/* 상태 빠른 변경 */
.pill.click { cursor: pointer; }
.pill.click:hover { filter: brightness(0.93); }
.st-menu {
  position: fixed; z-index: 60; background: #fff; border-radius: 8px; padding: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18); display: flex; flex-direction: column; gap: 4px; width: 130px;
}
.st-menu button { border: 0; border-radius: 4px; height: 30px; color: #fff; cursor: pointer; font-weight: 500; }
.st-menu button:hover { filter: brightness(0.92); }
.c-sub a { cursor: pointer; }

/* 상세 창(가운데) */
#drawer .dr-bg { position: fixed; inset: 0; background: rgba(15, 20, 40, 0.35); z-index: 40; }
#drawer .dr {
  position: fixed; z-index: 41; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(980px, calc(100vw - 48px)); height: min(760px, calc(100vh - 48px));
  background: #fff; border-radius: 12px; box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
  display: flex; flex-direction: column; overflow: hidden; animation: drIn 0.15s ease-out;
}
@keyframes drIn { from { opacity: 0; transform: translate(-50%, -48%); } to { opacity: 1; transform: translate(-50%, -50%); } }
.dr-in { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.dr-head { display: flex; align-items: center; gap: 8px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.dr-head .x { margin-left: auto; border: 0; background: none; font-size: 20px; width: 32px; height: 32px; border-radius: 6px; cursor: pointer; color: var(--sub); }
.dr-head .x:hover { background: var(--hover); color: var(--text); }
.dr-cols { flex: 1 1 auto; min-height: 0; display: flex; }
.dr-main { flex: 1 1 auto; min-width: 0; overflow: auto; padding: 16px 24px 28px; }
.dr-side {
  flex: 0 0 280px; overflow: auto; padding: 16px 20px; background: #fafbfc; border-left: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.dr-side label { color: var(--sub); font-size: 13px; margin-top: 8px; }
.dr-side select, .dr-side input { height: 34px; border: 1px solid #c3c6d4; border-radius: 4px; padding: 0 8px; background: #fff; width: 100%; }
.dr-side select:disabled, .dr-side input:disabled { background: #f0f1f5; color: var(--sub); }
.dr-side .btn { justify-content: center; margin-top: 10px; }
.dr-side .meta { margin-top: 14px; font-size: 13px; color: var(--sub); line-height: 1.7; border-top: 1px solid var(--line); padding-top: 10px; }
.dr-side .meta b { color: var(--text); }
@media (max-width: 760px) { .dr-cols { flex-direction: column; overflow: auto; } .dr-side { flex: none; border-left: 0; border-top: 1px solid var(--line); } .dr-main { overflow: visible; } }
.tchip { padding: 2px 10px; border-radius: 12px; background: #e6f7ef; color: #00854d; font-size: 13px; font-weight: 700; }
.wid { color: var(--sub); font-size: 14px; }
.crumb { color: var(--sub); font-size: 13px; margin-left: 6px; }
.ttl { width: 100%; font-size: 24px; font-weight: 700; border: 1px solid transparent; border-radius: 4px; padding: 6px 8px; margin: 0 -8px 6px; }
.ttl:hover:not(:disabled), .ttl:focus { border-color: #c3c6d4; outline: none; }
.ttl:disabled { background: none; color: var(--text); }
.grid { display: grid; grid-template-columns: 90px 1fr 90px 1fr; gap: 10px 12px; align-items: center; }
.grid label { color: var(--sub); font-size: 14px; }
.grid select, .grid input { height: 32px; border: 1px solid #c3c6d4; border-radius: 4px; padding: 0 8px; background: #fff; width: 100%; }
.pct { display: flex; align-items: center; gap: 4px; }
.pct input { width: 90px !important; }
.hint { margin-top: 8px; font-size: 13px; color: var(--sub); background: #eef0f6; border-radius: 4px; padding: 6px 10px; }
.sec { margin-top: 18px; }
.sec-h { font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.sec-h .cnt { font-size: 13px; color: var(--sub); background: var(--hover); border-radius: 10px; padding: 0 8px; font-weight: 600; }
.desc { font-size: 15px; line-height: 1.6; padding: 10px 12px; background: #fafbfc; border-radius: 6px; border: 1px solid var(--line); word-break: break-word; min-height: 60px; }
.desc textarea, #newc { width: 100%; border: 1px solid #c3c6d4; border-radius: 4px; padding: 8px; font: inherit; resize: vertical; }
#newc { min-height: 70px; margin-top: 8px; }
.right { display: flex; justify-content: flex-end; gap: 6px; margin-top: 6px; }
.muted { color: var(--sub); font-size: 14px; }
.cmts { display: flex; flex-direction: column; gap: 8px; }
.cmt { border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; }
.cmt-h { display: flex; gap: 8px; align-items: baseline; font-size: 14px; }
.cmt-h span { color: var(--sub); font-size: 13px; }
.cmt-b { font-size: 15px; margin-top: 4px; line-height: 1.55; word-break: break-word; }

/* 창 */
.modal-bg { position: fixed; inset: 0; background: rgba(15, 20, 40, 0.3); z-index: 70; display: flex; align-items: center; justify-content: center; }
.modal { background: #fff; border-radius: 10px; width: min(560px, calc(100vw - 32px)); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); }
.modal.sm { width: min(420px, calc(100vw - 32px)); }
.m-head { font-size: 20px; font-weight: 700; padding: 18px 22px 4px; }
.m-body { padding: 14px 22px; font-size: 15px; line-height: 1.6; }
.m-body.grid { grid-template-columns: 80px 1fr; }
.m-foot { display: flex; justify-content: flex-end; gap: 6px; padding: 10px 22px 18px; }

.m-body.grid textarea { width: 100%; border: 1px solid #c3c6d4; border-radius: 4px; padding: 6px 8px; font: inherit; resize: vertical; }
.m-body.grid label { align-self: center; }

/* 화면 밖 일정 표시 */
.tl .edge {
  display: none; position: absolute; top: 9px; height: 18px; line-height: 18px; padding: 0 8px;
  border-radius: 9px; background: #eef0f6; color: var(--sub); font-size: 12px; white-space: nowrap;
  z-index: 2; pointer-events: none;
}

/* 위쪽 바 */
.top-right { display: flex; align-items: center; gap: 14px; }
.top-right a, .top-right button { color: var(--sub); font-size: 14px; text-decoration: none; background: none; border: 0; cursor: pointer; padding: 0; }
.top-right a:hover, .top-right button:hover { color: var(--primary); }
form.inline { display: inline; margin: 0; }

/* 왼쪽 메뉴 */
.proj-sel { width: 100%; height: 36px; border: 1px solid #d5d9e8; border-radius: 6px; padding: 0 8px; background: #fff; font-weight: 700; margin: 4px 0 10px; }

/* 안내 문구 */
.msg { padding: 8px 12px; border-radius: 6px; background: #e5f4ff; color: #0060b9; font-size: 14px; margin-bottom: 10px; }
.msg.err { background: #fdecef; color: #c0213b; }

/* 관리 */
.lst.adm input, .lst.adm select { height: 30px; border: 1px solid #c3c6d4; border-radius: 4px; padding: 0 6px; background: #fff; font-size: 14px; }
.lst.adm input[type="checkbox"] { height: auto; }
.lst.adm tr.sel td { background: #eef5ff; }
.form-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.form-row input, .form-row select { height: 32px; border: 1px solid #c3c6d4; border-radius: 4px; padding: 0 8px; background: #fff; }
.chk { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--sub); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-x { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px 3px 10px; border-radius: 12px; background: #eef0f6; font-size: 14px; }
.chip-x button { border: 0; background: none; color: var(--sub); cursor: pointer; }
.seg button { height: 32px; border: 1px solid #c3c6d4; background: #fff; padding: 0 12px; cursor: pointer; }

/* 로그인 */
.login-page { background: #fff; }
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art {
  display: flex; flex-direction: column; justify-content: space-between; padding: 52px 56px 64px;
  background: radial-gradient(#d5dbf0 1.2px, transparent 1.3px) 0 0 / 22px 22px,
    radial-gradient(circle at 78% 22%, rgba(253, 171, 61, 0.28), transparent 38%),
    radial-gradient(circle at 18% 78%, rgba(0, 115, 234, 0.22), transparent 45%),
    radial-gradient(circle at 70% 85%, rgba(162, 93, 220, 0.18), transparent 40%), #f4f6fd;
  border-right: 1px solid #e6e9ef;
}
.login-logo { height: 28px; align-self: flex-start; }
.login-pic { width: min(80%, 560px); align-self: center; }
.login-art p { margin: 0; font-size: 28px; font-weight: 800; color: #1f2240; letter-spacing: -0.03em; }
.login-form { display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-form form { width: 380px; max-width: 100%; display: flex; flex-direction: column; }
.login-form .eyebrow { color: var(--primary); font-size: 14px; font-weight: 800; letter-spacing: 0.08em; }
.login-form h1 { font-size: 32px; margin: 4px 0 24px; }
.login-form label { font-weight: 600; font-size: 15px; margin: 12px 0 6px; }
.login-form input:not([type="checkbox"]) { height: 44px; border: 1px solid #c3c6d4; border-radius: 4px; padding: 0 12px; font-size: 16px; }
.login-form .chk { margin-top: 12px; font-weight: 400; }
.btn.big { height: 46px; justify-content: center; font-size: 16px; font-weight: 600; margin-top: 18px; }
@media (max-width: 860px) { .login { grid-template-columns: 1fr; } .login-art { min-height: 120px; padding: 24px; } .login-pic { display: none; } .login-art p { font-size: 20px; } }

/* 오류 화면 */
.err-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.err-box { text-align: center; }
.err-box img { height: 26px; }
.err-box h1 { font-size: 26px; margin: 18px 0 8px; }
.err-box p { color: var(--sub); margin-bottom: 18px; }

/* 상세 창 오른쪽: 묶음 + 한 줄 항목 */
#drawer .dr { width: min(1040px, calc(100vw - 48px)); }
.dr-side { flex: 0 0 340px !important; padding: 12px 16px 20px !important; gap: 10px !important; background: #f7f8fb !important; }
.dr-side .grp { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px 8px; }
.dr-side .grp-h { font-size: 13px; font-weight: 700; color: var(--sub); padding: 6px 0 4px; letter-spacing: 0.02em; }
.dr-side .f { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 8px; min-height: 38px; border-top: 1px solid #f0f1f5; }
.dr-side .grp-h + .f { border-top: 0; }
.dr-side .f label { margin: 0 !important; font-size: 14px !important; color: var(--sub); }
.dr-side .f select, .dr-side .f input {
  height: 32px; width: 100%; border: 1px solid transparent !important; border-radius: 6px; background: transparent !important;
  padding: 0 8px; font-size: 15px; color: var(--text); cursor: pointer;
}
.dr-side .f select:hover:not(:disabled), .dr-side .f input:hover:not(:disabled) { background: var(--hover) !important; }
.dr-side .f select:focus, .dr-side .f input:focus { outline: none; border-color: var(--primary) !important; background: #fff !important; }
.dr-side .f select:disabled, .dr-side .f input:disabled { color: var(--sub); cursor: default; }
.dr-side .f .pct { display: flex; align-items: center; gap: 2px; }
.dr-side .f .pct input { width: 70px !important; }
.dr-side select.st-sel { background: var(--sc) !important; color: #fff !important; font-weight: 600; text-align: center; border-radius: 6px; }
.dr-side select.st-sel option { background: #fff; color: var(--text); }
.dr-side .hint { margin: 4px 0 2px; }
.dr-side .meta { margin: 0 !important; border: 0 !important; padding: 2px 4px !important; }
.dr-side .side-act { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.dr-side .side-act .btn { margin: 0 !important; justify-content: center; }
.dr-main .ttl { font-size: 26px; }
.tchip.k-PHASE { background: #e5f4ff; color: #0073ea; }
.tchip.k-EPIC { background: #f0e7fb; color: #9d50dd; }
.tchip.k-MILESTONE { background: #fff1e0; color: #c26b00; }
.tchip.k-ISSUE { background: #fdecef; color: #c0213b; }
.modal input.one { width: 100%; height: 40px; border: 1px solid #c3c6d4; border-radius: 6px; padding: 0 10px; font-size: 16px; }

/* WBS: 파트 칸·표에서 바로 추가 */
.c-part { flex: 0 0 100px; padding: 0 4px !important; }
.part-sel { width: 100%; height: 28px; border: 1px solid transparent; border-radius: 4px; background: transparent; font-size: 13px; color: var(--text); cursor: pointer; }
.part-sel:hover { background: var(--hover); }
.part-sel:focus { outline: none; border-color: var(--primary); background: #fff; }
.row.addrow .cols { background: #fff; }
.row.addrow:hover .cols, .row.addrow:hover .tl { background-color: #fff; }
.c-add { flex: 1 1 auto; display: flex; align-items: center; gap: 6px; padding-right: 8px; }
.c-add .add-kind { height: 26px; border: 1px solid #d5d9e8; border-radius: 4px; font-size: 13px; background: #fff; color: var(--sub); }
.c-add .add-in { flex: 1 1 auto; height: 26px; border: 1px dashed #c3c6d4; border-radius: 4px; padding: 0 8px; font-size: 13px; background: #fbfcfe; }
.c-add .add-in:focus { outline: none; border: 1px solid var(--primary); background: #fff; }
.row.addrow { height: 34px; }

/* 상위 작업 계획 막대 */
.b.plan { top: 6px; height: 24px; border-radius: 4px; background: color-mix(in srgb, var(--gc) 16%, transparent); border: 1px dashed color-mix(in srgb, var(--gc) 70%, #fff); box-shadow: none; z-index: 0; }
.row.top .c-sub a { overflow: hidden; text-overflow: ellipsis; }

/* WBS 머리줄: 필터·일정 줄 */
.head { display: block; }
.hrow { display: flex; width: max-content; min-width: 100%; }
.head .hf { cursor: pointer; user-select: none; }
.head .hf:hover { background: var(--hover); color: var(--text); }
.head .hf.on { color: var(--primary); font-weight: 700; }
.hf-pop {
  position: fixed; z-index: 60; width: 220px; max-height: 360px; overflow: auto; background: #fff;
  border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15); padding: 6px 0;
}
.hf-pop .hf-t { display: flex; justify-content: space-between; align-items: center; padding: 4px 12px 6px; font-size: 13px; font-weight: 700; color: var(--sub); }
.hf-pop .hf-t button { border: 0; background: none; color: var(--primary); cursor: pointer; font-size: 13px; }
.hf-pop label { display: flex; align-items: center; gap: 8px; padding: 5px 12px; font-size: 14px; cursor: pointer; }
.hf-pop label:hover { background: var(--hover); }
.hf-pop label small { margin-left: auto; color: var(--sub); }
.ev-row { border-top: 1px solid var(--line); }
.ev-row .cols { position: sticky; left: 0; z-index: 6; flex: 0 0 var(--left); background: #fff; border-right: 1px solid #d0d4e4; }
.ev-row .ev-l { font-size: 13px; font-weight: 700; color: var(--sub); }
.evs { position: relative; flex: 0 0 auto; background: #fbfcfe; }
.evb { position: absolute; height: 18px; display: flex; align-items: center; gap: 4px; text-decoration: none; white-space: nowrap; z-index: 1; }
.evb i { display: block; height: 18px; border-radius: 4px; background: var(--ec); flex: 0 0 auto; }
.evb span { font-size: 13px; font-weight: 600; color: var(--text); }
.evb.past { opacity: 0.5; }
.evb:hover { z-index: 3; }
.evb:hover span { text-decoration: underline; }
.head .ev-row .cols > div { height: auto; }

/* WBS 담당자 칸 */
.asg-cell { display: flex; align-items: center; width: 100%; height: 100%; cursor: pointer; border-radius: 4px; overflow: hidden; }
.asg-cell:hover { background: rgba(0, 115, 234, 0.08); }
.asg-cell .an { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av.ext { font-weight: 600; }
.hf-pop a { display: block; padding: 6px 12px; font-size: 14px; color: var(--text); text-decoration: none; cursor: pointer; }
.hf-pop a:hover { background: var(--hover); }
.hf-pop a.on { font-weight: 700; color: var(--primary); }
.hf-pop a.txt { border-top: 1px solid var(--line); color: var(--primary); }

/* 화면 위 버튼 줄(공통) */
.bar.tb { gap: 10px; padding: 20px 24px 14px; }
.bar.tb h1 { margin-right: 14px; letter-spacing: -0.02em; }
.bar.tb .sp { flex: 1 1 auto; }
.bar.tb .ms { display: none; }
.bar.tb input, .bar.tb select, .bar.tb > button, .bar.tb .btn {
  height: 34px; border: 1px solid #d5d9e5; border-radius: 8px; background: #fff; padding: 0 12px; font-size: 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05); transition: border-color 0.12s, box-shadow 0.12s, background 0.12s;
}
.bar.tb input:focus, .bar.tb select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 115, 234, 0.15); }
.bar.tb > button:hover, .bar.tb .btn:hover { background: #f5f7fb; }
.bar.tb .btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; padding: 0 16px; }
.bar.tb .btn.primary:hover { background: #0060b9; }
.bar.tb .seg { background: #eceff5; padding: 3px; border-radius: 10px; gap: 2px; }
.bar.tb .seg button, .bar.tb .seg .btn { height: 30px; border: 0; border-radius: 8px !important; margin: 0; background: transparent; box-shadow: none; color: var(--sub); font-weight: 500; }
.bar.tb .seg button:hover { background: rgba(255, 255, 255, 0.6); color: var(--text); }
.bar.tb .seg button.on, .bar.tb .seg .btn.on { background: #fff; color: var(--primary); font-weight: 700; box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12); border: 0; }
.bar.tb > .btn.on, .bar.tb > button.on { background: #e5f0ff; border-color: #9cc4f5; color: #0060b9; font-weight: 700; }
.bar.tb .search input, .bar.tb input[type="search"] {
  width: 230px; padding-left: 34px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2216%22 height=%2216%22 fill=%22none%22 stroke=%22%23676879%22 stroke-width=%222%22 viewBox=%220 0 24 24%22%3E%3Ccircle cx=%2211%22 cy=%2211%22 r=%227%22/%3E%3Cpath d=%22m20 20-3.5-3.5%22/%3E%3C/svg%3E") no-repeat 11px center;
}
