@font-face {
  font-family: 'GmarketSansMedium';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Whitney';
  font-style: normal;
  font-weight: bold;
  src: url(https://onedrive.live.com/download?resid=F87CD694B48033C9!114&authkey=!ADeQuq8LqQCrD3I&ithint=file%2cwoff) format('woff');
}
@font-face {
  font-family: 'Whitney';
  font-style: normal;
  font-weight: normal;
  src: url(https://onedrive.live.com/download?resid=F87CD694B48033C9!109&authkey=!AOFbepGKctmbyqs&ithint=file%2cwoff) format('woff');
}

* {
  font-family: 'GmarketSansMedium';
}


body {
  padding-top: env(safe-area-inset-top, 0);
  padding-right: env(safe-area-inset-right, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
  padding-left: env(safe-area-inset-left, 0);
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  margin: 0;
  color: var(--color-mainwhittext);
  background-color: #ccc;
  overflow: hidden;
  touch-action: none;
}

.loader__container {
  position: absolute;
  z-index: 9999;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  visibility: visible;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 24px;
}

.container {
  max-width: 500px;
  margin: 0 auto;
  align-items: center;
  overflow-y: none;
  /* overflow-y: auto; */
  position: relative;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  display: flex;
  width: 100%;
  max-width: 500px;
  background-color: #333c4b;
  color: white;
  height: 50px;
  white-space: nowrap;
  justify-content: space-between;
  z-index: 9997;
  border-bottom: 1px solid white;
}

.logo-and-title {
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.img-logo {
  margin-right: 10px;
  width: 25px;
  cursor: pointer;
}

.img-title {
  margin: 5px 0 0 0;
  width: 110px;
}

.header-icons {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 5px;

  svg {
    fill: white;
  }
}

.icon-support-link {
  color: inherit;
  /* 부모 요소의 색상 상속 */
  text-decoration: none;
  /* 밑줄 제거 */
}

.icon-support-link:visited,
.icon-support-link:hover,
.icon-support-link:active {
  color: inherit;
  /* 부모 요소의 색상 상속 */
}

.icon-install,
.icon-help,
.icon-support {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 10px;
  cursor: pointer;
  margin-right: 15px;
}

.icon-install {
  visibility: hidden;
}

#install {
  height: 20px;
}

.popup {
  display: none;
  /* 기본적으로 숨김 */
  position: relative;
  z-index: 9999;
  /* 팝업 창이 최상단에 보이도록 설정 */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: white;
  /* box-shadow: 0 0 10px 10px rgba(0, 0, 0, 0.1); */
  border-radius: 8px;
  box-sizing: border-box;
  margin: none;
  padding: none;
}

.popup-header {
  width: 100%;
  max-width: 500px;
  /* Full width of the container */
  background-color: #f9f9f9;
  /* Background color */
  border-bottom: 1px solid #ccc;
  /* Bottom border */
  /* Ensure it stays above other content */
  box-sizing: border-box;
  /* Include padding and border in element's total width and height */
  padding: 10px;
  /* Padding for the header */
  background-color: gray;
  height: 80px;
  background-color: rgb(230, 230, 230);

  h2 {
    display: flex;
    flex-direction: column;
    margin: 10px 0 0 0;
  }
}

#manager {
  font-size: 12px;
  margin: 0 0;
  font-weight: normal;
}

.popup-content {
  height: calc(100svh - 80px);
  box-sizing: border-box;
  width: 100%;
  overflow-y: scroll;
  padding: 10px;

  li {
    font-size: 1.0rem;
  }

  p {
    font-size: 9px;
    text-align: center;
  }
}


.popup-content::-webkit-scrollbar {
  width: 10px;
}

.popup-content::-webkit-scrollbar-thumb {
  background-color: #666666;
  border-radius: 10px;
  background-clip: padding-box;
  border: 2px solid transparent;
}

.popup-content::-webkit-scrollbar-track {
  background-color: #ccc;
  border-radius: 10px;
  box-shadow: inset 0px 0px 5px white;
}

.popup .close {
  position: absolute;
  top: 25px;
  right: 10px;
  font-size: 30px;
  cursor: pointer;
}


/* .popup ol {
  padding-left: 30px;

  li {
    margin-bottom: 40px;
  }
}

.popup ul {
  padding-left: 5px;

  li {
    margin: 5px 0px;
    font-size: 13px;
    font-size: 0.8rem;
  }
}

#ul1 {
  display: flex;
} */

.img-userguide {
  width: 100%;
  margin: auto;
  display: block;
}

.img-form {
  width: 80%;
  display: inline-block;
}

/* Media query for screens */
/*for iPad 5000px*/
@media only screen and (max-width: 5000px) {
  /* .btn-group-add-and-preview button {
    margin: 0 20px;
  } */

  .action-container {
    margin: 0 20px;
  }
}

/*for iPhone*/
@media only screen and (max-width: 500px) {
  /* [class^="btn-add-photo"] {
    font-size: 12px;
  } */

  /* .btn-group-add-and-preview button {
    margin: 0 20px;
  } */

  .preview-contents {
    min-height: calc(100vh - 400px);
  }
}

button {
  cursor: pointer;
  outline: 0;
  line-height: 1.5;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  height: 50px;
  border-radius: .75rem;
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  color: #fff;
  background-color: #333C4B;
  padding: .5rem 1rem;
}

.base-container {
  margin: 10px 0px 30px 0px;
  padding: 10px;
  box-shadow: 0 0 10px 10px rgba(0, 0, 0, 0.1);
  background-color: white;
}

.project-detail-doc {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-detail input,
.project-detail textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 0.75rem;
  width: 100%;
  box-sizing: border-box;
  max-width: 500px;
  /* 최대 너비 제한 */
}

.project-detail input::placeholder,
.project-detail textarea::placeholder {
  color: #ccc;
  font-size: 0.8rem;
  text-justify: center;
}

/* 공통 */
.worktype-container,
.location-container,
.activity-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 500px;
  margin-bottom: 5px;
}

input[id^="date"] {
  height: 3rem;
  margin-bottom: 19px;
  /* iOS Safari 대응 */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

[id^="byte-count"] {
  align-self: flex-end;
  font-size: 0.6rem;
  color: #b3b3b3;
  margin-right: 5px;
}

/* 양식 1 대응 */
.worktype-container input,
.location-container input,
.activity-container input {
  height: 3rem;
}

/* 양식 2 대응 */
.activity-container textarea {
  height: 4rem;
  margin-bottom: 10px;
  resize: none;
}

.btn-group-project-detail {
  display: flex;
  justify-content: space-between;

  button {
    font-size: 0.8rem;
    height: 30px;
    margin: 0 5px;
    background-color: #D4A056;
    border: none;
    color: white;
    padding: 1px 15px;
    display: flex;
    align-items: center;
  }

  svg {
    fill: white;
    /* fill: black; */
  }
}

#btn-save_project_detail {
  margin-bottom: 10px;
}

.container-wrapper {
  position: fixed;
  top: 50px;
  margin: 0 auto;
  background-color: #F6F9FF;
  padding: 0px 20px;
  left: 0;
  right: 0;
  max-width: 460px;
  height: calc(100% - 50px - 70px);
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  /* Smooth scrolling for iOS */
}

.container-wrapper::-webkit-scrollbar {
  width: 10px;
}

.container-wrapper::-webkit-scrollbar-thumb {
  background-color: #666666;
  border-radius: 10px;
  background-clip: padding-box;
  border: 2px solid transparent;
}

.container-wrapper::-webkit-scrollbar-track {
  background-color: #ccc;
  border-radius: 10px;
  box-shadow: inset 0px 0px 5px white;
}

.project-photo {
  height: 65%;
  overflow: auto;
  /* padding: 10px; */
  margin-bottom: 10px;

  .photo-container {
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    align-items: center;
    border: 1px solid #ccc;
    /* background-color: rgba(0, 0, 0, 0.05); */

    svg {
      position: relative;
      left: 50%;
      height: 20%;
      width: 100%;
      padding: 10px;
      fill: #ccc;

      user-select: none;
      /* Standard property */
      -webkit-user-select: none;
      /* Safari */
      -moz-user-select: none;
      /* Firefox */
      -ms-user-select: none;
      /* Internet Explorer/Edge */
    }
  }
}

[class^='uploaded-photo'] {
  display: flex;
  flex-direction: column;
  height: 160px;
  border: 1px solid #ccc;
  justify-content: center;

  img {
    object-fit: scale-down;
    max-height: 100%;
    max-width: 100%;
  }
}



.btn-group-add-photo-and-capture {
  display: flex;
  font-size: 12px;
  justify-content: space-between;
}

[id^="btn-add"] {
  background-color: #D4A056;
  color: white;
  border: none;
  font-size: 0.75rem;
  margin: 2px 0;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100px;
  height: 50px;
  flex: 1;

  svg {
    fill: white;
  }

  &:nth-child(1) {
    border-radius: 0;
    border-top-left-radius: 0.75rem;
    margin-right: 0.5px;
  }

  &:nth-child(2) {
    border-radius: 0;
    border-top-right-radius: 0.75rem;
    margin-left: 0.5px;
  }
}

.bottom-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  max-width: 500px;
  justify-content: center;
  align-items: center;
  background-color: #333c4b;
  height: 70px;
  z-index: 1000;
  border-top: 1px solid white;
}

.btn-group-add-and-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0 0 0 0px;

  button {
    background-color: #333c4b;
    color: white;
    height: 70px;
    flex: 1 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: none;
    font-size: 0.8rem;
    padding: 0 0 5px 0;
    border-radius: 0;

    svg {
      fill: white;
      margin-bottom: 3px;
    }
  }
}

.v-line{
  border-left: 1px solid #666666;
  height: 70%;
  left: 50%;
  position: absolute;
 }

.footer {
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0 auto;
  width: 100%;
  height: 50px;
  max-width: 500px;
  font-size: 8pt;
  text-align: center;
  background-color: #333c4b;
  color: white;
}

.preview-container {
  /* position: fixed; */
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  background-color: white;
  padding: 0px 10px;
  margin: 0 auto;
  left: 0;
  right: 0;
  top: 50px;
  height: calc(100vh - 50px - 70px);
}

.preview-container::-webkit-scrollbar {
  width: 10px;
}

.preview-container::-webkit-scrollbar-thumb {
  background-color: #666666;
  border-radius: 10px;
  background-clip: padding-box;
  border: 2px solid transparent;
}

.preview-container::-webkit-scrollbar-track {
  background-color: #ccc;
  border-radius: 10px;
  box-shadow: inset 0px 0px 5px white;
}

.preview-contents {
  padding-bottom: 18vh;
}

[id^="preview-content"] {
  padding: 10px;
  margin: 10px;
  /* font-family: 'malgun'; */

  h3 {
    text-align: center;
    margin: 10px 0;
    font-size: 24px;
  }
}

.action-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  max-width: 500px;
  display: flex;
  justify-content: center;
  max-width: 500px;
  z-index: 1001;
  background-color: #333c4b;
  height: 70px;
  border-top: 1px solid white;

  button {
    height: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #333c4b;
    border: none;
    font-size: 0.8rem;
    /* font-weight: 700; */
    border: 1px solid white;
    margin: 10px 20px;
    span {
      margin-bottom: 4px;
    }
    &:nth-child(1) {
      margin-right: 5px;
      svg {
        margin: 0 5px 5px 0 ;
        height: 24px;
      }
    }
    &:nth-child(2) {
      padding: 10px;
      margin-left: 5px;
    }
  }

  #downloadPdfBtn {
    flex: 20;
    /* 5 parts of the available space */
  }

  #btn-preview-close {
    flex: 1;
    /* 1 part of the available space */
  }
}


.loading-spinner {
  border: 4px solid #f3f3f3;
  /* border-top: 4px solid #427AA1; */
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

table {
  margin-bottom: 2px;
  table-layout: fixed;
  font-size: 0.5rem;
}

.spinner {
  border: 4px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  border-top: 4px solid #ffffff;
  width: 18px;
  height: 18px;
  margin-bottom: 3px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.option-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px;
}

.radio-input input {
  display: none;
}

.radio-input {
  --container_width: 300px;
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 10px;
  background-color: #fff;
  color: #000000;
  width: var(--container_width);
  overflow: hidden;
  border: 1px solid rgba(53, 52, 52, 0.226);
}

.radio-input label {
  width: 100%;
  /* padding: 5px; */
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  /* font-weight: 600; */
  letter-spacing: -1px;
  font-size: 0.9rem;
  flex-direction: column;
  height: 28px;
}

.form-description {
  font-size: 8pt;
  font-weight: 100;
}

.selection {
  display: none;
  position: absolute;
  height: 100%;
  width: calc(var(--container_width) / 2);
  z-index: 0;
  left: 0;
  top: 0;
  transition: .15s ease;
}

.radio-input label:has(input:checked) {
  color: white;
}

.radio-input label:has(input:checked)~.selection {
  background-color: #333c4b;
  display: inline-block;
}

.radio-input label:nth-child(1):has(input:checked)~.selection {
  transform: translateX(calc(var(--container_width) * 0/2));
}

.radio-input label:nth-child(2):has(input:checked)~.selection {
  transform: translateX(calc(var(--container_width) * 1/2));
}



/* Add this CSS in your styles.css file */
/* .update-notification {
  position: fixed;
  bottom: 10px;
  right: 10px;
  background-color: #444;
  color: #fff;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.update-notification button {
  margin-left: 10px;
  background-color: #fff;
  color: #444;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
}

.update-notification button:hover {
  background-color: #ddd;
} */