:root { --brand: #0e7490; --brand-soft: #e6f4f7; }
.btn.primary { background: var(--brand); border-color: var(--brand); }
.btn.primary:hover { background: #0b5f77; }
.datebar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.datebar .h3 { margin: 0 8px; }
.datebar input[type=date] { width: auto; min-height: 40px; margin-left: auto; }
.daysum { margin: 0 0 14px; }
/* 직원별 시간표 */
.tl { display: grid; grid-template-columns: 52px repeat(4, minmax(0, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: var(--r); position: relative; }
.tl-axis { position: relative; height: calc(var(--h) + 54px); }
.tl-axis span { position: absolute; left: 6px; margin-top: 54px; transform: translateY(-50%); font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.tl-col { border-left: 1px solid var(--line); min-width: 0; }
.tl-col.off { background: repeating-linear-gradient(135deg, #fafafa 0 8px, #f3f3f5 8px 16px); }
.tl-h { height: 54px; padding: 8px 10px; border-bottom: 1px solid var(--line); border-top: 3px solid var(--c); }
.tl-h b { display: block; font-size: 15px; }
.tl-h span { font-size: 12px; color: var(--muted); }
.tl-body { position: relative; height: var(--h); cursor: copy; }
.tl-body > i { position: absolute; left: 0; right: 0; border-top: 1px dashed #ececef; }
.blk { position: absolute; left: 4px; right: 4px; display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; border: 0; border-left: 4px solid var(--kc); background: var(--kb); border-radius: 4px; padding: 4px 6px; text-align: left; overflow: hidden; font-size: 12.5px; line-height: 1.35; cursor: pointer; }
.blk b { display: block; font-size: 12.5px; }
.blk span { display: block; color: var(--ink-2); }
.blk em { position: absolute; right: 6px; top: 4px; font-style: normal; font-size: 11px; color: var(--ok); font-weight: 700; }
.blk.done { opacity: .6; }
.blk.clash { outline: 2px solid var(--danger); }
.blk:hover { filter: brightness(.97); }
.k0 { --kc: #0e7490; --kb: #e6f4f7; } .k1 { --kc: #1d4ed8; --kb: #eef2ff; } .k2 { --kc: #15803d; --kb: #ecf7ef; } .k3 { --kc: #7c3aed; --kb: #f3effd; }
.k4 { --kc: #b45309; --kb: #fdf3e6; } .k5 { --kc: #be185d; --kb: #fceef4; } .k6 { --kc: #52525b; --kb: #f1f1f3; }
.stage.k0, .stage.k1, .stage.k2, .stage.k3, .stage.k4, .stage.k5, .stage.k6 { background: var(--kb); color: var(--kc); }
.agenda { display: none; }
@media (max-width: 899px) { .tl { display: none; } .agenda { display: block; } }
.ag { display: grid; grid-template-columns: 64px 1fr; gap: 12px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--kc); border-radius: var(--r-sm); padding: 12px; margin-bottom: 8px; cursor: pointer; }
.ag-t { font-weight: 750; font-variant-numeric: tabular-nums; }
.ag-t small { display: block; font-weight: 500; color: var(--muted); }
.ag-m b { display: block; }
.ag-m span { display: block; font-size: 14px; color: var(--ink-2); }
.ag-m .ag-s { color: var(--muted); font-size: 13px; }
.ag.done { opacity: .6; } .ag.cancel { opacity: .45; text-decoration: line-through; }
.ag-day { margin: 18px 0 8px; }
.ag-day a { text-decoration: none; }
/* 주 */
.wk-tools { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.wk { width: 100%; border-collapse: collapse; background: #fff; table-layout: fixed; font-size: 13px; }
.wk th, .wk td { border: 1px solid var(--line); padding: 6px; vertical-align: top; }
.wk thead th { font-weight: 650; text-align: left; }
.wk thead th a { text-decoration: none; }
.wk thead th.is-today { background: var(--brand-soft); }
.wk tbody th { text-align: left; width: 96px; white-space: nowrap; font-weight: 650; }
.wk td.off { background: repeating-linear-gradient(135deg, #fafafa 0 8px, #f3f3f5 8px 16px); }
.wk tr.tot td, .wk tr.tot th { background: var(--paper); font-weight: 650; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.chipjob { display: block; width: 100%; text-align: left; border: 0; border-left: 3px solid var(--kc); background: var(--kb); border-radius: 3px; padding: 3px 5px; margin-bottom: 3px; font-size: 12px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chipjob.done { opacity: .55; }
.offtag { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.offtag .tlink { min-height: 0; font-size: 14px; }
.wk-wrap { min-width: 0; }
@media (max-width: 899px) { .wk-wrap { display: none; } }
.wk-list { display: none; }
@media (max-width: 899px) { .wk-list { display: block; } }
/* 달 */
.mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.mh { padding: 8px; font-size: 12px; color: var(--muted); font-weight: 650; border-bottom: 1px solid var(--line); }
.mc { min-height: 84px; padding: 6px 8px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); text-decoration: none; display: grid; align-content: start; gap: 2px; }
.mc:nth-child(7n + 1) { border-left: 0; }
.mc.out { background: var(--paper); color: var(--faint); }
.mc.is-today .mc-d { background: var(--brand); color: #fff; border-radius: 99px; padding: 0 7px; justify-self: start; }
.mc.sun .mc-d { color: var(--danger); }
.mc b { font-size: 14px; }
.mc small { font-size: 12px; color: var(--muted); }
.mc:hover { background: #fafafb; }
@media (max-width: 520px) { .mc { min-height: 64px; padding: 4px; } .mc small { display: none; } .mc b { font-size: 12px; } }
/* 상세·편집 */
.jd-h .h3 { margin: 6px 0 2px; }
.jd { margin: 0; display: grid; gap: 6px; font-size: 15px; }
.jd div { display: grid; grid-template-columns: 76px 1fr; gap: 8px; }
.jd dt { color: var(--muted); }
.jd dd { margin: 0; }
.jd-act { align-items: center; flex-wrap: wrap; }
.jd-act .sp { flex: 1; }
.staffpick { border: 0; padding: 0; margin: 0; }
.staffpick legend { font-size: 13px; font-weight: 650; color: var(--ink-2); padding: 0; margin-bottom: 4px; }
#sp { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.conf { background: var(--danger-soft); border-radius: var(--r-sm); padding: 12px 14px; font-size: 14px; }
.conf ul { margin: 4px 0 8px; padding-left: 18px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-sm); overflow: hidden; flex-wrap: wrap; }
.seg label { display: inline-flex; align-items: center; padding: 0 12px; min-height: 40px; font-size: 14px; cursor: pointer; border-left: 1px solid var(--line-2); }
.seg label:first-child { border-left: 0; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label:has(input:checked) { background: var(--ink); color: #fff; }
