
.custom-container {
  width: 80%;
  margin: 0 auto;
}

.custom-container .top-container {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  margin-top: 10px;
}

.custom-container .top-container .top-container-left {
  width: 70%;
}

.custom-container .top-container .top-container-right {
  width: 30%;
  padding: 20px 20px 0 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background-color: white;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 10px 0 30px 0;
  display: flex;
  flex-direction: column;
}

.custom-container .top-container .top-container-center {
  width: 100%;
}

.selected {
  background-color: #f0f0f0 !important;
}

#message-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 300px; /* 내부 최대 높이 지정, 초과하면 스크롤 */
  overflow-y: auto;
  padding-right: 5px;
}

/* 스크롤바 스타일 */
#message-container::-webkit-scrollbar {
  width: 6px;
}

#message-container::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 10px;
}

.custom-container .top-container .top-container-left form {
  width: 100%;
  padding: 10px;
  display: block;
}

.form-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
}

.form-group span {
  font-size: 13px;
  width: 110px;
  text-align: left;
  margin: 0 5px;
  align-content: center;
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  flex: 1;
  height: 40px;
  padding: 0 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #fff;
}

.form-group .form-group-half {
  width: 50%;
  display: flex;
}

.form-group .form-group-half span {
  font-size: 13px;
  text-align: left;
  margin: 0 5px;
  width: 110px;
  align-content: center;
  font-weight: bold;
}

.form-group .form-group-half input,
.form-group .form-group-half select {
  flex: 1;
}

.form-group .form-group-three {
  width: 33.33%;
  display: flex;
}

.form-group .form-group-three span {
  font-size: 13px;
  text-align: left;
  margin: 0 5px;
  width: 110px;
  align-content: center;
  font-weight: bold;
}


.form-group .form-group-three input,
.form-group .form-group-three select {
  flex: 1;
  max-width: 200px;
}

.form-group.form-group-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
  flex: 2;
  flex-basis: min-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;
}

.bottom-container {
  display: block;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background-color: white;
}

.bottom-container .bottom-container-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.bottom-container .bottom-container-header h2 {
  margin: 0;
  font-size: medium;
}

.bottom-container .bottom-container-header button,
.bottom-container .bottom-container-search button,
.top-container .top-container-left button {
  background-color: #6D6D6D;
  border: 1px solid black;
  color: white;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
}

.bottom-container .bottom-container-header button:hover,
.bottom-container .bottom-container-search button:hover {
  background-color: #C53B4B;
  border: 1px solid #F2BBD4;
  color: white;
}

.bottom-container .bottom-container-search button {
  margin-left: 10px;
}

.bottom-container .bottom-container-search {
  display: block;
}

.bottom-container .bottom-container-search form {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: white;
  margin-bottom: 10px;
}

#search-status,
#search-instructed-date-picker,
#search-instructed-date-picker-end,
.bottom-container .bottom-container-search form .form-group .input-container {
  max-width: 200px;
}

.bottom-container .bottom-container-search form .form-group {
  margin-bottom: 10px;
}

.bottom-container-table {
  width: 100%;
}

.bottom-container-table thead {
  background-color: #9C9797;
  color: white;
}

.bottom-container-table thead th {
  text-align: center;
  font-weight: bold;
}

.bottom-container-table tbody tr {
  background-color: white;
  cursor: default;
}

.bottom-container-table tbody tr:hover {
  background-color: #f8f8f8;
  cursor: pointer;
}

.bottom-container-table tbody tr td:not(:nth-child(2)):not(:nth-child(3)) {
  text-align: center;
}

/* .ui-datepicker-title {
  display: flex;
  align-items: center;
  justify-content: center;
} */

.ui-datepicker-title select {
  padding: 2px;
  height: 2em;
}

.ui-datepicker-prev, .ui-datepicker-next {
  /* display: flex;
  align-items: center;
  justify-content: center; */
  align-self: anchor-center;
}

.message-row {
  /* background: #f8f9fa; */
  background: white;
  padding: 12px;
  border-radius: 10px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
  max-width: 320px;
  font-family: 'Arial', sans-serif;
}

.message-date {
  font-size: 12px;
  color: #6c757d;
  font-weight: bold;
  margin-bottom: 5px;
  display: block;
}

.message-content {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
  word-wrap: break-word;
}

.sketch-link-icon {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 500;
  background-color: #eef5ff;
  color: #007bff;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.form-group-two-thirds {
  display: flex;
  flex-direction: row;
  align-items: center;
  /* justify-content: space-between; */
  /* gap: 10px; */
  width: 100%;
}

/* form-group-two-thirds 내부의 input, select, textarea를 66.66%로 지정 */
.form-group-two-thirds input,
.form-group-two-thirds select,
.form-group-two-thirds textarea {
  width: 66.66%;
} 

.sketch-link-icon i {
  margin-right: 5px;
}

.sketch-link-icon:hover {
  background-color: #dbeaff;
}

.file-from-Div > input[type="file"] {display: none;}
.file-upload-form .form-group {
  margin-bottom: 0;
}

.modal {
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
}

.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;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
}

.close {
  font-size: 1.5rem;
  cursor: pointer;
  color: #888;
}

.upload-box {
  text-align: center;
  margin: 20px 0;
}

.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;
}

.file-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #eee;
  border-radius: 5px;
  padding: 10px;
  /* font-size: 0.9rem; */
}

.file-list li {
  border-bottom: 1px solid #eee;
  padding: 6px 0;
}
.file-list li:last-child {
  border-bottom: none;
}

.modal-footer {
  text-align: right;
  margin-top: 15px;
  justify-items: center;
}

.modal-footer p {
  margin: 0;
  font-size: 1.4rem;
  color: red;
  text-align: center;
}

.btn-cancel {
  background-color: #6D6D6D;
  color: white;
  border: 1px solid black;
  font-weight: bold;
  /* border: none; */
  padding: 8px 14px;
  border-radius: 5px;
  cursor: pointer;
}

.btn-cancel:hover {
  background-color: #C53B4B;
  border: 1px solid #F2BBD4;
  color: white;
}

.drop-zone {
  border: 2px dashed #aaa;
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  color: #666;
  cursor: pointer;
  transition: background 0.3s ease;
  font-weight: bold;
}

.drop-zone p {
  margin: 0;
}

.drop-zone.dragover {
  background: #f0f8ff;
  border-color: #0073aa;
  color: #0073aa;
}

@media screen and (max-width: 768px) {

  .custom-container .top-container {
      display: block;
  }

  .custom-container .top-container .top-container-left,
  .custom-container .top-container .top-container-right {
      width: 100%;
  }

  .form-group {
      flex-direction: column;
  }

  .form-group span {
      width: 100%;
      margin-bottom: 5px;
  }

  .form-group input,
  .form-group textarea {
      width: 100%;
  }

  .form-group .form-group-half,
  .form-group .form-group-three,
  .form-group .form-group-two-thirds {
      flex-direction: column;
      width: 100%;
  }

  .form-group .form-group-half span,
  .form-group .form-group-three span,
  .form-group .form-group-two-thirds span {
      width: 100%;
      margin-bottom: 5px;
  }
  
  .form-group .form-group-half input,
  .form-group .form-group-half select,
  .form-group .form-group-three input,
  .form-group .form-group-three select,
  .form-group .form-group-two-thirds input,
  .form-group .form-group-two-thirds select {
      width: 100%;
      max-width: none;
  }

  .form-group.form-group-button {
      flex-direction: row;
  }

  .input-container {
      width: 100%;
  }

  .input-container input {
      width: 100%;
  }

  .input-container i {
      right: 5px;
  }

  .bottom-container .bottom-container-header {
      flex-direction: column;
  }

  .bottom-container .bottom-container-header button,
  .bottom-container .bottom-container-search button {
      width: 100%;
      margin-bottom: 10px;
  }

  .bottom-container .bottom-container-search button {
      margin-left: 0;
  }

  .bottom-container .bottom-container-search form .form-group .input-container {
      width: 100%;
  }

  #search-status,
  #search-instructed-date-picker,
  #search-instructed-date-picker-end,
  .bottom-container .bottom-container-search form .form-group .input-container {
      width: 100%;
      max-width: none;
  }

  .bottom-container-table, 
  .bottom-container-table thead, 
  .bottom-container-table tbody, 
  .bottom-container-table th, 
  .bottom-container-table td, 
  .bottom-container-table tr {
      display: block;
  }

  .bottom-container-table thead {
      display: none;
  }

  .bottom-container-table tr {
      margin-bottom: 15px;
      border: 1px solid #ddd;
      padding: 10px;
      background: #fff;
  }

  .bottom-container-table td {
      display: flex;
      justify-content: space-between;
      padding: 8px;
      border-bottom: 1px solid #eee;
  }

  .bottom-container-table td:last-child {
      border-bottom: none;
  }

  .bottom-container-table td::before {
      content: attr(data-label);
      font-weight: bold;
      color: #555;
  }

}
