* {
  box-sizing: border-box;
  font-family:
    Malgun Gothic,
    sans-serif;
}

body {
  margin: 0;
  background: #f3f5fa;
}

.app {
  max-width: 430px;
  margin: auto;
  padding: 16px;
  min-height: 100vh;
}

.top-tab {
  display: flex;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 16px;
}

.tab {
  flex: 1;
  border: 0;
  background: #fff;
  padding: 10px 4px;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tab.active {
  background: #4f7cff;
  color: #fff;
}

.tab.active span {
  color: #fff;
}

.card {
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  min-height: 700px;
}

.toolbar {
  display: flex;
  gap: 10px;
}

.month-box {
  flex: 1;
  height: 44px;
  background: linear-gradient(90deg, #8b97bc, #d7ddef);
  color: #fff;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  font-weight: 700;
}

.cal {
  position: absolute;
  right: 10px;
}

.btn-search {
  width: 82px;
  border: 0;
  border-radius: 6px;
  background: #ff5a4d;
  color: #fff;
}

.status-tab {
  display: flex;
  margin: 16px 0;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  overflow: hidden;
}

.status-btn {
  flex: 1;
  height: 42px;
  border: 0;
  background: #f4f4f4;
  color: #666;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.status-btn.active {
  background: #2f80ed;
  color: #fff;
}

.inspect-info {
  background: #fff;
  border: 1px solid #d9e1ec;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.info-row {
  display: flex;
  align-items: center;
  padding: 8px 0;
}
.info-row:first-child {
  border-bottom: 1px solid #ececec;
}
.info-title {
  width: 70px;
  font-size: 13px;
  font-weight: 700;
  color: #666;
}
.info-value {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: #222;
}

#progressPage {
  background: #eef3f7;
  border-radius: 10px;
  padding: 15px;
  min-height: 620px;
}

#progressPage2 {
  background: #eef3f7;
  border-radius: 10px;
  padding: 15px;
  min-height: 620px;
}

#finishPage {
  margin-top: 15px;
  min-height: 620px;
}

.chat-date {
  text-align: center;
  color: #666;
  font-size: 12px;
  margin: 20px 0;
}
.chat-row {
  display: flex;
  margin-bottom: 18px;
}
.chat-row.right {
  justify-content: flex-end;
}
.chat-name {
  font-size: 12px;
  color: #666;
  margin-bottom: 5px;
}
.right-name {
  text-align: right;
}

.chat-bubble {
  display: inline-block;
  max-width: 240px;
  padding: 12px 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #dcdcdc;
  line-height: 1.5;
  word-break: keep-all;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.chat-bubble.me {
  background: #fee500;
  border: none;
}

.chat-time {
  margin-top: 5px;
  font-size: 11px;
  color: #999;
}

.list {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.list th {
  background: #f6f8fb;
  padding: 10px 6px;
  border: 1px solid #d9d9d9;
  font-size: 13px;
}

.list td {
  padding: 10px 6px;
  border: 1px solid #e5e5e5;
  text-align: center;
  font-size: 13px;
}

.list tbody tr:hover {
  background: #f8fbff;
}

.list a {
  color: #2f80ed;
  text-decoration: none;
}

.list a:hover {
  text-decoration: underline;
}

#progressPage,
#finishPage {
  animation: fade 0.25s;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-back {
  width: 100%;

  height: 42px;

  margin-bottom: 12px;

  border: none;

  border-radius: 8px;

  background: #4f7cff;

  color: #fff;

  font-size: 14px;

  cursor: pointer;
}

/* ===========================
   채팅 입력창
=========================== */

.chat-input-wrap {
  display: flex;

  align-items: center;

  gap: 10px;

  margin-top: 20px;

  padding-top: 15px;

  padding-bottom: 15px;

  border-top: 1px solid #d8dee8;

  border-bottom: 1px solid #d8dee8;
}

.chat-input {
  flex: 1;

  height: 42px;

  padding: 0 14px;

  border: 1px solid #ccd5e3;

  border-radius: 22px;

  background: #ffffff;

  font-size: 14px;

  outline: none;

  transition: 0.2s;
}

.chat-input:focus {
  border-color: #2f80ed;

  box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.12);
}

.chat-input::placeholder {
  color: #999;
}

.chat-send {
  width: 64px;

  height: 42px;

  border: none;

  border-radius: 22px;

  background: #2f80ed;

  color: #fff;

  font-size: 14px;

  font-weight: 600;

  cursor: pointer;

  transition: 0.2s;
}

.chat-send:hover {
  background: #1f6fdb;
}

/* ===========================
   검수 체크박스
=========================== */

.chat-check-wrap {
  display: flex;

  justify-content: center;

  align-items: center;

  gap: 30px;

  margin-top: 20px;

  padding: 15px 0;

  border-top: 1px solid #d8dee8;
}

.check-item {
  display: flex;

  align-items: center;

  gap: 8px;

  cursor: pointer;

  font-size: 15px;

  font-weight: 600;

  color: #333;
}

.check-item input {
  width: 18px;

  height: 18px;

  accent-color: #2f80ed;

  cursor: pointer;
}

.check-item:hover {
  color: #2f80ed;
}
