/* ==========================================================================
   jmt_theme_overrides.css — jmt_theme.css(seongnam 이식분) 위에 얹는 jmt 전용 보정
   jmt_theme.css 는 seongnam 원본에서 생성한 파일이라 직접 고치지 말고 여기서 덮어쓴다.
   ========================================================================== */

/* --- 상단바: 로고(CI 빈 이미지) + 회사명 ------------------------------------ */
#base_logo_div {
    gap: 10px;
}
#base_logo_div #logo_img {
    max-width: 120px;
}
.jmt-brand-name {
    color: #fbf6ef;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
}
.jmt-brand-name:hover {
    color: #ffffff;
}

/* --- 상단바: 운수사 선택(어드민) — seongnam 회사 전환 알약 톤 ------------------ */
.jmt-company-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    padding: 0 14px 0 12px;
    gap: 6px;
    color: #ffe2a6;
}
.jmt-company-switch .material-symbols-outlined {
    font-size: 18px;
}
.jmt-company-switch select {
    appearance: none;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fbf6ef;
    font-size: 13px;
    font-weight: 700;
    width: 200px;
    cursor: pointer;
}
.jmt-company-switch select option {
    color: #39382f;
}

/* --- 상단바 칩 버튼 아이콘 정렬 ------------------------------------------- */
#nav .inquiry-btn,
#nav .logout-btn,
#nav .username-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
}
#nav .inquiry-btn .material-icons,
#nav .logout-btn .material-icons {
    font-size: 16px;
}
#nav .memo-btn .material-symbols-outlined {
    font-size: 20px;
}

/* --- 사이드바 그룹 아이콘 ------------------------------------------------- */
.aside_btn .ms-aside-icon {
    font-size: 20px;
    line-height: 1;
}

/* --- 표 머리글: 인라인 배경색 존중 -----------------------------------------
   테마의 th 그라디언트(background-image)가 jmt 템플릿의 인라인 background-color 를 덮어
   강조색(노랑·분홍 등)이 사라지고, 남색 제목줄은 흰 글씨만 남아 안 보였다. */
#content_div th[style*="background-color"],
.modal th[style*="background-color"] {
    background-image: none !important;
}
/* jmt 표 제목줄(인라인 남색 #002060 + 흰 글씨) = seongnam th.table_main 과 같은 차콜 제목줄 */
#content_div th[style*="#002060"],
.modal th[style*="#002060"] {
    background: #2d2d2d !important;
    background-image: none !important;
    color: #fff !important;
    font-weight: 700;
}

/* --- 메인 대시보드 상단 제목 (seongnam co-bento-header) ----------------------- */
.jmt-dash-header {
    padding: 22px 12px 14px;
    white-space: normal;
}

/* --- 가로 넘침: jmt 화면은 #content_load min-width:1400px 기준으로 만들어져 있어
   좁은 화면에서 문서 가로 스크롤로 보던 방식을 유지 (테마의 overflow-x:clip 은 오른쪽을 잘라버림) */
#main {
    overflow-x: visible !important;
}


/* --- 표 모서리 라운딩 제거 (테마의 14px 둥근 표·제목줄 → 직각) ------------------- */
.my_table_data, .my_table_data_no_child, .my_table_input,
.hu_table, .hu_table_input, .hu_table_show,
#content_div table, .modal table {
    border-radius: 0 !important;
}
#content_div table th, #content_div table td,
.modal table th, .modal table td,
#content_div table thead, #content_div table tr,
.modal table thead, .modal table tr {
    border-radius: 0 !important;
}

/* --- 미사용 메뉴(구성만 보이고 열리지 않음) — 사용 메뉴와 확실히 구분되게 연하게 ---------- */
#aside .jmt-menu-disabled > .aside_btn,
#aside .jmt-menu-disabled > .aside_btn .nav_title {
    color: #c3c0b6 !important;
    font-weight: 500 !important;
}
#aside .jmt-menu-disabled > .aside_btn .ms-aside-icon {
    color: #cfccc3 !important;
}
#aside .jmt-menu-disabled > .aside_btn:hover {
    background: rgba(255, 255, 255, 0.35) !important;
}
#aside .jmt-menu-disabled > .aside_btn.active_aside_btn {
    background: #e7e4da !important;
    box-shadow: none !important;
}
#aside .aside_a.jmt-menu-off,
#aside .aside_a.jmt-menu-off:hover {
    color: #ccc9bf !important;
    background: transparent !important;
    font-weight: 500;
    cursor: not-allowed;
}
#aside .aside_a.jmt-menu-off::before,
#aside .aside_a.jmt-menu-off:hover::before {
    background: #e2dfd6 !important;
    transform: translateY(-50%) !important;
}
#aside .aside_a.jmt-menu-off::after {
    content: '미사용';
    font-size: 10.5px;
    font-weight: 600;
    color: #c3c0b6;
    border: 1px solid #e2dfd6;
    border-radius: 999px;
    padding: 0 7px;
    line-height: 17px;
    margin-left: 6px;
    flex-shrink: 0;
}
