/* CRA Express Stylesheet */

/* Responsive Calendar Grid & Day Cells */
.day-cell {
  min-height: 60px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.12s ease;
}

@media (min-width: 640px) {
  .day-cell {
    min-height: 86px;
  }
}

.day-cell:active {
  transform: scale(0.98);
}

/* Toast animations */
@keyframes toastSlide {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.toast-enter {
  animation: toastSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Print Rules */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 10pt !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  header, main, #modalDayDetail, #modalSettings, #toastContainer {
    display: none !important;
  }

  #printableCRA {
    display: block !important;
    position: static !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    z-index: 1 !important;
  }
}

/* High Quality Printable A4 PDF Container */
.pdf-container {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  background: #ffffff;
  color: #1e293b;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  padding: 16px 20px;
  box-sizing: border-box;
}

.pdf-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.pdf-table th {
  background-color: #f1f5f9;
  color: #334155;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 6px;
  border: 1px solid #cbd5e1;
  text-align: left;
}

.pdf-table td {
  padding: 3.5px 6px;
  font-size: 9.5px;
  border: 1px solid #e2e8f0;
  line-height: 1.25;
}

/* Paper signature boxes */
.sign-box {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 10px;
  background-color: #ffffff;
  height: 95px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
