/* STMATE w 8.0 Classic Desktop UI & Real DBGrid Layout (style.css) */ :root { --win-bg: #d4d8df; --win-panel: #eceff4; --win-surface: #ffffff; --win-navy: #14325c; --win-navy-light: #204982; --win-border: #8c96a6; --win-border-light: #ffffff; --win-border-dark: #5a6475; --grid-head: #dfe5ef; --grid-line: #c5cdd9; --row-t-bg: #e7f0fd; --row-e-bg: #f4f6fa; --row-c-bg: #fff4e5; --row-sel: #cfe3ff; --accent-blue: #0050b3; --accent-green: #137333; --accent-amber: #b06000; --accent-red: #c5221f; --text-main: #111827; --text-sub: #4b5563; } * { box-sizing: border-box; } body { margin: 0; padding: 0; font-family: "Malgun Gothic", "굴림", Gulim, sans-serif; font-size: 12px; color: var(--text-main); background: var(--win-bg); height: 100vh; overflow: hidden; } .stmate-shell { display: flex; flex-direction: column; height: 100vh; width: 100vw; } /* 1. TWM_STMATE_START_8X 상단 메뉴바 */ .win-menubar { display: flex; align-items: center; background: linear-gradient(90deg, #0f294d 0%, #1d4378 100%); color: #fff; height: 30px; padding: 0 8px; gap: 4px; user-select: none; border-bottom: 1px solid #091a33; z-index: 100; } .win-brand { font-weight: 800; font-size: 12px; letter-spacing: 0.4px; background: #ffcc00; color: #0f294d; padding: 2px 8px; border-radius: 2px; margin-right: 6px; } .menu-item { position: relative; padding: 4px 10px; cursor: pointer; border-radius: 2px; font-size: 12px; } .menu-item:hover { background: rgba(255, 255, 255, 0.16); } .menu-dropdown { display: none; position: absolute; top: 100%; left: 0; min-width: 270px; background: var(--win-panel); color: var(--text-main); border: 1px solid var(--win-border-dark); box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.28); padding: 4px 0; z-index: 200; } .menu-item:hover .menu-dropdown { display: block; } .menu-dropdown button, .menu-file-label { display: block; width: 100%; text-align: left; background: none; border: none; padding: 6px 14px; font-size: 12px; font-family: inherit; color: var(--text-main); cursor: pointer; } .menu-dropdown button:hover, .menu-file-label:hover { background: var(--accent-blue); color: #fff; } .menu-dropdown hr { margin: 3px 0; border: none; border-top: 1px solid var(--win-border); } .menubar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; } .conn-badge { font-size: 11px; padding: 2px 8px; border-radius: 3px; background: #0d652d; color: #e6f4ea; font-weight: 700; } .top-project-select { height: 23px; font-size: 11.5px; font-family: inherit; min-width: 310px; background: #fff; color: #111; border: 1px solid #999; padding: 0 4px; } /* 2. 상단 8버튼 메인 툴바 */ .win-toolbar { display: flex; align-items: center; gap: 4px; background: linear-gradient(180deg, #f5f7fa 0%, #dce1eb 100%); padding: 4px 8px; border-bottom: 1px solid var(--win-border); height: 46px; } .tb-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 78px; height: 38px; background: #eceff4; border: 1px solid var(--win-border); border-top-color: var(--win-border-light); border-left-color: var(--win-border-light); border-radius: 2px; cursor: pointer; padding: 2px 6px; font-family: inherit; color: #1f2937; } .tb-btn:hover { background: #e0ebff; border-color: #3b82f6; } .tb-btn.active { background: #cfe3ff; border: 1px solid #0050b3; box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15); font-weight: 700; color: #003a8c; } .tb-ico { font-size: 14px; line-height: 1; } .tb-txt { font-size: 11px; margin-top: 2px; white-space: nowrap; } .tb-sep { width: 1px; height: 30px; background: var(--win-border); margin: 0 4px; } .tb-calc { background: #fff3cd; border-color: #d97706; color: #92400e; font-weight: 700; } .tb-calc:hover { background: #fde68a; } /* 3. 프로젝트 컨텍스트 바 */ .prj-context-bar { display: flex; align-items: center; justify-content: space-between; background: #233858; color: #f8fafc; padding: 4px 12px; font-size: 11.5px; border-bottom: 1px solid #0f172a; height: 28px; } .prj-context-left, .prj-context-right { display: flex; align-items: center; gap: 12px; } .prj-tag { background: #38bdf8; color: #0f172a; font-weight: 800; padding: 1px 6px; border-radius: 2px; font-size: 11px; } /* 4. MDI 작업 영역 */ .mdi-workspace { flex: 1; display: flex; flex-direction: column; overflow: hidden; padding: 6px; background: #c8cfda; } .win-form { display: flex; flex-direction: column; flex: 1; background: var(--win-panel); border: 1px solid var(--win-border-dark); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); overflow: hidden; } .win-form-header { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(90deg, #1b3b6f 0%, #2e5c9a 100%); color: #ffffff; padding: 4px 10px; font-weight: 700; font-size: 12px; height: 27px; } .win-subbar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 5px 8px; background: #e3e8f0; border-bottom: 1px solid var(--win-border); } .win-btn { height: 24px; padding: 0 9px; font-size: 11.5px; font-family: inherit; background: #f8fafc; border: 1px solid #7c8798; border-radius: 2px; cursor: pointer; color: #111827; } .win-btn:hover { background: #dbeafe; border-color: #2563eb; } .win-btn.primary { background: #1d4ed8; color: #fff; border-color: #1e40af; font-weight: 700; } .win-btn.primary:hover { background: #1e40af; } .win-btn.active { background: #0f294d; color: #fff; font-weight: 700; } .win-input, .win-select { height: 23px; padding: 0 6px; font-size: 11.5px; font-family: inherit; border: 1px solid #8c96a6; background: #fff; } /* 분할 레이아웃 */ .split-vert { display: flex; flex-direction: column; flex: 1; overflow: hidden; gap: 6px; padding: 6px; } .split-horiz { display: flex; flex-direction: row; flex: 1; overflow: hidden; gap: 6px; padding: 6px; } .pane-box { display: flex; flex-direction: column; background: var(--win-surface); border: 1px solid var(--win-border); overflow: hidden; } .pane-title { display: flex; align-items: center; justify-content: space-between; background: #eef2f8; padding: 4px 8px; font-weight: 700; font-size: 11.5px; border-bottom: 1px solid var(--win-border); color: #1e3a8a; } .grid-scroll { flex: 1; overflow: auto; background: #fff; } /* STMATE DBGrid 테이블 */ table.dbgrid { width: 100%; border-collapse: collapse; font-size: 11.5px; } table.dbgrid th { position: sticky; top: 0; background: var(--grid-head); color: #111827; font-weight: 700; border: 1px solid var(--win-border); padding: 4px 6px; text-align: center; white-space: nowrap; z-index: 5; } table.dbgrid td { border: 1px solid var(--grid-line); padding: 3px 6px; white-space: nowrap; } table.dbgrid tr:hover td { background: #f0f6ff; } table.dbgrid tr.selected td { background: var(--row-sel) !important; } /* BOQ 계층 구조 행 스타일 (T1~T6, E1~E6, C*) */ tr.boq-row-T td { background: var(--row-t-bg); font-weight: 700; color: #0b3b8c; } tr.boq-row-E td { background: var(--row-e-bg); font-weight: 700; color: #1f2937; border-top: 1.5px solid #64748b; } tr.boq-row-C td { background: var(--row-c-bg); font-weight: 700; color: #9a3412; } tr.boq-row-excl td { background: #fffaf0; color: #7c2d12; } .num { text-align: right !important; font-variant-numeric: tabular-nums; font-family: Consolas, "Malgun Gothic", monospace; } .center { text-align: center !important; } .cell-input { width: 100%; border: 1px solid transparent; background: transparent; font-family: inherit; font-size: 11.5px; padding: 1px 3px; } .cell-input:focus { background: #fef9c3; border-color: #2563eb; outline: none; } /* COSTN.SMT 수식 편집기 */ .smt-editor-area { width: 100%; flex: 1; resize: none; border: none; padding: 8px; font-family: Consolas, "굴림체", monospace; font-size: 12px; line-height: 1.45; background: #1e293b; color: #f8fafc; } /* TWM_KANJUB 16콤보 입력 그리드 */ .kanjub-16grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px 10px; padding: 8px; background: #f1f5f9; border-bottom: 1px solid var(--win-border); } .kanjub-field { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11px; } .kanjub-field label { font-weight: 700; color: #334155; white-space: nowrap; } .kanjub-field select, .kanjub-field input { flex: 1; min-width: 0; height: 22px; font-size: 11px; } /* 하단 고정 원가 상태표시줄 (St_Bar) */ .stmate-statusbar { display: flex; align-items: center; justify-content: space-between; background: #111827; color: #e5e7eb; height: 28px; padding: 0 10px; font-size: 11.5px; border-top: 1px solid #374151; } .st-metrics { display: flex; align-items: center; gap: 14px; } .st-kv strong { color: #93c5fd; margin-left: 4px; font-family: Consolas, monospace; } .st-kv.total strong { color: #fde047; font-size: 12.5px; } /* 모달 */ .modal-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.55); display: flex; align-items: center; justify-content: center; z-index: 500; } .modal-backdrop.hidden { display: none; } .modal-window { background: var(--win-panel); border: 2px solid var(--win-navy); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45); min-width: 680px; max-width: 92vw; max-height: 86vh; display: flex; flex-direction: column; } .modal-titlebar { display: flex; align-items: center; justify-content: space-between; background: var(--win-navy); color: #fff; padding: 5px 10px; font-weight: 700; } .modal-close-btn { background: #dc2626; color: #fff; border: none; width: 20px; height: 20px; cursor: pointer; font-weight: 700; } .modal-body { padding: 12px; overflow: auto; flex: 1; }