/* Version: 3.41.14 — 공지사항 목록/상세/모달/댓글. 고밀도 B2B 간격과 전 디바이스 반응형. */
.home-notices{display:grid;gap:6px;margin:0 0 12px;padding:10px 12px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.06)}
.home-notices header{display:flex;align-items:center;justify-content:space-between;gap:8px}
.home-notices h3{margin:0;font-size:14px;font-weight:700;color:#1d2939}
.home-notices .notice-link{min-height:28px;padding:0 6px;border:0;background:transparent;color:#2563eb;font:inherit;font-size:12px;cursor:pointer}
.home-notices ul{display:grid;gap:2px;margin:0;padding:0;list-style:none}
.home-notices li>button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:34px;padding:4px 0;border:0;background:transparent;font:inherit;text-align:left;cursor:pointer}
.home-notices li>button span{overflow:hidden;color:#1d2939;font-size:13px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}
.home-notices li>button time{flex:none;color:#94a3b8;font-size:11px}
.home-notices li+li>button{border-top:1px solid #f1f5f9}
.home-notices p{margin:0;color:#94a3b8;font-size:12px}
.module-grid #notices-button.menu-only{display:none!important}
#records-view:has(.notice-root) #record-add,
#records-view:has(.notice-root) .records-toolbar .add-button{display:none!important}

#records-view.notice-mode #record-search,
#records-view.notice-mode #view-filters,
#records-view.notice-mode .records-toolbar,
#records-view.notice-mode #records-summary,
#records-view:has(.notice-root) #record-search,
#records-view:has(.notice-root) #view-filters,
#records-view:has(.notice-root) .records-toolbar,
#records-view:has(.notice-root) #records-summary{
  display:none!important;
  margin:0!important;
  padding:0!important;
  min-height:0!important;
  height:auto!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

.notice-root{display:grid;gap:8px;margin-top:16px!important;max-height:none!important;overflow:visible!important}
.notice-bar{display:flex;align-items:center;justify-content:space-between;gap:8px}
.notice-bar p{margin:0;color:#64748b;font-size:12px}
.notice-bar b{color:#1d2939}
.notice-primary{min-height:36px;padding:0 12px;border:0;border-radius:6px;background:#2563eb;color:#fff;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.notice-ghost{min-height:36px;padding:0 12px;border:1px solid #e2e8f0;border-radius:6px;background:#fff;color:#475467;font:inherit;font-size:13px;cursor:pointer}
.notice-danger{color:#b42318!important}
.notice-empty{margin:0;padding:18px 12px;border:1px dashed #e2e8f0;border-radius:8px;color:#94a3b8;font-size:13px;text-align:center}

.notice-table-wrap{border:1px solid #e2e8f0;border-radius:8px;background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.06);overflow:hidden}
.notice-table{width:100%!important;border-collapse:collapse;table-layout:fixed!important}
.notice-table th{padding:8px 8px;background:#f8fafc;border-bottom:1px solid #e2e8f0;color:#64748b;font-size:11px;font-weight:700}
.notice-table td{padding:8px 8px;border-bottom:1px solid #f1f5f9;color:#475467;font-size:13px;vertical-align:middle}
.notice-table tbody tr:last-child td{border-bottom:0}
.notice-table tbody tr{cursor:pointer}
.notice-table tbody tr:hover{background:#f8fafc}
.notice-table tbody tr:focus-visible{outline:2px solid rgba(37,99,235,.35);outline-offset:-2px}
.notice-table th:nth-child(1),
.notice-table td.notice-col-no{width:60px!important;max-width:60px!important;text-align:center!important;color:#94a3b8;font-size:12px}
.notice-table th:nth-child(2),
.notice-table td.notice-col-title{width:auto!important;min-width:0!important;text-align:left!important}
.notice-table th:nth-child(3),
.notice-table td.notice-col-author{width:110px!important;max-width:110px!important;text-align:center!important;color:#64748b;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.notice-table th:nth-child(4),
.notice-table td.notice-col-date{width:120px!important;max-width:120px!important;text-align:center!important;color:#94a3b8;font-size:11px}
.notice-col-title button{display:inline-block;max-width:100%;overflow:hidden;padding:0;border:0;background:transparent;color:#101828;font:inherit;font-size:14px;font-weight:600;text-align:left;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom;cursor:pointer}
.notice-col-title em{margin-left:6px;color:#2563eb;font-size:11px;font-style:normal;font-weight:700}

.notice-detail{padding:14px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.06)}
.notice-detail-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-bottom:10px;border-bottom:1px solid #f1f5f9}
.notice-detail-bar>button{min-height:34px;padding:0 10px;border:1px solid #e2e8f0;border-radius:6px;background:#fff;color:#475467;font:inherit;font-size:13px;cursor:pointer}
.notice-detail-tools{display:flex;gap:6px}
.notice-detail-tools button{min-height:34px;padding:0 10px;border:1px solid #e2e8f0;border-radius:6px;background:#fff;color:#475467;font:inherit;font-size:13px;cursor:pointer}
.notice-detail h3{margin:12px 0 4px;color:#101828;font-size:18px;font-weight:700;line-height:1.35}
.notice-detail-meta{margin:0 0 10px;color:#94a3b8;font-size:11px}
.notice-body{padding:10px 0 14px;border-top:1px solid #f1f5f9;color:#344054;font-size:14px;line-height:1.7;white-space:pre-wrap;word-break:break-word;overflow-wrap:anywhere}

.notice-comments{padding-top:10px;border-top:1px solid #f1f5f9}
.notice-comments h4{margin:0 0 8px;color:#1d2939;font-size:13px;font-weight:700}
.notice-comments h4 span{color:#2563eb}
.notice-comment{padding:8px 0;border-top:1px solid #f1f5f9}
.notice-comment:first-of-type{border-top:0}
.notice-comment-meta{display:flex;align-items:center;gap:8px;margin:0 0 4px;color:#94a3b8;font-size:11px}
.notice-comment-meta button{min-height:24px;margin-left:auto;padding:0 6px;border:0;border-radius:5px;background:#f8fafc;color:#b42318;font:inherit;font-size:11px;cursor:pointer}
.notice-comment-body{color:#344054;font-size:13px;line-height:1.65;white-space:pre-wrap;word-break:break-word;overflow-wrap:anywhere}
.notice-comment-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end;margin-top:10px}
.notice-comment-form textarea{width:100%;min-height:40px;padding:8px 10px;border:1px solid #e2e8f0;border-radius:6px;background:#fff;color:#101828;font:inherit;font-size:13px;line-height:1.5;resize:vertical}

.notice-modal{position:fixed;inset:0;z-index:70;display:grid;place-items:center;padding:16px;background:rgba(10,18,35,.5)}
.notice-modal[hidden]{display:none!important}
.notice-modal-card{display:flex;flex-direction:column;width:min(640px,100%);max-height:88vh;overflow:hidden;border-radius:10px;background:#fff;box-shadow:0 24px 60px rgba(15,23,42,.28)}
.notice-modal-card header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 14px;border-bottom:1px solid #e2e8f0}
.notice-modal-card header h3{margin:0;font-size:16px;font-weight:700;color:#101828}
.notice-modal-card header button{width:32px;height:32px;border:0;border-radius:6px;background:#f1f5f9;color:#475467;font-size:18px;line-height:1;cursor:pointer}
.notice-modal-card form{display:grid;gap:10px;padding:14px;overflow-y:auto}
.notice-modal-card label{display:grid;gap:5px;color:#344054;font-size:12px;font-weight:700}
.notice-modal-card input,.notice-modal-card textarea{width:100%;padding:9px 10px;border:1px solid #e2e8f0;border-radius:6px;background:#fff;color:#101828;font:inherit;font-size:14px}
.notice-modal-card input{min-height:40px}
.notice-modal-card textarea{min-height:200px;line-height:1.7;resize:vertical;white-space:pre-wrap}
.notice-modal-status{min-height:16px;margin:0;color:#b42318;font-size:12px}
.notice-modal-actions{position:sticky;bottom:0;display:flex;justify-content:flex-end;gap:8px;padding-top:4px;background:#fff}

@media(max-width:767px){
  .notice-table-wrap{border:0;background:transparent;box-shadow:none;overflow:visible}
  .notice-table,.notice-table tbody,.notice-table tr,.notice-table td,
  .notice-table th:nth-child(1),.notice-table th:nth-child(2),.notice-table th:nth-child(3),.notice-table th:nth-child(4),
  .notice-table td.notice-col-no,.notice-table td.notice-col-title,.notice-table td.notice-col-author,.notice-table td.notice-col-date{display:block;width:auto!important;max-width:none!important}
  .notice-table thead{display:none}
  .notice-table tbody tr{margin-bottom:6px;padding:8px 10px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.06)}
  .notice-table td{padding:0;border:0}
  .notice-col-no{display:none!important}
  .notice-col-title button{white-space:normal;font-size:14px;line-height:1.45}
  .notice-col-author,.notice-col-date{display:inline-block;margin-top:4px;color:#94a3b8;font-size:11px}
  .notice-col-date:before{content:"·";margin:0 5px}
  .notice-detail{padding:12px 10px}
  .notice-detail h3{font-size:17px}
  .notice-comment-form{grid-template-columns:minmax(0,1fr)}
  .notice-comment-form button{min-height:40px}
  .notice-modal{padding:0;align-items:end}
  .notice-modal-card{width:100%;max-height:92svh;border-radius:10px 10px 0 0}
  .notice-modal-card form{padding:12px 12px calc(12px + env(safe-area-inset-bottom))}
  .notice-modal-card textarea{min-height:40vh}
}
@media(prefers-color-scheme:dark){
  .home-notices,.notice-table-wrap,.notice-detail,.notice-modal-card,.notice-table tbody tr{border-color:rgba(255,255,255,.18);background:#202020}
  .home-notices h3,.home-notices li>button span,.notice-col-title button,.notice-detail h3{color:#fff}
  .notice-table th{background:#272727;border-color:rgba(255,255,255,.18);color:rgba(255,255,255,.7)}
  .notice-table td{border-color:rgba(255,255,255,.12);color:rgba(255,255,255,.82)}
  .notice-table tbody tr:hover{background:#272727}
  .notice-body,.notice-comment-body{color:rgba(255,255,255,.85)}
  .notice-ghost,.notice-detail-bar>button,.notice-detail-tools button,.notice-modal-card input,.notice-modal-card textarea,.notice-comment-form textarea{border-color:rgba(255,255,255,.2);background:#272727;color:#fff}
  .notice-modal-actions{background:#202020}
}
