/* 간격 관련 */

.justify-content-normal {
  justify-content: normal !important;
}

.gap-custom-20 {
  gap: 20px;
}

.gap-custom-17 {
  gap: 17px;
}

.gap-custom-12 {
  gap: 12px;
}

.gap-custom-10 {
  gap: 10px;
}

.gap-custom-0 {
  gap: 0 !important;
}

.my-custom-20 {
  margin: 20px 0;
}

.my-custom-10 {
  margin: 10px 0;
}

.mb-custom-20 {
  margin-bottom: 20px;
}

.mb-custom-12 {
  margin-bottom: 12px;
}

.m-custom-1 {
  margin: 0 8px;
}

.m-custom-2 {
  margin: 16px 0 auto 0;
}

.m-custom-94 {
  margin-right: 94px;
}

.m-custom-66 {
  margin-right: 66px;
}

.m-custom-64 {
  margin-right: 64px;
}

.m-custom-36 {
  margin-right: 36px;
}

.m-custom-3 {
  margin-bottom: 0;
}

.m-custom-4 {
  margin-bottom: 20px;
}

.p-0 {
  padding: 0 !important;
}

.p-20 {
  padding: 20px;
}

.pt-custom-13 {
  padding-top: 10px;
}

.px-custom-20 {
  padding: 0 20px !important;
}

.py-custom-20 {
  padding: 20px 0;
}

.py-custom-17 {
  padding: 17px 0;
}

.py-custom-12 {
  padding: 12px 0;
}

.pt-custom-60 {
  padding-top: 60px;
}

.custom-padding {
  padding: 64px 24px;
}

.custom-padding-2 {
  padding: 20px 0;
}

.custom-padding-3 {
  padding: 20px 16.5px;
}

.custom-padding-4 {
  padding: 17px 16px;
}

.custom-padding-5 {
  padding: 20px 16px;
}

.custom-padding-6 {
  padding: 20px 17px;
}

.custom-padding-7 {
  padding: 0 4px 0 8px;
}

.custom-padding-8 {
  padding: 17px 20px;
}

.custom-padding-9 {
  padding: 16px 20px !important;
}

.custom-pt-12-5 {
  padding-top: 12.5px;
}

.custom-p-9-12 {
  padding: 9.5px 12px !important;
}

.custom-mt {
  margin-top: 5px;
}

.custom-mt-2 {
  margin-top: 12px;
}

/* 배경 색상 관련 */
.bg-color-main-primary {
  background-color: var(--main-color-primary);
}

.bg-color-primary {
  background-color: var(--bg-color-primary);
}

.bg-color-secondary {
  background-color: var(--bg-color-secondary);
}

.bg-color-tertiary {
  background-color: var(--bg-color-tertiary);
}

.bg-color-white {
  background-color: var(--bg-color-white);
}

/* select 관련 */
.select-custom {
  width: 120px;
  height: 40px;
  color: var(--gray-700);
  font-size: var(--text-medium);
  border: 1px solid var(--line-font-color-primary);
  border-radius: 8px;
}

.form-select {
  appearance: none; /* 기본 브라우저 스타일 제거 */
  background-image: url('../image/arrow-down.png');
  background-repeat: no-repeat;
  background-position: 93px center;
}

.form-select[disabled] {
  cursor: not-allowed; /* 비활성화된 상태 표시 */
  color: var(--gray-700);
  background-image: url('../image/disabled-arrow-down.png');
  background-repeat: no-repeat;
  background-position: 93px center;
  background-color: var(--bg-color-tertiary);
}

.line-height-12 {
  line-height: 12px !important;
}

/* 선 관련 */
.custom-line {
  height: 1px;
  background-color: var(--line-font-color-secondary);
}

.custom-line-all {
  border: 1px solid var(--line-font-color-secondary);
}

.custom-line-x {
  border: 1px solid var(--line-font-color-secondary);
  border-top: none;
}

.custom-line-bottom {
  border-bottom: 1px solid var(--line-font-color-secondary);
}

/* 선 색상 관련 */
.custom-line-color-primary {
  border: 1px solid var(--line-font-color-primary);
}

.custom-line-color-secondary {
  border: 1px solid var(--line-font-color-secondary);
}

.custom-line-color-tertiary {
  border: 1px solid var(--line-font-color-tertiary);
}

.custom-line-color-primary-top {
  border-top: 1px solid var(--line-font-color-primary);
}

.custom-line-color-primary-bottom {
  border-bottom: 1px solid var(--line-font-color-primary);
}

/* 페이지네이션 관련 deprecated */
.pagination-number {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  line-height: 14px;
  color: #717b8a;
  cursor: pointer;
}

.pagination-number-active {
  color: #0068ff;
  font-weight: bold;
}

/* 타이틀 관련 */
.title-container {
  display: flex;
  align-items: center;

  width: 100%;
  height: 56px;
  padding: 17px 20px;
  border-radius: 8px;
  background-color: var(--bg-color-secondary);

  h2 {
    color: #000;
    font-size: 22px;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: -0.88px;
    margin-right: auto;
  }
}

/* 테이블 관련 */
.table-title {
  width: 100%;
  height: 64px;
  padding: 12px 20px;
  border-radius: 24px 24px 0 0;
  background-color: #f5f6f8;
  border: 1px solid #c2cadb;
  border-bottom: 1px solid #d9dfec;
}

.table {
  border-collapse: separate;
  border-spacing: 0;
}

.table-container {
  display: flex;
  flex-direction: column;

  width: 100%;
  height: 896px;

  table.custom-table {
    width: 1832px;
  }

  table.custom-table tr > th {
    height: 44px;
    border-bottom: 1px solid #d9dfec;
  }

  table.custom-table tr > td {
    color: #383d48;
    font-size: 16px;
    line-height: 16px;
    letter-spacing: -0.64px;
    border-bottom: 1px solid #d9dfec;
    white-space: normal;
    word-break: break-all;
    text-align: center;
  }

  .table-header-1-a,
  .table-header-2-a {
    font-size: 14px;
    line-height: 16px;
    letter-spacing: -0.56px;
    text-align: center;
    vertical-align: middle;
    font-weight: 500;
  }

  .table-header-1,
  .table-header-2 {
    font-size: 16px;
    line-height: 16px;
    letter-spacing: -0.64px;
    text-align: center;
    vertical-align: middle;
    font-weight: 500;
  }

  .table-header-1 {
    width: 64px;
  }

  .table-header-2 {
    width: 196.44px;
  }

  .table-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;

    width: 100%;
    height: 832px;
    padding: 17px 20px 16px 20px;
    border-radius: 0 0 24px 24px;
    background-color: #fff;
    border: 1px solid #c2cadb;
    border-top: none;
    text-align: center;
  }
}

/* 테이블 색상 관련 */

.table-bg {
  background-color: var(--table-bg) !important;
}

.table-light {
  border-top: 1px solid var(--line-font-color-primary) !important;
  border-bottom: 1px solid var(--line-font-color-primary);
}

.table-danger {
  --bs-table-bg: var(--table-bg-red);
  border-bottom: 1px solid var(--line-font-color-primary);
}

.table > tbody > tr > td {
  border-bottom: 1px solid #d9dfec;
}

.table-primary {
  --bs-table-bg: rgba(0, 104, 255, 0.05);
}

.table-gray {
  --bs-table-bg: rgba(245, 246, 248, 1);
}

.table > tbody > tr.table-primary > td {
  background-color: rgba(0, 104, 255, 0.05);
  border: none;
}

.table > tbody > tr.table-gray > td {
  background-color: rgba(245, 246, 248, 1);
  border: none;
}

.table > tbody > tr.table-primary {
  outline: 1px solid var(--main-color-primary) !important;
  outline-offset: -1px;
}

/* 임시 부품 관련 */
.temporary-parts-container {
  background-color: rgba(255, 76, 76, 0.1) !important;
}

.temporary-parts-container .temporary-parts-text {
  color: #ff4c4c;
  margin-top: 8px;
  font-weight: 400;
  font-size: inherit;
}

/* 바 관련 */
.short-bar {
  width: 1px;
  height: 16px;
  background-color: #d9dfec;
}

/* up, down 버튼 */
.up-down-btn-size {
  width: 16px;
  height: 8px;
}

/* 태그 초기화 관련 */
body {
  width: 100%;
  min-width: 1920px;

  margin: 0;
  padding: 0;
  font-family: 'Noto Sans KR', sans-serif;
  letter-spacing: -1px;
}

.table {
  vertical-align: middle;
}

ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

p {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

.custom-scrollbar-vertical {
  overflow-y: hidden;
  overflow-x: auto;
}

.custom-scrollbar-horizontal {
  overflow-x: hidden;
  overflow-y: auto;
}

/* 스크롤바 스타일 */
.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
  border-radius: 4px;
}
.custom-scrollbar--thin::-webkit-scrollbar {
  width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background-color: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background-color: #c2cadb;
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-button {
  display: none;
}

/* 수직 스크롤바만 필요한 경우 */
.custom-scrollbar-vertical::-webkit-scrollbar {
  width: 8px;
  border-radius: 4px;
}

.custom-scrollbar-vertical::-webkit-scrollbar-track {
  background-color: transparent;
}

.custom-scrollbar-vertical::-webkit-scrollbar-thumb {
  background-color: #c2cadb;
  border-radius: 4px;
}

.custom-scrollbar-vertical::-webkit-scrollbar-button {
  display: none;
}

/* 수평 스크롤바만 필요한 경우 */
.custom-scrollbar-horizontal::-webkit-scrollbar {
  width: 8px;
  border-radius: 4px;
}

.custom-scrollbar-horizontal::-webkit-scrollbar-track {
  background-color: transparent;
}

.custom-scrollbar-horizontal::-webkit-scrollbar-thumb {
  background-color: #c2cadb;
  border-radius: 4px;
}

.custom-scrollbar-horizontal::-webkit-scrollbar-button {
  display: none;
}

/* border 색상 */

.border-primary {
  border: 1px solid #0068ff !important;
}

.border-cd {
  border: 1px solid #cdcdcd !important;
}

.border-c2 {
  border: 1px solid #c2cadb !important;
}

.border-none {
  border: none !important;
}

/* thick-line */

.thick-line {
  border-top: 1px solid #d9dfec;
  background-color: #f5f6f8;
  margin: 20px -20px;
  padding: 0 20px;
  box-sizing: border-box;
}

.thick-bar {
  position: relative;
  left: -20px;
  width: calc(100% + 40px);
  height: 12px;
  margin: 20px 0;
  border-top: 1px solid #d9dfec;
  background-color: #f5f6f8;
}

.thick-bar2 {
  position: relative;
  width: 100%;
  height: 12px;
  border-top: 1px solid #d9dfec;
  background-color: #f5f6f8;
}

.text-align-left {
  text-align: left;
}

.line-height-16 {
  line-height: 16px;
}

.page__form-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  background: #f5f6f8;
  border-radius: 8px;

  & > p.form-info__main-text {
    font-size: 14px;
    line-height: 14px;
    letter-spacing: -0.56px;
    color: #383d48;
  }
}

.no-content-container {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #d9dfec;
  border-radius: 8px;
  background-color: #f5f6f8;
  color: #383d48;
  font-size: 14px;
  line-height: 14px;
  letter-spacing: -0.56px;
}

.datepicker-content {
  display: flex;
  align-items: center;
  gap: 12px;

  .datepicker-box {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 14px;
    color: #5b6371;
  }

  .part-btn-active {
    color: #0068ff;
    background: #f2f7ff;
  }
}

.flex-1 {
  flex-grow: 1;
}

.z-index1 {
  z-index: 1;
}

.category-selected {
  color: #0068ff !important;
  background: #f2f7ff;

  button {
    color: inherit !important;
  }
}
