.custom-container {
  display: block;
  flex-direction: row;
  width: 80%;
  margin: 0 auto;
  padding-top: 10px;
  background-color: #fff;
  gap: 1rem;
}

.form-group {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  flex-wrap: nowrap;
}

.form-group span {
  font-size: 14px;
  font-weight: bold;
  min-width: 120px;
  text-align: left;
}

.form-group input,
.form-group select {
  /* flex: 1; */
  width: auto;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.form-label {
  font-size: 14px;
  font-weight: bold;
}

.form-control {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
}

.bottom-container {
  display: flex;
  margin: 10px 0;
  height: 100vh;
}

.panel {
  border: 1px solid #ccc;
  background-color: #fff;
  /* padding: 10px; */
}

.left-panel-wrapper-2dept {
  border: 1px solid #ccc;
}

.left-panel-wrapper-2dept .left-panel {
  height: 50vh;
}

.left-panel {
  /* width: 20%; */
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  min-width: 180px;
}

.left-panel-toggle {
  min-width: 25px;
  align-content: center;
  text-align: center;
}

.left-panel-2dept-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.left-panel.dept2,
.left-panel.dept3 {
  flex: 1;
  overflow-y: auto;
}

.left-panel.dept2 {
  border-bottom: 1px solid #ccc;
}


.center-panel {
  /* width: 25%; */
  min-width: 200px;
  overflow-y: scroll;
}

.right-panel {
  width: 100%;
  overflow-y: scroll;
  /* padding: 15px; */
  /* background-color: #f9f9f9; */
}

#mission-detail-clone {
  overflow-y: unset;
}

.tree-group, .tree-item, .mission-title {
  display: flex;
  padding: 6px 10px;
  cursor: pointer;
  border-bottom: 1px dashed #ccc;
}

.tree-group, .mission-title {
  font-weight: bold;
}

.mission-title {
  background-color: #DAE9F8;
}

.tree-group p {
  margin: 0;
  padding-right: 10px;
}

.tree-item {

  font-size: 13px;
  color: black; 
  justify-content: right;
}

.tree-group.active, .tree-item.active, .mission-item.active {
  background-color: #fce4d6;
  font-weight: bold;
}

.mission-item {
  padding: 6px 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.mission-detail h3 {
  margin-top: 0;
}

.mission-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.mission-table th, .mission-table td {
  border: 1px solid #ccc;
  padding: 6px;
  text-align: center;
}

.mission-table th {
  background-color: #f0f0f0;
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
  flex: 2;
  flex-basis: min-content;
}

.input-container.input-date {
  flex: 0.2;
  min-width: 150px;
  max-width: max-content;
}

.input-container input {
  width: 100%;
  padding-right: 30px;
}

.input-container i {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #888;
}

.input-container i:hover {
  color: #333;
}

.section-title {
  font-weight: bold;
  font-size: 18px;
  background-color: #F2F2F2;
  text-align: center;
  /* border-top: 1px solid #ccc; */
  border-bottom: 1px solid #ccc;
  border-right: 1px solid #ccc;
  padding: 5px;
  margin: 0;
}

.performance-title-container,
.mission-response-title-container {
  display: flex;
  border-top: 1px solid #ccc;
}
.title-70 {
  width: 70%;
  border-right: 1px solid #ccc;
}

.title-80 {
  width: 80%;
  border-right: 1px solid #ccc;
}

.title-50 {
  width: 50%;
  border-right: 1px solid #ccc;
}

.title-30 {
  width: 30%;
}

.title-20 {
  width: 20%;
}
/* .col-label {
  width: auto;
}

.col-content {
  width: 100%;
}

.col-author {
  width: 1%;
  white-space: nowrap;
}

.sub-title {
  background-color: #f2f2f2;
  font-weight: bold;
  text-align: left;
  padding: 8px 12px;
  white-space: nowrap;
}

.ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.nowrap {
  white-space: nowrap;
} */

.mission-name-table,
.mission-name-table-planning,
.mission-status-table,
.performance-table,
.performance-table-planning,
.performance-detail-table,
.performance-detail-table-planning,
.mission-status-response-container {
  width: 100%;
  table-layout: auto;
  margin: 0;
}

.mission-status-response-container {
  margin-bottom: 10px;
}

.mission-name-table th,
.mission-name-table-planning th,
.mission-status-table th,
.performance-detail-table th,
.performance-detail-table-planning th {
  width: 10%;
  background-color: #F2F2F2;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  text-align: center;
  font-weight: bold;
}

.mission-name-table td,
.mission-name-table-planning td,
.mission-status-table td,
.performance-detail-table td,
.performance-detail-table-planning td,
.mission-status-response-container td {
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  font-size: 18px;
  word-break: break-all;
}

.mission-name-table td:nth-child(2) {
  width: 60%;
}

.mission-name-table-planning td:nth-child(2) {
  width: 70%;
}

.mission-name-table td:not(:nth-child(2)) {
  width: 30%;
}

.mission-name-table-planning td:not(:nth-child(2)) {
  width: 20%;
}

.mission-status-table td {
  width: 50%;
}

.performance-detail-table td {
  width: 30%;
}

.performance-detail-table-planning td:not(:first-child):not(:last-child) {
  width: 35%;
}

.performance-detail-table-planning td:last-child {
  width: 20%;
}

.mission-status-response-container td {
  width: 50%;
}

.sub-content-mission-name {
  font-weight: bold;
  font-size: 18px;
}

.mission-name-table th,
.mission-status-table th,
.mission-name-table td,
.mission-name-table-planning th,
.mission-name-table-planning td{
  /* border: 1px solid #ccc; */
  padding: 8px 10px;
  vertical-align: middle;
}

.mission-status-table {
  font-size: 18px;
  margin-bottom: 1rem;
}

.mission-name-table td {
  border-bottom: 1px solid #ccc;
}

p {
  margin: 0;
}

.performance-table,
.performance-table-planning {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.performance-table td,
.performance-table-planning td {
  padding: 8px 12px;
  text-align: left;
  vertical-align: middle;
  word-break: break-all;
  font-size: 18px;
}

.performance-table td:first-child {
  width: 70%;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

.performance-table td:not(:first-child) {
  width: 30%;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

.performance-table-planning td:first-child {
  width: 80%;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}
.performance-table-planning td:not(:first-child) {
  width: 20%;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

.performance-title {
  font-weight: bold;
  font-size: 18px;
}

.performance-detail-table,
.performance-detail-table-planning {
  margin-bottom: 1rem;
}

.performance-detail-table,
.performance-detail-table th,
.performance-detail-table td,
.performance-detail-table-planning th,
.performance-detail-table-planning td
.performance-detail-table-planning,
.performance-detail-target-title,
.performance-detail-target-title th,
.performance-detail-target-title td {
  font-size: 18px;
}

.performance-detail-target-title th:not(:first-child) {
  width: 30%;
}

.performance-detail-target-title {
  padding: 5px;
}

.performance-detail-table tr:first-child th,
.performance-detail-table tr:first-child td,
.performance-detail-table-planning tr:first-child th,
.performance-detail-table-planning tr:first-child td {
  padding: 5px;
  font-size: 18px;
}

.performance-detail-target-title th {
  padding: 0;
}

.right-panel .performance-detail-table:not(:first-of-type ),
.right-panel .performance-detail-table-planning:not(:first-of-type) {
  border-top: 1px solid #ccc;
}

.upload-modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
}

.upload-modal-content {
  background: #fff;
  padding: 20px;
  margin: 10% auto;
  width: 90%;
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  font-family: 'Arial', sans-serif;
}

.upload-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.upload-modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
}

.file-label {
  display: inline-block;
  background: #0073aa;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
}

.file-label:hover {
  background: #005e8a;
}

.upload-file-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #eee;
  border-radius: 5px;
  padding: 10px;
}

.upload-file-list li {
  border-bottom: 1px solid #eee;
  padding: 6px 0;
}

.upload-file-list li:last-child {
  border-bottom: none;
}

.upload-modal-footer {
  text-align: right;
  margin-top: 15px;
  justify-items: center;
}

.btn-cancel {
  background-color: #6D6D6D;
  color: white;
  border: 1px solid black;
  font-weight: bold;
  padding: 8px 14px;
  border-radius: 5px;
  cursor: pointer;
}

.btn-cancel:hover {
  background-color: #C53B4B;
  border: 1px solid #F2BBD4;
  color: white;
}

/* 공통 스타일 */
.toggle-view-button {
  padding: 5px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* 기본 상태: 테두리형 버튼 */
.toggle-view-button.primary-outline {
  background: #6D6D6D;
  color: white;
  border: 1px solid black;
}

/* hover 시 배경색 채워지는 효과 */
.toggle-view-button.primary-outline:hover {
  border: 1px solid #F2BBD4;
  background: #C53B4B;
  color: white;
}

/* 추가: 모바일 대응 중앙정렬 */
.toggle-view-wrapper {
  text-align: center;
  margin: 10px 0;
}

.navigation-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.navigation-buttons button {
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#fullscreen-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

#fullscreen-modal .modal-wrapper {
  background: #fff;
  width: 100vw;
  height: 100vh;
  overflow-y: auto;
  border-radius: 10px;
  position: relative;
  /* padding: 20px; */
  padding: 0 20px 20px 20px;
}

/* .modal-wrapper {
  position: relative;
  background: #fff;
  width: 90vw;
  height: 90vh;
  overflow-y: auto;
} */

#fullscreen-modal .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 18px;
  cursor: pointer;
  background: none;
  border: none;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  background: none;
  border: none;
  font-size: 20px;
  font-weight: bold;
  z-index: 100;
  color: #333;
}

.modal-wrapper-topbar {
  height: 50px;
  position: sticky;
  top: 0;
  z-index: 99999;
  width: 100%;
  background-color: #fff;
  border-bottom: 1px solid #ccc;
}


@media (max-width: 600px) {
  .toggle-view-button {
    width: 90%;
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .custom-container {
    flex-direction: column;
    height: auto;
  }

  .left-panel, .center-panel, .right-panel {
    width: 100%;
    height: auto;
  }
}