* {
    box-sizing: border-box;
    font-family: "Spoqa Han Sans", "Spoqa Han Sans JP", Arial, sans-serif;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    color: #646464;
    background: #fff;
    font-size: 13px;
}

a {
    color: #646464;
}

/* =========================
   ORIGINAL HANIL LAYOUT
   ========================= */

.frame {
    width: 1200px;
    margin: 0 auto;
}

.header {
    height: 181px;
    padding: 40px 10px;
    text-align: center;
    border-bottom: 1px solid #aaa;
    margin: 0 20px 20px 20px;
    position: relative;
}

.logo {
    display: inline-block;
    padding: 0 8px;
}

.logo img {
    height: 100px;
    width: auto;
    display: block;
}

.user-bar {
    position: absolute;
    right: 0;
    top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.user-bar form {
    margin: 0;
}

.badge {
    font-size: 10px;
    border: 1px solid #aaa;
    padding: 2px 5px;
}

.link-button {
    border: 0;
    background: transparent;
    color: #646464;
    cursor: pointer;
    font-size: 12px;
    padding: 0;
}

.container {
    width: 1200px;
    display: flex;
    align-items: stretch;
}

.nav {
    flex: 0 0 150px;
    width: 150px;
    border-right: 1px solid #aaa;
    margin-right: 10px;
    font-weight: bold;
    font-size: 20px;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 10px 0;
}

.nav-item {
    margin: 4px 0;
}

.nav-link {
    display: block;
    text-decoration: none;
    padding: 10px 10px;
    color: #646464;
}

.nav-link:hover,
.nav-link.active {
    background: #f1f1f1;
}

.content {
    flex: 0 0 1038px;
    width: 1038px;
    padding: 20px 19px;
    min-height: 340px;
}

.content-login {
    width: 100%;
    flex: 1;
}

.footer {
    text-align: center;
    border-top: 1px solid #aaa;
    margin: 20px 20px 0;
    font-size: 12px;
    padding-top: 38px;
    padding-bottom: 15px;
}

.footer-links {
    margin-bottom: 18px;
}

.footer-links a {
    display: inline-block;
    text-align: center;
    font-weight: bold;
    color: #646464;
    text-decoration: none;
    padding: 10px;
    font-size: 20px;
}

.footer p {
    margin: 0;
}

/* =========================
   HOME / DOWNLOAD PAGE
   ORIGINAL default.aspx
   ========================= */

.list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.down-title {
    display: block;
    width: 170px;
    color: #646464;
    margin: 0;
    padding: 10px;
    margin-left: 30px;
}

.filelink {
    display: block;
    width: 170px;
    text-align: center;
    color: #646464;
    margin: 0;
    padding: 10px;
}

.filelink a {
    display: block;
    color: #646464;
    text-decoration: none;
    width: 100%;
}

.filelink:hover {
    background: #646464;
    color: #fff;
}

.filelink:hover a {
    color: #fff;
}

.space {
    text-align: center;
    border-top: 1px solid #aaa;
    margin: 20px 20px 0;
    font-size: 12px;
    padding: 10px;
}

.muted {
    color: #888;
    font-size: 12px;
    margin-top: 15px;
    clear: both;
}

/* =========================
   COMMON FORMS
   ========================= */

.page-title {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #646464;
}

.toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.toolbar select,
.toolbar input,
.toolbar button {
    height: 32px;
    border: 1px solid #aaa;
    background: #fff;
    color: #646464;
    padding: 4px 8px;
}

.toolbar button,
.button {
    display: inline-block;
    border: 1px solid #aaa;
    background: #fff;
    color: #646464;
    text-decoration: none;
    padding: 5px 10px;
    cursor: pointer;
}

.toolbar button:hover,
.button:hover {
    background: #646464;
    color: #fff;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

table.data,
table.detail {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

table.data th,
table.data td,
table.detail th,
table.detail td {
    border: 1px solid #bbb;
    padding: 7px 6px;
}

table.data th,
table.detail th {
    background: #f5f5f5;
    font-weight: bold;
}

table.detail th {
    width: 180px;
    text-align: left;
}

.center {
    text-align: center;
}

.right {
    text-align: right;
}

.flash {
    margin-bottom: 15px;
    border: 1px solid #bbb;
    padding: 10px;
}

.flash.error {
    background: #fff5f5;
}

/* =========================
   LOGIN
   ========================= */

.login-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 30px 0 60px;
}

.login-panel {
    width: 380px;
    border: 1px solid #aaa;
    padding: 30px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-form input,
.login-form button {
    height: 38px;
    border: 1px solid #aaa;
    padding: 6px 10px;
}

.login-form button {
    background: #646464;
    color: #fff;
    cursor: pointer;
}

/* 원본은 PC 고정폭 사이트였음 */
@media (max-width: 1200px) {
    .frame {
        width: 1200px;
    }
}


/* ==================================================
   IT ASSET MODAL
   ================================================== */

body.modal-open {
    overflow: hidden;
}

.hanil-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
}

.hanil-modal.open {
    display: block;
}

.hanil-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.32);
}

.hanil-modal-window {
    position: absolute;
    width: 760px;
    max-height: 82vh;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border: 1px solid #888;
    box-shadow: 0 6px 24px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
}

.hanil-modal-header {
    min-height: 48px;
    padding: 12px 15px;
    border-bottom: 1px solid #aaa;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hanil-modal-title {
    font-size: 18px;
    font-weight: bold;
    color: #555;
}

.hanil-modal-close {
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    color: #555;
    font-size: 25px;
    line-height: 25px;
    cursor: pointer;
}

.hanil-modal-close:hover {
    background: #eee;
}

.hanil-modal-body {
    padding: 18px;
    overflow: auto;
    min-height: 150px;
}

.hanil-modal-footer {
    padding: 10px 15px;
    border-top: 1px solid #aaa;
    text-align: right;
}

.modal-loading,
.modal-empty,
.modal-error {
    text-align: center;
    padding: 50px 20px;
}

.modal-error {
    color: #a00;
}

.modal-detail {
    width: 100%;
}

.modal-detail th {
    width: 150px;
    white-space: nowrap;
}

.modal-note {
    min-height: 70px;
    white-space: pre-wrap;
}

.modal-license-table {
    width: 100%;
}

.modal-license-table th:nth-child(1) {
    width: 190px;
}

.modal-license-table th:nth-child(3) {
    width: 100px;
}

.asset-modal-btn {
    font-family: inherit;
    font-size: 12px;
}

@media (max-width: 800px) {
    .hanil-modal-window {
        width: calc(100% - 30px);
    }
}


/* ==============================
   HOME ITEM MODAL
   ============================== */

.home-info-modal {
    width: 560px;
}

.home-modal-description {
    white-space: pre-wrap;
    line-height: 1.7;
    min-height: 20px;
}

.home-modal-description:empty {
    display: none;
}

.home-modal-serial {
    margin-top: 18px;
    border-top: 1px solid #ddd;
    padding-top: 14px;
}

.home-modal-label {
    font-weight: bold;
    margin-bottom: 7px;
}

.home-modal-serial-value {
    padding: 10px;
    border: 1px solid #bbb;
    background: #f7f7f7;
    white-space: pre-wrap;
    word-break: break-all;
}


.home-link-box {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #ddd;
}

.home-link-copy-row {
    display: flex;
    gap: 6px;
}

.home-link-copy-row input {
    flex: 1;
    min-width: 0;
    padding: 7px;
    border: 1px solid #aaa;
    background: #f7f7f7;
}

.home-link-copy-row button {
    white-space: nowrap;
}

.home-copy-message {
    height: 18px;
    margin-top: 5px;
    font-size: 11px;
    color: #666;
}

/* 전산장비 조회 - 사용자/모델/일련번호 줄바꿈 */
.asset-user {
    white-space: normal !important;
    line-height: 1.35;
    min-width: 70px;
}

.asset-user-id,
.asset-user-name {
    display: block !important;
    white-space: nowrap;
}

.asset-table td:nth-child(6),
.asset-table td:nth-child(8) {
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.35;
}

.asset-table th:nth-child(6),
.asset-table th:nth-child(8) {
    white-space: normal !important;
}

/* =========================================
   전산장비 조회 테이블 최종 표시 규칙
   ========================================= */

.asset-table {
    width: 100%;
    table-layout: auto;
    border-collapse: collapse;
}

/* 기본적으로 모든 열은 한 줄 유지 */
.asset-table th,
.asset-table td {
    white-space: nowrap !important;
    vertical-align: middle;
}

/* 사용자만 사번 / 이름 두 줄 */
.asset-table td.asset-user {
    white-space: normal !important;
    min-width: 62px;
    text-align: center;
    line-height: 1.35;
}

.asset-user-id,
.asset-user-name {
    display: block !important;
    white-space: nowrap !important;
}

/* 모델명: 남는 폭에 따라 자유롭게 줄바꿈 */
.asset-table th:nth-child(6),
.asset-table td:nth-child(6) {
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 70px;
    max-width: 190px;
    line-height: 1.35;
}

/* 일련번호: 남는 폭에 따라 자유롭게 줄바꿈 */
.asset-table th:nth-child(8),
.asset-table td:nth-child(8) {
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-all;
    min-width: 80px;
    max-width: 190px;
    line-height: 1.35;
}

/* 테이블 전체가 정말 화면보다 넓어질 경우 잘라내지 않음 */
.asset-table-wrap,
.table-wrap {
    overflow-x: auto;
}

/* 공통 하단 Footer 슬림 + 화면 하단 고정 */
footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    background: #fff;
    border-top: 1px solid #d7d7d7;

    padding: 7px 0 6px !important;
    margin: 0 !important;
    min-height: 0 !important;
}

footer a {
    margin: 0 10px !important;
    font-size: 14px !important;
    line-height: 20px !important;
    font-weight: 600;
}

footer p {
    margin: 3px 0 0 !important;
    font-size: 10px !important;
    line-height: 14px !important;
}

/* footer가 본문을 가리지 않도록 */
body {
    padding-bottom: 62px !important;
}

/* =========================================================
   공통 레이아웃 고정
   - 상단 HANIL
   - 왼쪽 메뉴
   - 하단 Footer
   - 본문만 스크롤
   ========================================================= */

html,
body {
    height: 100%;
    margin: 0;
    overflow: hidden;
}

/* 상단 HANIL 영역 */
header,
.site-header,
.main-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 300;
    background: #fff;
}

/* 왼쪽 메뉴 */
aside,
.sidebar,
.side-menu,
.left-menu {
    position: fixed !important;
    left: 0;
    top: 160px;
    bottom: 58px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 200;
    background: #fff;
}

/* 메인 컨텐츠 */
main,
.main-content,
.content,
.content-area {
    height: calc(100vh - 218px);
    overflow-y: auto;
    overflow-x: hidden;

    margin-top: 160px;
    margin-bottom: 58px;
}

/* 하단 footer */
footer {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 300;

    height: 58px;
    box-sizing: border-box;

    background: #fff;
    border-top: 1px solid #d7d7d7;

    padding: 6px 0 4px !important;
    margin: 0 !important;
}

/* footer 메뉴 */
footer a {
    margin: 0 10px !important;
    font-size: 14px !important;
    line-height: 20px !important;
}

/* copyright */
footer p {
    margin: 2px 0 0 !important;
    font-size: 10px !important;
    line-height: 13px !important;
}


/* ============================================================
   HANIL_WEB 공통 고정 레이아웃
   header / nav / footer 고정, content만 스크롤
   ============================================================ */

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden !important;
}

.frame {
    width: 100%;
    height: 100vh !important;
    min-height: 0 !important;

    display: flex !important;
    flex-direction: column !important;

    overflow: hidden !important;
}


/* ------------------------------------------------------------
   상단 HANIL 헤더
   ------------------------------------------------------------ */
.header {
    position: relative !important;

    flex: 0 0 auto !important;

    width: 100%;
    box-sizing: border-box;

    background: #fff;
    z-index: 100;
}


/* ------------------------------------------------------------
   가운데 영역
   왼쪽 메뉴 + 본문
   ------------------------------------------------------------ */
.container {
    flex: 1 1 auto !important;

    display: flex !important;

    width: 100%;
    min-height: 0 !important;

    overflow: hidden !important;
}


/* ------------------------------------------------------------
   왼쪽 메뉴
   ------------------------------------------------------------ */
.nav {
    flex: 0 0 auto !important;

    height: 100% !important;
    min-height: 0 !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    background: #fff;
}


/* ------------------------------------------------------------
   실제 페이지 내용
   이 영역만 스크롤
   ------------------------------------------------------------ */
.content {
    flex: 1 1 auto !important;

    height: auto !important;
    min-height: 0 !important;

    overflow-y: auto !important;
    overflow-x: auto !important;

    box-sizing: border-box;
}


/* 로그인 화면은 왼쪽 메뉴 없이 전체 사용 */
.content-login {
    width: 100% !important;
}


/* ------------------------------------------------------------
   하단 Footer
   ------------------------------------------------------------ */
.footer {
    position: relative !important;

    flex: 0 0 auto !important;

    width: 100%;
    min-height: 0 !important;
    height: auto !important;

    box-sizing: border-box;

    margin: 0 !important;
    padding: 6px 0 5px !important;

    background: #fff;
    border-top: 1px solid #d6d6d6;

    z-index: 100;
}


/* footer 메뉴 */
.footer-links {
    margin: 0 !important;
    padding: 0 !important;

    line-height: 20px !important;
    text-align: center;
}

.footer-links a {
    display: inline-block;

    margin: 0 10px !important;

    font-size: 14px !important;
    line-height: 20px !important;
    font-weight: 600;
}


/* copyright */
.footer p {
    margin: 2px 0 0 !important;
    padding: 0 !important;

    font-size: 10px !important;
    line-height: 13px !important;

    text-align: center;
}


/* 기존에 body에 footer 공간을 확보했던 값 제거 */
body {
    padding-bottom: 0 !important;
}


/* 공통 화면 가로폭 조정 */
.frame {
    width: 100% !important;
}

/* 상단 로고 / 가운데 메뉴영역 / footer 내용 폭을 너무 넓히지 않음 */
.container {
    width: calc(100% - 36px) !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* header도 본문과 비슷한 폭 유지 */
.header {
    width: calc(100% - 36px) !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* footer 자체는 화면 전체폭,
   내부 내용만 가운데 정렬 */
.footer {
    width: 100% !important;
}

.footer-links,
.footer > p {
    max-width: 1200px;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 이전 fixed 레이아웃 잔여 여백 제거 */
.content {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
}


/* footer 상단을 header 하단과 같은 느낌으로 */
.footer {
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;

    border-top: 0 !important;
    padding-top: 30px !important;
    padding-bottom: 8px !important;

    background: #fff !important;
}

/* 위쪽 header 아래 선과 같은 스타일 */
.footer::before {
    content: "";
    position: absolute;

    top: 0;
    left: 5%;
    right: 5%;

    height: 1px;
    background: #b8b8b8;
}

/* footer 링크 간격 */
.footer-links {
    margin-top: 0 !important;
    margin-bottom: 5px !important;
}

/* copyright */
.footer p {
    margin-top: 3px !important;
}

/* ==================================================
   Footer 구분선 - Header 구분선과 길이/여백 통일
   ================================================== */

.footer {
    border-top: 0 !important;

    /* 선 아래 → 링크까지 여백 */
    padding-top: 20px !important;
    padding-bottom: 5px !important;
}

/* 하단 구분선 */
.footer::before {
    content: "" !important;

    position: absolute !important;
    top: 0 !important;

    /* 위쪽 레이아웃과 동일한 1200px 폭 */
    left: 50% !important;
    right: auto !important;

    width: calc(100% - 36px) !important;
    max-width: 1200px !important;

    height: 1px !important;

    transform: translateX(-50%) !important;

    background: #b8b8b8 !important;
}

/* 링크 위치 */
.footer-links {
    margin-top: 0 !important;
    margin-bottom: 3px !important;
}

.footer p {
    margin-top: 2px !important;
}

/* Footer 구분선 위/아래 여백 통일 */
.footer {
    margin-top: 18px !important;
    padding-top: 18px !important;
}

/* =========================================================
   왼쪽 공통 메뉴 영역 수정
   - 관리자 메뉴까지 끝까지 표시
   - 메뉴만 필요 시 스크롤
   ========================================================= */

.container {
    min-height: 0 !important;
    overflow: hidden !important;
}

.nav {
    flex: 0 0 auto !important;

    height: auto !important;
    min-height: 0 !important;

    align-self: stretch !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    box-sizing: border-box !important;

    /* 마지막 관리자 메뉴가 footer에 붙지 않도록 */
    padding-bottom: 24px !important;
}

.nav-list {
    height: auto !important;
    min-height: 0 !important;

    margin-bottom: 0 !important;
    padding-bottom: 20px !important;
}

.nav-item {
    flex-shrink: 0 !important;
}

.nav-item:last-child {
    margin-bottom: 12px !important;
}

.content {
    min-height: 0 !important;
    overflow-y: auto !important;
}

/* =========================================================
   관리자 공통 카테고리 메뉴
   모든 관리자 화면에서 동일하게 적용
   ========================================================= */

.admin-category-nav {
    display: flex !important;
    align-items: stretch !important;

    width: 100% !important;
    min-height: 46px !important;

    margin: 0 0 20px 0 !important;
    padding: 0 !important;

    border: 1px solid #cfd3d8 !important;
    background: #f5f5f5 !important;

    box-sizing: border-box !important;

    overflow: visible !important;
}

.admin-category {
    position: relative !important;

    display: block !important;

    margin: 0 !important;
    padding: 0 !important;

    border-right: 1px solid #d5d5d5 !important;
}

.admin-category-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;

    min-width: 138px !important;
    height: 45px !important;

    margin: 0 !important;
    padding: 0 18px !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: #f5f5f5 !important;
    color: #333 !important;

    font-size: 13px !important;
    font-weight: 700 !important;

    cursor: pointer !important;
}

.admin-category-button:hover,
.admin-category.active > .admin-category-button {
    background: #666 !important;
    color: #fff !important;
}

.admin-category-arrow {
    font-size: 10px !important;
    opacity: .8 !important;
}


/* 하위 메뉴는 평소 숨김 */
.admin-category-menu {
    display: none !important;

    position: absolute !important;

    top: 45px !important;
    left: -1px !important;

    z-index: 1000 !important;

    min-width: 190px !important;

    padding: 5px 0 !important;

    border: 1px solid #bbb !important;

    background: #fff !important;

    box-shadow:
        0 5px 14px rgba(0,0,0,.14) !important;
}


/* 마우스를 올리면 하위 메뉴 표시 */
.admin-category:hover > .admin-category-menu,
.admin-category:focus-within > .admin-category-menu {
    display: block !important;
}


.admin-category-menu a {
    display: block !important;

    padding: 9px 13px !important;

    border: 0 !important;

    background: #fff !important;

    color: #333 !important;

    font-size: 12px !important;
    font-weight: 500 !important;

    text-decoration: none !important;

    white-space: nowrap !important;
}

.admin-category-menu a:hover {
    background: #f0f2f5 !important;
}

.admin-category-menu a.active {
    background: #e7e9ec !important;
    font-weight: 700 !important;
}


/* 관리자 제목과 메뉴 간격 */
.admin-category-nav + .page-title {
    margin-top: 0 !important;
}


/* 작은 화면 */
@media (max-width: 900px) {
    .admin-category-nav {
        overflow-x: auto !important;
        overflow-y: visible !important;
    }

    .admin-category-button {
        min-width: 120px !important;
    }
}


/* =========================================================
   공통 왼쪽 메뉴 강제 복구
   ========================================================= */

.frame {
    height: 100vh !important;
    min-height: 0 !important;

    display: flex !important;
    flex-direction: column !important;

    overflow: hidden !important;
}

.header {
    flex: 0 0 auto !important;
}

.container {
    flex: 1 1 auto !important;

    display: grid !important;

    grid-template-columns:
        170px
        minmax(0, 1fr) !important;

    min-height: 0 !important;

    overflow: hidden !important;
}

/* 왼쪽 메뉴 */
.nav {
    display: block !important;

    position: relative !important;

    width: 170px !important;
    min-width: 170px !important;
    max-width: 170px !important;

    height: 100% !important;

    box-sizing: border-box !important;

    padding: 18px 14px 24px !important;

    border-right: 1px solid #cfd3d8 !important;

    background: #fff !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    z-index: 20 !important;
}

.nav-list {
    display: block !important;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
}

.nav-item {
    display: block !important;

    margin: 0 0 8px 0 !important;
    padding: 0 !important;
}

.nav-link {
    display: block !important;

    padding: 8px 10px !important;


    font-size: 15px !important;
    font-weight: 700 !important;

    text-decoration: none !important;

    white-space: nowrap !important;
}

.nav-link:hover {
    background: #f2f5f8 !important;
}

/* 본문 */
.content {
    min-width: 0 !important;
    min-height: 0 !important;

    width: auto !important;
    height: auto !important;

    margin: 0 !important;

    padding: 18px 22px !important;

    box-sizing: border-box !important;

    overflow-y: auto !important;
    overflow-x: auto !important;
}

/* footer */
.footer {
    flex: 0 0 auto !important;
}

/* 로그인 화면은 메뉴 없이 전체폭 */
.content-login {
    grid-column: 1 / -1 !important;
}

/* 작은 화면 */
@media (max-width: 850px) {

    .container {
        grid-template-columns: 145px minmax(0, 1fr) !important;
    }

    .nav {
        width: 145px !important;
        min-width: 145px !important;
        max-width: 145px !important;

        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .nav-link {
        font-size: 13px !important;
    }
}


/* 왼쪽 공통 메뉴 글씨 크기 원복 */
.nav-link {
    font-size: 18px !important;
    line-height: 1.45 !important;
    padding: 9px 10px !important;
}

@media (max-width: 850px) {
    .nav-link {
        font-size: 16px !important;
    }
}

/* 공통 왼쪽 메뉴 최종 크기 복구 */
.nav-link {
    font-size: 20px !important;
    line-height: 1.45 !important;
    font-weight: 700 !important;

    padding: 9px 10px !important;
}


/* =========================================================
   HANIL_WEB 공통 글꼴 - 굴림
   ========================================================= */

html,
body,
button,
input,
select,
textarea,
table,
th,
td,
a,
label,
span,
div,
p {
    font-family: "Gulim", "굴림", Arial, sans-serif !important;
}

/* 왼쪽 메뉴 */
.nav-link {
    font-family: "Gulim", "굴림", Arial, sans-serif !important;
}

/* 관리자 메뉴 */
.admin-category-button,
.admin-category-menu a {
    font-family: "Gulim", "굴림", Arial, sans-serif !important;
}

/* 페이지 제목 */
.page-title {
    font-family: "Gulim", "굴림", Arial, sans-serif !important;
}


/* =========================================================
   HANIL_WEB 공통 글꼴 - 나눔고딕
   ========================================================= */

html,
body,
button,
input,
select,
textarea,
table,
th,
td,
a,
label,
span,
div,
p {
    font-family:
        "NanumGothic",
        "Nanum Gothic",
        "나눔고딕",
        Arial,
        sans-serif !important;
}

/* 기본 본문은 너무 얇지 않게 */
body,
input,
select,
textarea,
button {
    font-weight: 400;
}

/* 왼쪽 메뉴 */
.nav-link {
    font-family:
        "NanumGothic",
        "Nanum Gothic",
        "나눔고딕",
        Arial,
        sans-serif !important;

    font-weight: 700 !important;
}

/* 페이지 제목 */
.page-title {
    font-family:
        "NanumGothic",
        "Nanum Gothic",
        "나눔고딕",
        Arial,
        sans-serif !important;

    font-weight: 700 !important;
}

/* 관리자 상단 메뉴 */
.admin-category-button,
.admin-category-menu a {
    font-family:
        "NanumGothic",
        "Nanum Gothic",
        "나눔고딕",
        Arial,
        sans-serif !important;

    font-weight: 700;
}

/* 표 제목 */
th {
    font-weight: 700 !important;
}


/* =========================================================
   HANIL_WEB Web Fonts
   ========================================================= */

@font-face {
    font-family: "Pretendard";
    src: url("/static/fonts/Pretendard-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Pretendard";
    src: url("/static/fonts/Pretendard-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Noto Sans KR";
    src: url("/static/fonts/NotoSansKR-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Noto Sans KR";
    src: url("/static/fonts/NotoSansKR-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "NanumGothic";
    src: url("/static/fonts/NanumGothic-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "NanumGothic";
    src: url("/static/fonts/NanumGothic-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Sans KR";
    src: url("/static/fonts/IBMPlexSansKR-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Sans KR";
    src: url("/static/fonts/IBMPlexSansKR-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Spoqa Han Sans Neo";
    src: url("/static/fonts/SpoqaHanSansNeo-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Spoqa Han Sans Neo";
    src: url("/static/fonts/SpoqaHanSansNeo-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/* =========================================================
   왼쪽 메뉴 침범 방지 - 최종
   ========================================================= */

.container {
    display: grid !important;
    grid-template-columns: 180px minmax(0, 1fr) !important;

    width: 100% !important;
    max-width: 1200px !important;

    margin-left: auto !important;
    margin-right: auto !important;

    min-width: 0 !important;
    overflow: hidden !important;
}

.nav {
    position: relative !important;

    grid-column: 1 !important;

    width: 180px !important;
    min-width: 180px !important;
    max-width: 180px !important;

    z-index: 50 !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    background: #fff !important;
}

.content {
    position: relative !important;

    grid-column: 2 !important;

    width: 100% !important;
    max-width: 100% !important;

    min-width: 0 !important;

    margin: 0 !important;

    box-sizing: border-box !important;

    overflow-x: hidden !important;
    overflow-y: auto !important;

    z-index: 1 !important;
}

/* 회의실 페이지는 content 폭 안에서만 사용 */
.content .mr-page {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    margin: 0 !important;

    box-sizing: border-box !important;
}

.content .mr-page > * {
    min-width: 0 !important;
}

/* 도면도 content 밖으로 넘어가지 못하게 */
.content .mr-map-wrap,
.content .mr-map-image {
    width: 100% !important;
    max-width: 100% !important;
}

/* 작은 화면 */
@media (max-width: 900px) {
    .container {
        grid-template-columns: 160px minmax(0, 1fr) !important;
    }

    .nav {
        width: 160px !important;
        min-width: 160px !important;
        max-width: 160px !important;
    }
}


/* ============================================================
   IT ASSET MODAL - 전체 화면 비활성화
   ============================================================ */

/* 이전 가운데 조회영역 전용 회색막은 사용하지 않음 */
#asset-page-content.modal-disabled::after {
    display: none !important;
}


/* 상세/라이센스 모달은 브라우저 전체를 덮는다 */
#asset-modal.hanil-modal {
    position: fixed !important;

    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    margin: 0 !important;
    padding: 0 !important;

    z-index: 30000 !important;

    pointer-events: auto !important;
}


/* 전체 화면 회색 비활성화 */
#asset-modal .hanil-modal-backdrop {
    position: absolute !important;

    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;

    width: 100% !important;
    height: 100% !important;

    background: rgba(80, 80, 80, 0.42) !important;

    pointer-events: auto !important;

    z-index: 1 !important;
}


/* 팝업 자체는 정상색 */
#asset-modal .hanil-modal-window {
    position: relative !important;

    z-index: 2 !important;

    background: #ffffff !important;

    pointer-events: auto !important;
}


#asset-modal .hanil-modal-header,
#asset-modal .hanil-modal-body,
#asset-modal .hanil-modal-footer {
    background: #ffffff !important;
}


/* 모달이 열려 있을 때 뒤 화면 스크롤 차단 */
body.modal-open {
    overflow: hidden !important;
}



/* 전산장비 상세/라이선스 모달 - 진짜 전체화면 backdrop */
#asset-modal.hanil-modal {
    position: fixed !important;
    inset: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    z-index: 50000 !important;
}

#asset-modal .hanil-modal-backdrop {
    position: fixed !important;
    inset: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    background: rgba(70, 70, 70, 0.42) !important;

    z-index: 1 !important;
    pointer-events: auto !important;
}

#asset-modal .hanil-modal-window {
    position: relative !important;
    z-index: 2 !important;

    background: #fff !important;
}

body.modal-open {
    overflow: hidden !important;
}



/* ============================================================
   IT ASSET MODAL - 전체화면 + 팝업 중앙정렬 최종
   ============================================================ */

#asset-modal.hanil-modal {
    position: fixed !important;
    inset: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    margin: 0 !important;
    padding: 0 !important;

    z-index: 50000 !important;

    align-items: center !important;
    justify-content: center !important;
}


/* 닫혀 있을 때 */
#asset-modal.hanil-modal:not(.open) {
    display: none !important;
}


/* 열렸을 때 화면 중앙 */
#asset-modal.hanil-modal.open {
    display: flex !important;
}


/* 전체 화면 회색 */
#asset-modal .hanil-modal-backdrop {
    position: fixed !important;
    inset: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    background: rgba(70, 70, 70, 0.42) !important;

    z-index: 1 !important;
}


/* 실제 상세 / 라이선스 팝업 */
#asset-modal .hanil-modal-window {
    position: relative !important;

    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;

    transform: none !important;

    width: min(960px, calc(100vw - 80px)) !important;

    max-width: 960px !important;
    min-width: 600px !important;

    max-height: calc(100vh - 100px) !important;

    margin: 0 !important;

    z-index: 2 !important;

    display: flex !important;
    flex-direction: column !important;

    background: #ffffff !important;

    box-sizing: border-box !important;

    overflow: hidden !important;
}


/* 상세 내용이 길 때 팝업 내부만 스크롤 */
#asset-modal .hanil-modal-body {
    flex: 1 1 auto !important;

    min-height: 150px !important;
    max-height: calc(100vh - 220px) !important;

    overflow-y: auto !important;
    overflow-x: auto !important;

    background: #ffffff !important;
}


/* 제목과 닫기 영역은 고정 */
#asset-modal .hanil-modal-header,
#asset-modal .hanil-modal-footer {
    flex: 0 0 auto !important;

    background: #ffffff !important;
}


/* 작은 화면 */
@media (max-width: 700px) {

    #asset-modal .hanil-modal-window {
        width: calc(100vw - 24px) !important;
        min-width: 0 !important;
        max-height: calc(100vh - 40px) !important;
    }

}
