:root {
  --bg: #0f1419; --panel: #1a2230; --line: #2a3548;
  --txt: #e6edf3; --muted: #8b97a7; --accent: #3b82f6;
  --red: #ef4444; --amber: #f59e0b; --green: #22c55e; --gray: #64748b;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Segoe UI", "Malgun Gothic", sans-serif;
  background: var(--bg); color: var(--txt); padding: 24px; }
header { display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
h1 { font-size: 22px; }
h1 .sub { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 8px; }
.toolbar { display: flex; align-items: center; gap: 10px; }
.toolbar input[type="date"] {
  background: var(--bg); color: var(--txt);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 10px; font-size: 13px; color-scheme: dark; }
.toolbar input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(2); cursor: pointer; opacity: .95; }
.btn { border: 1px solid var(--line); background: var(--panel); color: var(--txt);
  padding: 8px 16px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); }
.btn:disabled { opacity: .5; cursor: progress; }
.badge { font-size: 12px; padding: 4px 10px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); color: var(--muted); }
.badge.ok { color: var(--green); border-color: var(--green); }
.badge.warn { color: var(--amber); border-color: var(--amber); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; margin-bottom: 20px; }
.card { background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 16px; cursor: pointer;
  transition: border-color .12s, transform .12s; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card .n { font-size: 28px; font-weight: 700; }
.card .l { font-size: 12px; color: var(--muted); margin-top: 4px; }
.card.red .n { color: var(--red); }
.card.amber .n { color: var(--amber); }
.card.green .n { color: var(--green); }
.filters { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: transparent; color: var(--muted);
  padding: 6px 14px; border-radius: 999px; cursor: pointer; font-size: 13px; }
.chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
table { width: 100%; border-collapse: collapse; background: var(--panel);
  border-radius: 10px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; font-size: 13px;
  border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; background: #141b27; }
tr:last-child td { border-bottom: none; }
.st { font-size: 11px; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.st.r { background: rgba(239,68,68,.15); color: var(--red); }
.st.a { background: rgba(245,158,11,.15); color: var(--amber); }
.st.g { background: rgba(34,197,94,.15); color: var(--green); }
.st.x { background: rgba(100,116,139,.15); color: var(--gray); }
.subj { cursor: pointer; }
.subj:hover { color: var(--accent); }
#tbl { table-layout: fixed; }
#tbl th, #tbl td { overflow: hidden; text-overflow: ellipsis; }
#tbl tr.acc td { overflow: visible; text-overflow: clip; }
#tbl th { position: relative; }
.col-rz { position: absolute; top: 0; right: 0; width: 6px; height: 100%;
  cursor: col-resize; user-select: none; }
.col-rz:hover { background: var(--accent); }
.rcpt { white-space: nowrap; }
.rchk { cursor: pointer; }
th:first-child, td:first-child { width: 28px; text-align: center; }
tr.acc td { background: #141b27; padding: 0; }
.acc-box { padding: 12px 16px; font-size: 13px; }
.tl { display: grid; grid-template-columns: 96px 180px 1fr; gap: 10px;
  padding: 6px 0; border-bottom: 1px solid var(--line); align-items: start; }
.tl:last-child { border-bottom: none; }
.tl-d { color: var(--muted); }
.tl-w { color: var(--accent); }
.tl-s { white-space: pre-wrap; line-height: 1.5; }
.muted { color: var(--muted); }
.act { display: flex; gap: 6px; }
.act button { font-size: 11px; padding: 4px 8px; border-radius: 6px;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  cursor: pointer; }
.act button:hover { color: var(--txt); border-color: var(--accent); }
footer { margin-top: 18px; font-size: 12px; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal.hidden { display: none; }
.modal-box { background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 20px; width: min(1060px, 94vw);
  resize: both; overflow: auto;
  max-width: 97vw; max-height: 94vh; min-width: 480px; min-height: 640px; }
#dBody { min-height: 360px; }
.cap-drop { border: 2px dashed var(--line); border-radius: 10px;
  padding: 28px 16px; text-align: center; color: var(--muted);
  font-size: 13px; line-height: 1.7; }
.cap-drop.over { border-color: var(--accent); background: rgba(59,130,246,.08); }
.modal-head { display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px; cursor: move; user-select: none; }
.summary-box { background: var(--bg); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: 8px; padding: 10px 12px;
  font-size: 13px; line-height: 1.55; white-space: pre-wrap; margin-bottom: 6px; }
.modal-head .x { background: none; border: none; color: var(--muted);
  font-size: 16px; cursor: pointer; }
.modal-box label { display: block; font-size: 12px; color: var(--muted);
  margin: 7px 0 3px; }
.modal-box input, .modal-box textarea { width: 100%; background: var(--bg);
  border: 1px solid var(--line); color: var(--txt); border-radius: 8px;
  padding: 7px 11px; font-size: 13px; font-family: inherit; resize: vertical; }
.modal-foot { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.modal-foot .grow { flex: 1; }
.note { font-size: 11px; margin-top: 5px; margin-bottom: 0; }

/* 노티스 센터 (이벤트구동 할 일 카드) */
.notif-wrap { background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; }
.notif-head { display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; margin-bottom: 10px; }
#notifList:empty::after { content: "새 알림 없음 — 이지스에어 운임 회신이 오면 여기 표시됩니다.";
  color: var(--muted); font-size: 13px; }
.notif { display: flex; align-items: flex-start; gap: 12px;
  background: var(--bg); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: 8px;
  padding: 12px 14px; margin-bottom: 8px; }
.notif.done { opacity: .55; border-left-color: var(--gray); }
.notif .ico { font-size: 20px; line-height: 1.2; }
.notif .body { flex: 1; min-width: 0; }
.notif .t { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.notif .s { font-size: 12px; color: var(--muted); line-height: 1.5; }
.notif .steps { display: flex; gap: 6px; margin-top: 6px; font-size: 11px;
  color: var(--muted); }
.notif .dot { width: 8px; height: 8px; border-radius: 999px;
  background: var(--line); display: inline-block; }
.notif .dot.on { background: var(--accent); }
.notif .acts { display: flex; gap: 6px; flex-shrink: 0; align-items: center; }
.notif .acts .btn { font-size: 12px; padding: 5px 12px; }
