.en-container {
    margin: 10px 10px 10px 10px;
    padding: 10px;
}

#myForm {
  margin: 1px 1px 1px 1px;
  padding-left: 5px; /* 왼쪽 여백 */
  padding-right: 5px; /* 오른쪽 여백 */
}

.button-container {
  display: flex;
  flex-wrap: wrap; /* 넘치면 다음 줄로 배치 */
  justify-content: center; /* 중앙 정렬 */
  gap: 5px;
  padding: 5px;
  margin-top: 10px;
}

.button-container button {
  background-color: #3e6ce9; /* Green */
  border: none;
  color: white;
  padding: 5px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 15px;
  margin: 2px 2px 20px 2px;
  cursor: pointer;
  border-radius: 12px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  width: 130px; /* 버튼의 너비를 동일하게 설정 */
  height: 70px; /* 버튼의 높이를 동일하게 설정 */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 그림자 추가 */
}

.button-container button:hover {
  background-color: yellow !important;
  color: black !important;
  transform: translateY(-5px); /* 호버 시 살짝 위로 이동 */
}

.co-buttons {
    background-color: #E31936 !important;
    color: white !important; /* 텍스트 색상 */
}

.gs-buttons {
    background-color: #22AA7C !important; /* Jade Green */
    color: rgb(255, 255, 255) !important; /* 텍스트 색상 */
}

.subul-buttons {
    background-color: #f3f7f8 !important;
    color: black !important; /* 텍스트 색상 */
}

/* jofEdi-sum */
#order-summary-grid {
    width: 100% !important;
    height: auto !important;
    overflow: hidden !important;
}

#order-summary-grid .ag-root-wrapper {
    overflow: hidden !important;
}

#order-summary-grid .ag-root-wrapper-body {
    width: 100% !important;
}

#order-summary-grid .ag-body-viewport {
    overflow-y: hidden !important;
}

#show-order-summary {
    padding: 10px;
}

/* jofEdi-sumGs */
#order-summary-container {
    margin: 10px 10px 10px 10px;
    padding: 10px;
}

#orderGs-summary-container {
    margin: 10px 10px 10px 10px;
    padding: 10px;
}

#orderGs-summary-grid {
    width: 100% !important;
    height: auto !important;
    overflow: hidden !important;
}

#orderGs-summary-grid .ag-root-wrapper {
    overflow: hidden !important;
}

#orderGs-summary-grid .ag-root-wrapper-body {
    width: 100% !important;
}

#orderGs-summary-grid .ag-body-viewport {
    overflow-y: hidden !important;
}

#show-orderGs-summary {
    padding: 0;
}

.custom-button {
  background-color: #0577A8; /* 녹색 배경 */
  color: white; /* 흰색 텍스트 */
  padding: 10px 20px; /* 내부 여백 */
  border: none; /* 테두리 제거 */
  border-radius: 5px; /* 모서리 둥글게 */
  cursor: pointer; /* 마우스 오버 시 커서 변경 */
  font-size: 16px; /* 글자 크기 */
}

.custom-button:hover {
    background-color: #45a049; /* 마우스 오버 시 색상 변경 */
}


/* task-panel */
.task-panel {
    position: fixed;
    top: 0;
    right: -300px; /* Hidden off-screen initially */
    width: 300px;
    height: 100%;
    background-color: #f4f4f4;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    transition: right 0.3s ease-in-out;
    padding: 5px;
}

.task-panel.active {
    right: 0; /* Slide into view */
}

.close-btn:hover {
    color: white;
    background-color: #e26534;
}

/* CSS */
.task-bar {
    display: flex;
    align-items: center;
    justify-content: space-between; /* 요소 간의 공간을 균등하게 분배 */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    width: 100%; /* 패널 전체 너비 사용 */
    box-sizing: border-box; /* 패딩 포함한 전체 너비 계산 */
}

.icon {
    color: blue;
    margin-right: 5px;
}

.text {
    color: blue;
    cursor: pointer;
}

.menu {
    cursor: pointer;
}

.task-input-panel {
    display: flex;
    gap: 10px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
}

.checkbox-wrapper {
    padding-top: 5px;
}

.task-input-content {
    position: relative;  /* 상대 위치 설정 */
    padding: 10px;
    width: 100%;
    z-index: 1000;      /* 높은 z-index 값으로 설정 */
    background-color: #f8f9fa;  /* 배경색 추가 */
    border-radius: 4px;  /* 둥근 모서리 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);  /* 그림자 효과 추가 */
}

/* 다른 요소들의 z-index를 낮게 설정 */
.task-panel {
    z-index: 999;
}

.task-bar {
    z-index: 998;
}

.button-container {
    z-index: 997;
}

.task-content {
    padding: 10px;
    width: 100%;
    z-index: 1000;
}

.task-title-input,
.task-content-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 8px;
    font-size: 0.95rem;  /* 제목은 약간 더 크게 */
}

.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;  /* 제목은 약간 더 크게 */
}

.task-footer-line {
    display: flex;
    justify-content: space-between; /* 버튼들을 양쪽 끝에 배치 */
    align-items: center; /* 수직 중앙 정렬 */
    padding: 10px; /* 패딩 추가 */
    box-sizing: border-box; /* 패딩 포함하여 크기 계산 */
}

.task-footer-line input,
.task-footer-line button {
    flex: 1; /* 버튼과 입력 필드가 동일한 비율로 공간을 차지 */
    margin: 0 5px; /* 버튼과 입력 필드 사이의 간격 */
    min-width: 0; /* 버튼이 너무 작아지지 않도록 최소 너비 설정 */
}

.task-due-date {
    flex: 1;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.75rem;  
}

.button-group {
    display: flex;
    gap: 5px;
}

.cancel-btn, .save-btn {
    padding: 5px 10px; /* 버튼의 패딩을 줄여 크기 조정 */
    font-size: 14px; /* 폰트 크기 조정 */
    border-radius: 4px; /* 모서리를 둥글게 */
    border: none; /* 테두리 제거 */
    cursor: pointer; /* 커서 모양 변경 */
}

.cancel-btn {
    background-color: #6c757d; /* 회색 배경 */
    color: white; /* 텍스트 색상 */
}

.save-btn {
    background-color: #007bff; /* 파란색 배경 */
    color: white; /* 텍스트 색상 */
}
.save-btn:hover {
    background-color: #0056b3;
}

.cancel-btn:hover {
    background-color: #5a6268;
}


.title {
    cursor: pointer;
}

.title:hover {
    text-decoration: underline;
}


.finished-text {
    text-decoration: line-through;
    color: #888;
}

.task-item {
    font-size: 0.9rem;  /* 기본 폰트 크기 축소 */
}

.task-item.finished {
    opacity: 0.8;
}

.task-title-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.task-title-line .title {
    font-weight: bold;
    font-size: 0.95rem;  /* 제목은 약간 더 크게 */
}

.task-description {
    margin: 5px 0 5px 25px;
    font-size: 0.85rem;  /* 내용은 더 작게 */
}

.task-footer {
    font-size: 0.8rem;  /* 하단 정보는 가장 작게 */
    margin-left: 25px;
    color: #666;     /* 체크박스 너비만큼 들여쓰기 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.modify-info {
    margin-left: 10px;
    font-size: 0.8rem;
}

.delete-btn {
    padding: 3px 5px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-left: 5px;
}

.delete-btn:hover {
    background-color: #c82333;
}

.task-title-line {
    display: flex;
    align-items: center;
}

/* 모바일에서 버튼이 한 줄에 2개만 나오도록 설정 */
@media (max-width: 768px) {
    #orderGs-summary-grid .ag-body-viewport {
        overflow-x: auto !important;
    }

    .button-container {
        justify-content: center;
        gap: 2px; /* 버튼 간 간격 축소 */
        padding: 2px; /* 컨테이너 패딩 축소 */
    }
    .button-container button {
        width: 45%;
        height: 40px;
        font-size: 15px;
        margin: 5px; /* 버튼 마진 축소 */
    }

    .subul-buttons {
        background-color: #f3f7f8 !important;
        color: black !important; /* 텍스트 색상 */
    }
}
