/* HBSOL 공통 화면 수치는 FEMS main.css 및 계근관리 캡처를 기준으로 적용한다. */
@font-face{font-family:"HBSOL Icons";src:url("/fa-solid-900.woff2") format("woff2");font-weight:900;font-display:block}
@font-face{font-family:"HBSOL Brands";src:url("/fa-brands-400.woff2") format("woff2");font-weight:400;font-display:block}
@font-face{font-family:"HBSOL Roboto";src:url("/roboto-v30-regular.woff2") format("woff2");font-display:swap}
.fa,.fab{display:inline-block;font-style:normal;text-rendering:auto;line-height:1}
.fa{font-family:"HBSOL Icons";font-weight:900}.fab{font-family:"HBSOL Brands"}
:root{--accent:#454d80;--tool:#687097;--ink:#202a3d;--line:#dfe3ec;--canvas:#f1f3f6;--sidebar:clamp(225px,15.5vw,310px)}
body{font:13px/1.5 "Poppins","HBSOL Roboto","Malgun Gothic",sans-serif}
#top{height:45px;gap:13px;padding:0 5px;background:var(--accent)}
#top #toggle{width:28px;padding:0;margin-right:2px}
.hamburger{display:grid;gap:4px;justify-items:start}.hamburger i{background:#fff;border-radius:2px;width:20px;height:2px}.hamburger i:nth-child(2){width:14px}.hamburger i:nth-child(3){width:8px}
#top .logo{width:28px;height:26px;object-fit:contain;border:0;background:transparent;box-shadow:none}
.brand{font-size:17px;font-weight:400;color:white}
#top #bell{font-size:18px}#avatar{font-size:33px;color:#939aba;margin-left:6px}
#account{font-size:13px}#logout{padding:4px 10px;background:#ffffff0d!important;color:#e1e5f8!important}
#layout{height:calc(100dvh - 45px)}
#modes button{height:35px;font-size:15px}
#modes button:first-child{background:transparent;border-bottom:0;color:#888}
#modes button.active{background:#fff;border-bottom:2px solid var(--accent);color:var(--accent)}
.menu-search{padding:6px 5px 5px 2px}.menu-search input{height:29px;padding:4px 8px}
#menu{padding:5px 4px 14px 0}.group{margin-bottom:6px}
.group summary{min-height:34px;padding:5px 10px;border-width:1px;border-left-width:4px;border-radius:8px;font-size:13px;gap:7px}
.group summary::before{content:"\f054";font:900 10px "HBSOL Icons";margin-left:3px}
.group .folder{width:17px;height:17px;padding:0;display:inline-grid;place-items:center;font-size:11px}
.links{margin:6px 0 2px 8px;padding:4px 0 4px 10px;gap:1px}
.links button{padding:5px 6px 5px 13%;min-height:30px;font-size:13px}
.links .arrow{display:inline-flex;align-items:center;justify-content:center;background:none;color:var(--accent);font-size:14px;margin-right:7px}
.links .active .arrow{color:white}
#tabbar{min-height:35px;padding:2px 1px 0 4px;background:#f6f7f9}
.tab{border-radius:5px 5px 0 0;background:linear-gradient(#fdfdfd,#f0f2f5);color:#596683}
.tab button{padding:5px 10px;font-size:13px}.tab .x{font-weight:700}
#tools{gap:5px;padding:0 3px 1px 5px;border-left:1px solid var(--line)}
button{border:1px solid #c5c7cd;border-radius:5px;padding:3px 7px;background:linear-gradient(#fff,#f1f1f2)}
button.primary,#tools button.primary{background:var(--tool);border-color:#535c85;color:#fff}
#tools button{height:26px;padding:2px 6px;display:inline-flex;align-items:center;gap:5px;color:#25303b}
#tools .fa{font-size:14px}
input,select,textarea{font:inherit;border:1px solid #d1d2d8;background:white;border-radius:5px;padding:4px 6px;color:#151c2a}
select:not([multiple]){height:29px}input:not([type=file],[type=checkbox]){height:29px}
.grid-page{padding:0;margin:3px 4px 3px;background:#fff;border:1px solid var(--line)}
.grid-page .pagehead,.grid-toolbar,.grid-page .filters{display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding:5px;margin:0;background:#f6f7f9;border-bottom:1px solid var(--line);min-height:38px}
.grid-page h1,.grid-page h2{font-size:13px;font-weight:700}
.grid-page .panel{padding:0;border:0;border-radius:0;box-shadow:none}
.grid-page .panel h2{margin:0;padding:5px 8px;background:#f6f7f9;border-bottom:1px solid var(--line)}
.grid-page .form-panel form{padding:10px}
.grid-page .button-row,.grid-note{padding:5px;margin:0;color:#596683}
.grid-page .section-gap{margin:5px}
.grid-page table th,.grid-page table td{border:1px dotted #dfe3ec;border-top:0;border-left:0;height:30px;padding:4px 6px;text-align:left}
.grid-page table th{background:linear-gradient(#f7f8fa,#f1f3f6);font-weight:400;color:#202a3d;border-bottom:1px solid var(--line)}
.grid-page table td.row-number,.grid-page table th:first-child:empty{width:29px;text-align:center;background:#f4f6f9;color:#4b5875}
.grid-page tbody tr:nth-child(even){background:#fbfcff}
.grid-page tbody tr[data-id]:hover{background:#eaf0fc}
.grid-page .empty{padding:7px;color:#68748c}
.grid-page .filters label{display:inline-flex;flex-direction:row;align-items:center;font-weight:400}
.grid-page .filters select{min-width:75px}
.subtabs{display:flex;gap:4px;padding:3px 4px 0;background:#f6f7f9;border-bottom:1px solid var(--line)}
.subtabs button{min-height:31px;padding:4px 10px;border:1px solid var(--line);border-bottom:0;border-radius:5px 5px 0 0;color:#596683;background:linear-gradient(#fdfdfd,#f0f2f5)}
.subtabs button[aria-selected=true]{background:#fff;font-weight:700;color:#202a3d}
.permit-split{display:grid;grid-template-columns:minmax(215px,22%) minmax(0,1fr);gap:5px;padding:2px;min-height:calc(100% - 36px)}
.permit-split section.panel{border:1px solid #d3d6df;min-width:0}
.permit-split table th:not(:first-child),.permit-split table td:not(:first-child){text-align:center}
.permit-split section:first-child table td,.permit-split section:first-child table th{text-align:left}
.permit-split section:nth-child(2) table th:nth-child(2),.permit-split section:nth-child(2) table td:nth-child(2){text-align:left;min-width:160px}
.searchbox{position:relative;max-width:100%}.searchbox input{padding-right:24px;width:150px;max-width:100%}.searchbox span,.searchbox button{position:absolute;right:4px;top:4px;bottom:4px;border:0;background:none;color:#9299b7;padding:1px 3px;font-size:15px}
.grid-toolbar .inline{display:inline-flex;align-items:center;gap:4px;font-weight:400}
.tree-pick{background:none;border:0;text-align:left;border-radius:2px}.tree-pick .fa,.dept-row .fa{color:var(--accent)}.tree-child{padding-left:17px}.tree-pick.selected{background:#e1e7f7}
dialog{border:1px solid #bfc7dc;border-radius:5px;background:#f0f3fb;padding:5px;box-shadow:2px 2px 4px #0004}
dialog.small-dialog{width:min(400px,calc(100% - 24px))}
dialog::backdrop{background:#0003}
.dialog-head{min-height:27px;padding:0 4px 4px;border:0;color:#26334f}
.dialog-head h2{font-size:13px;font-weight:700}.dialog-head .window-icon{font-size:12px;margin-right:5px;color:var(--accent)}
.dialog-head button{border:0;padding:2px 5px;color:#596383;background:none}
#dialogBody{background:white;border:1px solid #c8cfdf;padding:10px}
#dialogBody .form{gap:6px}
#dialogBody .form label{grid-template-columns:minmax(82px,26%) minmax(0,1fr);align-items:center;text-align:right;font-weight:400}
#dialogBody .form .fields{grid-template-columns:1fr;gap:5px}
#dialogBody .form input[type=checkbox]{justify-self:start}
#dialogBody .form textarea{min-height:70px}
#dialogBody .form-actions{border-top:1px solid #d8dce5;background:#f5f6f8;margin:0 -10px -10px;padding:5px}
#dialogBody .form-actions button{min-width:70px;min-height:26px}
#entry [data-cancel]{display:none}
@media(max-width:760px){#layout{height:calc(100dvh - 45px)}#sidebar{top:45px}.brand{font-size:14px}#top{gap:7px}#avatar{display:none}.permit-split{grid-template-columns:1fr}.grid-page .filters label{flex-direction:column;align-items:start}.grid-page .table-wrap{max-width:100%}}
@media print{.grid-toolbar,.form-actions,.subtabs{display:none!important}}

#screen{display:grid;grid-template-columns:minmax(0,1fr);flex:1;min-height:0;overflow:hidden}#screen.split-horizontal{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}#screen.split-vertical{grid-template-rows:minmax(0,1fr) minmax(0,1fr)}#secondPane{display:flex;flex-direction:column;min-width:0;min-height:0;border:1px solid var(--line);margin:3px;background:white}#secondFrame{border:0;flex:1;width:100%;min-height:0}.split-rot{transform:rotate(90deg)}.embedded #top,.embedded #sidebar,.embedded #tabbar{display:none}.embedded #layout{grid-template-columns:minmax(0,1fr);height:100dvh}.note-label{display:table;padding:2px 7px;background:#fbf0d8;color:#78551d;border:1px solid #e9d5a6;border-radius:4px;margin-bottom:8px;font-size:11px}

.overview .table-wrap table{table-layout:fixed}.overview th:first-child{width:17%}.overview th:nth-child(2){width:24%}.overview th:last-child{width:15%}.overview td{overflow:hidden;text-overflow:ellipsis}.overview .issue-title{background:none;border:0;padding:0;text-align:left;display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.overview .issue-title:hover{text-decoration:underline}.small-dialog .form label{grid-template-columns:minmax(103px,30%) minmax(0,1fr)}

.period-picker{display:inline-flex;align-items:center;min-height:29px;gap:10px;background:white}.period-picker .fa{color:var(--accent);padding-left:7px;border-left:1px solid var(--line)}.chart-scroll{overflow-x:auto}.chart-scroll .graph-dense{min-width:635px}

/* FEMS EasyUI 원본 widget 스타일과 기존 표·폼 동작을 연결한다. */
button.l-btn{display:inline-flex;align-items:center;min-height:26px;padding:0 3px;background:linear-gradient(#fff,#eee);border-color:#bbb;color:#26303e}
button.l-btn .l-btn-left{display:inline-flex;align-items:center}
button.l-btn .l-btn-text{font:inherit;line-height:24px;margin:0 4px}
button.l-btn.primary,#tools button.primary{background:#687097;color:white;border-color:#535c85}
button.l-btn:hover{background:#e8ebf1;border-color:#aab1c2}
button.l-btn.primary:hover,#tools button.primary:hover{background:#555e8b;color:white}
form .form-actions button{font-weight:400}
select.fems-combo{appearance:none;border:1px solid #ccc;padding:4px 32px 4px 7px;border-radius:5px;min-height:29px;color:#212529;background:url("/fems-ui/images/combo_arrow.png") no-repeat right 6px center,linear-gradient(to left,#f3f3f3 25px,white 25px);min-width:80px;max-width:100%}
select.fems-combo:hover{border-color:#999fb8}
@supports (appearance:base-select){
  select.fems-combo,select.fems-combo::picker(select){appearance:base-select}
  select.fems-combo{padding-right:30px}
  select.fems-combo::picker-icon{display:none}
  select.fems-combo::picker(select){border:1px solid #c8ccdb;background:white;border-radius:2px;color:#212529}
  select.fems-combo option{padding:4px 8px;min-height:25px}
  select.fems-combo option:checked{background:#e3e7f4;color:#202a3d}
  select.fems-combo option:hover{background:#f1f3f7}
}
/* 모든 화면의 달력 입력: 다원텍과 같은 모양 (흰 바탕·둥근 테두리·오른쪽 남색 달력 아이콘) */
input[type=date],input[type=month]{background-color:#fff;border:1px solid #dcdfe6!important;border-radius:6px!important;padding-left:8px;padding-right:4px;color:#212529;font-variant-numeric:tabular-nums}
input[type=date]:focus,input[type=month]:focus{border-color:#405189!important;outline:0;box-shadow:0 0 0 2px #4051891f}
input[type=date]::-webkit-calendar-picker-indicator,input[type=month]::-webkit-calendar-picker-indicator{width:16px!important;height:18px!important;padding:3px 3px 3px 11px!important;margin-left:6px;border-left:1px solid #eceef3!important;cursor:pointer;opacity:1!important;filter:none!important;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23585f8e' d='M128 0c17.7 0 32 14.3 32 32V64H288V32c0-17.7 14.3-32 32-32s32 14.3 32 32V64h48c26.5 0 48 21.5 48 48v48H0V112C0 85.5 21.5 64 48 64H96V32c0-17.7 14.3-32 32-32zM0 192H448V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V192z'/%3E%3C/svg%3E") right center/15px 17px no-repeat!important}
input[type=date]::-webkit-datetime-edit,input[type=month]::-webkit-datetime-edit{padding:0}
input[type=date]{box-sizing:border-box;min-inline-size:max(132px,calc(10ch + 48px))}
/* 시간 입력: 다원텍과 같은 회색 시계 아이콘, 사용 안 함(종일)일 때 회색 바탕 */
input[type=time]{background-color:#fff;border:1px solid #dcdfe6!important;border-radius:6px!important;padding-left:8px;padding-right:4px;color:#212529}
input[type=time]:disabled{background-color:#e9ecef!important;color:#495057}
input[type=time]::-webkit-calendar-picker-indicator{width:16px!important;height:16px!important;padding:3px!important;cursor:pointer;opacity:1!important;filter:none!important;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%235c5f66' d='M256 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'/%3E%3C/svg%3E") center/15px 15px no-repeat!important}
.grid-page .datagrid-toolbar{min-height:38px;padding:5px;background:#f6f7f9;border-color:#dfe3ec}
.grid-page table.datagrid-btable{border-collapse:separate;border-spacing:0}
.grid-page .datagrid-header{position:sticky;top:0;z-index:1}
.grid-page .datagrid-header th{height:31px;background:linear-gradient(#f8f9fb,#f0f2f6);border-bottom:1px solid #dfe3ec}
.grid-page .datagrid-header .datagrid-cell{padding:0;display:block}
.grid-page td.row-number,.grid-page th:first-child:has(.datagrid-cell:empty){width:29px;text-align:center;background:#f2f4f7}
.grid-page .datagrid-row-alt{background:#f8fafc}
.grid-page .datagrid-row:hover{background:#eef2f9}
#dialogBody .dialog-button{background:#f5f6f8;border-top:1px solid #d8dce5}
#dialogBody .form-actions [type=submit],.grid-page .datagrid-toolbar [type=submit]:not(.searchbox button){min-height:26px}
.grid-page .issue-title{max-width:390px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* 계근관리 실행 화면에서 확인한 공통 표시 규격 */
:root{--accent:#405189;--tool:rgba(64,81,137,.8);--sidebar:250px}
body{font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans","Liberation Sans",Arial,sans-serif}
#top{background:#405189;height:45px;gap:14px}
#top .logo{width:28px;height:26px;display:block}
#top .brand{font-size:16px}
#modes{background:#f8f9fa}
#modes button{height:35px}
#tools button{height:25px;font-size:12px}
button.l-btn.primary,#tools button.primary{background:var(--tool);border-color:#405189}
.basis-panel .subtabs button{border-bottom:0;line-height:23px;padding-top:2px;padding-bottom:2px}
.basis-panel .grid-toolbar{padding:5px}
.basis-panel .searchbox input{width:175px}
.basis-panel td,.basis-panel th{padding:4px 6px}
.basis-panel [data-basis-row]{cursor:pointer}
.basis-panel [data-basis-row][aria-selected=true] td{background:#dce5f8}
.basis-panel .datagrid-btable{width:auto;min-width:65%}
#dialog.basis-dialog{width:min(470px,calc(100% - 24px))}
#dialog.basis-dialog .form label{grid-template-columns:110px minmax(0,1fr)}
#dialog.basis-dialog .form-actions button{min-height:26px}

@media(max-width:760px){#top .brand{font-size:14px}}

@media(min-width:761px){body:not(.phone-view):not(.embedded) .toolbar-duplicate{display:none!important}}
/* 모든 콤보박스 글자 검색 목록 (combo.js) */
.hb-combo-pop{position:fixed;z-index:20000;background:#fff;border:1px solid #bfc9df;border-radius:6px;box-shadow:0 6px 18px #26304b33;max-width:min(460px,90vw);font-size:13px;overflow:hidden}
.hb-combo-list{max-height:260px;overflow:auto;padding:3px 0}
.hb-combo-item{padding:6px 10px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#212529}
.hb-combo-item b{color:#405189;background:#fff3c4}
.hb-combo-item.sel{background:#edf0f8;font-weight:600}
.hb-combo-item.on,.hb-combo-item:hover{background:#dfe5f6}
.hb-combo-empty{padding:10px;color:#878a99;text-align:center}

.hb-combo-inline{position:fixed!important;z-index:20001;box-sizing:border-box!important;margin:0!important;min-width:0!important;min-height:0!important;max-width:none!important;background:#fff!important;color:#212529!important;font:inherit!important;font-size:13px!important;border:1px solid #8091b9!important;border-radius:4px 0 0 4px!important;padding:0 6px!important;outline:0!important}
.hb-combo-inline::placeholder{color:#646b7c;opacity:1}
