

:root {
  /* Fonts */
  --font-family1: 'Noto Sans KR', 'Noto Sans CJK KR', 'Roboto', '나눔고딕', '맑은 고딕', sans-serif;

   --font-familyback:  -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
   --font-family-mono: 'Consolas', 'Monaco', 'Courier New', monospace;
    
   --font-family:   "Malgun Gothic", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", sans-serif;
  --font-size-base: 13px;
  --font-size-medium: 14px;
  --font-size-small: 12px;
  --font-size-large: 16px;
  --letter-spacing: -0.5px;
  
  /* Colors - Text */
  --color-text: #333333;
  --color-text-dark: #383838;
  --color-text-darker: #3d3d3d;
  --color-text-light: #737070;
  --color-text-lighter: #999999;
  --color-text-strong: #333333;
  --color-text-link: #787878;
  --color-text-link-strong: #203923;
  --color-text-blue: #007bff;
  
  /* Colors - Border */
  --color-border: #e0e0e0;
  --color-border-light: #e7e7e7;
  --color-border-medium: #ddd;
  --color-border-dark: #ddd;
  --color-border-darker: #565656;
  --color-border-input: #ced4da;
  --color-border-table: #e0e0e0;
  
  /* Colors - Background */
  --color-bg-white: #ffffff;
  --color-bg-gray: #f3f4f6;
  --color-bg-light: #f8f9fa;
  --color-bg-lighter: #fafafa;
  --color-bg-input: #e9e9e9;
  --color-bg-modal: #f8f8f8;
  --color-bg-hover: #f8f9fa;
  --color-bg-selected: #f5f7fb;
  
  /* Colors - Primary */
  --color-primary: #1976d2;
  --color-primary-hover: #1565c0;
  --color-primary-dark: #565656;
  
  /* Colors - Accent */
  --color-accent-green: #4caf50;
  --color-accent-blue: #1976d2;
  --color-accent-red: #da1530;
  --color-accent-gray: #6c757d;
  --color-accent-dark-gray: #495057;
  
  /* Colors - Focus */
  --color-focus-border: #4a90e2;
  --color-focus-shadow: rgba(74, 144, 226, 0.1);
  
  /* Spacing */
  --border-radius: 5px;
  --border-radius-medium: 5px;
  --border-radius-large: 8px;
  --transition-speed: 0.2s;
  
  /* Sizes */
  --button-height: 30px;
   --button-height-small: 25px;
  --button-height-large: 31px;
  --button-height-xl: 40px;
  --input-height: 31px;
  --input-selheight: 31px;
  --input-height-small: 27px;



  --modal-title-fontsize: 18px;
}

html {
  scroll-behavior: smooth;
}

/* ============================================
   Modal
   ============================================ */

   
.fade.in {

    opacity: 0.6;
    background: #121212;
}

.fade {

    opacity: 0;

    -webkit-transition: opacity .15s linear;

    -moz-transition: opacity .15s linear;

    -o-transition: opacity .15s linear;

    transition: opacity .15s linear;

}



.sys_modal-backdrop.in {

    opacity: .5;

    filter: alpha(opacity=50);

}

.sys_modal-backdrop.fade {

    opacity: 0;

    filter: alpha(opacity=0);

}

 
 



.sys_modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1040;
  background-color: #8d8d8d;
  opacity: 0;
  transition: opacity var(--transition-speed) linear;
}

.sys_modal-backdrop.in {
  opacity: 0.5;
}










    .sys_toast-container {
            position: fixed;
            top: 100px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 9999;
            pointer-events: none;
            width: 100%;
            max-width: 400px;
        }

        /* 개별 토스트 메시지 */
        .sys_toast-message {
            background: white;
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 12px 40px 12px 16px;
            margin-bottom: 5px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 14px;
            line-height: 1.4;
            color: #333;
            pointer-events: auto;
            position: relative;
            
            /* 애니메이션 초기 상태 */
            opacity: 0;
            transform: translateY(-20px);
            transition: all 0.3s ease-out;
        }

        /* 토스트 나타나는 애니메이션 */
        .sys_toast-message.show {
            opacity: 1;
            transform: translateY(0);
        }

        /* 토스트 사라지는 애니메이션 */
        .sys_toast-message.hide {
            opacity: 0;
            transform: translateY(-20px);
            transition: all 0.3s ease-in;
        }

        /* 메시지 텍스트 */
        .sys_toast-text {
            flex: 1;
            padding-right: 8px;
        }

        /* X 버튼 */
        .sys_toast-close {
            position: absolute;
            right: 8px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            font-size: 18px;
            color: #999;
            cursor: pointer;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 4px;
            transition: all 0.2s ease;
        }

        .sys_toast-close:hover {
            background: #f5f5f5;
            color: #666;
        }

        
tr {
    transition: background .1s;
}


.sys_modal-content {
    position: relative;
    background-color: var(--color-bg-white);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-large);
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
    background-clip: padding-box;
    outline: 0;
}
.__sys_proj_modal {
     position: fixed;
    top: 20%;              /* 위치 조절 */
    left: 50%;
    transform: translate(-50%, 0);
    background: #fdf6e3;
    border: 1px solid #c8b89a;
    border-radius: 6px;
    width: 300px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 11119999;
    
    overflow: hidden;
}




.sys_modal-header {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d5a9e 100%);
  color: #fff;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  letter-spacing: 0.02em;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 2px 8px rgba(30,58,95,0.15);
}

.sys_modal-msg-header {
  background: #f8f8fa;
  border-radius: 10px 10px 0 0;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ebebf0;
}

/* =====================
   타이틀
===================== */
.sys_modal-title {
  margin: 0;
  font-family: var(--font-family);
  font-size: var(--modal-title-fontsize);
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.sys_modal-alerttitle {
  margin: 0;
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* =====================
   닫기 버튼
===================== */
.__sys_close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.15s;
  line-height: 1;
}
.__sys_close:hover {
  background: rgba(255,255,255,0.3);
}

.__sys_msg-close {
  position: absolute;
  right: 14px;
    top: 20px;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
  border: none;
  background: #f0f0f5;
  color: #71717a;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.15s;
}
.__sys_msg-close:hover {
  background: #e4e4ec;
  color: #3f3f46;
}

/* =====================
   바디
===================== */
.sys_modal-body {
  padding: 16px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #fff;
}

.sys_modal-body .Sys_form_search_out_bord {
  background: #fafafa;
  border-radius: 8px;
  padding: 10px;
  border: 1px solid #e8e8ed;
}

.sys_modal-body .Sys_panel {
  background: #fafafa;
  border-radius: 8px;
  padding: 10px;
}

.sys_modal_body_scbody {
  height: 70vh;
  overflow: auto;
}

.__Sys_modal_msg_content {
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: var(--letter-spacing);
  line-height: 1.6;
  color: var(--color-text);
  text-align: left;
  padding: 4px 0;
}

/* =====================
   푸터
===================== */
.sys_modal-footer {
  padding: 20px 16px;
  border: none;
  display: flex;
  justify-content: center;
  gap: 8px;
  background: #fafafa;
  border-top: 1px solid #ebebf0;
  border-radius: 0 0 10px 10px;
}

/* =====================
   버튼 공통
===================== */
.__Sys_modal_ok,
.__Sys_modal_cancel {
  min-width: 80px;
  height: 30px;
  padding: 0 16px;
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: normal;
  transition: all var(--transition-speed) ease;
  letter-spacing: 0.01em;
}


.__Sys_modal_close {
  min-width: 80px;
  height: 30px;
  padding: 0 16px;
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: normal;
  transition: all var(--transition-speed) ease;
  letter-spacing: 0.01em;
      background: #fff;
    color: #52525b;
    border: 1px solid #d4d4d8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    
}

.__Sys_modal_ok {
  background: linear-gradient(135deg, #1e3a5f, #2d5a9e);
  color: #fff;
  box-shadow: 0 2px 6px rgba(30,58,95,0.25);
}
.__Sys_modal_ok:hover {
  background: linear-gradient(135deg, #162e4d, #244d8a);
  box-shadow: 0 4px 10px rgba(30,58,95,0.35);
  transform: translateY(-1px);
}

.__Sys_modal_cancel {
  background: #fff;
  color: #52525b;
  border: 1px solid #d4d4d8;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.__Sys_modal_cancel:hover {
  background: #f4f4f6;
  border-color: #a1a1aa;
  transform: translateY(-1px);
}


/* ====== 데모용 ====== */
.modal-wrap {
  background: #fff;
  border-radius: 10px;
  width: 320px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  overflow: hidden;
}
.demo-label { font-size: 11px; color: #888; margin-bottom: 8px; }