/* xemngay.tajsc.com - Level A responsive + accessibility */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 8px;
  font-family: "Segoe UI", Tahoma, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.45;
  background: #f0f4f8;
}
.site-header {
  max-width: 980px;
  margin: 0 auto 12px;
  padding: 10px 12px;
  background: #0088aa;
  color: #fff;
  border-radius: 6px;
  text-align: center;
}
.site-header h1 { margin: 0 0 4px; font-size: 1.25rem; font-weight: 700; }
.site-header p { margin: 0; font-size: 0.85rem; opacity: 0.95; }
.site-header a { color: #ffe082; }
.nav-back {
  display: block;
  max-width: 980px;
  margin: 0 auto 10px;
  padding: 6px 10px;
  font-size: 0.9rem;
}
.nav-back a { color: #006699; }
center { display: block; max-width: 100%; overflow-x: auto; }
table { max-width: 100%; }
#calendar, #calday, table.thoi, table.sonhuong {
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 768px) {
  body { padding: 4px; font-size: 14px; }
  .normal, .offday, .today, .selected, .sunday, .weekday, .satday {
    font-size: 100% !important;
  }
  .xem0, .xem1, .xem2, .nhat, .thoi { font-size: 15px !important; }
  .days { font-size: 100% !important; }
  A.lnk0:link, A.lnk1:link, A.lnk2:link, A.lnk3:link, A.lnk4:link { font-size: 15px !important; }
  table { font-size: 90%; }
  td, th { word-break: break-word; }
  input, select, button { max-width: 100%; font-size: 16px; }
}
@media (max-width: 480px) {
  .site-header h1 { font-size: 1.1rem; }
  table { font-size: 82%; }
}

/* Popup khi rê chuột vào ngày / giờ trên lịch */
#tooltip {
  position: fixed;
  z-index: 9999;
  visibility: hidden;
  width: auto !important;
  height: auto !important;
  min-width: 180px;
  max-width: min(320px, 96vw);
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  filter: none !important;
  pointer-events: none;
}
#tooltip .cal-tooltip-wrap {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid #b8d4e0;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 40, 80, 0.14);
  overflow: hidden;
}
#tooltip .cal-tooltip-body {
  color: #1e3a5f !important;
  background: #f4fafc !important;
  font-size: 15px !important;
  line-height: 1.45;
}
#tooltip .cal-tooltip-body b {
  color: #006699;
  font-weight: 600;
}
#tooltip .cal-tooltip-body i {
  color: #5a6a7a;
  font-style: normal;
  font-size: 0.92em;
}
#tooltip font[color="red"],
#tooltip font[color=red] { color: #c0392b !important; }
#tooltip font[color="green"],
#tooltip font[color=green] { color: #2e7d32 !important; }
#tooltip font[color="blue"],
#tooltip font[color=blue] { color: #1565c0 !important; }
#tooltip font[color="brown"],
#tooltip font[color=brown] { color: #6d4c41 !important; }
#tooltip td { padding: 4px 8px; }
