.note-input-Popup button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    background-color: #007BFF;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.note-input-Popup button:hover {
    background-color: #0056b3;
}

.note-input-Popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.note-input-Popup .note-popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 80%;
    max-width: 400px;
    position: relative;
}

.note-input-Popup .note-close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.note-input-Popup h2 {
    margin-top: 0;
    font-size: 24px;
}

.note-input-Popup label {
    display: block;
    text-align: left;
    margin: 10px 0 5px;
    font-weight: 500;
}

.note-input-Popup input[type="text"],
.note-input-Popup textarea {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.note-input-Popup input[type="text"]:focus,
.note-input-Popup textarea:focus {
    border-color: #007BFF;
    outline: none;
}

.note-input-Popup textarea {
    resize: none;
}

.note-input-Popup #noteForm button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    background-color: #28a745;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.note-input-Popup #noteForm button:hover {
    background-color: #218838;
}

/*------------입력폼 끝--------------------------*/

.notePopup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.notePopup button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    background-color: #007BFF;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.notePopup button:hover {
    background-color: #0056b3;
}

.notePopup .note-popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: row;
    width: 80%;
    max-width: 800px;
    max-height: 80%;
    overflow-y: auto;
    position: relative;
}

.notePopup .left-panel, 
.notePopup .right-panel {
    padding: 20px;
    width: 50%;
}

.notePopup .left-panel {
    border-right: 1px solid #ddd;
}

.notePopup .right-panel {
    display: flex;
    flex-direction: column;
}

.notePopup .note-close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.notePopup h2, 
.notePopup h3 {
    margin-top: 0;
}

.notePopup h3 {
    margin-bottom: 10px;
}

.notePopup label {
    display: block;
    text-align: left;
    margin: 10px 0 5px;
    font-weight: 500;
}
.notePopup #noteTitle {
    margin-bottom: 10px;
}
.notePopup #noteMessage {
    white-space: pre-line; /* 줄바꿈을 유지하도록 설정 */
}
.notePopup input[type="text"],
.notePopup textarea {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.notePopup input[type="text"]:focus,
.notePopup textarea:focus {
    border-color: #007BFF;
    outline: none;
}

.notePopup textarea {
    resize: none;
}

.notePopup form button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    background-color: #28a745;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.notePopup form button:hover {
    background-color: #218838;
}

.notePopup .reply {
    margin-top: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.notePopup .reply-text {
    margin: 0;
    white-space: pre-line; /* 줄바꿈을 유지하도록 설정 */
}

.notePopup .prodCode {
    margin: 5px 0px;
    font-weight: bold;
    color: #0056b3;
}

.notePopup .edit-reply, 
.notePopup .delete-reply {
    background: none;
    border: none;
    color: #007BFF;
    cursor: pointer;
    font-size: 14px;
    margin-top: 5px;
    margin-right: 5px;
}

.notePopup .time {
    font-size: 12px;
    color: #888888;
}

.notePopup #repliesContainer {
    flex-grow: 1;
    overflow-y: auto; /* 세로 스크롤 추가 */
    margin-bottom: 10px;
}


/*------모바일--------*/
@media screen and (max-width: 768px) {
    .notePopup .note-popup-content {
        background-color: white;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        display: flex;
        flex-direction: column;
        width: 90%;
        max-width: 800px;
        max-height: 80%;
        overflow-y: auto;
        position: relative;
    }
    .notePopup .left-panel {
        border-right: 0px solid #ddd;
    }
    .notePopup .left-panel, .notePopup .right-panel {
        padding: 20px;
        width: 100%;
    }
    .notePopup textarea {
        width: calc(100% - 20px);
        height: 150px;
        padding: 10px;
        margin-bottom: 15px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 16px;
        box-sizing: border-box;
    }
}

/*발주신청 레이어*/
.link-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.link-popup-overlay .link-reg-popup {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 400px;
    position: relative;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
}
.link-popup-overlay .popup-header {
    font-size: 24px;
    margin-bottom: 20px;
}
.link-popup-overlay .popup-content {
    margin-bottom: 20px;
}
.link-popup-overlay .popup-comment {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    height: 100px;
    margin-bottom:10px;
    overflow-y: scroll;
    text-align: left;
}
.link-popup-overlay .popup-content textarea {
    width: calc(100% - 20px);
    height: 50px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.link-popup-overlay .popup-footer {
    display: flex;
    justify-content: space-between;
}
.link-popup-overlay .popup-footer button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.link-popup-overlay .popup-footer .submit-btn {
    background-color: #4CAF50;
    color: #fff;
}
.link-popup-overlay .popup-footer .link-close-btn {
    background-color: #f44336;
    color: #fff;
}