/* SCHOOL OK? - static shell styles */

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: #f4f8fb;
}

body {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 16px 48px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: #1f2a37;
  background: #ffffff;
}

a {
  color: #0b6bcb;
}

h1 {
  margin: 0.5rem 0 0.25rem;
  font-size: 2rem;
  line-height: 1.2;
  color: #0f172a;
}

#tagline {
  margin: 0 0 1rem;
  color: #52606d;
  font-size: 1.05rem;
}

#banner {
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 1px solid #f3d9a4;
  border-radius: 10px;
  background: #fff8e6;
  font-size: 0.9rem;
}

#langToggle {
  float: right;
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

#langToggle button {
  min-height: 0;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  background: #f4f8fb;
  color: #334e68;
  cursor: pointer;
}

#langToggle button:hover {
  background: #e3ecf4;
}

#langToggle button.active {
  background: #0b6bcb;
  border-color: #0b6bcb;
  color: #ffffff;
}

#adTop,
#adBottom {
  min-height: 24px;
  margin: 16px 0;
  text-align: center;
}

label {
  display: block;
  margin: 14px 0 4px;
  font-weight: 600;
  font-size: 0.95rem;
}

select,
input[type="datetime-local"],
input[type="text"] {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  font: inherit;
  color: #1f2a37;
  background: #ffffff;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
}

select:focus,
input:focus {
  outline: 2px solid #0b6bcb;
  outline-offset: 1px;
  border-color: #0b6bcb;
}

#frm {
  margin-top: 8px;
}

#rowStart,
#rowEnd,
#rowTreat,
#rowFever {
  margin-top: 4px;
}

button {
  font: inherit;
}

#btnSubmit,
#btnPrint {
  display: inline-block;
  min-height: 44px;
  margin-top: 18px;
  padding: 10px 22px;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  background: #0b6bcb;
  border: 1px solid #0b6bcb;
  border-radius: 8px;
  cursor: pointer;
}

#btnSubmit:hover,
#btnPrint:hover {
  background: #095aab;
}

#verdict,
#noteCard {
  margin: 24px 0;
  padding: 20px;
  border: 1px solid #cbd5e0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

#verdict {
  border-color: #b6d4f0;
  background: #f5faff;
}

#verdict h2 {
  margin-top: 0;
  font-size: 1.4rem;
}

#verdict.st-home #vHeadline {
  color: #b3261e;
}

#verdict.st-ok #vHeadline {
  color: #18753a;
}

#verdict p {
  margin: 0.5rem 0;
}

.alert {
  color: #b3261e;
  font-weight: 700;
}

#noteCard h2 {
  margin-top: 0;
  font-size: 1.3rem;
}

#noteText {
  white-space: pre-wrap;
}

#noteSigned,
#noteDate {
  color: #3e4c59;
}

#disclaimer {
  margin: 24px 0;
  font-size: 0.85rem;
  color: #52606d;
}

footer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #e3e8ee;
  font-size: 0.85rem;
  color: #7b8794;
}

@media print {
  body > *:not(#noteCard) {
    display: none !important;
  }

  #noteCard {
    border: 2px solid #000;
  }

  #btnPrint,
  #noteChildName {
    display: none !important;
  }
}
