/* CHESS Web - Winform(DevExpress) 화면 재현 */
@font-face { font-family: Pretendard; src: url(/font/PretendardVariable.ttf) format("truetype"); font-weight: 100 900; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: Pretendard, "맑은 고딕", sans-serif; font-size: 13px; color: #222; background: #fff; display: flex; flex-direction: column; }
button, input, select { font: inherit; }

/* MainView 헤더 RGB(32,56,100) */
.top { height: 59px; background: #203864; display: flex; align-items: center; flex: none; }
.top .logo { margin-left: 12px; height: 32px; width: auto; cursor: pointer; }
.top .menu { margin-left: auto; margin-right: 40px; display: flex; gap: 4px; }
.top .menu a { display: block; width: 155px; height: 42px; background-size: 155px 42px; }
.top .menu a.report { background-image: url(/img/report_ko_1.png); }
.top .menu a.report:hover { background-image: url(/img/report_ko_2.png); }
.top .menu a.report.on { background-image: url(/img/report_ko_3.png); }
.top .menu a.hazard { background-image: url(/img/hazard_ko_1.png); }
.top .menu a.hazard:hover { background-image: url(/img/hazard_ko_2.png); }
.top .menu a.hazard.on { background-image: url(/img/hazard_ko_3.png); }
main { flex: 1; min-height: 0; overflow: auto; }
.status { height: 30px; flex: none; border-top: 1px solid #c8c8c8; background: #f0f0f0; padding: 0 10px; line-height: 29px; color: #444; }

/* MainImageView */
.home { height: 100%; background: url(/img/main_ATOM.png) center / 100% 100% no-repeat; position: relative; }
.home a { position: absolute; left: 5.14%; top: 55.5%; width: 248px; height: 74px; background: url(/img/goriskinfo_1.png) 0 0 / 100% 100%; }
.home a:hover { background-image: url(/img/goriskinfo_2.png); }
.home a:active { background-image: url(/img/goriskinfo_3.png); }

/* ReportListView / AnalysisSummaryView */
.page { padding: 7px 23px 12px; display: flex; flex-direction: column; height: 100%; }
.page h1 { font-size: 18px; margin: 4px 0 10px; }
.cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.card { border: 1px solid #9fa6b4; background: #e1e2e6; height: 69px; padding: 8px 10px; position: relative; cursor: pointer; }
.card:hover { background: #c3c4c7; }
.card.on { background: #fff; }
.card .nm { font-weight: bold; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.card .nm img { width: 25px; height: 18px; }
.card .cnt { font-size: 15px; margin-top: 6px; }
.card .dt { position: absolute; right: 8px; bottom: 5px; font-size: 11px; color: #555; }
.card .log { position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; border: 0; background: url(/img/SVG/Actions_Arrow2Down.svg) center / 16px no-repeat; cursor: pointer; }
.sep { border-top: 1px solid #c7c7c7; margin: 10px 0; }
.search { display: flex; gap: 12px; align-items: stretch; }
.search label { display: block; font-size: 12px; color: #444; margin-bottom: 3px; }
.search .src select { width: 170px; height: 28px; }
.search .txt { flex: 1; }
.search .txt input { width: 100%; height: 28px; }
.search .opt { display: grid; grid-template-columns: auto auto; gap: 4px 8px; align-items: center; font-size: 12px; }
.search .opt select, .search .opt input { height: 24px; }
.btn-search { width: 96px; border: 1px solid #9aa0ad; background: #f4f5f7 url(/img/SVG/RichEditBookmark.svg) center 10px / 22px no-repeat; padding-top: 30px; cursor: pointer; }
.toolbar { display: flex; align-items: center; margin: 10px 0 6px; }
.toolbar .total b { color: #1f4e9c; }
.toolbar .btns { margin-left: auto; display: flex; gap: 6px; }
.btn { height: 30px; min-width: 109px; border: 1px solid #a5abb6; background: #f4f5f7; cursor: pointer; padding: 0 10px; }
.btn:hover { background: #e6e8ec; }

/* 그리드 (GridManager.gridDesign: 헤더 35px Bold, 행 25px) */
.grid-wrap { flex: 1; min-height: 200px; overflow: auto; border: 1px solid #c3c6cc; }
table.grid { border-collapse: collapse; width: 100%; }
table.grid th { position: sticky; top: 0; z-index: 1; background: #eceef2; height: 35px; font-weight: bold; font-size: 14px; border: 1px solid #c3c6cc; padding: 2px 6px; cursor: pointer; white-space: nowrap; }
table.grid thead tr:nth-child(2) th { top: 35px; }
table.grid td { height: 25px; border: 1px solid #e0e2e6; padding: 2px 6px; text-align: center; }
table.grid tbody tr:hover td { background: #f2f6fc; }
table.grid tbody tr.sel td { background: #dce8f8; }
table.grid td.l { text-align: left; } table.grid td.r { text-align: right; }
table.grid td.page-no { color: red; }
table.grid a { color: #1e5bb8; cursor: pointer; text-decoration: none; }
table.grid a:hover { text-decoration: underline; }
.attach { width: 26px; height: 22px; border: 0; background: url(/img/SVG/Actions_Attach.svg) center / 18px no-repeat; cursor: pointer; }
.cellbtn { width: 86px; height: 21px; border: 1px solid #888; cursor: pointer; }
.cellbtn.view { background: #5d6b99; color: #fff; }
.cellbtn.view:hover { background: #717fad; }
.cellbtn.run { background: mistyrose; color: #000; }
.cellbtn.no { background: #ababab; color: #000; cursor: default; }
.menu-pop { position: absolute; z-index: 30; background: #fff; border: 1px solid #999; box-shadow: 2px 2px 6px rgba(0,0,0,.2); min-width: 220px; }
.menu-pop a, .menu-pop div { display: block; padding: 6px 10px; color: #222; text-decoration: none; }
.menu-pop a:hover { background: #e8eef8; }

/* 모달 (XtraSubForm / TaskLogForm / ListUpdateView) */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal .box { background: #fff; border: 1px solid #777; display: flex; flex-direction: column; max-width: 96vw; max-height: 94vh; }
.modal .hd { background: #203864; color: #fff; padding: 7px 10px; display: flex; }
.modal .hd button { margin-left: auto; background: none; border: 0; color: #fff; font-size: 16px; cursor: pointer; }
.modal .bd { padding: 10px; overflow: auto; flex: 1; display: flex; flex-direction: column; min-height: 0; }
table.info { border-collapse: collapse; width: 100%; margin-bottom: 10px; }
table.info th { background: #e4e6ea; width: 120px; height: 35px; border: 1px solid #c3c6cc; }
table.info td { border: 1px solid #c3c6cc; padding: 2px 8px; }

/* AnalysisDetailView */
.ad { display: flex; height: 100%; }
.ad .left { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 8px 12px; }
.ad .right { width: 500px; border-left: 1px solid #c3c6cc; display: flex; flex-direction: column; }
.ad .right .ph { background: #eceef2; padding: 6px 10px; font-weight: bold; border-bottom: 1px solid #c3c6cc; }
.ad .right iframe { flex: 1; border: 0; width: 100%; }
.ad .right .nopdf { padding: 20px; color: #777; }
.ad .head { display: flex; align-items: center; gap: 8px; }
.ad .head img { width: 37px; }
.ad table.grid td { white-space: nowrap; } /* Winform: 자동 폭 맞춤 없음, 가로 스크롤 */
.ad .head h2 { font-size: 17px; margin: 0; }
.ad .head .btns { margin-left: auto; display: flex; gap: 6px; }
.tabs { display: flex; gap: 2px; margin-top: 10px; border-bottom: 1px solid #a5abb6; }
.tabs a { padding: 6px 18px; border: 1px solid #a5abb6; border-bottom: 0; background: #eceef2; cursor: pointer; }
.tabs a.on { background: #fff; font-weight: bold; position: relative; top: 1px; }
.filters { display: grid; grid-template-columns: repeat(3, auto 1fr) 96px; gap: 5px 8px; align-items: center; margin: 10px 0 4px; }
.filters select { height: 26px; width: 100%; }
.filters .btn-search { grid-row: 1 / span 2; grid-column: 7; height: 57px; }
.colchooser { position: relative; }
.colchooser .list { position: absolute; right: 0; top: 32px; background: #fff; border: 1px solid #999; max-height: 360px; overflow: auto; z-index: 20; padding: 6px; white-space: nowrap; }
.colchooser .list label { display: block; padding: 2px 4px; }
