/* Масштаб как в оригинальной БРС (крупнее стандартного bootstrap в браузере) */
html {
  font-size: 16px;
}

body {
  font-size: 1rem;
  line-height: 1.5;
}

h2 {
  font-size: 2rem;
  font-weight: 500;
}

h3 {
  font-size: 1.75rem;
  font-weight: 500;
}

.table td,
.table th {
  font-size: 0.9375rem;
  padding: 0.65rem 0.6rem;
}

dl.row dt,
dl.row dd {
  font-size: 1rem;
}

.navbar .nav-link {
  font-size: 1rem;
  padding: 0.5rem 1rem;
}

.form-control,
.btn {
  font-size: 1rem;
}

.mark5 { background-color: rgba(0, 128, 0, 0.25); }
.mark4 { background-color: rgba(0, 128, 128, 0.25); }
.mark3 { background-color: rgba(255, 193, 7, 0.25); }
.mark2 { background-color: rgba(255, 0, 0, 0.75); color: rgb(255, 255, 255); }
.mark2 a { color: rgb(255, 255, 255); }
.pctAttendance90 { color: rgb(0, 128, 0); }
.pctAttendance80 { color: rgb(30, 144, 255); }
.pctAttendance70 { color: rgb(30, 144, 255); }
.pctAttendance50 { color: rgb(205, 133, 63); }
.pctAttendance0 { color: rgb(255, 0, 0); }

.table-header-fixed {
  position: sticky;
  top: 0;
  background-color: #f8f9fa;
  z-index: 1;
}

tr.row-border-top-6 td, tr.row-border-top-6 th { border-top-width: 6px; }
tr.row-border-top-3 td, tr.row-border-top-3 th { border-top-width: 3px; }
tr.row-border-bottom-6 td, tr.row-border-bottom-6 th { border-bottom-width: 6px; }

.menu-spacer, .navbar-app { min-height: 58px; }
.navbar-app {
  position: fixed;
  left: 10px;
  z-index: 999;
  border: 2px solid #dee2e6;
  border-radius: 6px;
}
@media (min-width: 992px) {
  .navbar-app {
    max-width: calc(100vw - 38px);
    position: sticky;
    border: none;
  }
  .menu-spacer { display: none; }
}

/* Страница входа: без fixed, нормальный перенос на мобиле */
.login-type-bar {
  position: static;
  flex-wrap: wrap;
  align-items: flex-start;
  padding: 0.5rem 0.75rem;
}
.login-type-bar .navbar-brand {
  white-space: normal;
  margin-right: 0.75rem;
}
.login-type-bar .nav-link {
  white-space: normal;
  padding: 0.25rem 0;
}
@media (max-width: 991.98px) {
  .login-type-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .login-type-bar .navbar-brand {
    margin-bottom: 0.25rem;
  }
  .container form .form-group.row {
    margin-bottom: 1rem;
  }
  .container form .col-form-label {
    padding-bottom: 0.25rem;
  }
}

.admin-sidebar {
  min-height: calc(100vh - 56px);
  background: #f8f9fa;
  border-right: 1px solid #dee2e6;
}
.admin-sidebar .nav-link.active { font-weight: bold; background: #e9ecef; }
