﻿.template-Master-WEB {
    padding: 20px;
    width: 100%;
    height: 100%;
}

.Code-Master-Info {
}

.Code-Master-Info-Header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.Code-Master-Info-Body {
    display: flex;
    flex-direction: column;
    padding-top: 20px;
    gap: 0.2rem;
}

.Code-Master-Info-Font {
    color: #767484;
}

.Code-Master-table-area {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-top: 30px;
    padding-bottom: 30px;
    gap: 30px;
    width: 100%;
    height: 100%;
}

.template-category {
    border: 1px solid #e2e2e2;
    width: 30%;
    height: 100%;
}
    .template-category .selected {
        background-color: #ADAFDF;
    }

        .template-category .selected:hover {
            background-color: #8C8EBF;
        }

.Code-Master-Class-Update {
    width: 100%;
    padding-bottom: 20px;
}

.Code-Master-Code-Insert {
    width: 100%;
}

.Code-Master-Insert-Table th {
    height: 60px;
    border-bottom: 2px solid #ffffff;
    font-size: var(--md-font);
    font-weight: var(--normal-font);
    color: #4c4c4c;
    text-align: left;
    padding-left: 15px;
}

.Code-Master-Insert-Table td {
    border-top: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
    border-right: 1px solid #ececec;
    font-size: var(--md-font);
    font-weight: var(--normal-font);
    color: #000000;
    text-align: left;
    padding-left: 20px;
}

.Code-Master-Input {
    height: 40px !important;
    width: 90% !important;
    border: 1px solid #9a9e9c !important;
    padding-left: 8px !important;
}

    .Code-Master-Input:focus {
        border-color: #5c5fc0 !important;
        outline: none !important;
    }

.Code-Master-textarea {
    width: 98%;
    max-width: 98%;
    min-width: 98%;
    border: 1px solid #9a9e9c;
    padding-left: 5px;
}

    .Code-Master-textarea:focus {
        border-color: #5c5fc0;
        outline: none;
    }

.align-text-area {
    padding: 5px 5px 0 5px;
}

.Code-Master-set-radio {
    display: flex;
    gap: 1.5rem;
    width: 100%;
}

.Code-Master-button-area {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: right;
    height: 35px;
    margin-top: 20px;
}

.Code-Master-save-btn {
    display: flex;
    border: 1px solid #5c5fc0;
    justify-content: center;
    align-items: center;
    width: 7%;
    height: 100%;
    color: #5c5fc0;
}

    .Code-Master-save-btn:hover {
        background-color: #5c5fc0;
        color: white;
        cursor: pointer;
    }

.Code-Master-cancle-btn {
    display: flex;
    border: 1px solid #ff0000;
    justify-content: center;
    align-items: center;
    width: 7%;
    height: 100%;
    color: #ff0000;
}

    .Code-Master-cancle-btn:hover {
        background-color: #ff0000;
        color: white;
        cursor: pointer;
    }

.Code-Master-Update-Area {
    display: flex;
    flex-direction: column;
    width: 100%;
}
/*coderoot*/
.code-root {
    display: flex;
    flex-direction: column; /* 부모 요소를 세로 방향으로 정렬 */
    align-items: flex-start; /* 아이템을 왼쪽 정렬 */
    /*padding: 10px 0;*/ /* 여백 조정 */
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    height: 100%;
}

/* 트리 항목 스타일 */
.category-tree-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    width: 100%; /* 전체 너비 사용 */
}
    .category-tree-label:hover {
        display: flex;
        align-items: center;
        background-color: #f1f3f5;
        gap: 8px;
        padding: 8px 12px;
        cursor: pointer;
        width: 100%; /* 전체 너비 사용 */
    }


/* 아이콘 스타일 */
.code-label-icon {
    font-size: 18px;
    color: #6c757d;
    transition: transform 0.2s;
}

/* 펼쳐진 상태 */
.expanded .code-label-icon {
    transform: rotate(90deg);
}

/* 하위 목록 스타일 */
.code-list-mng {
    list-style: none;
    margin: 0;
    padding-left: 20px;
    padding-bottom: 10px;
    display: none;
    flex-direction: column; /* 리스트 아이템이 세로로 나열되도록 설정 */
}

    /* 하위 항목 디자인 */
    .code-list-mng li {
        display: flex;
        align-items: center;
        width: 100%; /* 부모 요소 너비를 따름 */
        font-size: var(--sm-font);
        font-weight: var(--normal-font);
        border-left: 2px solid #5c5fc0;
        padding-left: 35px;
        transition: background-color 0.2s;
    }

        .code-list-mng li:hover {
            background-color: #f1f3f5;
        }

        .code-list-mng li li {
            display: flex;
            align-items: center;
            width: 100%; /* 부모 요소 너비를 따름 */
            padding: 3px 0;
            font-size: var(--sm-font);
            font-weight: var(--normal-font);
            border-left: 2px solid #5c5fc0;
            padding-left: 7px;
            transition: background-color 0.2s;
        }

/* 링크 스타일 */
.code-name {
    text-decoration: none;
    color: #343a40;
    font-size: var(--md-font);
    font-weight: var(--normal-font);
}

.code-works {
    text-decoration: none;
    color: #343a40;
    font-size: var(--sm-font);
    font-weight: var(--normal-font);
}

    .code-works:hover {
        text-decoration: underline;
        color: #5c5fc0;
        font-weight: var(--bold-font);
    }

    .code-works:focus {
        text-decoration: underline;
        color: #5c5fc0;
        font-weight: var(--bold-font);
        background-color: #f1f3f5;
    }


/* -------------------------select box custom----------------------- */
.custom-select {
    width: 50%;
    height: 30px;
    padding: 2px 7px;
    font-size: var(--sm-font);
    color: #333;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 5px;
    appearance: none; /* Remove default dropdown arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M6 9l6 6 6-6"%3E%3C/path%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 5px center;
    background-size: 10px; /* Adjusted arrow size */
}

/* Add a custom dropdown arrow */
.custom-select-container::after {
    content: "\\25BC"; /* Downward triangle arrow */
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    font-size: 12px;
    color: #333;
    pointer-events: none;
}

/* Hover and focus styles */
.custom-select:hover {
    background-color: #f1f1f1;
}

.custom-select:focus {
    border-color: #5c5fc0;
    box-shadow: 0 0 5px #5c5fc0;
}
.edms-area {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}
.template-table-top {
    display: flex;
    border: 1px solid #5c5fc0;
    border-radius: 10px 10px 0px 0px;
    background-color: #5c5fc0;
    color: white;
    width: 100%;
    min-height: 50px;
    justify-content: space-between;
    align-items: center;
    font-size: var(--xlg-font);
    font-weight: var(--normal-font);
    padding: 0 0 0 20px;
}
.template-table-bottom {
    display: flex;
    border-radius: 0px 0px 10px 10px;
    justify-content: space-between;
    flex-direction: column;
    background-color: #ffffff;
    width: 100%;
    /*width: 1430px;*/
    height: 100%;
    max-height: 100%;
    box-shadow: 0px 3px 6px #00000029;
}