@charset "UTF-8";

/* ==========
로그인 패스워드
==========*/

.login-wrapper,
.password-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
  flex-direction: column;
}

.login-wrapper,
.password-wrapper {
  background: url("../img/loginbg_img.png") 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* login, password logo*/
.login_logo {
  width: 133px;
  height: 189px;
  margin-bottom: 4%;
}

/* login, password form */
.login-form {
  width: 100%;
  max-width: 410px;
  border-radius: var(--border-radius-medium);
}

.login_inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 0;
}

.login_inner .input_box {
  position: relative;
  width: 100%;
}

.login_inner .input_box input {
  width: 100%;
  height: 60px;
  font-size: 18px;
  font-weight: 400;
  padding: 0 20px 0 54px;
  border-radius: var(--border-radius-medium);
}

.login_inner .input_box .ico {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  transition: 0.3s;
}

.login_inner .input_box input:focus + .ico {
  filter: invert(1);
}

.id_pw_info {
  color: var(--color-system-error);
  font-size: 14px;
  line-height: 134%;
  width: 100%;
}

.login_logo_bottom {
  margin-top: 2%;
}

.pw_info {
  font-size: 28px;
  text-align: center;
  font-weight: 500;
  margin-bottom: 35px;
}

/* ==========
mainPage
==========*/
.mainContent {
  display: flex;
  gap: 30px;
  height: calc(100% - 185px);
}

/* 메인 왼쪽 영역 */
.mainContent .main-left {
  width: calc(60% - 15px);
  height: 100%;
  background-color: var(--color-white);
  border-radius: var(--border-radius-large);
  box-shadow: var(--box-shadow);
  overflow-y: auto;
}

.main-left .mainBtn-box {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 4%;
  padding: 4.5%;
}

.mainBtn-box .mainBtn {
  position: relative;
  display: block;
  width: calc(92% / 3);
  text-align: center;
  padding: 8% 15px 10%;
  border: 2px solid var(--color-primary-sky-blue-100);
  border-radius: var(--border-radius-large);
  box-shadow: 8px 8px 3px rgba(218, 218, 218, 0.6);
}

.mainBtn-box .btnImgBox {
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
  font-size: 0;
}

.mainBtn-box .btnImgBox img {
  width: 3vw;
  max-width: 60px;
  min-width: 40px;
}

.mainBtn-box .btnImgBox .apprCnt {
  position: absolute;
  top: -12px;
  right: -8px;
  width: 26px;
  line-height: 26px;
  color: var(--color-white);
  background-color: var(--color-system-point);
  border-radius: var(--border-radius-circle);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.mainBtn-box .btnTxtBox strong {
  font-size: 24px;
  font-weight: 600;
}

.mainBtn-box .arrowBtn {
  position: absolute;
  right: 10%;
  bottom: 10%;
  width: 24px;
  height: 24px;
  font-size: 0;
  background: url("../img/btn_arrow.png") no-repeat center;
  transition: 0.3s;
}

.mainBtn-box .mainBtn:hover .arrowBtn,
.mainBtn-box .mainBtn:focus .arrowBtn {
  transform: translateX(5px);
}

/* 메인 오른쪽 영역 */
.mainContent .main-right {
  width: calc(40% - 15px);
  height: 100%;
  background: url("../img/main_right_text.png") right 60px top 13%,
    url("../img/main_right_logo.png") center bottom 40px,
    url("../img/main_right_back.jpg") center / cover;
  background-repeat: no-repeat;
  border: 1px solid var(--color-disabled-bg);
  border-radius: var(--border-radius-large);
  box-shadow: var(--box-shadow);
}

/* 해상도 1700px 이하 (메인화면) */
@media (max-width: 1700px) {
  .mainContent .main-left {
    width: calc(100% - 450px);
  }

  .main-left .mainBtn-box {
    gap: 30px 4%;
    padding: 35px;
  }

  .mainBtn-box .mainBtn {
    max-height: 25vh;
    min-height: 170px;
    padding: 6vh 15px 8vh;
  }

  .mainBtn-box .btnImgBox {
    margin-bottom: 8px;
  }

  .mainBtn-box .btnTxtBox strong {
    font-size: 20px;
  }

  .mainContent .main-right {
    width: 420px;
    background-size: 240px, 80px, cover;
    background-position: right 30px top 13%, center bottom 30px, center;
  }
}

/* 페이지 영역 */
#content-area {
  width: calc(100% - 250px); /* 변경시 #sidebar-area 확인 */
  height: 100vh;
  position: relative;
  padding: 0 30px 40px;
  overflow-x: hidden;
  overflow-y: auto;
}

#content-area::-webkit-scrollbar-track {
  background: var(--color-white);
}

/* 토글 사이드바 (닫혔을 경우) */
#content-area.full {
  width: 100%;
}

/* subContent box */
.subContent-box {
  background-color: var(--color-white);
  border-radius: var(--border-radius-large);
  padding: 30px;
  box-shadow: var(--box-shadow);
}

/* searchBar */
.searchBar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 30px;
  padding: 22px 30px 26px;
  background: var(--color-white);
  border-radius: var(--border-radius-large);
  box-shadow: var(--box-shadow);
}

.searchBar > * {
  height: 100%;
  display: flex;
  align-items: center;
}

.searchBar p {
  margin: 0 10px;
}

/* searchBar-left */
.searchBar-left {
  width: calc(100% - 100px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px 1.5%;
  font-size: 14px;
  font-weight: 600;
}

.searchBar-right {
  margin-left: auto;
}

.searchBar_item {
  display: flex;
  align-items: center;
}

.searchBar_item_title {
  margin-bottom: 8px;
  padding-left: 4px;
}

.searchBar_item_select {
  display: flex;
  flex-direction: row;
  gap: 8px;
}

/* 컨텐츠 */
.content_box {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  background-color: var(--color-white);
  border-radius: var(--border-radius-large);
  gap: 2%; /* gap 조정 */
  padding: 50px;
}

/* 카드 콘텐츠 (작업절차서) */
.content_box_card {
  height: calc(100% - 185px);
  padding: 50px;
  background-color: var(--color-white);
  border-radius: var(--border-radius-large);
  box-shadow: var(--box-shadow);
  overflow-y: auto;
}

.card_inner_box {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 30px 5%;
}

.card_item {
  width: 30%;
  padding: 20px 100px 25px 30px;
  background: url("../img/icon_work procedure_24.png") no-repeat right 20px
    center;
  border: 1px solid var(--color-border-gray);
  border-radius: var(--border-radius-medium);
  box-shadow: var(--box-shadow);
  cursor: pointer;
}

.card_item .card_info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.card_item .card_info_cate {
  padding: 5px 15px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--border-radius-large);
  color: var(--color-white);
  background-color: #7966ec;
  flex: 0 0 auto;
}

.card_item .card_info_cate.update {
  background-color: #66acec;
}

.card_item .card_info_name {
  font-weight: 500;
}

.card_item .card_title {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.4;
}

/* 체크박스 리스트 */
.checklist_flex {
  display: flex;
  align-items: center;
  column-gap: 10px;
  position: relative;
}

.checklist_flex .deleteBtn {
  position: absolute;
  top: 50%;
  right: -30px;
  transform: translateY(-50%);
  z-index: var(--z-index-default);
}

.checklist_flex .rowAddBtnTd {
  width: 100%;
}

.comment_wrapper {
  display: none; /* 초기에는 숨김 상태로 설정 */
  border: 1px solid var(--color-border-gray);
  border-radius: var(--border-radius-small);
  max-height: 97px;
  overflow-y: auto;
  margin-top: 8px;
  padding: 4px 10px;
}

.comment_wrapper.has_comment {
  display: block; /* comment_box 데이터가 생기면 보이도록 설정 */
}

.comment_box {
  width: 100%;
  font-size: 12px;
  padding: 4px 0;
}

.comment_text {
  color: var(--color-black);
  margin-bottom: 2px;
}

.comment_green {
  color: var(--color-primary-green-100);
  font-weight: 600;
}

.machine_list_grid .grid_header,
.machine_list_grid .grid_body {
  grid-template-columns: 80px repeat(6, calc((100% - 270px) / 6)) 90px 100px;
  text-align: center;
}

/* 체크박스 커스텀 */
body input[type="checkbox"] {
  width: 24px;
  height: 24px;
  padding: 0;
  border-color: var(--color-primary-green-100);
  border-radius: 4px;
  background-color: var(--color-white);
  flex: 0 0 auto;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* checked 상태 스타일 */
body input[type="checkbox"]:checked {
  background-image: url("/img/icon_checked.png");
  background-repeat: no-repeat;
  background-position: center;
}

/* disabled 상태 스타일 */
body input[type="checkbox"]:disabled {
  border-color: var(--color-disabled-bg);
  background-color: var(--color-disabled-bg);
  cursor: default;
}

/* 라디오버튼 커스텀 */
.radioBox {
  display: inline-flex;
  margin: 0 5px;
}

.radioBox label {
  cursor: pointer;
}

.radioBox input[type="radio"] {
  position: relative;
  width: 16px;
  height: 16px;
  padding: 0;
  margin-right: 5px;
  border-color: var(--color-primary-green-100);
  border-radius: var(--border-radius-circle);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.radioBox input[type="radio"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: var(--border-radius-circle);
  background-color: var(--color-primary-green-100);
  opacity: 0;
  transition: 0.3s;
}

.radioBox input[type="radio"]:checked::after {
  opacity: 1;
}

/* 데이터 없을 경우 출력 메시지 */
.no_data_msg {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  user-select: none;
}

/* =============================
   화면별 추가 CSS
============================= */

/* 매출 관리 - 영업이익 툴팁 */
.salesTable td {
  position: relative;
}

.salesTable td .sales-info {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: var(--z-index-tooltip);
  width: 160px;
  padding: 10px;
  border: 2px solid var(--color-primary-green-100);
  background-color: var(--color-secondary-green);
  border-radius: var(--border-radius-large);
  box-shadow: var(--box-shadow);
}

.salesTable td .sales-info.on {
  display: block;
}

.salesTable td .sales-info::after,
.salesTable td .sales-info::before {
  content: "";
  position: absolute;
  top: -24px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: var(--border-radius-circle);
  background-color: var(--color-primary-green-100);
}

.salesTable td .sales-info::before {
  top: -15px;
  left: 8px;
  width: 8px;
  height: 8px;
}

/* 하단 2개 생성 위치 변경 */
.salesTable tr:nth-last-child(-n + 2) td .sales-info {
  top: auto;
  bottom: calc(100% + 10px);
}

.salesTable tr:nth-last-child(-n + 2) td .sales-info::after {
  top: auto;
  bottom: -24px;
}

.salesTable tr:nth-last-child(-n + 2) td .sales-info::before {
  top: auto;
  bottom: -15px;
}

/* 우측 2개 생성 위치 변경 */
.salesTable td:nth-last-child(-n + 2) .sales-info {
  left: auto;
  right: 50%;
}

.salesTable td:nth-last-child(-n + 2) .sales-info::after {
  left: auto;
  right: 0;
}

.salesTable td:nth-last-child(-n + 2) .sales-info::before {
  left: auto;
  right: 8px;
}

.salesTable td .sales-info span {
  display: block;
  margin: 5px 0;
}
.salesTable td .sales-info span:last-child {
  border-top: 1px solid #ccc;
  padding-top: 5px;
}

/* 비용 관리 - 테이블 */
.costList {
  overflow-y: auto;
  max-height: 500px;
  margin-top: 20px;
}

.costList table {
  margin-top: 0;
}

.costList table td {
  padding: 10px 5px;
}

/* 매출 관리 - 상세 모달 테이블 */
.sales_chart_wrap {
  display: flex;
  width: 100%;
}

/* 차트 테이블 왼쪽 영역 */
.sales_chart_wrap .table_box_left {
  width: 340px;
}

.sales_chart_wrap .table_box_left .popup_table th {
  min-width: auto;
}

/* 차트 테이블 오른쪽 영역 */
.sales_chart_wrap .table_box_right {
  width: calc(100% - 340px);
  overflow-x: auto;
}

.sales_chart_wrap .table_box_right .popup_table {
  border-spacing: 0 4px;
}

.sales_chart_wrap .table_box_right .popup_table th {
  min-width: auto;
  padding: 16px 20px;
  border-radius: 0;
  border-right: 1px solid var(--color-white);
}

.sales_chart_wrap .table_box_right .popup_table th:first-child {
  border-radius: 8px 0 0 8px;
}

.sales_chart_wrap .table_box_right .popup_table th:last-child {
  border-radius: 0 8px 8px 0;
}

.sales_chart_wrap .table_box_right .popup_table .chart_bar_box {
  display: flex;
}

.sales_chart_wrap .table_box_right .popup_table .chart_bar {
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border-gray);
  border-right-width: 0;
}

.sales_chart_wrap
  .table_box_right
  .popup_table
  td:last-child
  .chart_bar:last-child {
  border-right-width: 1px;
}

.sales_chart_wrap .table_box_right .popup_table .chart_bar.fill {
  background-color: var(--color-system-generic);
}

.sales_chart_wrap
  .table_box_right
  .popup_table
  tr:nth-child(odd)
  .chart_bar.fill {
  background-color: var(--color-system-success);
}

/* 프로젝트 관리 - 필드 검색 기능 */
.input_search_wrap,
.input_search_text {
  position: relative;
}

.input_search_content {
  display: flex;
  align-items: center;
  width: 100%;
  line-height: 40px;
  padding: 0 20px;
  border: 1px solid var(--color-border-gray);
  border-radius: var(--border-radius-small);
}

.input_search_content:focus {
  border-color: var(--color-primary-green-100);
  outline: none;
}

.input_search_list {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 120px;
  background-color: var(--color-white);
  box-shadow: 0 4px 12px rgba(218, 218, 218, 0.7);
  overflow-y: auto;
  z-index: var(--z-index-content);
}

.input_search_list > div {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 14px 20px;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-secondary-green);
  cursor: pointer;
  transition: 0.3s;
}

.input_search_list > div:hover {
  background-color: var(--color-background-gray);
}

/* 체크 이미지 */
.input_search_wrap img {
  display: none;
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}

/* 담당자 직책 */
.pos_text {
  font-size: 12px;
  margin-left: 6px;
  color: var(--color-text-sub);
}

/* 공지사항 등록 */
.ck.ck-content {
  height: 53vh;
}

/* 공지사항 상세 */
.notice_content {
  padding: 20px 8px;
  min-height: calc(100vh - 550px);
}

.popup_table .notice_btn_td {
  padding-top: 20px;
  border-top: 1px solid var(--color-border-gray);
}

/* 엑셀 아이콘 */
.excel_icon_box_wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;

  margin-top: 10px;
  padding: 0 6px;

  gap: 6px;
}

.excel_icon_btn
, .excel_sample_btn
, .barcode_btn
, .qr_code_btn {
  padding: 2px 3px 0 2px;

  border-radius: var(--border-radius-small);

  cursor: pointer;

  transition: background-color 0.3s ease;
}

.excel_icon_btn {
  border: 2px solid var(--color-primary-blue-100);
}

.excel_sample_btn {
  border: 2px solid var(--color-primary-green-100);
}

.barcode_btn {
  border: 2px solid black;
}

.qr_code_btn {
  border: 2px solid black;
}

.excel_icon_btn:hover {
  background-color: var(--color-primary-sky-blue-100);
}

.excel_sample_btn:hover {
  background-color: var(--color-primary-light-green-100);
}

.barcode_btn:hover {
  background-color: var(--color-background-gray);
}

.qr_code_btn:hover {
  background-color: var(--color-primary-sky-blue-100);
}

.excel_icon_btn img,
.excel_sample_btn img, 
.barcode_btn img,
.qr_code_btn img {
  width: 32px;
  height: 32px;
}
