
:root{--bg:#f7f8fa;--card:#fff;--text:#20242a;--muted:#6b7280;--line:#e2e6ec;--line-dark:#cfd6df;--primary:#1f4e8c;--primary2:#163b6d;--soft:#eef5ff;--green:#14804a;--green-soft:#edf8f1;--orange:#b35c00;--orange-soft:#fff6e8;--red:#bf2f2f;--red-soft:#fff0f0;--gray-soft:#f1f3f5;--shadow:0 8px 22px rgba(20,32,51,.06);--radius:14px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:"Pretendard","Noto Sans KR","Malgun Gothic",Arial,sans-serif;font-size:14px;line-height:1.45;letter-spacing:-.2px}button,input,select,textarea{font-family:inherit;font-size:13px}button{cursor:pointer}.wrap{max-width:1480px;margin:0 auto;padding:0 22px}
header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:40}.header-inner{height:62px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:10px}.brand-mark{width:34px;height:34px;border-radius:9px;background:var(--primary);color:#fff;display:grid;place-items:center;font-size:15px;font-weight:900}.brand-title{font-size:18px;font-weight:900;color:var(--primary2);letter-spacing:-.7px}.brand-sub{margin-top:-2px;color:var(--muted);font-size:11px;font-weight:500}.header-note{color:var(--muted);font-size:12px;font-weight:700;text-align:right}
.btn{height:34px;border-radius:8px;padding:0 12px;border:1px solid transparent;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap;transition:.15s}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover{background:var(--primary2)}.btn-soft{background:var(--soft);color:var(--primary);border-color:#d5e5fb}.btn-soft:hover{background:#e3efff}
.page-head{padding:24px 0 16px}.headline-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px 22px;box-shadow:var(--shadow);display:flex;justify-content:space-between;gap:20px;align-items:center}.headline h1{margin:0 0 6px;font-size:24px;line-height:1.25;letter-spacing:-1px;color:#172033}.headline p{margin:0;color:var(--muted);font-size:13px}.head-info{display:grid;gap:6px;text-align:right;color:var(--muted);font-size:12px;min-width:210px}.head-info strong{color:var(--primary2)}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:12px}.stat{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px 15px;box-shadow:0 5px 16px rgba(20,32,51,.04)}.stat-label{font-size:12px;color:var(--muted);font-weight:800;margin-bottom:4px}.stat-value{font-size:24px;font-weight:900;color:var(--primary2);line-height:1}
.toolbar{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:14px;box-shadow:var(--shadow);margin-bottom:12px}.filter-grid{display:grid;grid-template-columns:1fr 135px 120px 135px 78px;gap:8px}.input,.select{width:100%;border:1px solid var(--line-dark);border-radius:8px;background:#fff;color:var(--text);outline:none;height:34px;padding:0 10px}.input:focus,.select:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(31,78,140,.1)}
.tabs{display:flex;gap:6px;margin-top:10px;flex-wrap:wrap}.tab{height:30px;padding:0 12px;border-radius:999px;border:1px solid var(--line);background:#fff;color:#4b5563;font-size:12px;font-weight:800}.tab.active{background:var(--primary2);border-color:var(--primary2);color:#fff}
.list-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin:16px 0 9px}.list-head h2{margin:0;font-size:19px;letter-spacing:-.7px;color:#172033}.list-head p{margin:3px 0 0;font-size:12px;color:var(--muted)}.list-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:auto}
table{width:100%;min-width:1420px;border-collapse:collapse;table-layout:fixed}thead{background:#f4f6f9}th{height:39px;padding:0 10px;border-bottom:1px solid var(--line);color:#475467;font-size:12px;font-weight:900;text-align:left;white-space:nowrap}td{height:58px;padding:9px 10px;border-bottom:1px solid #edf0f4;vertical-align:middle;font-size:13px;color:#344054}tbody tr{cursor:pointer;transition:.12s}tbody tr:hover{background:#f8fbff}tbody tr:last-child td{border-bottom:0}.w-status{width:78px}.w-category{width:92px}.w-type{width:70px}.w-field{width:98px}.w-program{width:420px}.w-operator{width:160px}.w-host{width:170px}.w-period{width:220px}.w-count{width:68px;text-align:center}.w-amount{width:144px}.center{text-align:center}.cell-pre{white-space:pre-line;word-break:keep-all}
.pill{display:inline-flex;align-items:center;justify-content:center;height:24px;padding:0 8px;border-radius:999px;font-size:11px;font-weight:900;white-space:nowrap}.status-open{background:var(--green-soft);color:var(--green)}.status-soon{background:var(--orange-soft);color:var(--orange)}.status-today{background:var(--red-soft);color:var(--red)}.status-closed{background:var(--gray-soft);color:var(--muted)}.cat-esg{background:#ecfdf3;color:#067647}.cat-smart{background:#eff4ff;color:#175cd3}.cat-partner{background:#fff6ed;color:#b54708}.cat-etc{background:#f4f3ff;color:#5925dc}
.program-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#1f2937;font-size:13px;font-weight:900;line-height:1.35;word-break:keep-all}.program-meta{margin-top:4px;display:flex;gap:5px;flex-wrap:wrap;color:var(--muted);font-size:11px;font-weight:700}.org-main{display:block;color:#273449;font-size:13px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.org-sub{display:block;color:var(--muted);font-size:11px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.period-text{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;color:#344054;line-height:1.35;word-break:keep-all}.amount-text{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-line;font-size:12px;color:#344054;line-height:1.35;font-weight:700}.empty{display:none;padding:48px 16px;text-align:center;color:var(--muted);font-size:13px}
.drawer-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.42);z-index:80;display:none}.drawer-backdrop.show{display:block}.drawer{position:fixed;top:0;right:-540px;width:min(540px,100%);height:100vh;background:#fff;z-index:90;box-shadow:-18px 0 55px rgba(15,23,42,.22);transition:right .2s ease;display:flex;flex-direction:column}.drawer.show{right:0}.drawer-head{padding:21px 22px 18px;border-bottom:1px solid var(--line);background:#fbfcfe}.drawer-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:11px}.drawer-title{margin:0;color:var(--primary2);font-size:20px;line-height:1.35;letter-spacing:-.8px;word-break:keep-all}.icon-btn{width:34px;height:34px;border-radius:8px;border:1px solid var(--line-dark);background:#fff;color:#475467;font-size:19px;display:grid;place-items:center;flex:0 0 auto}.drawer-body{padding:18px 22px 24px;overflow:auto;flex:1}.detail-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-bottom:14px}.detail-item{border:1px solid var(--line);background:#fff;border-radius:10px;padding:10px 11px}.detail-label{color:var(--muted);font-size:11px;font-weight:900;margin-bottom:4px}.detail-value{color:#1f2937;font-size:13px;font-weight:800;word-break:keep-all;white-space:pre-line}
.block{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff;margin-top:11px}.block-head{height:42px;padding:0 13px;background:#f4f6f9;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;font-weight:900;color:#344054}.message{min-height:160px;padding:14px;white-space:pre-line;font-size:13px;color:#344054;line-height:1.55}.toast{position:fixed;right:22px;bottom:22px;z-index:120;display:none;background:var(--primary2);color:#fff;padding:11px 14px;border-radius:10px;box-shadow:var(--shadow);font-size:13px;font-weight:900}.toast.show{display:block}
@media(max-width:1080px){.headline-card{align-items:flex-start;flex-direction:column}.head-info{text-align:left}.filter-grid{grid-template-columns:1fr 1fr}.filter-grid .btn{grid-column:1/-1}.list-card{overflow-x:auto}table{min-width:980px}}@media(max-width:720px){.wrap{padding:0 15px}.header-inner{height:auto;padding:12px 0}.header-note{display:none}.brand-sub{display:none}.brand-title{font-size:16px}.headline h1{font-size:21px}.stats{grid-template-columns:repeat(2,1fr)}.filter-grid{grid-template-columns:1fr}.filter-grid .btn{grid-column:auto}.list-head{align-items:flex-start;flex-direction:column}.detail-grid{grid-template-columns:1fr}.drawer-head,.drawer-body{padding-left:16px;padding-right:16px}}


.message a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: underline;
  word-break: break-all;
}
.message {
  word-break: keep-all;
}


.link-area {
  padding: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.link-area .btn {
  text-decoration: none;
}

.message a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: underline;
  word-break: break-all;
}


/* 모바일에서는 표를 가로스크롤 대신 카드형 목록으로 표시 */
@media(max-width:720px){
  .page-head{padding:16px 0 12px}
  .headline-card{padding:16px}
  .headline h1{font-size:19px}
  .headline p{font-size:12px}
  .stat{padding:12px}
  .stat-value{font-size:21px}
  .toolbar{padding:12px}
  .list-card{
    background:transparent;
    border:0;
    box-shadow:none;
    overflow:visible;
  }
  table{
    min-width:0!important;
    display:block;
    width:100%;
  }
  thead{display:none}
  tbody{
    display:grid;
    gap:10px;
  }
  tbody tr{
    display:block;
    background:#fff;
    border:1px solid var(--line);
    border-radius:14px;
    box-shadow:0 5px 16px rgba(20,32,51,.05);
    padding:12px;
  }
  tbody tr:hover{background:#fff}
  td{
    display:grid;
    grid-template-columns:74px 1fr;
    align-items:start;
    gap:8px;
    height:auto;
    padding:7px 0;
    border-bottom:1px solid #f0f2f5;
    font-size:12px;
  }
  td:last-child{border-bottom:0}
  td::before{
    content:attr(data-label);
    color:var(--muted);
    font-size:11px;
    font-weight:900;
    padding-top:2px;
  }
  td.center{text-align:left}
  .program-title{
    font-size:13px;
    -webkit-line-clamp:3;
  }
  .program-meta{font-size:11px}
  .org-main,.org-sub{
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
  }
  .period-text,.amount-text{
    -webkit-line-clamp:unset;
    overflow:visible;
  }
  .drawer{
    width:100%;
    right:-100%;
  }
  .drawer-title{font-size:18px}
  .message{
    font-size:13px;
    line-height:1.58;
  }
  .link-area{
    align-items:stretch;
  }
  .link-area .btn{
    width:100%;
  }
}
