body {
  font-family: Arial, sans-serif;
  background-color: #fff;
  color: #000;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 2px solid #4CAF50;
  border-radius: 10px;
  margin: 5px 0;
}

th, td {
  padding: 5px;
  border: 1px solid #ddd;
  text-align: left;
  vertical-align: middle;
}

th {
  background-color: #4CAF50;
  color: white;
  text-align: center;
  font-size: 8px;
}

td.lesson, .index {
  background-color: #f2f2f2;
  min-height: 25px;
  font-weight: bold;
  font-size: 6px;
}

td.teacher {
  font-size: 6px;
  color: #555;
  min-height: 15px;
}

tr:nth-child(even) td.lesson {
  background-color: #eaf7ea;
}

table {
  border-radius: 8px;
  overflow: hidden;
}

td, th {
  border-radius: 8px;
}

h3, h5 {
  width: 100%;
  text-align: center;
  margin: 0;
  margin-bottom: 10px;
}

@page {
  size: auto;
  margin: 0mm;
}
@media print {
  .no-print {
    display: none !important;
  }
}
.current_week {
  text-align: center;
  width: 100%;
}

.header {
  width: 100%;
}

.selector-handler {
  width: 30%;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1rem;
  text-align: center;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.form-control {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.submit-button {
  width: 70%;
  padding: 0.5rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s;
  margin-bottom: 1em;
}

.submit-button:hover {
  background-color: #0056b3;
}

.btn-default {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid #ccc;
  background-color: white;
  color: black;
  text-decoration: none;
  border-radius: 4px;
}

.btn-default:hover {
  background-color: #f0f0f0;
}

.site-link {
  text-align: center;
  margin: 12px 0;
}

@media screen {
  th {
    font-size: 13px;
  }
  td.lesson, .index {
    font-size: 12px;
  }
  td.teacher {
    font-size: 11px;
  }
}
@media screen and (max-width: 768px) {
  .selector-handler {
    width: 100%;
  }
  table {
    display: block;
    overflow-x: auto;
  }
  .submit-button {
    width: 100%;
    white-space: normal;
  }
  th:not(:first-child), td.lesson, td.teacher {
    min-width: 110px;
  }
}
