/* 스케줄링 화면과 자료 적재 목록. 공통 토큰(styles.css :root)을 그대로 쓴다. */
.schedule-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 18px}
.schedule-summary .panel{padding:16px 18px;display:grid;gap:6px;align-content:start}
.schedule-summary strong{font-size:22px;font-weight:650;color:#213b56;letter-spacing:-.6px}
.schedule-summary strong small{font-size:11px;font-weight:400;color:#99a5b3;margin-left:3px;letter-spacing:0}
.schedule-summary .schedule-next{font-size:15px}
.schedule-summary .button{justify-self:start}
.schedule-notice{margin-bottom:6px}
.schedule-table td{height:auto;padding:12px 13px;vertical-align:top}
.schedule-table td.small,.schedule-table td .small{white-space:normal}
.schedule-name{min-width:190px;max-width:260px;white-space:normal}
.schedule-name strong{display:block;color:#2c4967;font-size:12px}
.schedule-sub{display:block;color:#93a0af;font-size:10px;margin-top:3px;white-space:normal;line-height:1.6}
.schedule-run{display:grid;gap:4px;justify-items:start;min-width:130px;max-width:200px;white-space:normal}
.schedule-run small{font-size:10px;color:#8e9cab}
.schedule-reason{display:block;font-size:10px;color:#a0804a;white-space:normal;max-width:260px;line-height:1.6;margin-top:4px}
.schedule-check{min-width:160px}
.schedule-period{min-width:120px}
.schedule-when{min-width:130px}
.schedule-due{color:#2c4967;font-weight:600}
.schedule-table .muted.small{white-space:nowrap}
.schedule-actions{min-width:120px}
.schedule-actions .button{margin:0 4px 4px 0}
.schedule-plan{margin:10px 0 14px;padding-left:18px;font-size:12px;color:#5b6e84;line-height:1.9}
.switch{position:relative;display:inline-block;width:36px;height:20px;cursor:pointer}
.switch input{position:absolute;z-index:1;opacity:0;width:100%;height:100%;margin:0;cursor:inherit}
.switch span{position:absolute;inset:0;border-radius:20px;background:#d6dee7;transition:.15s}
.switch span:before{content:'';position:absolute;width:14px;height:14px;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #0002;transition:.15s}
.switch input:checked+span{background:var(--teal)}
.switch input:checked+span:before{transform:translateX(16px)}
.switch input:focus-visible+span{outline:3px solid #75b8ff;outline-offset:2px}
.switch input:disabled+span{opacity:.5}
.schedule-form{display:grid;grid-template-columns:1fr 1fr;gap:14px 16px}
.schedule-form>label,.schedule-form fieldset>label:not(.inline){display:grid;gap:6px;font-size:11px;color:#72849a}
.schedule-form .wide{grid-column:1/-1}
.schedule-form fieldset{border:1px solid var(--line);border-radius:8px;padding:10px 14px;margin:0;display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center}
.schedule-form legend{font-size:11px;color:#72849a;padding:0 4px}
.schedule-form .inline{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#4c6078}
.schedule-form [hidden]{display:none!important}
.schedule-form input:not([type=checkbox]):not([type=radio]),.schedule-form select{width:100%}
.schedule-form #sf-fixed{flex:1;min-width:150px}
.dataset-group{margin:22px 0 10px;display:flex;align-items:center;gap:10px}
.dataset-group h2{font-size:14px;margin:0}
.dataset-card{display:flex;flex-direction:column;gap:0}
.dataset-card .data-meta{margin:12px 0 0}
.dataset-rows{display:grid;gap:7px;margin:12px 0 14px;font-size:11px;color:#62768c}
.dataset-rows div{display:grid;grid-template-columns:62px 1fr;gap:8px}
.dataset-rows span{color:#a0aab6}
.dataset-codes{display:flex;gap:4px;flex-wrap:wrap}
.dataset-codes code{font-family:Consolas,monospace;font-size:10px;background:#f4f6f9;color:#6b7f95;border-radius:4px;padding:1px 5px}
.dataset-foot{margin-top:auto;padding-top:12px;border-top:1px solid #f0f3f6;display:grid;gap:6px;font-size:10px;color:#8b99a8}
.dataset-foot .badge{justify-self:start}
@media(max-width:1150px){.schedule-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){
.schedule-form{grid-template-columns:1fr}
.schedule-table,.schedule-table tbody{display:block;white-space:normal}
.schedule-table thead{display:none}
.schedule-table tr{display:grid;grid-template-columns:44px minmax(0,1fr);gap:8px 10px;padding:16px 14px;border-bottom:1px solid var(--line)}
.schedule-table td{display:block;height:auto;padding:0;border:0;min-width:0;max-width:none;grid-column:2}
.schedule-table td:first-child{grid-column:1;grid-row:1/span 7}
.schedule-table td[data-label]:before{content:attr(data-label);display:block;font-size:10px;color:#a0aab6;margin-bottom:2px}
.schedule-name{max-width:none}
.schedule-reason{max-width:none}
.schedule-actions{min-width:0}
}
@media(max-width:500px){.schedule-summary{grid-template-columns:1fr}}
/* 스케줄링 탭: 적재·로직 실행 / 고객 안내 */
.schedule-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin:-6px 0 18px}
.schedule-tabs a{padding:9px 14px;font-size:13px;color:#6a7d92;border-bottom:2px solid transparent;margin-bottom:-1px}
.schedule-tabs a.active{color:#1f3f5f;font-weight:650;border-bottom-color:var(--teal)}
.notice-plan{display:grid;gap:3px}
.notice-plan small{color:#8a98a8;font-size:10px}
.notice-counts{display:flex;flex-wrap:wrap;gap:4px;max-width:360px}
.notice-counts .chip{font-size:10px;padding:3px 7px}
.notice-counts .chip.warn{background:#fff4df;color:#9a7430}
.notice-logic-off td{color:#9aa6b3}
@media(max-width:820px){
.notice-table tr{grid-template-columns:minmax(0,1fr)}
.notice-table td,.notice-table td:first-child{grid-column:1;grid-row:auto}
.notice-counts{max-width:none}
}
.notice-pipeline-title{margin-top:6px;color:#6a7d92!important;font-weight:600}
.notice-table .schedule-actions{display:grid;gap:5px;min-width:140px}
.notice-table .schedule-actions .button{margin:0;width:100%}
/* 안내 전송 화면 머리: 버튼이 많아 제목이 눌리지 않게 줄바꿈 */
.page-heading:has(#delivery-period){flex-wrap:wrap;align-items:flex-start}
.page-heading:has(#delivery-period)>div:first-child{flex:1 1 360px;min-width:0}
.page-heading:has(#delivery-period) .heading-buttons{flex-wrap:wrap;justify-content:flex-end}
/* 기본 안내멘트 편집 */
.template-chips{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 8px}
.template-chips .chip{border:0;cursor:pointer}
.template-preview{margin:12px 0;border:1px solid var(--line);border-radius:8px;padding:10px 12px;background:#fbfcfe}
.template-preview pre{white-space:pre-wrap;font-family:inherit;font-size:12px;margin:6px 0 0;color:#344f6b;max-height:220px;overflow:auto}
.notice-template{margin-bottom:6px;line-height:1.6;max-width:360px;white-space:normal}
/* 안내 분류(PG 분기 안내 등) */
.notice-group-tag { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 999px; background: var(--teal-bg); color: var(--teal); font-size: 11px; font-weight: 600; white-space: nowrap; }
.notice-group-tag.plain { background: var(--canvas); color: var(--muted); }
.notice-group-line { display: block; }
.notice-group-edit { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.notice-group-months { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 6px 0 10px; }
/* 자동 점검 */
.schedule-tabs .tab-count { display: inline-block; min-width: 18px; margin-left: 4px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: 10px; line-height: 16px; text-align: center; }
.check-table td { vertical-align: top; }
.check-table tr.check-open td:first-child { box-shadow: inset 3px 0 0 var(--amber); }
.check-summary { white-space: normal; min-width: 280px; max-width: 560px; }
.check-details { margin: 6px 0 0; padding-left: 18px; font-size: 11px; line-height: 1.7; }
.check-details .check-bad { color: var(--amber); }
/* 스케줄링 › 달력(구글 캘린더처럼 월·주·일정) */
.cat-collect { --cat: #386aca; --cat-bg: #eaf1fc; }
.cat-logic { --cat: #158568; --cat-bg: #e7f5ef; }
.cat-report { --cat: #7a5af8; --cat-bg: #f0ecfe; }
.cat-notice { --cat: #d9730d; --cat-bg: #fdf0e3; }
.cal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 4px 0 14px; }
.cal-title { font-size: 18px; margin: 0 0 0 6px; }
.cal-toolbar .icon-button { font-size: 20px; width: 34px; height: 34px; }
.cal-views { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.cal-views button { border: 0; background: #fff; padding: 7px 14px; font: inherit; font-size: 12px; cursor: pointer; }
.cal-views button.active { background: var(--navy); color: #fff; }
.cal-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.cal-side { display: grid; gap: 16px; font-size: 12px; }
.cal-legend { display: grid; gap: 6px; }
.cal-cat { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.cal-cat input { accent-color: var(--cat, var(--muted)); }
.cal-cat i { width: 10px; height: 10px; border-radius: 3px; background: var(--cat); }
.cal-cat small { margin-left: auto; color: var(--muted); }
.cal-cat.off { color: var(--muted); margin-top: 4px; }
.cal-upcoming h3, .cal-daylist h3, .cal-agenda h3 { font-size: 12px; margin: 0 0 8px; color: var(--ink); }
.cal-up { display: flex; gap: 8px; align-items: flex-start; width: 100%; border: 0; background: none; text-align: left; padding: 5px 0; font: inherit; cursor: pointer; }
.cal-up i { width: 8px; height: 8px; border-radius: 50%; background: var(--cat); margin-top: 5px; flex: none; }
.cal-up span { display: grid; color: var(--muted); font-size: 11px; }
.cal-up strong { color: var(--ink); font-weight: 600; font-size: 12px; }
.cal-main { min-width: 0; }
.cal-month { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-head span { padding: 8px; font-size: 11px; color: var(--muted); text-align: center; border-bottom: 1px solid var(--line); }
.cal-head .sun, .cal-date.sun { color: var(--red); }
.cal-head .sat, .cal-date.sat { color: var(--blue); }
.cal-cell { min-height: 112px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px; min-width: 0; }
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-cell.other { background: #fafbfc; }
.cal-cell.other .cal-date { color: #b4bfcb; }
.cal-cell.picked { background: #f3f7fc; }
.cal-date { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border: 0; border-radius: 12px; background: none; font: inherit; font-size: 12px; cursor: pointer; }
.cal-cell.today .cal-date, .cal-week-day.today b { background: var(--navy); color: #fff; }
.cal-chips { display: grid; gap: 2px; margin-top: 2px; }
.cal-chip { display: flex; align-items: center; gap: 4px; width: 100%; min-width: 0; border: 0; border-radius: 4px; padding: 2px 5px; font: inherit; font-size: 11px; text-align: left; cursor: pointer; background: var(--cat-bg); color: #243447; }
.cal-chip.planned { border-left: 3px solid var(--cat); }
.cal-chip.past { background: #fff; box-shadow: inset 0 0 0 1px var(--line); border-left: 3px solid var(--cat); color: var(--muted); }
.cal-chip.off, .cal-block.off { opacity: .5; }
.cal-time { font-variant-numeric: tabular-nums; color: var(--cat); font-weight: 600; flex: none; }
.cal-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-more { border: 0; background: none; font: inherit; font-size: 11px; color: var(--muted); text-align: left; padding: 1px 5px; cursor: pointer; }
.cal-mark { font-style: normal; font-size: 10px; flex: none; }
.cal-mark.ok { color: var(--teal); }
.cal-mark.warn { color: var(--amber); }
.cal-mark.bad { color: var(--red); }
.cal-dots { display: none; gap: 3px; justify-content: center; margin-top: 3px; }
.cal-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--cat); }
.cal-daylist { margin-top: 12px; }
.cal-item { display: grid; grid-template-columns: 4px 88px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; border: 0; border-bottom: 1px solid var(--line); background: #fff; padding: 9px 8px; font: inherit; text-align: left; cursor: pointer; }
.cal-item:hover { background: #f9fbfd; }
.cal-bar { width: 4px; align-self: stretch; border-radius: 2px; background: var(--cat); }
.cal-item-time { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--ink); }
.cal-item-main { display: grid; min-width: 0; }
.cal-item-main strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-item-main small { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-item-state { font-size: 11px; color: var(--muted); white-space: nowrap; }
.cal-agenda { display: grid; gap: 14px; }
.cal-agenda section { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 12px 4px; }
.cal-agenda section.today { border-color: var(--navy); }
.cal-week { border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.cal-week-head, .cal-allday { display: grid; grid-template-columns: 52px repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.cal-week-day { display: grid; justify-items: center; gap: 2px; border: 0; background: none; padding: 6px 0; font: inherit; cursor: pointer; }
.cal-week-day small { font-size: 11px; color: var(--muted); }
.cal-week-day b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 14px; font-size: 14px; }
.cal-week-day.sun small { color: var(--red); }
.cal-week-day.sat small { color: var(--blue); }
.cal-allday > span { font-size: 10px; padding: 6px 4px; }
.cal-allday-cell { border-left: 1px solid var(--line); padding: 3px; display: grid; gap: 2px; align-content: start; min-width: 0; }
.cal-week-body { display: grid; grid-template-columns: 52px minmax(0, 1fr); max-height: 620px; overflow-y: auto; }
.cal-hours { display: grid; }
.cal-hour { height: 44px; border-top: 1px solid #f0f3f6; font-size: 10px; color: var(--muted); position: relative; }
.cal-hour span { position: absolute; top: -7px; right: 6px; background: #fff; }
.cal-cols { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); height: calc(44px * 24); background: repeating-linear-gradient(#fff 0 43px, #f0f3f6 43px 44px); }
.cal-col { position: relative; border-left: 1px solid var(--line); min-width: 0; }
.cal-col.today { background: rgba(56, 106, 202, .04); }
.cal-block { position: absolute; right: 2px; min-height: 22px; border-radius: 4px; padding: 2px 5px; font-size: 11px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; background: var(--cat-bg); border-left: 3px solid var(--cat); color: #243447; box-shadow: 0 1px 2px rgba(16, 43, 73, .08); }
.cal-block.past { background: #fff; color: var(--muted); }
.cal-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--red); }
.cal-now::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.cal-detail { display: grid; grid-template-columns: 4px 1fr; gap: 12px; }
.cal-detail dl { display: grid; grid-template-columns: 90px 1fr; gap: 6px 12px; margin: 0; font-size: 13px; }
.cal-detail dt { color: var(--muted); }
.cal-detail dd { margin: 0; }
@media (max-width: 1100px) {
  .cal-layout { grid-template-columns: minmax(0, 1fr); }
  .cal-side { grid-template-columns: minmax(0, 1fr); }
  .cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; }
  .cal-upcoming, .cal-side > p { display: none; }
}
@media (max-width: 720px) {
  .cal-cell { min-height: 58px; padding: 2px; text-align: center; }
  .cal-chips { display: none; }
  .cal-dots { display: flex; }
  .cal-title { font-size: 15px; }
  .cal-item { grid-template-columns: 4px 64px minmax(0, 1fr); }
  .cal-item-state { grid-column: 3; }
  .cal-week-head, .cal-allday { grid-template-columns: 34px repeat(7, minmax(0, 1fr)); }
  .cal-week-body { grid-template-columns: 34px minmax(0, 1fr); }
  .cal-block { font-size: 9px; padding: 1px 2px; }
  .cal-block .cal-time { display: none; }
}
@media (max-width: 720px) {
  .schedule-tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .schedule-tabs a { white-space: nowrap; flex: none; }
}
