@charset "UTF-8";
/* =======================================================================================================================
 *  Urero Portal Manager Custom CSS (urero_portal_nmg.css)
 *  작성규칙: {기준속성, 크기속성, 위치속성, 라인속성, 서체속성, Etc속성, 백그라운드속성}
 * ======================================================================================================================= */

/* ========================================
   1. 관리자 테마 변수 (Theme Variables)
   ======================================== */
:root {
    --mng-theme-primary: var(--theme-color-primary, #043f31);
    --mng-theme-primary-hover: var(--theme-color-secondary, #065f4a);
    --mng-theme-bg-gray: var(--theme-bg-grey, #f8f9fa);
    --mng-theme-line-gray: var(--theme-line-primary, #e9ecef);
    --mng-theme-border-gray: #cbd5e1;
    --mng-theme-text-dark: #1e293b;
    --mng-theme-text-muted: #555555;
    --mng-theme-link-blue: #2563eb;
}

/* ========================================
   1-1. JSTree 커스텀 SVG 아이콘 공통 속성
   ======================================== */
.tree-icon-root,
.tree-icon-company,
.tree-icon-dept,
.tree-icon-role,
.tree-icon-group {
    background-position: center !important;
    background-size: contain !important;
}

.tree-icon-root {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%230054FF" width="18px" height="18px"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.53c-.26-.81-1-1.4-1.9-1.4h-1v-3c0-.55-.45-1-1-1h-6v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.4z"/></svg>') !important;
}

.tree-icon-company {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FF9800" width="18px" height="18px"><path d="M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8v10zm-2-8h-2v2h2v-2zm0 4h-2v2h2v-2z"/></svg>') !important;
}

.tree-icon-dept {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%234CAF50" width="18px" height="18px"><path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"/></svg>') !important;
}

.tree-icon-role {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%237c3aed" width="18px" height="18px"><path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"/></svg>') !important;
}

.tree-icon-group {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%230284c7" width="18px" height="18px"><path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"/></svg>') !important;
}

/* 🏷️ 역할 관리 JSTree 전용 역할구분 뱃지 스타일 */
.role-badge-role,
.role-badge-group {
    display: inline-block;
    padding: 1px 5px;
    margin-right: 5px;
    font-size: 10px;
    font-weight: 700;
    line-height: 13px;
    border-radius: 3px;
    vertical-align: middle;
    letter-spacing: 0.5px;
}

.role-badge-role {
    background-color: #f5f3ff;
    color: #7c3aed;
    border: 1px solid #ddd6fe;
}

.role-badge-group {
    background-color: #f0f9ff;
    color: #0284c7;
    border: 1px solid #bae6fd;
}

/* ========================================
   2. 포틀릿 관리자 검색 폼 및 헤더 공통 스타일
   ======================================== */
.search_form td.search_cond_cell {
    padding-left: 10px;
    text-align: left;
}

.search_form .search_item_group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 20px;
}

.search_form .search_item_label {
    margin-right: 6px;
    font-weight: 500;
}

.search_form .search_input_name {
    max-width: 200px;
}

.search_form .search_radio_group {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.search_form .search_radio_label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.search_form .search_select_cond {
    width: 120px;
    vertical-align: middle;
}

.search_form .search_date_range_group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search_form .search_date_input {
    width: 130px;
    vertical-align: middle;
}

.title_area .search_fright_flex_group {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========================================
   3. 포틀릿 관리자 목록 및 트리 레이아웃 스타일
   ======================================== */
.mng_title_flex_box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn_toggle_tree {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    border-radius: 4px;
    border-color: var(--mng-theme-primary) !important;
    background-color: var(--mng-theme-primary) !important;
    cursor: pointer;
}

.btn_toggle_tree_icon {
    font-family: sans-serif;
    font-size: 18px;
    line-height: 1;
    color: #ffffff;
}

.grid_total_cnt {
    margin-left: 5px;
    font-size: 14px;
    font-weight: normal;
    color: var(--mng-theme-text-muted);
}

.search_fright_flex_group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.search_fright_flex_group .btn-box.flex {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mng_select_record_count {
    height: 28px !important;
    line-height: 26px !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.mng_layout_table {
    width: 100%;
    height: auto;
    padding: 2px 0;
    border: 1px solid #ddd;
    background: #ffffff;
    border-radius: 8px;
    box-sizing: border-box;
}

.mng_left_tree_td {
    width: 350px;
    height: 510px;
    vertical-align: top;
}

.mng_left_tree_toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 4px;
    margin-bottom: 4px;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid var(--mng-theme-line-gray);
    background-color: var(--mng-theme-bg-gray);
}

.mng_left_tree_btn {
    width: auto;
    min-width: 60px;
    padding: 0 6px;
    white-space: nowrap;
}

.mng_left_tree_container {
    overflow-y: auto;
    width: 340px;
    height: 460px;
}

.mng_split_divider_td {
    width: 20px;
    border-color: #ffffff;
    border-right: 1px solid #ddd;
}

.mng_right_grid_td {
    padding: 10px;
    border-top: 0;
    vertical-align: top;
    height: 100%;
}

.mng_grid_container {
    height: 100%;
    min-height: 510px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mng_grid_container .paging_area {
    margin-top: auto;
    padding-top: 10px;
}

.js-grid-prtlet-link {
    font-weight: 500;
    color: var(--mng-theme-link-blue);
    text-decoration: underline;
}

/* ========================================
   4. 포틀릿 등록/수정 팝업 스타일
   ======================================== */
.mng_pop_readonly_input {
    background-color: #f4f4f4;
}

.mng_pop_relative_wrap {
    position: relative;
}

.mng_pop_dup_result {
    white-space: nowrap;
    font-size: 12px;
    margin-left: 8px;
    font-weight: bold;
    color: #ef4444;
    /* 기본 중복/오류 시 빨간색 */
}

/* HTMX 트리거 이벤트 및 파싱 성공 시 파란색 적용 */
.mng_pop_dup_result.success,
.mng_pop_dup_result_success {
    color: #2563eb;
}

.mng_pop_category_flex {
    display: flex;
    gap: 5px;
}

.mng_pop_col_full {
    width: 100%;
}

.mng_pop_flex_fill {
    flex: 1;
}

.mng_pop_btn_portlet_search {
    width: 72px;
}

.mng_pop_json_toggle_row {
    text-align: right;
    padding: 5px 0;
    border: none;
}

.mng_pop_json_toggle_link {
    font-size: 11px;
    color: var(--mng-theme-link-blue);
    text-decoration: underline;
}

.mng_pop_monospace_input {
    font-family: monospace;
}

.mng_pop_btn_select {
    width: 80px;
}

.mng_pop_textarea_no_resize {
    resize: none;
}

.mng_pop_checkbox_group {
    display: flex;
    gap: 16px;
    align-items: center;
}

.mng_pop_checkbox_label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.mng_pop_checkbox_label input[type="checkbox"] {
    cursor: pointer;
}

.mng_pop_empty_hint {
    color: #888888;
    font-style: italic;
    text-align: center;
    padding: 15px;
    border-top: 1px dashed #dddddd;
}

.json_editor_wrapper {
    display: flex;
    overflow: hidden;
    height: 280px;
    border-radius: 4px;
    border: 1px solid var(--mng-theme-border-gray);
    font-family: monospace;
    font-size: 13px;
    line-height: 1.5;
    background-color: #ffffff;
}

.json_line_numbers {
    overflow: hidden;
    width: 40px;
    padding: 10px 5px;
    box-sizing: border-box;
    border-right: 1px solid #e2e8f0;
    font-size: 13px;
    color: #94a3b8;
    text-align: right;
    white-space: pre;
    user-select: none;
    background-color: #f8fafc;
}

.json_textarea_editor {
    flex: 1;
    overflow-x: auto;
    overflow-y: auto;
    height: 100%;
    margin: 0;
    padding: 10px;
    box-sizing: border-box;
    border: none;
    outline: none;
    font-family: monospace;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre;
    resize: none;
    background-color: transparent;
}

.schema_builder_area {
    margin-top: 5px;
}

.schema_table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--mng-theme-border-gray);
}

.schema_table_col_20 {
    width: 20%;
}

.schema_table_col_25 {
    width: 25%;
}

.schema_table_col_15 {
    width: 15%;
}

.schema_thead_tr {
    height: 32px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

.schema_th_cell {
    padding: 2px;
    border: 1px solid #e2e8f0;
    font-size: 11px;
    font-weight: bold;
}

.schema_tr_row {
    height: 40px;
    text-align: center;
}

.schema_td_cell {
    padding: 4px;
    border: 1px solid #e2e8f0;
}

.schema_cell_input,
.schema_cell_select {
    height: 28px;
    font-size: 12px;
}

/* ========================================
   5. 레이아웃 관리 전용 스타일
   ======================================== */
.tree-use-badge {
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 4px;
    font-weight: bold;
    margin-left: 6px;
    line-height: 1.2;
    display: inline-block;
    vertical-align: middle;
}

.tree-use-badge.badge-on {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.tree-use-badge.badge-off {
    background-color: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.mng_pop_flex_wrap {
    display: flex;
    align-items: center;
    white-space: nowrap;
    gap: 6px;
}

.mng_form_toolbar {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 15px;
    flex-shrink: 0;
    margin-bottom: 12px;
    white-space: nowrap;
}

.mng_form_label {
    font-weight: bold;
    font-size: 13px;
    color: var(--mng-theme-text-dark);
    white-space: nowrap;
    word-break: keep-all;
    flex-shrink: 0;
}

.mng_form_category_display {
    font-size: 12px;
    color: var(--mng-theme-link-blue);
    font-weight: bold;
    min-width: 80px;
    white-space: nowrap;
}

.mng_empty_msg {
    text-align: center;
    padding-top: 200px;
    color: #64748b;
    font-size: 14px;
}

.mng_layout_form_container {
    height: auto;
    min-height: 560px;
}

.mng_layout_form {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.mng_layout_id_input {
    width: 120px;
    padding: 5px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 12px;
}

.mng_layout_name_input {
    flex: 1;
    padding: 5px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 12px;
    max-width: 250px;
}

.mng_layout_grid_box {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 15px;
    box-sizing: border-box;
    overflow: hidden;
    min-height: 480px;
}

.mng_layout_grid_stack {
    flex: 1;
    min-height: 400px;
}

/* ========================================
   6. 페이지 관리 및 팝업 전용 스타일
   ======================================== */
.mng_page_pop_wrap_lg {
    width: 85vw !important;
    height: 85vh;
    max-width: 1500px;
    max-height: 900px;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    margin: 0 auto;
    border-radius: 6px;
    box-sizing: border-box;
    text-align: left;
}

.mng_page_pop_wrap_md {
    width: 1180px !important;
    height: auto !important;
    max-width: 95vw;
    max-height: 85vh;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    margin: 0 auto;
    border-radius: 6px;
    box-sizing: border-box;
    text-align: left;
}

.mng_page_pop_wrap_md .pop_content {
    height: auto !important;
    max-height: none !important;
}

.mng_page_pop_wrap_sm {
    width: 450px !important;
    height: auto;
    max-height: 80vh;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    margin: 0 auto;
    border-radius: 6px;
    box-sizing: border-box;
    text-align: left;
}

.mng_page_pop_header {
    cursor: move;
    flex-shrink: 0;
}

.mng_page_pop_content_flex {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: auto;
}

.mng_page_pop_wrap_lg .pop_content {
    height: calc(100% - 60px) !important;
    max-height: none !important;
    display: flex;
    flex-direction: column;
}

.mng_page_pop_dashboard_container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border: 1px solid var(--mng-theme-border-gray);
    border-radius: 6px;
    padding: 15px;
    box-sizing: border-box;
    overflow: hidden !important;
    min-height: 0;
    height: 100%;
}

.mng_page_pop_grid_container {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-gutter: stable;
    scroll-behavior: auto !important;
    height: 100%;
}

.mng_page_pop_grid_stack {
    flex: 1;
    min-height: 100%;
    height: auto !important;
}

.mng_page_pop_form {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.mng_page_pop_toolbar {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: var(--mng-theme-bg-gray);
    border: 1px solid var(--mng-theme-border-gray);
    border-radius: 8px;
    padding: 10px 15px;
    flex-shrink: 0;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.mng_page_pop_item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mng_page_pop_item_hidden {
    display: none;
    align-items: center;
    gap: 8px;
}

.mng_page_pop_label {
    font-weight: bold;
    font-size: 13px;
    color: var(--mng-theme-text-dark);
}

.mng_page_pop_req_star {
    color: #ef4444;
}

.mng_page_pop_input_sm {
    width: 110px;
    padding: 5px 8px;
    border: 1px solid var(--mng-theme-border-gray);
    border-radius: 4px;
    font-size: 12px;
}

.mng_page_pop_input_md {
    width: 150px;
    padding: 5px 8px;
    border: 1px solid var(--mng-theme-border-gray);
    border-radius: 4px;
    font-size: 12px;
}

.mng_page_pop_input_readonly {
    width: 140px;
    padding: 5px 8px;
    border: 1px solid var(--mng-theme-border-gray);
    border-radius: 4px;
    font-size: 12px;
    background-color: #f4f4f4;
}

.mng_page_pop_btn_sub {
    padding: 0 8px;
    height: 28px;
    line-height: 26px;
    font-size: 12px;
}

.mng_page_pop_btn_action {
    height: 30px;
    line-height: 28px;
    padding: 0 10px;
    font-size: 12px;
}

.mng_page_pop_btn_group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

/* 연결 메뉴 팝업 전용 */
.mng_menu_pop_info_bar {
    margin-bottom: 15px;
    padding: 10px 15px;
    background-color: var(--mng-theme-bg-gray);
    border: 1px solid var(--mng-theme-border-gray);
    border-radius: 6px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.mng_menu_pop_info_value {
    font-size: 13px;
    color: #334155;
    margin-left: 5px;
}

.mng_page_pop_wrap_md .row {
    display: flex;
    flex-wrap: nowrap !important;
    gap: 15px;
}

.mng_menu_pop_grid_col_left {
    flex: 0 0 430px;
    width: 430px;
    padding: 0;
}

.mng_menu_pop_grid_col_right {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    padding: 0;
}

.mng_menu_pop_sub_title_area {
    padding: 5px 0;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.mng_menu_pop_sub_h3 {
    font-size: 14px;
    font-weight: bold;
    color: #222222;
    white-space: nowrap;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.mng_menu_pop_grid_box {
    height: auto !important;
    min-height: 260px;
    border-top: 1px solid #222222;
}

.mng_menu_pop_selected_text {
    font-weight: normal;
    color: var(--mng-theme-link-blue);
    margin-left: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 auto;
    min-width: 0;
    display: inline-block;
    vertical-align: bottom;
}

.mng_menu_pop_grid_col_right .mng_page_pop_item {
    flex-shrink: 0;
    display: flex;
    gap: 4px;
    white-space: nowrap;
}

.mng_menu_pop_btn_sm {
    padding: 0 8px;
    white-space: nowrap !important;
    flex-shrink: 0;
}

/* JS Formatter 태그 스타일 */
.mng_menu_link_edit_a {
    text-decoration: underline;
    color: var(--mng-theme-link-blue);
    font-weight: 500;
}

.mng_menu_link_badge_container {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
    padding: 4px 0;
}

.mng_menu_link_setting_btn {
    padding: 0 6px;
    height: 20px;
    line-height: 18px;
    font-size: 10px;
    border-radius: 4px;
    color: #475569;
    border-color: #cbd5e1;
    margin-right: 2px;
}

.mng_menu_link_badge_admin {
    display: inline-block;
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.mng_menu_link_badge_user {
    display: inline-block;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

/* ========================================
   9. 팝업 공통 너비 클래스 (mng_pop_wrap_*)
   ======================================== */
.mng_pop_wrap_450 {
    width: 450px !important;
}

.mng_pop_wrap_500 {
    width: 500px !important;
}

.mng_pop_wrap_600 {
    width: 600px !important;
}

.mng_pop_wrap_650 {
    width: 650px !important;
}

.mng_pop_wrap_1200 {
    width: 1200px !important;
}

.mng_pop_wrap_1400 {
    width: 1400px !important;
}

.mng_pop_wrap_550 {
    width: 550px !important;
}

.mng_pop_wrap_720 {
    width: 720px !important;
}

.mng_pop_wrap_850 {
    width: 850px !important;
}

.mng_pop_wrap_920 {
    width: 920px !important;
}

.mng_pop_wrap_1000 {
    width: 1000px !important;
}


/* ========================================
   10. IAM 역할/조직정보 멤버등록 팝업 전용 스타일
   ======================================== */

.mng_pop_header_move {
    cursor: move;
}

.mng_pop_content_padded {
    padding: 15px !important;
}

.mng_pop_split_table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}

.mng_pop_split_left_td {
    width: 320px;
    vertical-align: top;
    padding-right: 12px;
    border-right: 1px solid #e2e8f0;
}

.mng_pop_split_left_td_450 {
    width: 450px;
    vertical-align: top;
    padding-right: 14px;
    border-right: 1px solid #e2e8f0;
}

.mng_pop_split_right_td {
    vertical-align: top;
    padding-left: 12px;
}

.mng_pop_section_title {
    margin-bottom: 8px;
    font-weight: 600;
    color: #1e293b;
}

.mng_pop_tree_box_240 {
    width: 100%;
    height: 240px;
    overflow-y: auto;
    border: 1px solid #cbd5e1;
    padding: 6px;
    box-sizing: border-box;
    border-radius: 4px;
    background-color: #ffffff;
    margin-bottom: 8px;
}

.mng_pop_grid_box_240 {
    height: 240px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    margin-bottom: 8px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mng_pop_grid_box_240 .paging_area {
    margin-top: 2px !important;
    margin-bottom: 4px !important;
}

.mng_pop_cart_card {
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 12px;
    margin-top: 15px;
    background-color: #f8fafc;
}

.mng_pop_cart_title_area {
    margin-bottom: 8px !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}

.mng_pop_grid_box_250 {
    height: 250px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background-color: #ffffff;
}

.mng_pop_grid_box_300 {
    height: 300px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background-color: #ffffff;
}

.mng_pop_wrap_850 {
    width: 850px !important;
}

.mng_pop_tree_box_350 {
    width: 100%;
    height: 350px;
    overflow-y: auto;
    border: 1px solid #cbd5e1;
    padding: 6px;
    box-sizing: border-box;
    border-radius: 4px;
    background-color: #ffffff;
}

.mng_pop_grid_box_350 {
    height: 350px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background-color: #ffffff;
}

.mng_pop_inner_title_area {
    margin-bottom: 8px !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

/* ========================================
   10. IAM 메뉴 권한 순서 정렬 팝업 전용 스타일
   ======================================== */
.mng_pop_wrap_500 {
    width: 500px !important;
}

.mng_pop_guide_memo {
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #0369a1;
    line-height: 1.5;
}

.mng_pop_sort_list_wrap {
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background-color: #ffffff;
    min-height: 200px;
    padding: 6px;
}

/* ========================================
   11. IAM 메뉴 등록/수정 팝업 전용 스타일
   ======================================== */
.mng_pop_wrap_1000 {
    width: 1000px !important;
}

.mng_pop_input_id {
    width: 200px;
    display: inline-block;
    margin-right: 4px;
}

.mng_pop_dup_msg_area {
    margin-top: 2px;
    min-height: 18px;
}

.mng_pop_section_gap {
    margin-top: 20px;
    margin-bottom: 6px;
}

.mng_pop_url_flex {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mng_pop_url_input {
    flex: 1;
    min-width: 0;
}

.mng_pop_url_select_sm {
    width: 90px !important;
    flex-shrink: 0;
}

.mng_pop_bottom_row {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.mng_pop_bottom_col_40 {
    flex: 0 0 40%;
    min-width: 0;
}

.mng_pop_bottom_col_58 {
    flex: 1;
    min-width: 0;
}

.mng_pop_sub_title_area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px !important;
    padding-bottom: 4px !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.mng_pop_sub_toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
}

.mng_pop_toolbar_select {
    height: 26px;
    font-size: 12px;
    padding: 0 4px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
}

.mng_pop_grid_box_220 {
    height: 220px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background-color: #ffffff;
}

/* ========================================
   12. 일정 관리 (schedMgr)
   ======================================== */
.mng_sched_layout_table {
    table-layout: fixed;
    width: 100%;
}

.mng_sched_sidebar_td {
    width: 240px;
    vertical-align: top;
}

.calendar-sidebar {
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    min-height: 500px;
}

.mng_sched_regist_btn {
    width: 100%;
    margin-bottom: 20px;
}

.calendar-sidebar-title {
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
    padding-bottom: 6px;
    color: #333;
}

.filter-item {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-item label {
    cursor: pointer;
}

.badge-color {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.badge-private {
    background-color: #4b96e6;
}

.badge-dept {
    background-color: #34c38f;
}

.badge-company {
    background-color: #f1b44c;
}

.mng_sched_calendar_td {
    padding: 0;
    border-top: 0;
    vertical-align: top;
}

.calendar-wrapper {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-top: 15px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.calendar-header .nav-buttons,
.calendar-header .view-buttons {
    display: flex;
    gap: 6px;
}

.calendar-header .current-range {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

/* 뷰 버튼 활성화 스타일 */
.view-buttons button.active {
    background: var(--mng-theme-primary, #0054ff) !important;
    border-color: var(--mng-theme-primary, #0054ff) !important;
    color: #ffffff !important;
}

#calendar {
    height: 700px;
}

@media (max-width: 1024px) {

    .mng_sched_layout_table,
    .mng_sched_layout_table tbody,
    .mng_sched_layout_table tr,
    .mng_sched_layout_table td {
        display: block;
        width: 100%;
        height: auto;
        box-sizing: border-box;
    }

    .mng_split_divider_td {
        display: none !important;
    }

    .calendar-sidebar {
        min-height: 0;
    }

    .calendar-header {
        flex-wrap: wrap;
    }
}

/* ========================================
   13. 날짜 선택 팝업 (layerSelDatePop) Standalone 달력 스타일
   ======================================== */
#popSelDateLayer {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 280px;
    padding: 10px 0;
}

#popSelDateLayer .tui-datepicker {
    position: static !important;
    display: block !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    background: #ffffff !important;
    padding: 8px !important;
    z-index: 10 !important;
}

#popSelDateLayer .tui-hidden {
    display: block !important;
}

#popSelDateLayer .tui-calendar-container {
    margin: 0 auto;
}

/* ========================================
   14. 통합 게시판 관리 전용 스타일
   ======================================== */
.mng_left_bbs_td {
    width: 450px;
    height: 510px;
    vertical-align: top;
}

.mng_left_bbs_toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    margin-bottom: 10px;
}

.mng_left_bbs_container {
    overflow-y: auto;
    height: 590px;
}

.bbs_master_item {
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bbs_master_item:hover,
.bbs_master_item.active {
    border-color: var(--mng-theme-primary, #043f31);
    background: #f0f6f4;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.bbs_master_item h4 {
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
    font-size: 14px;
}

.bbs_master_item p {
    font-size: 11px;
    color: #888;
}

.option_badge {
    display: inline-block;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 2px;
    margin-right: 3px;
    background: #e2ecf7;
    color: #1a4d8c;
}

.mng_bbs_title_header {
    margin-top: 0 !important;
    min-height: 40px !important;
    margin-bottom: 10px !important;
}

.mng_bbs_title_info {
    color: var(--mng-theme-primary, #043f31);
    font-weight: bold;
    font-size: 14px;
}

.mng_bbs_desc_info {
    font-size: 12px;
    color: #777777;
}

.mng_bbs_dynamic_search_area {
    display: inline-flex;
    gap: 5px;
    align-items: center;
}

.mng_bbs_search_key_select {
    width: 100px !important;
    height: 32px !important;
}

.mng_bbs_search_val_input {
    height: 32px !important;
    padding: 0 8px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    width: 150px !important;
}

.mng_bbs_search_btn {
    height: 32px !important;
    line-height: 30px !important;
    padding: 0 12px !important;
    font-size: 12px !important;
}

/* ========================================
   15. 게시글 상세 및 댓글/첨부파일 스타일
   ======================================== */
.mng_pop_content_scrollable_750 {
    max-height: 750px;
    overflow-y: auto;
}

.comment_section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #ccc;
}

.comment_section h4 {
    font-size: 14px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 8px;
}

.comment_input_area {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    align-items: center;
}

.comment_list_box {
    margin-top: 10px;
    background: #f9f9f9;
    border: 1px solid #e9e9e9;
    border-radius: 4px;
    max-height: 180px;
    overflow-y: auto;
    padding: 10px;
}

.comment_item {
    border-bottom: 1px solid #f1f1f1;
    padding: 5px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.comment_item:last-child {
    border-bottom: none;
}

.file-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 10px;
}

.file-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
}

.file-icon {
    background: #eff6ff;
    color: #3b82f6;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.file-details {
    display: flex;
    flex-direction: column;
}

.file-name {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.file-meta {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

.file-description-box {
    display: flex;
    gap: 8px;
    align-items: center;
    flex: 1;
    margin: 0 15px;
}

.desc-input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 12px;
}

.file-actions {
    display: flex;
    gap: 6px;
}

.btn-action {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.filepond--credits {
    display: none !important;
}

/* ========================================
   16. 게시판 컬럼 설정 정렬/목록 스타일
   ======================================== */
.col_textarea {
    width: 100%;
    height: 70px;
    font-family: monospace;
    font-size: 11px;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: none;
}

.sort_list_wrapper {
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fafafa;
    overflow: hidden;
}

.sort_list_container {
    height: 212px;
    overflow-y: scroll;
    background: #fff;
    padding: 4px;
}

.sort_header {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 11px;
    padding: 4px 26px 4px 10px;
    background: #e2e8f0;
    border-bottom: 2px solid #cbd5e1;
    color: #333;
}

.sort_item_bbs {
    display: flex;
    align-items: center;
    padding: 2px 6px;
    margin-bottom: 3px;
    background: #fdfdfd;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    cursor: move;
    font-size: 11px;
}

.sort_item_bbs:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.sort_item_bbs .drag-handle {
    margin-right: 8px;
    color: #94a3b8;
    cursor: move;
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.sort_col_input {
    height: 24px;
    padding: 2px 6px;
    font-size: 11px;
    border: 1px solid #cbd5e1;
    border-radius: 3px;
    outline: none;
    background: #fff;
    color: #333;
}

.sort_col_input:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.25);
}

/* ========================================
   17. 컬럼 JSON 일괄 추가 팝업 전용 스타일
   ======================================== */
.mng_pop_guide_desc {
    margin-bottom: 8px;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.mng_textarea_height_250 {
    height: 250px !important;
}

.mng_btn_width_90 {
    width: 90px !important;
}

/* ========================================
   18. 컬럼 레이아웃 구성 팝업 전용 스타일
   ======================================== */
.layout_grid_container {
    display: flex;
    gap: 15px;
    height: 500px;
}

.layout_left_panel {
    width: 300px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.layout_right_panel {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.layout_col_list {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 6px;
    min-height: 100px;
}

.layout_grid_list {
    flex: 1;
    overflow-y: auto;
    border: 2px dashed #cbd5e1;
    background: #fdfdfd;
    padding: 10px;
    min-height: 100px;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 8px;
}

.layout_drag_item {
    padding: 8px 12px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    cursor: grab;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    box-sizing: border-box;
}

.layout_drag_item:hover {
    background: #e2e8f0;
}

#layoutColList .layout_drag_item {
    width: 100% !important;
    margin-bottom: 6px;
}

#layoutGridList .layout_drag_item[data-w="12"] {
    width: 100% !important;
}

#layoutGridList .layout_drag_item[data-w="8"] {
    width: calc(66.666% - 4px) !important;
}

#layoutGridList .layout_drag_item[data-w="6"] {
    width: calc(50% - 4px) !important;
}

#layoutGridList .layout_drag_item[data-w="4"] {
    width: calc(33.333% - 6px) !important;
}

#layoutGridList .layout_drag_item[data-w="3"] {
    width: calc(25% - 6px) !important;
}

.sortable-ghost-layout {
    opacity: 0.4;
    background: #bae6fd !important;
    border: 1px dashed #0284c7 !important;
}

.mng_pop_sub_toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    min-height: 42px;
    box-sizing: border-box;
}

/* 서브 툴바 오른쪽 정렬 유틸리티 */
.mng_pop_sub_toolbar_right {
    justify-content: flex-end !important;
}

.mng_pop_sub_title_area {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 6px !important;
    padding-bottom: 4px !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.mng_pop_sub_title_area .fleft {
    display: flex;
    align-items: center;
}

.mng_pop_sub_title_area .fright,
.mng_pop_sub_title_area .search_fright_flex_group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}

/* 100px 너비 버튼 유틸리티 */
.mng_btn_width_100 {
    width: 100px !important;
}

/* 틸(Teal) 테마 버튼 */
.btn_teal {
    background-color: #0d9488 !important;
    border-color: #0d9488 !important;
    color: #ffffff !important;
}

/* ==========================================================================
   Gemma AI 챗봇 전용 커스텀 스타일 (대화창 넓이/높이/여백 확장 및 가독성 개선)
   ========================================================================== */
.gemma_chat_container {
    overflow-y: auto;
    width: 100% !important;
    height: 550px !important;
    /* 높이를 460px에서 550px로 대폭 확장 */
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px !important;
    background-color: #fafbfc;
    box-sizing: border-box;
}

.gemma_chat_table {
    width: 100%;
    border-collapse: collapse;
}

.gemma_chat_table td {
    padding: 14px 18px !important;
    /* 조밀했던 셀 간격을 상하 14px, 좌우 18px로 대폭 확장 */
    line-height: 1.65em !important;
    /* 대화 텍스트 줄간격을 1.65로 넓혀 가독성 극대화 */
    vertical-align: top !important;
    /* 상단 수직 정렬로 레이아웃 정합성 유지 */
    border: none !important;
    /* 대화 조각 사이의 테두리 선을 완전히 제거해 깔끔한 레이아웃 연출 */
    word-break: break-all;
}

.gemma_chat_table td strong {
    font-size: 13px;
    color: #1e293b;
    display: inline-block;
    margin-bottom: 4px;
}

/* ==========================================================================
   로그인 화면 다중 데이터소스(DB) 선택 셀렉트박스 및 아이콘 스타일
   ========================================================================== */
.login_formbox .login-box select.login.db {
    width: 100%;
    height: 44px;
    padding: 0 10px 0 38px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    outline: none;
    cursor: pointer;
    box-sizing: border-box;
    appearance: auto;
}

.login_formbox .login-box select.login.db:focus {
    border-color: #222;
}

.login_formbox .login-box select.login.db+i {
    position: absolute;
    top: 50%;
    left: 10px;
    width: 24px;
    height: 24px;
    transform: translateY(-50%);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 6C4 4.34315 7.58172 3 12 3C16.4183 3 20 4.34315 20 6M4 6V12C4 13.6569 7.58172 15 12 15C16.4183 15 20 13.6569 20 12V6M4 6C4 7.65685 7.58172 9 12 9C16.4183 9 20 7.65685 20 6M4 12V18C4 19.6569 7.58172 21 12 21C16.4183 21 20 19.6569 20 18V12' stroke='%23999999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
    pointer-events: none;
}

.login_formbox .login-box select.login.db+i:after {
    content: '';
    position: absolute;
    top: 8px;
    right: -1px;
    width: 1px;
    height: 8px;
    background-color: #999;
}

.login_formbox .login-box select.login.db:focus+i {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 6C4 4.34315 7.58172 3 12 3C16.4183 3 20 4.34315 20 6M4 6V12C4 13.6569 7.58172 15 12 15C16.4183 15 20 13.6569 20 12V6M4 6C4 7.65685 7.58172 9 12 9C16.4183 9 20 7.65685 20 6M4 12V18C4 19.6569 7.58172 21 12 21C16.4183 21 20 19.6569 20 18V12' stroke='%23222222' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.login_formbox .login-box select.login.db:focus+i:after {
    background-color: #222;
}

/* ==========================================================================
   팝업 모달 하단(pop_footer) 버튼 그룹 간격 스타일
   ========================================================================== */
.pop_footer.mng_pop_footer_btn_group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pop_footer.mng_pop_footer_btn_group>div {
    display: inline-flex;
    margin: 0 2px;
}

.pop_footer.alignc>div {
    display: inline-block;
    margin: 0 4px;
}

/* ==========================================================================
   OpenSearch 통합 검색 스마트 모달 (패턴 A) 전용 스타일
   ========================================================================== */
.portal_search_modal_backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 10000;
    justify-content: center;
    align-items: flex-start;
    padding-top: 50px;
    box-sizing: border-box;
}

.portal_search_modal_content {
    background: #ffffff;
    width: 920px;
    max-width: 95vw;
    max-height: 88vh;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: portalSearchFadeIn 0.2s ease-out;
}

@keyframes portalSearchFadeIn {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 1. 모달 헤더 & 상단 검색창 */
.portal_search_modal_header {
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
}

.portal_search_modal_input_wrap {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 2px solid #0284c7;
    border-radius: 8px;
    padding: 0 4px 0 12px;
    height: 46px;
    box-sizing: border-box;
}

.portal_search_modal_input_icon {
    font-size: 16px;
    margin-right: 8px;
    color: #64748b;
    user-select: none;
}

.portal_search_modal_input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: #1e293b;
    padding: 0 8px;
    height: 100%;
}

.portal_search_modal_input::placeholder {
    color: #94a3b8;
    font-size: 14px;
}

.portal_search_modal_clear_btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-right: 6px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: #e2e8f0;
    color: #64748b;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: all 0.15s ease;
}

.portal_search_modal_clear_btn:hover {
    background-color: #cbd5e1;
    color: #0f172a;
}

.portal_search_modal_search_btn {
    background: #0284c7;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 0 18px;
    height: 36px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
    white-space: nowrap;
}

.portal_search_modal_search_btn:hover {
    background: #0369a1;
}

.portal_search_modal_close_btn {
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 18px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
}

.portal_search_modal_close_btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* 2. 서브바 (통계 요약 & 탭 필터) */
.portal_search_modal_subbar {
    padding: 10px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #64748b;
}

.portal_search_modal_count_strong {
    color: #0284c7;
    font-weight: 700;
}

.portal_search_modal_tabs {
    display: flex;
    gap: 6px;
}

.portal_search_modal_tab {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}

.portal_search_modal_tab:hover {
    border-color: #0284c7;
    color: #0284c7;
}

.portal_search_modal_tab.active {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
    font-weight: 600;
}

/* 3. 검색 결과 본문 카드 목록 */
.portal_search_modal_body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8fafc;
}

.portal_search_item_card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 18px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.portal_search_item_card:hover {
    border-color: #0284c7;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.1);
    transform: translateY(-2px);
}

.portal_search_item_top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.portal_search_item_badge {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

.portal_search_item_title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.portal_search_item_meta {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 8px;
    display: flex;
    gap: 12px;
}

.portal_search_item_snippet {
    font-size: 13px;
    line-height: 1.6;
    color: #334155;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
}

.portal_search_extra_wrap {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.portal_search_extra_badge {
    font-size: 11px;
    background: #f1f5f9;
    color: #475569;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.portal_search_highlight,
mark.search-highlight {
    background-color: #fef08a !important;
    color: #854d0e !important;
    font-weight: bold;
    padding: 1px 4px;
    border-radius: 2px;
}

.portal_search_empty {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.portal_search_empty_icon {
    font-size: 36px;
    margin-bottom: 12px;
}

/* 4. 하단 페이지네이션 */
.portal_search_modal_footer {
    padding: 12px 20px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: center;
}

.portal_search_pagination {
    display: flex;
    gap: 4px;
}

.portal_search_page_btn {
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.portal_search_page_btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.portal_search_page_btn.active {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    font-weight: bold;
}