body {
  font-family: 'Noto Sans KR', sans-serif;
  background-color: #f9f9f9;
  padding: 20px;
}



.vaccine-schedule th,
.vaccine-schedule td {
  border: 1px solid #ccc;
  padding: 2px 4px;
  text-align: center;
  word-break: keep-all;
}

.vaccine-schedule thead {
  background-color: #4caf50;
  color: white;
}

.vaccine-schedule tbody tr:nth-child(even) {
  background-color: #f2f2f2;
}

.vaccine-schedule td:first-child {
  text-align: left;
  font-weight: bold;
  background-color: #e8f5e9;
}

.vaccine-terminated {
  color: gray;
  font-weight: bold;
  cursor: help;
}


.month-selection { margin-bottom: 20px; }
.vaccine-list { margin-bottom: 20px; }
.vaccine-item { display: flex; align-items: center; margin: 5px 0; }
.vaccine-item input[type="checkbox"] { margin-right: 10px; }
.vaccine-item input[type="date"], .vaccine-item input[type="text"] { margin-left: 10px; padding: 4px; }
button { padding: 6px 12px; cursor: pointer; }
table.vaccine-schedule { width: 100%; border-collapse: collapse; margin-top: 20px;}
table.vaccine-schedule th { border: 1px solid #ccc; text-align: center; font-size:16px }
table.vaccine-schedule td { border: 1px solid #ccc; text-align: center; font-size:14px}
td.completed { background-color: #d2f4dc; border: 1px solid #4caf50; }
.vaccine-label { font-size: 0.75em; color: #333; margin-top: 4px; }
.summary-box { margin-top: 20px; border: 1px solid #ccc; padding: 10px; background: #f9f9f9; }

.table-container {
      margin-top: 10px;  
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
}

table.vaccine-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 8px;
    text-align: center;
}

table.vaccine-table th,
table.vaccine-table td {
    border: 1px solid #ccc;
    padding: 1px 1px;
}

table.vaccine-table thead {background-color: #f9d342;}

table.vaccine-table th[rowspan="2"] {
    background-color: #d6e4ff;
    color: #000;
    font-weight: bold;
}

table.vaccine-table .first {
    background-color: #eef5ff;
    font-weight: bold; }

table.vaccine-table .second {background-color: #e9f7ef;}          

  /*table.vaccine-table td:nth-child(3) {
    background-color: #fcefea;
  }*/

table.vaccine-table .third { background-color: #fcefea;}

/*table.vaccine-table tbody td[colspan] {
background-color: #f9f9f9;
color: #888;
}*/

table.vaccine-table .highlight {
    background-color: #ffecb3;
    font-weight: bold;
}

.modal {
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex; justify-content: center; align-items: center;
}
.modal-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  min-width: 300px;
}
.close {
  float: right;
  cursor: pointer;
}

td.vaccinated {
  background-color: #d4f4dd;  /* 연한 녹색 */
  color: #000;                /* 검정 글씨 */
}

td.clickable {
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

td.clickable:hover {
    font-weight:bold;font-size: 15px;
}

td.clickable.clicked {
  background-color: #e0e0e0;
  transform: scale(0.90);
  transition: background-color 0.4s, transform 0.4s;
}

#vaccineModal button {
    padding: 1px 10px;
    font-size: 14px;
    margin-right: 8px;
}

.delayed-tag {
  color: red;
  font-weight: bold;
}

.delayed-cell {
  background-color: #ffe6e6 !important;  /* 기존 스타일 덮어쓰기 위해 !important */
}


@media screen and (max-width: 768px) {
  .vaccine-schedule th,
  .vaccine-schedule td {
    font-size: 14px;
    padding: 10px;
  }
} 