/* MDB Basic - 속성 안내 모달 */
#dict-modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100vw;
    height: 100vh;

    background-color: rgba(0, 0, 0, 0.4);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.2s;
}

#dict-modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#dict-modal .modal-content {
    display: flex;
    flex-direction: column;

    width: 600px;
    max-width: calc(100vw - 40px);
    max-height: 80vh;

    overflow: hidden;

    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);

    transform: translateY(-20px);
    transition: transform 0.2s;
}

#dict-modal.show .modal-content {
    transform: translateY(0);
}

#dict-modal .popup_header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    border-bottom: 1px solid var(--v2-blue-gray-10, #e4e6eb);
}

#dict-modal .popup_title_area {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#dict-modal .popup_title_area h2 {
    margin: 0;
    font-weight: 700;
    color: var(--v2-blue-gray-90, #0b1019);
}

#dict-modal .popup_close {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

#dict-modal .popup_close img {
    width: 36px;
    height: 36px;
    transition: filter 0.2s ease;
}

#dict-modal .popup_close:hover img,
#dict-modal .popup_close:focus img {
    filter: brightness(0) saturate(100%) invert(27%) sepia(99%) saturate(7492%) hue-rotate(225deg) brightness(102%) contrast(101%);
}

#dict-modal .modal-body {
    flex: 1;

    padding: 20px;
    overflow-y: auto;

    background-color: var(--bg-surface, #fff);
}

#dict-modal .modal-footer {
    display: flex;
    justify-content: center;

    padding: 12px 20px;

    background-color: var(--bg-base, #f8f9fa);
    border-top: 1px solid var(--border-color, #dee2e6);
}

#dict-modal .board_tbl_wrap {
    width: 100%;
    overflow-x: auto;
}

#dict-modal .board_tbl {
    width: 100%;
    table-layout: fixed;
    border-spacing: 0;
    border-collapse: collapse;
}

#dict-modal .board_tbl thead {
    border-top: 2px solid var(--v2-blue-gray-90, #0b1019);
}

#dict-modal .board_tbl th,
#dict-modal .board_tbl td {
    padding: 18px 12px;
    overflow-wrap: anywhere;
    word-break: break-all;
    font-size: var(--v2-text-body-sm-size, 1.5rem);
    color: var(--v2-blue-gray-70, #242d3b);
    text-align: left;
    background-color: var(--v2-gray-0, #fff);
    border-bottom: 1px solid var(--v2-blue-gray-10, #e4e6eb);
}

#dict-modal .board_tbl th {
    font-weight: 700;
    white-space: nowrap;
    background-color: var(--v2-blue-gray-5, #f4f5f7);
}

#dict-modal .board_tbl th:not(:last-child),
#dict-modal .board_tbl td:not(:last-child) {
    border-right: 1px solid var(--v2-blue-gray-10, #e4e6eb);
}

#dict-modal .board_tbl tbody tr:hover td {
    background-color: var(--v2-blue-gray-5, #f4f5f7);
}

#dict-modal .dict-val,
#dict-modal .th-20 {
    text-align: center;
}

#dict-modal .dict-val {
    color: var(--v2-blue-gray-70, #242d3b);
    font-family: monospace;
}

#dict-modal .th-30 {
    width: 30%;
}

#dict-modal .th-50 {
    width: 50%;
}

#dict-modal .th-20 {
    width: 20%;
}

#dict-modal .modal-footer .v2_btn {
    min-width: 120px;
    cursor: pointer;
}

@media (max-width: 640px) {
    #dict-modal .modal-content {
        width: calc(100vw - 24px);
        max-width: none;
        max-height: calc(100vh - 24px);
    }

    #dict-modal .popup_header {
        padding: 20px;
    }

    #dict-modal .modal-body,
    #dict-modal .modal-footer {
        padding-right: 14px;
        padding-left: 14px;
    }

    #dict-modal .board_tbl th,
    #dict-modal .board_tbl td {
        padding: 14px 8px;
    }
}
