.bootbox-body .selectivity-dropdown {
  top: auto !important;
  left: inherit !important;
}

.selectivity-input {
  width: 100% !important;
}

.selectivity-single-select,
.selectivity-multiple-input-container {
  background-color: #fefefe !important;
  border: 1px solid #ced4da;
}

.selectivity-single-result-container {
  top: 0.6em !important;
  left: 10px !important;
}

.selectivity-single-select-input {
  position: absolute;
  top: -10000px;
}

.has-error .selectivity-input {
  border-bottom: 2px solid red;
}

.menu-items>li.active,
ul.sub-menu>li.active {
  font-weight: bold;
}

ul.sub-menu {
  font-weight: normal;
}

.article .date {
  margin-right: 12px;
  color: #ffffff;
  font-weight: 300;
  text-align: center;
}

.article .date span {
  display: block;
  line-height: 1;
}

.article .date .day {
  padding: 2px 5px 3px;
  background-color: #2196f3;
  border-top-right-radius: 2px;
  border-top-left-radius: 2px;
  font-size: 1.733em;
}

.article .date .month {
  padding: 0 5px 3px;
  background-color: #2196f3;
  font-size: 0.933em;
  text-transform: uppercase;
}

.article .date .year {
  padding: 3px 5px 2px;
  background-color: #666;
  border-bottom-right-radius: 2px;
  border-bottom-left-radius: 2px;
  font-size: 0.800em;
}

.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control {
  background: #efefef;
  color: rgb(31, 38, 45);
}

.background-caption {
  background-color: #0d3454
}

.page-sidebar {
  background-color: #0d3454;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: contain;
  border-radius: 0 12px 12px 0;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

.page-sidebar .sidebar-menu {
  padding-top: 20px !important;
}

.page-sidebar .sidebar-menu .menu-items {
  height: calc(100% - 50px) !important
}

.page-sidebar .sidebar-menu {
  height: calc(100% - 90px) !important;
}

.page-sidebar ul.menu-items {
  overflow-x: hidden !important;
}

.page-sidebar,
.page-sidebar .sidebar-menu .menu-items li {
  background-color: #0d3454;
  color: white;
}

.page-sidebar .sidebar-menu .menu-items>li ul.sub-menu {
  background-color: #0d3454;
}

.page-sidebar .sidebar-menu .menu-items>li ul.sub-menu>li .icon-thumbnail,
.icon-thumbnail {
  background-color: #0d3454;
  color: silver;
}

.page-sidebar .sidebar-header {
  background-color: #fff !important;
  height: unset;
}

@media screen and (-ms-high-contrast: active),
(-ms-high-contrast: none) {
  .page-sidebar .sidebar-header {
    height: auto !important;
  }
}

.sidebar-header img {
  max-height: 120px !important;
}

/* Hide sidebar logo when sidebar is collapsed, but show on hover */
body.menu-unpinned .sidebar-header img {
  display: none !important;
}

body.menu-unpinned.sidebar-visible .sidebar-header img {
  display: block !important;
}

.sidebar-header {
  text-align: center;
  padding-bottom: 10px !important;
  padding-top: 10px !important;
}


.page-sidebar .sidebar-menu .menu-items li.active>a,
.page-sidebar .sidebar-menu .menu-items li.active>a .icon-thumbnail {
  color: white;
}

li.active .icon-thumbnail {
  color: white;
}

.breadcrumb {
  padding-top: 30px;
}

.page-container > header {
  border-radius: 0 0 12px 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

@media only screen and (min-width: 980px) {
  .header .brand {
    display: none;
    width: 60px;
  }
}

@media (max-width: 767px) {

  .jumbotron,
  .container-fluid {
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 10px;
  }
}

.container-fluid {
  padding-top: 10px;
}

.page-sidebar .sidebar-menu .menu-items li:hover>a {
  color: ivory;
}

.page-sidebar .sidebar-menu .menu-items > li > a {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 42px;
  min-height: 42px;
}

.page-sidebar a,
.page-sidebar a:visited,
.page-sidebar button:visited,
.page-sidebar a:focus,
.page-sidebar button:focus {
  color: silver;
}

.sidebar-header a {
  color: #444 !important;
  font-weight: bold;
}

.card-dataset,
.card-school {
  cursor: pointer;
}

.datepicker-dropdown {
  z-index: 9999 !important;
}

.btn-toolbar {
  display: block;
}

.datepicker .table tbody tr td {
  padding: 5px;
}

.footer {
  z-index: 5 !important;
}


.nav-tabs,
.nav-pills {
  position: relative;
}

.note-toolbar .note-color .dropdown-toggle {
  width: inherit !important;
}

.note-link-dialog .checkbox input[type=checkbox] {
  opacity: inherit !important;
  width: inherit !important;
  height: inherit !important;
}

.note-link-dialog .radio label,
.note-link-dialog .checkbox label {
  padding-left: 0px !important;
}

.note-link-dialog .radio label:before,
.note-link-dialog .checkbox label:before {
  -webkit-box-sizing: inherit;
  box-sizing: inherit !important;
  content: inherit !important;
  display: inherit !important;
  width: inherit !important;
  height: inherit !important;
  margin-right: inherit !important;
  position: inherit !important;
  left: inherit !important;
  background-color: inherit !important;
  border: inherit !important;
}

.module-dashboard .entity-menu-item {
  background-color: white;
  border: 1px solid teal;
  padding: 25px;
}

.module-dashboard .dictionary-menu-item {
  background-color: white;
  border: 1px solid cornflowerblue;
  padding: 25px;
}

.module-dashboard .fa {
  font-size: 36px;
  margin-right: 20px;
}

.module-dashboard .dictionary-menu-item {
  color: cornflowerblue;
}

.module-dashboard .entity-menu-item {
  color: teal;
}

.module-dashboard .module-name {
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gradebook-table .gradebook-grade {
  color: black;
  font-size: 14px;
  margin: 3px;
  padding: 3px;
  padding-left: 20px;
  padding-right: 10px;
  min-width: 170px;
  border: 1px solid rgb(129, 189, 224);
  border-radius: 3px;
  min-height: 33px;
}

.gradebook-average {
  font-weight: bold;
  color: rebeccapurple !important;
}

.gradebook-table .gradebook-absence {
  color: black;
  font-size: 14px;
  margin: 3px;
  padding: 3px;
  padding-left: 20px;
  padding-right: 10px;
  min-width: 170px;
  border: 1px solid rgb(172, 89, 89);
  border-radius: 3px;
  min-height: 33px;
}

.gradebook-table .gradebook-grade-value {
  margin-right: 10px;
  cursor: pointer;
}

.gradebook-table .gradebook-absence-value {
  margin-right: 10px;
  cursor: pointer;
}

.gradebook-table .btn-add-grade {
  margin: 3px;
  width: 160px;
}

.gradebook-table .trainee-name {
  max-width: 300px;
  font-size: 26px;
}

.gradebook-table .trainee-note {
  font-size: 18px;
}

.school-results-table .subject-name {
  max-width: 300px;
  font-size: 26px;
}

.school-results-table .subject-trainer {
  display: block;
  max-width: 300px;
  font-size: 20px;
}

.school-results-table .subject-note {
  display: block;
  max-width: 300px;
  font-size: 13px;
  border: 1px solid silver;
  padding: 10px;
}


.small-org-text p {
  line-height: 18px;
  font-size: 85%;
  font-weight: 400;
}


.card.card-primary {
  border-radius: 12px !important;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card.card-white {
  border-radius: 12px !important;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card .card-header {
  padding-top: 10px !important;
}

#record-form {
  margin-bottom: 30px !important;
}

.card-dataset .card-body {
  min-height: 80px;
}

.table-bordered .form-group {
  margin-bottom: 0px !important;
}

.selectivity-disabled .selectivity-single-select {
  background-color: #f8f9fa !important;
}

.selectivity-disabled .selectivity-multiple-input-container {
  background-color: #f8f9fa !important;
}

td.select-cell, th.select-cell {
  text-overflow: clip !important;
}

p.selectivity-input[readonly] div {
  background-color: #efefef !important;
}

.badge-passed {
  background-color: #27ba90;
  color: #fff;
}

.badge-failed {
  background-color: #7b333f;
  color: #fff;
}

#course-category-tree {
  overflow-y: hidden;
}

:root {
    --theme-danger-color: #dc3545;
    --theme-success-color: #28a745;
    --theme-warning-color: #ffc107;
    --theme-default-color: #495057;
}

.selectivity-result-item.danger {
    background-color: var(--theme-danger-color);
    color: white;
}

.selectivity-result-item.success {
    background-color: var(--theme-success-color);
    color: white;
}

.selectivity-result-item.warning {
    background-color: var(--theme-warning-color);
    color: black;
}

.selectivity-result-item.default {
    background-color: var(--theme-default-color);
    color: white;
}

.selectivity-multiple-selected-item.success {
    background-color: var(--theme-success-color);
    color: white;
}

.selectivity-multiple-selected-item.danger {
    background-color: var(--theme-danger-color);
    color: white;
}
.selectivity-multiple-selected-item.warning {
    background-color: var(--theme-warning-color);
    color: black;
}
.selectivity-multiple-selected-item.default {
    background-color: var(--theme-default-color);
    color: white;
}

.btn-green {
    background-color: var(--theme-success-color);
    color: white;
}
.btn-green:hover {
    background-color: darkgreen;
    color: white;
}

.selectivity-input[readonly] .selectivity-single-select {
    background-color: #efefef !important;
    color: #495057 !important;
}

.mb-1 {
  margin-bottom: .25rem;
}

.wide-modal .modal-content {
  width: 550px !important;
}

/* Selected navigation button styling for administration pages */
.admin-navigation .btn.btn-default.bold {
  background-color: #e8f4f8 !important;
  border-color: #bee5eb !important;
  color: #0c5460 !important;
}

/* Accessibility: Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
  border-radius: 4px;
}

.skip-link:focus {
  top: 6px;
}

/* Main content area full height for layout */
main {
  min-height: 100%;
}

/* Screen Reader Only - hides content visually but keeps it accessible to screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Screen reader only but focusable - becomes visible when focused */
.sr-only-focusable:active,
.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Accessibility toggle button */
.accessibility-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

.accessibility-toggle button {
  border-radius: 50%;
  width: 60px;
  height: 60px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.accessibility-toggle button:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

/* Focus visible styles for better keyboard navigation */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
[tabindex]:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

/* Remove outline for mouse users but keep for keyboard users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
  outline: none;
}

/* ARIA live regions */
#aria-live-region,
#aria-live-region-assertive {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}