/* src/style.css */
html,
body,
#root {
  margin: 0;
  min-height: 100%;
  background: white;
  color: black;
}
* {
  box-sizing: border-box;
}
.deadlines,
.deadlines * {
  font-family:
    Arial,
    Helvetica,
    sans-serif !important;
  color: #000 !important;
}
.deadlines {
  width: 100%;
  overflow-wrap: anywhere;
}
.deadlines section {
  background: white !important;
}
.deadlines h1 {
  font-size: 30px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}
.deadlines h2 {
  font-size: 23px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}
.item {
  padding: 15px 0;
  border-bottom: 1px solid #ddd;
  font-size: 17px;
  line-height: 1.55;
}
.item .when {
  font-size: 17px;
}
.item .detail {
  font-size: 15px;
  line-height: 1.6;
  margin: 4px 0 0;
}
.item .action {
  margin-top: 10px;
}
.item .action button {
  min-height: 44px;
  background: white !important;
  border: 1px solid #000 !important;
}
.item.done .course,
.item.done .title {
  text-decoration: line-through;
}
@media (min-width: 768px) {
  .deadlines {
    max-width: 860px;
    margin: auto;
  }
}
.deadlines details.pdf {
  margin: 8px 0;
}
.deadlines details.pdf summary {
  cursor: pointer;
  border: 1px solid #000;
  padding: 10px 14px;
  display: inline-block;
}
.deadlines details.pdf img {
  display: block;
  width: 100%;
  height: auto;
  margin: 10px 0;
  border: 1px solid #ccc;
}
.deadlines .top {
  margin: 0 0 8px;
}
.deadlines .top h1 {
  font-size: 24px !important;
  margin: 0 !important;
}
.deadlines .counts {
  font-size: 15px;
  margin: 2px 0 0;
}
.deadlines .bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 10px 0 6px;
}
.deadlines .bar label {
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.deadlines .bar select {
  font-size: 16px;
  min-height: 40px;
  border: 1px solid #000;
  background: #fff;
  padding: 0 8px;
}
.item {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.item .body {
  flex: 1;
  min-width: 0;
}
.item .swatch {
  width: 14px;
  flex: none;
  border: 1px solid #000;
  border-radius: 3px;
}
.item .course {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}
.item .title {
  font-size: 17px;
}
.deadlines .left {
  font-weight: 700;
}
.deadlines .left.green {
  color: #15803d !important;
}
.deadlines .left.yellow {
  color: #b45309 !important;
}
.deadlines .left.red {
  color: #c00000 !important;
}
.deadlines .bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
}
.deadlines .bar label {
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  white-space: nowrap;
}
.deadlines .bar label:first-child {
  grid-column: 1/-1;
}
.deadlines .bar select {
  width: 100%;
}
.deadlines .head {
  margin-bottom: -8px;
}
.siteApp .tabs {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 0 0 10px;
  flex-wrap: wrap;
}
.siteApp .tab {
  font: inherit;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #bbb;
  background: #fff;
  cursor: pointer;
}
.deadlines .siteApp .tab.active,
.siteApp .tab.active {
  background: #1a1a2e !important;
  color: #fff !important;
  border-color: #1a1a2e;
}
.banner {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 10px 0;
  font-weight: 700;
  text-align: center;
}
.cardRow {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 6px 0;
  cursor: default;
}
.cardRow.nowc {
  border-color: #2e7d32;
  box-shadow: 0 0 0 1px #2e7d32 inset;
}
.cardRow .swatch {
  flex: 0 0 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid #0003;
}
.muted {
  color: #666;
  font-size: 13px;
  margin: 6px 0;
}
.weekStrip {
  display: flex;
  gap: 6px;
}
.weekStrip .dayCell {
  flex: 1;
  text-align: center;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 6px 2px;
  background: #fafafa;
}
.weekStrip .dayCell.busy {
  background: #fff3cd;
  border-color: #e0c070;
  font-weight: 700;
}
.weekStrip .dl {
  font-size: 12px;
  color: #555;
}
.weekStrip .dn {
  font-size: 13px;
}
.mapBox summary {
  cursor: pointer;
  font-weight: 700;
  padding: 4px 0;
}
.mapScroll {
  max-height: 70vh;
  overflow: auto;
  margin-top: 8px;
  border: 1px solid #ddd;
  border-radius: 8px;
}
.mapScroll img {
  display: block;
  width: 1400px;
  max-width: none;
  height: auto;
}
.links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.links a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
  background: #1a1a2e !important;
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
}
.ttGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 40px;
  grid-auto-rows: minmax(52px, auto);
  gap: 3px;
  margin: 8px 0;
}
.ttHead {
  font-weight: 800;
  text-align: center;
  background: #1a1a2e !important;
  color: #fff !important;
  border-radius: 6px;
  padding: 4px 2px;
  font-size: 13px;
}
.ttHead.today {
  background: #2e7d32;
}
.ttHour {
  font-size: 11px;
  color: #666;
  text-align: center;
  align-self: start;
  padding-top: 2px;
  border-top: 1px dashed #ddd;
}
.ttCol {
  background: #fafafa;
  border-radius: 6px;
}
.ttCell {
  border: 0.35mm solid #222;
  border-radius: 6px;
  padding: 2px 4px;
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ttCell .ttName {
  font-weight: 800;
  font-size: 14px;
}
.ttCell .ttSub {
  font-size: 11px;
  font-weight: 600;
}
.ttCell.nowc {
  outline: 3px solid #2e7d32;
}
.calGrid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin: 8px 0;
}
.calCell {
  min-height: 86px;
  border: 1px solid #e4e4e4;
  border-radius: 6px;
  padding: 3px;
  background: #fff;
  overflow: hidden;
}
.calCell.today {
  border-color: #2e7d32;
  box-shadow: 0 0 0 1px #2e7d32 inset;
}
.calD {
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 2px;
}
.calEv {
  font-size: 10.5px;
  border-radius: 4px;
  padding: 1px 4px;
  margin: 1px 0;
  background: #f4f4f4;
  border-right: 4px solid #999;
  cursor: pointer;
  line-height: 1.25;
}
.calEv.done {
  opacity: .55;
  text-decoration: line-through;
}
.calEv.calHol {
  background: #e8f5e9;
  border-right-color: #2e7d32;
  cursor: default;
  font-weight: 700;
}
.courseCard {
  border: 1px solid #e0e0e0;
  border-right: 6px solid #999;
  border-radius: 8px;
  background: #fff;
  padding: 8px 12px;
  margin: 8px 0;
}
.ccHead {
  font-size: 16px;
}
.ccItems {
  margin-top: 4px;
}
.ccItem {
  cursor: pointer;
  padding: 2px 0;
  font-size: 14px;
}
.ccItem:hover {
  text-decoration: underline;
}
.ccItem.done {
  opacity: .55;
  text-decoration: line-through;
}
.homeH {
  margin: 2px 0 6px !important;
}
.calCell {
  cursor: pointer;
  min-height: 64px;
}
.calCell.sel {
  outline: 2px solid #1a1a2e;
}
.calEv {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.dayDetails {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  padding: 8px 12px;
  margin: 8px 0;
}
.ddRow {
  padding: 3px 0;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ddRow .swatch {
  flex: 0 0 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid #0003;
}
.ddRow.hol {
  color: #2e7d32 !important;
  font-weight: 700;
  cursor: default;
}
.ddRow.done {
  opacity: .55;
  text-decoration: line-through;
}
.weekStrip .dn {
  white-space: nowrap;
  font-size: 12px;
}
.mapScroll {
  margin-bottom: 8px;
}
.mapThumbs {
  display: flex;
  gap: 8px;
}
.mapThumbs img {
  width: 50%;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: zoom-in;
  display: block;
}
.mapOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 12px;
}
.mapZoomScroll {
  max-height: 94vh;
  max-width: 96vw;
  overflow: auto;
  background: #fff;
  border-radius: 8px;
}
.mapZoomScroll img {
  display: block;
  max-width: 94vw;
  max-height: 92vh;
  width: auto;
  height: auto;
}
.mapZoomScroll.in img {
  max-width: none;
  max-height: none;
  width: 1400px;
}
.weekStrip .dn {
  display: flex;
  flex-direction: column;
  gap: 1px;
  align-items: center;
}
.weekStrip .dnm {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  font-size: 11px;
  font-weight: 700;
}
.ttGrid {
  grid-template-columns: 40px repeat(4, 1fr) 40px;
}
.ttStrip {
  background: #fff;
  border-radius: 4px;
  z-index: 0;
}
.ttStrip.alt {
  background: #eef3f9;
}
.ttCell {
  z-index: 1;
}
.ttCell .ttLec {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.15;
}
.ttCell .ttName {
  font-size: 13px;
  line-height: 1.15;
}
.ttCell .ttSub {
  font-size: 10px;
  line-height: 1.15;
}
.ttHour {
  position: relative;
  z-index: 1;
  background: transparent !important;
}
.calEv.calCont {
  background: #e8f5e9;
  opacity: .55;
  border-right-color: #a5d6a7;
  cursor: default;
  min-height: 14px;
  padding: 0;
}
@media (max-width: 640px) {
  .siteApp .tabs {
    gap: 5px;
    margin: 0 0 8px;
  }
  .siteApp .tab {
    padding: 4px 11px;
    font-size: 14px;
  }
  .homeH {
    margin: 0 0 4px !important;
  }
  .deadlines h1 {
    font-size: 24px !important;
  }
  .deadlines h2 {
    font-size: 19px !important;
  }
}
.calCell.examDay {
  background: #e9f5ea;
}
.uChip {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 8px;
  border: 1px solid #ccc;
  background: #fafafa;
}
.uChip.room {
  background: #fff3cd;
  border-color: #e0c070;
}
.uChip.cancel {
  background: #fdecea;
  border-color: #e5a49d;
}
.uChip.deadline {
  background: #e3f0fd;
  border-color: #a8c8ec;
}
.uChip.submit {
  background: #e8f5e9;
  border-color: #a5d6a7;
}
.uDate {
  color: #888;
  font-size: 12px;
}
.fixRow {
  margin-top: 6px;
  background: #fff3cd;
  border: 1px solid #e0c070;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 700;
}
.grp {
  margin: 14px 0;
}
.grpLabel {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 8px;
}
.closing {
  color: #777;
  font-size: 13px;
  margin: 14px 0 4px;
  text-align: center;
}
.fileCard {
  display: block;
}
.fb {
  font: inherit;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid #1a1a2e;
  background: #1a1a2e;
  color: #fff;
  cursor: pointer;
  min-height: 44px;
}
.fb.sec {
  background: #fff;
  color: #1a1a2e;
}
.fb.compact {
  padding: 6px 14px;
  min-height: 40px;
}
.fb:disabled {
  opacity: .5;
  cursor: default;
}
