.custom-container {
  width: 80%;
  margin: 0 auto;
  background-color: #fff;
}

.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: right;
  padding-right: 10px;
}

.form-group input,
.form-group select,
.form-group textarea {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.form-group textarea {
  min-height: 50px;
}

.form-group-half {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.form-group-half input,
.form-group-half select,
.form-group-half textarea {
  width: 50%;
}

.form-group .form-group-three {
  width: 33.33%;
  display: flex;
  gap: 10px;
}

.form-group .form-group-three span {
  font-size: 13px;
  text-align: right;
  width: 110px;
  align-content: center;
  font-weight: bold;
  padding-right: 10px;
}

.form-group .form-group-three input,
.form-group .form-group-three select {
  flex: 1;
  /* max-width: 200px; */
}

.form-group-two-thirds {
  display: flex;
  gap: 10px;
  width: 100%;
}

.form-group-two-thirds input,
.form-group-two-thirds select,
.form-group-two-thirds textarea {
  width: 66.66%;
}

.form-group.form-group-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.form-label {
  font-size: 14px;
  font-weight: bold;
}

.form-control {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
}

.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;
}

.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;
}

.datepicker-icon {
  font-size: 16px;
  cursor: pointer;
}

#mps-sum-view {
  background-color: #4B5563; /* 세련된 회색 */
  color: #ffffff;
  border: 1px solid #D1D5DB; /* 드롭다운 계열과 통일 */
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: none;
  white-space: nowrap;
  height: 40px; /* 버튼 높이 */
}

#mps-sum-view:hover {
  background-color: #374151; /* hover 시 더 진한 색 */
  border-color: #9CA3AF;
}

#mps-sum-view:active {
  background-color: #1F2937;
  border-color: #6B7280;
  transform: scale(0.98);
}


button:not(.toggle-button) {
  background-color: #6D6D6D;
  border: 1px solid black !important;
  color: white;
  border: 2px solid transparent;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
  white-space: nowrap; 
}

button:disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
}

button:hover:not(:disabled):not(.toggle-button) {
  background-color: #C53B4B;
  border: 1px solid #F2BBD4;
  color: white;
  /* color: #2f5597; */
}

button i {
  font-size: 16px;
}

.bottom-container {
  display: block;
  padding: 10px 0;
  border-radius: 10px;
}

.bottom-container .bottom-container-header {
  display: flex;
  /* justify-content: space-between; */
  justify-self: right;
  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,
.bottom-container .bottom-container-button 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,
.bottom-container .bottom-container-button button:hover {
  background-color: #C53B4B;
  border: 1px solid #F2BBD4;
  color: white;
}

.bottom-container .bottom-container-button {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  gap: 10px;
}
.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;
}

.bottom-container .bottom-container-search form .form-group {
  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, .top-container-table {
  width: 100%;
  border: 1px solid #ccc;
}

.bottom-container-table thead, .top-container-table thead {
  background-color: #9C9797;
  color: white;
}


.bottom-container-table thead tr th {
  padding: 10px;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
}

.bottom-container-table tbody tr td {
  vertical-align: middle;
  font-size: smaller;
}

.bottom-container-table tbody tr td:not(:nth-child(4)) {
  text-align: center;
}

/* .bottom-container-table tbody tr td:nth-child(9), 
.bottom-container-table tbody tr td:nth-child(10), 
.top-container-table tbody tr td:nth-child(8), 
.top-container-table tbody tr td:nth-child(9), 
.top-container-table tbody tr td:nth-child(10) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
  height: auto;
}

.bottom-container-table tbody tr td:nth-child(9):hover, 
.bottom-container-table tbody tr td:nth-child(10):hover, 
.top-container-table tbody tr td:nth-child(8):hover, 
.top-container-table tbody tr td:nth-child(9):hover, 
.top-container-table tbody tr td:nth-child(10):hover {
  overflow: visible;
  white-space: normal;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
} */

.button-area {
  justify-items: center;
  padding:0;
}

.bottom-container-table tbody tr td:nth-child(6),
.bottom-container-table tbody tr td:nth-child(8) {
  vertical-align: middle;
}

.ui-datepicker-title select {
  padding: 2px;
  height: 2em;
}

.ui-datepicker-prev, .ui-datepicker-next {
  align-self: anchor-center;
}

.selected {
  /* background-color: #c0c9e0;
  border: 1px solid #2f5597;
  color: black;
  font-weight: bold; */
  background-color: #f8f8f8 !important;
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: none;
  z-index: 999;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 60%;
  border-radius: 8px;
  text-align: center;
}

.modal-content table thead tr th {
  text-align: center;
  font-weight: bold;
}

.modal-content table tbody tr td:not(:nth-child(4)) {
  text-align: center;
}
.modal-content {
  max-height: 80vh;
  overflow-y: auto;
}

.modal textarea {
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  resize: vertical;
}

.button-container-sub {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.none-read td {
  font-weight: bold;
}

.max-width-max-content {
  max-width: max-content !important;
}

.min-h-40 {
  min-height: 40px;
}

.align-content-center {
  align-content: center !important;
}

.max-w-max-content {
  max-width: max-content !important;
}

.mb-10 {
  margin-bottom: 10px !important;
}

.justify-content-end {
  justify-content: flex-end !important;
}

.text-align-right {
  text-align: right !important;
}

.flex {
  display: flex !important;
}

.justify-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.width-auto {
  width: auto !important;
}

.box-tab-group {
  display: flex;
  border: 1px solid #ccc;
  border-bottom: none;
  width: fit-content;
  overflow: hidden;
}

.box-tab-group .box-tab {
  all: unset; /* ← button 기본 스타일 초기화 */
  border: unset;
  display: inline-block;
  padding: 10px 18px;
  background-color: white;
  color: black;
  font-weight: 600;
  cursor: pointer;
  border-right: 1px solid #ccc !important;
  border-left: none !important;
  border-top: none !important;
  border-bottom: none !important;
  /* border-bottom: 1px solid #ccc !important; */
  text-align: center;
  white-space: nowrap;
  font-size: 1.25rem; /* 16px */
}

.box-tab-group .box-tab:last-child {
  border-right: none !important;
}

.box-tab-group .box-tab.active {
  background-color: #e0e6f6;
  color: black;
  /* border-bottom: 1px solid white; */
}

.box-tab-group .box-tab:hover {
  background-color: #f0f0f0 !important;
  color: black !important;
}

.width-30 {
  width: 30% !important;
}

.flex-1 {
  flex: 1 !important;
}

.justify-content-space-between {
  justify-content: space-between !important;
}

.ml-10 {
  margin-left: 10px !important;
}

.min-w-max-content {
  min-width: max-content !important;
}

.min-w-unset {
  min-width: unset !important;
}


.search-section-title {
  border-left: 4px solid #D63384; /* 원하는 포인트 컬러 */
  padding-left: 12px;
  margin-bottom: 12px;
}

.search-section-title h2 {
  margin: 0;
  font-size: 1.5rem; /* 24px */
  font-weight: bold;
  color: #222;
}

.popup {
  min-width: 400px;
}

@media screen and (max-width: 1300px) {
  .flex-col {
    flex-direction: column-reverse !important;
  }

  .max-w-max-content {
    max-width: none !important;
  }
  .text-align-right {
    text-align: unset !important;
  }
  .gap-10 {
    gap: 10px !important;
  }

  .box-tab-group .box-tab {
    width: 100%;
  }

  .box-tab-group {
    width: 100%;
  }
}

@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 !important;
  }

  .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;
  }

  .bottom-container-table tbody tr td:nth-child(8), .bottom-container-table tbody tr td:nth-child(9), .bottom-container-table tbody tr td:nth-child(10), .top-container-table tbody tr td:nth-child(8), .top-container-table tbody tr td:nth-child(9), .top-container-table tbody tr td:nth-child(10) {
    max-width: 100%;
  }

  .button-area {
    justify-items: center;
    padding: unset;
  }

  .flex-col {
    flex-direction: column-reverse !important;
  }

  .max-w-max-content {
    max-width: none !important;
  }
  .text-align-right {
    text-align: unset !important;
  }
  .gap-10 {
    gap: 10px !important;
  }

  .box-tab-group .box-tab {
    width: 100%;
  }

  .box-tab-group {
    width: 100%;
  }
}