/* HBsolution HACCP System — 그룹웨어(공지사항 게시판 · 일정관리 달력) : 다원텍 Smart-MES 화면 구성 */
#content.gw-page { padding: 0 !important; background: #f3f3f9; }
.gw-page .spacer, .gw-dialog .spacer { flex: 1; }
.gw-page button { font-family: inherit; }

/* ── 공지사항 목록 */
.gw-board { display: flex; flex-direction: column; min-height: 100%; background: #f3f3f9; }
.gw-board-tabs { display: flex; align-items: flex-end; gap: 4px; padding: 6px 12px 0; background: #fff; border-bottom: 2px solid #405189; }
.gw-board-tab { position: relative; display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 8px 14px; font-weight: 700; color: #405189; font-size: 14px; cursor: default; }
.gw-tab-edit { position: absolute; top: 0; right: -4px; width: 18px; height: 18px; border-radius: 50%; background: #405189; color: #fff; display: grid; place-items: center; font-size: 9px; }
.gw-board-add { border: 0; background: none; color: #c6cad6; padding: 8px 14px; font-size: 13px; }
.gw-board-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #fff; }
.gw-board-title { font-weight: 700; font-size: 15px; color: #2f3a5f; display: inline-flex; gap: 6px; align-items: center; }
.gw-write { height: 30px; padding: 0 12px; border: 0; border-radius: 4px; background: #405189; color: #fff; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.gw-write:hover { background: #334071; }
.gw-search { width: 250px; height: 32px !important; border: 1px solid #e3e6ed; border-radius: 4px; padding: 0 10px; font-size: 13px; }
.gw-search-btn { width: 32px; height: 32px; border: 1px solid #ced4da; border-radius: 4px; background: #fff; color: #495057; cursor: pointer; }
.gw-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 13px; table-layout: fixed; }
.gw-table th { background: #f3f3f9; color: #2f3a5f; font-weight: 700; padding: 11px 10px; text-align: center; border-bottom: 1px solid #e3e6ed; }
.gw-table td { padding: 10px; text-align: center; border-bottom: 1px solid #eef0f4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gw-table .l { text-align: left; }
.gw-table td.t { font-weight: 600; color: #2f3a5f; }
.gw-table td.c { color: #878a99; }
.gw-table tbody tr[data-id] { cursor: pointer; }
.gw-table tbody tr[data-id]:hover { background: #f5f6f8; }
.gw-table tr.gw-empty td { padding: 28px 10px; color: #878a99; font-size: 14px; background: #f3f3f9; border: 0; }
.gw-pager { display: flex; justify-content: center; gap: 4px; padding: 14px; }
.gw-pager button { min-width: 30px; height: 30px; border: 1px solid #dfe2ea; background: #fff; border-radius: 4px; cursor: pointer; }
.gw-pager button.on { background: #405189; color: #fff; border-color: #405189; }

/* ── 대화상자 공통 (머리줄 새로고침·전체화면·닫기) */
#dialog.gw-dialog { padding: 0; border: 0; border-radius: 6px; overflow: hidden; }
#dialog.gw-form-dialog { width: min(1400px, 96vw); }
#dialog.gw-view-dialog { width: min(860px, 96vw); }
#dialog.gw-sched-dialog { width: min(620px, 96vw); }
#dialog.gw-types-dialog { width: min(760px, 96vw); }
#dialog.hb-dlg-full { width: 100vw !important; height: 100vh !important; resize: none !important; left: 0 !important; top: 0 !important; max-width: none; max-height: none; margin: 0; border-radius: 0; }
/* 다원텍 창 머리줄: 남색 바탕 · 흰 글씨 · 오른쪽 버튼 3개 */
#dialog.gw-dialog .dialog-head { background: #405189; color: #fff; padding: 9px 12px 9px 18px; min-height: 48px; border: 0; display: flex; align-items: center; }
#dialog.gw-dialog .dialog-head h2 { color: #fff; font-size: 15px; font-weight: 700; margin-right: auto; }
#dialog.gw-dialog .dialog-head .window-icon, #dialog.gw-dialog .dialog-head .req-legend { display: none; }
#dialog.gw-dialog #closeDialog { width: 30px; height: 30px; border: 1px solid #ffffff55; border-radius: 4px; background: #ffffff1f; color: #fff; font-size: 18px; line-height: 1; padding: 0; }
#dialog.gw-dialog #closeDialog:hover { background: #ffffff3a; }
#dialog.gw-dialog #dialogBody { padding: 0; }
#dialog .hb-dlg-tool { width: 30px; height: 30px; margin-right: 6px; border: 1px solid #ffffff55; border-radius: 4px; background: #ffffff1f; color: #fff; cursor: pointer; display: inline-grid; place-items: center; }
#dialog .hb-dlg-tool:hover { background: #ffffff3a; }
.gw-dlg-foot { display: flex; align-items: center; gap: 6px; padding: 12px 0 0; }
.gw-dlg-foot.full { grid-column: 1 / -1; padding: 12px 18px; border-top: 1px solid #eef0f4; background: #fff; }
.gw-btn { height: 32px; padding: 0 12px; border: 1px solid #dfe2ea; border-radius: 4px; background: #fff; color: #212529; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.gw-btn.primary { background: #405189; border-color: #405189; color: #fff; }
.gw-btn.primary:hover { background: #334071; }
.gw-btn.danger { color: #a9413b; border-color: #e6c4c1; }
.gw-cap { display: block; font-weight: 700; font-size: 13px; color: #495057; margin: 12px 0 6px; }
.gw-cap .req-star { color: #a9413b; }
.gw-input { width: 100%; min-height: 40px; border: 1px solid #e3e6ed; border-radius: 4px; padding: 6px 12px; font-size: 13px; background: #fff; box-sizing: border-box; font-family: inherit; }
textarea.gw-input { min-height: 90px; resize: vertical; }
.gw-input:focus { outline: 0; border-color: #405189; box-shadow: 0 0 0 3px #4051891a; }

/* ── 공지사항 등록 */
/* 창 크기 조절(오른쪽 아래 모서리 끌기)·머리줄 끌어 이동 · 안쪽 영역이 창 크기를 따라감 */
#dialog.gw-form-dialog[open] { display: flex; flex-direction: column; resize: both; overflow: hidden; height: min(640px, 92vh); min-width: 680px; min-height: 480px; max-width: 100vw; max-height: 100vh; }
#dialog.gw-form-dialog #dialogBody { flex: 1; min-height: 0; overflow: hidden; }
#dialog.gw-form-dialog .dialog-head { cursor: move; user-select: none; }
#dialog.gw-form-dialog .dialog-head button { cursor: pointer; }
.gw-form { display: grid; grid-template-columns: minmax(0, 1fr) 5px 350px; grid-template-rows: minmax(0, 1fr) auto; height: 100%; background: #f4f4f8; }
.gw-form::before { content: ''; grid-column: 2; grid-row: 1; background: #e9eaf0; }
.gw-form-main { grid-column: 1; grid-row: 1; padding: 14px 20px 18px; display: flex; flex-direction: column; min-height: 0; overflow: auto; }
.gw-form-side { grid-column: 3; grid-row: 1; padding: 14px 18px; background: #f8f8fa; overflow: auto; }
.gw-form .gw-cap { color: #878a99; font-size: 13px; font-weight: 700; margin: 4px 0 8px; }
.gw-form .gw-cap + .gw-input + .gw-cap { margin-top: 14px; }
.gw-form .gw-input { min-height: 40px; border-color: #e6e8ee; font-size: 14px; padding: 6px 14px; }
.gw-editor { flex: 1; min-height: 260px; border: 1px solid #e3e6ed; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; background: #fff; position: relative; box-shadow: 0 2px 6px #0000000d; }
.gw-tools { display: flex; align-items: center; gap: 4px 18px; padding: 6px 12px 5px; margin: 0; border-bottom: 1px solid #eef0f4; box-shadow: 0 4px 6px -4px #00000017; flex-wrap: wrap; }
.gw-grp { display: inline-flex; align-items: center; gap: 4px; }
.gw-tools button { min-width: 32px; height: 34px; border: 0; border-radius: 4px; background: none; color: #222f3e; cursor: pointer; font-size: 16px; display: inline-grid; place-items: center; padding: 0 6px; font-family: inherit; }
.gw-tools button:hover { background: #dee0e2; }
.gw-tools .fa { font-size: 15px; }
.gw-grp:first-child button { color: #4f5665; }
.gw-b { font-weight: 800; font-size: 17px !important; }
.gw-i { font-style: italic; font-family: Georgia, serif !important; font-size: 18px !important; }
.gw-u { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.gw-s { text-decoration: line-through; font-weight: 600; }
.gw-size { display: inline-flex; background: #f0f0f2; border-radius: 4px; }
.gw-size select { height: 34px; width: 150px; border: 0; background: transparent; font-size: 14px; padding: 0 10px; cursor: pointer; color: #222f3e; }
.gw-split { display: inline-flex; align-items: center; }
.gw-split > button:first-child { position: relative; flex-direction: column; gap: 0; padding-bottom: 6px; }
.gw-split .gw-chev { min-width: 18px; font-size: 10px; color: #6d737e; }
.gw-split .gw-chev .fa { font-size: 10px; }
.gw-a { font-weight: 700; font-size: 16px; line-height: 1; }
.gw-cbar { position: absolute; display: block !important; left: 7px; right: 7px; bottom: 5px; height: 3px !important; width: auto !important; border-radius: 1px; }
.gw-tools-more { gap: 8px; padding: 6px 20px; }
.gw-palette { position: absolute; top: 46px; z-index: 5; background: #fff; border: 1px solid #dfe2ea; border-radius: 6px; box-shadow: 0 6px 18px #0000002a; padding: 8px; }
.gw-pal-grid { display: grid; grid-template-columns: repeat(5, 26px); gap: 4px; }
.gw-pal-grid button { width: 26px; height: 26px; border: 1px solid #0000001f; border-radius: 3px; cursor: pointer; padding: 0; }
.gw-pal-grid button:hover { outline: 2px solid #405189; }
.gw-pal-grid .none { background: #fff; color: #a9413b; display: grid; place-items: center; }
.gw-area { flex: 1; min-height: 160px; overflow: auto; padding: 10px 14px; outline: 0; line-height: 1.5; }
.gw-area p { margin: 0 0 6px; }
.gw-form .gw-dlg-foot.full { grid-column: 1 / -1; grid-row: 2; background: #f4f4f8; border-top: 1px solid #e9eaf0; padding: 10px 18px; gap: 8px; }
.gw-form .gw-dlg-foot .gw-btn { height: 32px; padding: 0 12px; font-size: 13px; }
.gw-form .gw-side-title { color: #878a99; font-size: 13px; margin: 4px 0 8px; }
.gw-form .gw-side-box { padding: 12px 14px; border-color: #eceef2; }
.gw-form .gw-side-cap { color: #9aa0ad; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.gw-form .gw-radio { font-size: 14px; margin-right: 16px; }
.gw-form .gw-radio input, .gw-form .gw-check input { width: 17px; height: 17px; }
.gw-form .gw-check { font-size: 14px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #f0f1f4; }
.gw-form .gw-side-title + .gw-drop, .gw-form .gw-side-box + .gw-side-title { margin-top: 18px; }
.gw-form .gw-drop { background: #f6f7f9; border-color: #e3e6ed; padding: 24px 12px; font-size: 13px; }
.gw-form .gw-drop small { font-size: 12px; }
@media (max-width: 1100px) { .gw-form { grid-template-columns: minmax(0, 1fr) 5px 300px; } .gw-tools { gap: 4px 10px; } .gw-size select { width: 110px; } }
.gw-side-title { font-weight: 700; color: #495057; margin: 14px 0 8px; display: flex; gap: 6px; align-items: center; }
.gw-side-box { background: #fff; border: 1px solid #eef0f4; border-radius: 6px; padding: 12px 14px; }
.gw-side-cap { color: #878a99; font-size: 12px; margin-bottom: 6px; }
.gw-radio { display: inline-flex; align-items: center; gap: 6px; margin-right: 18px; font-size: 14px; cursor: pointer; }
.gw-radio input, .gw-check input { width: 17px; height: 17px; accent-color: #405189; }
.gw-check { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; cursor: pointer; }
.gw-targets { max-height: 150px; overflow: auto; border: 1px solid #eef0f4; border-radius: 4px; padding: 6px 8px; margin-top: 8px; }
.gw-targets label { display: flex; align-items: center; gap: 6px; padding: 3px 0; font-size: 13px; }
.gw-targets small { color: #878a99; }
.gw-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 12px; border: 2px dashed #e3e6ed; border-radius: 6px; background: #fff; color: #9aa0ad; font-size: 13px; text-align: center; cursor: pointer; }
.gw-drop small { color: #b6bbc6; }
.gw-drop.over, .gw-drop:focus { border-color: #405189; outline: 0; background: #f4f6fc; }
.gw-files { margin-top: 8px; display: grid; gap: 4px; }
.gw-file { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #eef0f4; border-radius: 4px; padding: 5px 8px; font-size: 12px; }
.gw-file span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gw-file small { color: #878a99; }
.gw-file button { border: 0; background: none; color: #a9413b; font-size: 16px; cursor: pointer; }

/* ── 공지사항 보기 */
.gw-view { padding: 16px 20px 18px; }
.gw-view h3 { margin: 0 0 8px; font-size: 18px; color: #2f3a5f; }
.gw-view-meta { display: flex; gap: 16px; color: #878a99; font-size: 12px; padding-bottom: 12px; border-bottom: 1px solid #eef0f4; }
.gw-view-body { min-height: 180px; max-height: 55vh; overflow: auto; padding: 14px 2px; line-height: 1.6; font-size: 13px; }
.gw-view-body img { max-width: 100%; }
.gw-view-files { display: grid; gap: 4px; padding: 10px 12px; background: #f8f9fb; border-radius: 6px; font-size: 13px; }
.gw-view-files a { color: #405189; text-decoration: none; }
.gw-view-files a:hover { text-decoration: underline; }

/* ── 일정관리 달력 */
.gw-cal { display: grid; grid-template-columns: 350px minmax(0, 1fr); min-height: 100%; height: 100%; background: #f3f3f9; }
.gw-cal.nopanel { grid-template-columns: minmax(0, 1fr); }
.gw-cal.nopanel .gw-side { display: none; }
.gw-side { background: #fff; border-right: 1px solid #eef0f4; overflow: auto; }
.gw-side-head { background: #f3f3f9; padding: 12px 14px; font-weight: 700; font-size: 15px; color: #2f3a5f; }
.gw-side-sec { padding: 12px 14px; display: grid; gap: 8px; border-bottom: 1px solid #eef0f4; }
.gw-sel { width: 250px; height: 34px; border: 1px solid #e3e6ed; border-radius: 4px; padding: 0 8px; color: #6c757d; background: #fff; }
.gw-kw { position: relative; }
.gw-kw input { width: 100%; height: 36px !important; border: 1px solid #e3e6ed; border-radius: 4px; padding: 0 34px 0 10px; font-size: 13px; }
.gw-kw button { position: absolute; right: 4px; top: 4px; width: 28px; height: 28px; border: 0; background: none; color: #6c757d; cursor: pointer; }
.gw-fold { padding: 12px 14px; border-bottom: 1px solid #eef0f4; }
.gw-fold summary { display: flex; align-items: center; font-weight: 700; font-size: 15px; color: #2f3a5f; cursor: pointer; list-style: none; gap: 6px; }
.gw-fold summary::-webkit-details-marker { display: none; }
.gw-fold summary::before { content: '›'; display: inline-block; transform: rotate(90deg); font-size: 16px; color: #495057; width: 12px; }
.gw-fold:not([open]) summary::before { transform: none; }
.gw-mini { margin-left: auto; height: 26px; padding: 0 10px; border: 0; border-radius: 4px; background: #405189; color: #fff; font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.gw-type { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13px; cursor: pointer; }
.gw-type.all { border-bottom: 1px solid #eef0f4; margin-top: 8px; }
.gw-type input { width: 15px; height: 15px; accent-color: #405189; }
.gw-sw { width: 13px; height: 13px; border-radius: 2px; }
.gw-google-off { color: #d9534f; margin: 10px 0 8px; font-size: 13px; }
.gw-google { width: 100%; height: 34px; border: 0; border-radius: 4px; background: #405189; color: #fff; font-size: 14px; margin-bottom: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.gw-google.sync { background: #7c85ad; }
.gw-main { display: flex; flex-direction: column; min-width: 0; padding: 0 18px 18px; }
.gw-bar { display: flex; align-items: center; gap: 6px; padding: 14px 6px 10px; }
.gw-panel { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #e6e9f3; color: #405189; cursor: pointer; margin-right: 18px; }
.gw-nav { width: 34px; height: 34px; border: 0; background: none; font-size: 22px; color: #495057; cursor: pointer; border-radius: 50%; }
.gw-nav:hover { background: #e9ebf2; }
.gw-today { height: 36px; padding: 0 22px; border: 1px solid #e3e6ed; border-radius: 18px; background: #fff; font-weight: 700; cursor: pointer; margin: 0 6px; }
.gw-title { margin: 0 0 0 24px; font-size: 22px; font-weight: 700; color: #2f3a5f; padding: 0 28px 4px; border-bottom: 1px solid #e3e6ed; white-space: nowrap; }
.gw-bar > * { flex-shrink: 0; }
.gw-today { white-space: nowrap; }
.gw-cal { overflow: hidden; }
.gw-views { display: flex; gap: 4px; padding: 4px; border-radius: 22px; background: #eceef4; }
.gw-views button { min-width: 56px; height: 34px; border: 0; border-radius: 18px; background: none; color: #495057; cursor: pointer; font-size: 14px; }
.gw-views button.on { background: #405189; color: #fff; font-weight: 700; }
.gw-body { flex: 1; min-height: 0; background: #fff; border-radius: 8px; box-shadow: 0 1px 2px #38414a26; overflow-y: auto; overflow-x: hidden; }
@media (max-width: 1400px) { .gw-cal { grid-template-columns: 300px minmax(0, 1fr); } .gw-title { margin-left: 10px; padding: 0 14px 4px; font-size: 20px; } .gw-panel { margin-right: 8px; } .gw-views button { min-width: 46px; } }
.gw-month { display: flex; flex-direction: column; height: 100%; min-height: 640px; }
.gw-dow, .gw-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.gw-dow div { text-align: center; padding: 12px 0; font-weight: 600; color: #6c757d; border-bottom: 1px solid #eef0f4; border-right: 1px solid #f3f4f7; }
.gw-dow .sun { color: #c0392b; } .gw-dow .sat { color: #405189; }
.gw-weeks { flex: 1; display: grid; grid-template-rows: repeat(6, minmax(100px, 1fr)); }
.gw-day { border-right: 1px solid #f0f1f5; border-bottom: 1px solid #f0f1f5; padding: 8px 6px; cursor: pointer; min-width: 0; overflow: hidden; }
.gw-day:hover { background: #fafbfd; }
.gw-num { display: inline-grid; place-items: center; min-width: 26px; height: 26px; font-weight: 700; color: #2f3a5f; }
.gw-day.sun .gw-num { color: #c0392b; } .gw-day.sat .gw-num { color: #2f3a5f; }
.gw-day.other { background: #fcfcfd; } .gw-day.other .gw-num { color: #c8ccd6 !important; font-weight: 400; }
.gw-day.today { background: #e9eaee; } .gw-day.today .gw-num { background: #405189; color: #fff !important; border-radius: 50%; }
.gw-evs { display: grid; gap: 3px; margin-top: 4px; }
.gw-ev { display: block; width: 100%; text-align: left; border: 0; border-radius: 3px; background: var(--c, #405189); color: #fff; font-size: 12px; padding: 3px 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.gw-ev.done { opacity: .78; }
.gw-ev:hover { filter: brightness(1.1); }
.gw-more { border: 0; background: none; color: #405189; font-size: 11px; text-align: left; cursor: pointer; padding: 0 4px; }
.gw-tgrid { display: flex; flex-direction: column; min-width: 0; }
.gw-th, .gw-trow { display: grid; grid-template-columns: 64px repeat(var(--n), minmax(0, 1fr)); }
.gw-th div { text-align: center; padding: 10px 0; font-weight: 600; color: #495057; border-bottom: 1px solid #eef0f4; }
.gw-th .today { color: #405189; } .gw-th .sun { color: #c0392b; }
.gw-trow > div { border-right: 1px solid #f0f1f5; border-bottom: 1px solid #f0f1f5; min-height: 34px; padding: 2px 3px; display: grid; gap: 2px; align-content: start; }
.gw-trow.allday > div { background: #fafbfd; min-height: 40px; }
.gw-tl { font-size: 11px; color: #878a99; text-align: right; padding-right: 6px !important; }
.gw-trow > div[data-day] { cursor: pointer; }
.gw-list { padding: 8px 16px 16px; }
.gw-list-day { margin-top: 10px; border: 1px solid #eef0f4; border-radius: 6px; overflow: hidden; }
.gw-list-head { display: flex; justify-content: space-between; background: #f3f3f9; padding: 8px 12px; color: #2f3a5f; }
.gw-list-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-top: 1px solid #f0f1f5; cursor: pointer; font-size: 13px; }
.gw-list-row:hover { background: #f5f6f8; }
.gw-list-time { width: 110px; color: #6c757d; }
.gw-dot { width: 10px; height: 10px; border-radius: 50%; }
.gw-list-type { width: 70px; color: #878a99; font-size: 12px; }
.gw-list-title { flex: 1; font-weight: 600; } .gw-list-title.done { color: #999; text-decoration: line-through; }
.gw-list-place { color: #878a99; font-size: 12px; }
.gw-list-empty { text-align: center; color: #878a99; padding: 60px 0; }

/* 일정 등록 */
.gw-sform, .gw-types-form { padding: 6px 20px 18px; }
.gw-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gw-dt { display: flex; gap: 6px; }
.gw-dt input { flex: 1; min-width: 0; height: 38px !important; }
.gw-by { color: #878a99; font-size: 12px; margin: 10px 0 0; }
.gw-types-form .gw-table input, .gw-types-form .gw-table select { width: 100%; height: 30px !important; border: 1px solid #e3e6ed; border-radius: 4px; padding: 0 6px; }
.gw-types-form .gw-table td { overflow: visible; }
.gw-types-form .sub { color: #878a99; font-size: 12px; margin: 8px 0 0; }

@media (max-width: 900px) {
  .gw-cal { grid-template-columns: minmax(0, 1fr); }
  .gw-side { display: none; }
  .gw-cal.nopanel .gw-side { display: none; }
  .gw-title { margin-left: 8px; padding: 0 8px; font-size: 17px; }
  .gw-form { grid-template-columns: 1fr; }
  .gw-form-side { border-left: 0; border-top: 1px solid #eef0f4; }
}

/* ── 삭제 버튼: 글씨가 보이도록 (다른 화면 스타일이 빨간 바탕을 입혀도 흰 바탕·빨간 글씨/빨간 바탕·흰 글씨 유지) */
.gw-btn.danger { background: #fff !important; color: #b02a37 !important; border: 1px solid #b02a37 !important; }
.gw-btn.danger:hover { background: #b02a37 !important; color: #fff !important; }
.gw-btn.danger .fa, .gw-obtn.red .fa { color: inherit !important; }

/* ── 일정 상세보기 (다원텍 화면) */
#dialog.gw-sview-dialog { width: min(680px, 96vw); }
#dialog.gw-sview-dialog[open] { display: flex; flex-direction: column; max-height: 92vh; resize: both; overflow: hidden; min-width: 480px; min-height: 360px; }
#dialog.gw-sview-dialog #dialogBody { flex: 1; min-height: 0; overflow: hidden; }
.gw-sview { display: flex; flex-direction: column; height: 100%; max-height: calc(92vh - 50px); }
.gw-sview-body { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 18px 14px; background: #fff; }
.gw-sview-title { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; font-size: 16px; font-weight: 700; color: #212529; cursor: pointer; }
.gw-sview-title input { width: 16px; height: 16px; accent-color: #405189; cursor: pointer; flex-shrink: 0; }
.gw-sview-title.done span { text-decoration: line-through; color: #878a99; }
.gw-sview-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.gw-sview-table th { width: 90px; background: #f3f3f9; color: #343a40; font-weight: 700; text-align: left; padding: 10px 10px; border: 1px solid #e9ebec; vertical-align: top; white-space: nowrap; }
.gw-sview-table td { padding: 10px 10px; border: 1px solid #e9ebec; color: #212529; line-height: 1.55; word-break: break-all; }
.gw-badge { display: inline-block; padding: 4px 10px; border-radius: 3px; color: #fff; font-size: 12px; }
.gw-rep { margin-left: 6px; color: #405189; font-size: 12px; }
.gw-pre { white-space: pre-wrap; }
.gw-sview-foot { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #f3f3f9; border-top: 1px solid #e9ebec; }
.gw-obtn { height: 32px; padding: 0 10px; border: 1px solid #405189; border-radius: 3px; background: #fff; color: #405189; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.gw-obtn:hover { background: #405189; color: #fff; }
.gw-obtn.red { border-color: #a9413b; color: #a9413b; }
.gw-obtn.red:hover { background: #a9413b; color: #fff; }
.gw-fbtn { height: 32px; padding: 0 12px; border: 1px solid #405189; border-radius: 3px; background: #405189; color: #fff; font-size: 13px; cursor: pointer; }
.gw-fbtn:hover { background: #334071; }
.gw-lbtn { height: 32px; padding: 0 12px; border: 1px solid #e3e6ed; border-radius: 3px; background: #fff; color: #212529; font-size: 13px; cursor: pointer; }
.gw-lbtn:hover { background: #f3f3f9; }

/* ── 새 일정 등록 / 일정 수정 (왼쪽 항목명 + 입력) */
#dialog.gw-sform-dialog { width: min(560px, 96vw); }
#dialog.gw-sform-dialog[open] { display: flex; flex-direction: column; max-height: 94vh; resize: both; overflow: hidden; min-width: 460px; min-height: 400px; }
#dialog.gw-sform-dialog #dialogBody { flex: 1; min-height: 0; overflow: hidden; }
.gw-sform2 { display: flex; flex-direction: column; height: 100%; max-height: calc(94vh - 50px); }
.gw-sform2-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px 18px; background: #fff; }
.gw-frow { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: start; gap: 0 14px; margin-bottom: 7px; }
.gw-flabel { padding-top: 8px; font-size: 13px; color: #495057; }
.gw-fctl { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; min-width: 0; }
.gw-in { width: 100%; height: 32px !important; min-height: 32px; border: 1px solid #dcdfe6; border-radius: 3px; padding: 4px 8px; font-size: 13px; background: #fff; color: #212529; font-family: inherit; box-sizing: border-box; }
textarea.gw-in { height: auto !important; resize: vertical; padding: 6px 8px; line-height: 1.5; }
.gw-in:focus { outline: 0; border-color: #405189; box-shadow: 0 0 0 2px #4051891f; }
select.gw-in { appearance: none; -webkit-appearance: none; padding-right: 26px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='%23495057' d='M0 0h10L5 6z'/%3E%3C/svg%3E") right 10px center/8px 5px no-repeat; }
.gw-in:disabled { background-color: #e9ecef; color: #495057; }
.gw-w385 { width: 192px; } .gw-w210 { width: 132px; } .gw-w200 { width: 104px; } .gw-w270 { width: 135px; } .gw-w215 { width: 108px; }
.gw-time { padding-right: 26px !important; background: #fff url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 512 512%27%3E%3Cpath fill=%27%235c5f66%27 d=%27M256 0a256 256 0 1 1 0 512A256 256 0 1 1 256 0zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z%27/%3E%3C/svg%3E") right 8px center/13px 13px no-repeat; }
.gw-time:disabled { background-color: #e9ecef; }
.gw-time::-webkit-calendar-picker-indicator { display: none !important; }
.gw-tdot { width: 17px; height: 17px; border-radius: 50%; border: 1px solid #0000001f; margin-left: 4px; }
.gw-gcal { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #212529; cursor: pointer; margin-left: 2px; }
.gw-gcal input { width: 13px; height: 13px; accent-color: #405189; }
.gw-toggle { position: relative; display: inline-block; width: 22px; height: 12px; margin-top: 8px; cursor: pointer; }
.gw-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.gw-toggle span { position: absolute; inset: 0; border-radius: 12px; background: #ced4da; transition: .2s; }
.gw-toggle span::after { content: ''; position: absolute; left: 2px; top: 2px; width: 8px; height: 8px; border-radius: 50%; background: #fff; transition: .2s; }
.gw-toggle input:checked + span { background: #405189; }
.gw-toggle input:checked + span::after { left: 12px; }
.gw-alarms { display: contents; }
.gw-alarm { display: inline-flex; align-items: center; gap: 4px; width: 100%; }
.gw-alarm-del { width: 24px; height: 24px; border: 0; background: none; color: #a9413b; font-size: 17px; cursor: pointer; }
.gw-alarm-add { height: 22px; padding: 0 6px; border: 1px solid #6c757d; border-radius: 3px; background: #fff; color: #6c757d; font-size: 11px; cursor: pointer; display: inline-flex; align-items: center; gap: 3px; margin-top: 4px; }
.gw-alarm-add:hover { background: #f3f3f9; }
.gw-rep-end { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #495057; }
.gw-rep-end[hidden] { display: none; }
.gw-sform2-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 14px; background: #f3f3f9; border-top: 1px solid #e9ebec; }

/* ── 일정 끌기 (이동 · 양쪽 끝 기간 조절) */
.gw-ev { position: relative; touch-action: none; user-select: none; }
.gw-h { position: absolute; top: 0; bottom: 0; width: 7px; cursor: ew-resize; z-index: 1; }
.gw-h.l { left: 0; border-radius: 3px 0 0 3px; }
.gw-h.r { right: 0; border-radius: 0 3px 3px 0; }
.gw-ev:hover .gw-h { background: #ffffff40; }
.gw-ev.gw-dragging { opacity: .45; }
.gw-ghost { position: fixed; z-index: 10000; pointer-events: none; opacity: .9; box-shadow: 0 4px 12px #0000003a; }
body.gw-moving, body.gw-moving * { cursor: grabbing !important; }
body.gw-resizing, body.gw-resizing * { cursor: ew-resize !important; }
.gw-drop-on { background: #dfe5f6 !important; outline: 1px dashed #405189; outline-offset: -2px; }
.gw-drop-bad { background: #f8dcda !important; outline-color: #a9413b; }

/* ── 여러 날 일정: 이어진 막대 (주마다 한 줄, 겹치면 아래 줄) */
.gw-week { position: relative; }
.gw-bars { position: absolute; left: 0; right: 0; top: 36px; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); grid-auto-rows: 22px; row-gap: 3px; pointer-events: none; padding: 0 4px; column-gap: 0; }
.gw-bars .gw-ev { pointer-events: auto; margin: 0 3px; height: 22px; line-height: 16px; border-radius: 4px; }
.gw-bars .gw-ev.cont-l { margin-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.gw-bars .gw-ev.cont-r { margin-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.gw-bars .gw-ev.done { opacity: .75; }
.gw-bars .gw-more { pointer-events: auto; align-self: center; }
.gw-ev .gw-h { background: #ffffff00; }
.gw-ev:hover .gw-h.r, .gw-ev:hover .gw-h.l { background: #ffffff59; }
.gw-trow.allday { position: relative; }
.gw-trow.allday > div[data-day] { min-height: calc(var(--lanes, 1) * 25px + 8px); }
.gw-trow.allday .gw-bars { left: 64px; top: 4px; padding: 0; }
body.gw-moving .gw-bars .gw-ev, body.gw-resizing .gw-bars .gw-ev { pointer-events: none; }
.gw-bars .gw-ev { width: auto; min-width: 0; padding: 3px 8px; }
.gw-weeks { grid-template-rows: repeat(6, minmax(122px, 1fr)); }
