body {
  min-height: 100%;
  padding-top: 70px;
}

a {
  text-decoration: none;
}

body.login {
  padding: 0!important;
}

body.login::before {
  /* background: url(/images/wp3212950.jpg) no-repeat center center fixed; */

  content: '';
  z-index: -1;
  width: 100%;
  height: 100%;
  position:absolute;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}


@media only screen and (max-width: 768px) {
  .container {padding: 0;}
  .col-lg-12, .col-lg-10 {padding: 0;}
  .overhead-switch {display: none;}
}
@media (prefers-color-scheme: light) {
  .dark {display: none}
}

.login {
    background-color: white;
}

fieldset {
  border: 1px solid rgba(0,0,0,.125);
  border-radius: .25rem;
    padding: 0 1.4em 1.4em 1.4em !important;
    margin: 0 0 1.5em 0 !important;
    -webkit-box-shadow:  0px 0px 0px 0px #000;
            box-shadow:  0px 0px 0px 0px #000;
}

legend {
    width:inherit; /* Or auto */
    padding:0 10px; /* To give a bit of padding on the left and right */
    font-size: 1em;
    height:24px;
}

.sidebar {
  float: right;
}

.table thead th {
  border-top: none;
}

.navbar_title {
  color: white;
  font-size: 1em;
}

.navbar-dark {
  background-color: #0a1d3d;
}

.accordion-collapse {
  display: grid;
}


div.counters {
    width: 7rem;
    float: right;
    height: 1.5rem;
}

div.counters.fixed {
    width: 1.5rem;
    float: right;
    height: 1.5rem;
}
.counters input {
  font-size: 0.8em;
  line-height: 1;
  height: 1.5rem;
  text-align: center;
}
.counters .counter {
  height: 1.5rem;
}

.counters .error {
    border-color: red;
    background-color: rgb(255, 206, 206);
}
.list_subjects > li:hover {
  background-color: #e9ecef;
}
.list-group-item {
  padding: .3rem 1rem
}


.my_list > li {
  border: none;
  padding: 0 0 0 0.75rem;
  background-color: inherit;
  cursor: pointer;
  overflow: hidden;
}
.list_subjects .my_list > li {
  height: 1.5rem;
}
.my_list > li.new {
  background-color: #fff3cd;
}
.my_list > li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  height: 6px;
  width: 6px;
  border: 1px solid #007bff;
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
}
.my_list > li > .operations {
  float: right;
  margin: 3px 0;
  margin: 3px 0;
  position: absolute;
  top: -5px;
  right: 0;
}
.my_list > li > .operations * {
  margin-left: 2px;
  
}
.wait {
  margin: 4px 9px;
  color: #878f97!important;
  display: none;
}

div.question_details_container {
  position: absolute;
  z-index: 1040;
  width: 89%;
  height: 10rem;
  overflow-y: scroll;
  background-color: #f0f2df;
  left: 4rem;
  top: 0px;
  display: none;
  font-size: 0.9rem;
}
div.question_details_container .card-body {
  padding: 0.75rem;
}
div.question_details_container .card-body li.correct {
  font-weight: bold;
  color: rgb(1, 158, 24);
}
div.question_details_container .operations {
  position: absolute;
  right: 10px;
  top: 10px;
}
.counters .input-group-text {
  cursor: default;
}
div.question_details_container ol {
  padding: 0;
  padding-right: calc(1.5rem - 1rem + 10px)
}

div.question_details_container ol lh {
  font-weight: bold;
}
div.question_details_container ol li {
  margin-left: 3rem;
}


.badge.bg-warning a {
  color: black;
}

.badge {
    /* display: inline; */
    padding: .25em .4em
}

.test-operations {
  margin-top:1em;
  padding: 0;
}
.test-operations .title {
  background-color: #007bff;
  padding: 0.4rem;
  color: white;
}
.test-operations > div > div > button {
   width:100%
}
.test-stats td, .test-stats th{
  padding: 0.2em;
}
.test-operations button {
  margin-bottom: 0.3em;
}
.test-operations .col-md {
  padding-right: 0;
}
.test-operations .row {
  margin-right: 0;
}
.operations .btn-sm,
.operations .dropdown-menu .dropdown-item  {
  font-size: 0.7rem;
  padding: 0.2rem;
}
.dropdown-item:focus, .dropdown-item:hover,
.list-group-item.list-group-item:hover,
.drop-highlight {
  background-color: #e9ecef;
}
.list-group-item+.active:hover {
  background-color: #0d6efd;
}

.test-results {
  width: auto;
  float: left;
  margin-bottom: 1em;
  /* margin-right: 1em; nevar, testo root un rezultātu labpa */
}
.test-results th {
  border-top: none;
  border-bottom: none;
  vertical-align: center;
  text-align: center;
}
.test-results thead th {
  height: 3rem;
}
.test-results tbody tr {
  height: 36px;
}
.test-results tr:first-child th {
  border-right: none;
  min-width: 3rem;
}
.test-results.compact tr:first-child th {
  border-right: none;
  min-width: auto;
}
.test-results tr:last-child td,
.test-results tr:last-child th {
  border-bottom: 1px solid #dee2e6;
}
.test-results.compact td:first-child {
  font-size: 0.7rem;
  font-weight: bold;
  white-space: nowrap;
}
.test-results td, .test-results th {
  padding: 0.5rem;
  text-align: center;
  height: 2.2rem;
  white-space: nowrap;
}
.test-results tr.header td,
.test-results tr.header th {
    height: 2.6rem;
}
.test-results:not(.results-only) td:first-child {
  text-align: left;
}
.test-results .grid-cell {
  width: 2.2em;
  text-align: center;
}
.test-results.compact td {
  padding: 0.2rem;
}
.test-results.debrief th {
  padding: 0.25rem;
}
.test-results tr.current td {
    background-color: #eee
}
.test-results td,
.test-results th {
  border-color: #dee2e6!important;
}
.test-results tr.footer td,
.test-results tr.footer th {
  border-top-width: 2px;
  border-top-style: solid;
}
.test-results tr.footer th {
    border-right-width: 1px;
    border-right-width: solid;
}
.test-results td {
  font-weight: bold;
  font-size: 0.8rem;
  border-right-width: 1px;
  border-right-style: solid;
  border-bottom: none;
  border-top: none;
}
.test-results td.disabled {
  background-color: #ccc;
}
.footer {
  padding: 0.75rem;
}

@media only screen and (max-width: 768px) {
  .test-user-list {
    display: none;
  }
  .test-results td {
    font-size: 0.8em;
  }
}
table.results_summary {
  margin-top:12px;
  width: 240px;
  margin-bottom: 0;
}

table.results_summary th {
    font-size: 0.8em;
    font-weight: normal;
    padding: 0.25rem;
  }
 table.results_summary td {
    text-align: center;
    padding: 0.25rem;
    font-size: 2em;
}


.breadcrumb {
  background-color: rgba(0,0,0,.05);
  padding: 0.2rem 1rem;
  font-size: 0.9rem;
}
.breadcrumb-item+.breadcrumb-item::before {
    content: ">";
}
.variable-left {
    overflow: hidden;
    /* border: 2px dashed #f0f; */
    order: 2;
}

.fixed-right {
    float: right;
    /* width: 250px; */
    margin-left: 10px;
    /* border: 2px dashed #00f; */
    order: 1;
}
.fixed-right > div {
  padding-left: 20px;
  border-left: 1px solid #eee;
}


@media only screen and (max-width: 768px) {
  /* For mobile phones: */
  .variable-right, .fixed-right {
    width: 100%;
    padding: 0;
  }
  .fixed-right > div {
    padding-left: 0px;
    border-left: none;
  }
  [class*="sub-elements-"] {
    float: left;
    padding-left: 10px;
  }
  .sub-elements-2 {width:50%!important}

  .competencies-list ul li {
      width: auto;
  }
  .competencies-list .drag,
  .questions-list .form-elements {
      display: none;
  }
  .variable-left {
      order: 1;
  }
  .fixed-right {
      order: 2;
      margin-left: 0px;
  }
  .flex {
      display: flex;
      flex-direction: column;
  }
}

.test-section {
  display: block;
}
.test-section-dropdown {
  display: none
}

@media only screen and (max-width: 768px) {
   .test-section {
    display: none;
  }
  .test-section-dropdown {
    display: block
  }
}



.status {
  display: inline-block;
  padding: 10px;
  border-radius: 10px;
  width: 10px;
  height: 10px;
  margin-right: 10px;
}
.status.status_0 {
  background: #dc3545;
}
.status.status_1 {
  background: #28a745;
}

.sync-log {
  font-family: courier new;
  font-weight: normal;
  font-size: 0.8rem;
  background-color: rgb(20, 20, 20)!important;
  color: rgb(0, 243, 0)!important;
}
.sync-log:disabled {
  background-color: rgb(46, 46, 46);
}


.subject ul {
  padding: 0;
}
.subject li {
  padding: .25rem 1.25rem;
}


.answer_order > * {
  float:left;
  padding-right: 0.3rem;
}
table.answer input.answer_checkbox {
  position: absolute;
  left: 0;
  z-index: -1;
  opacity: 0;
}
table.answer textarea {
  resize: none;
  height: 1em;
}
.form-group.compact .form-control {
  display: inline-block;
  width: auto;
}

.select2-container--default .select2-selection--multiple {
    border: 1px solid #ced4da;
      border-radius: 4px;
      cursor: text;
  }

  .select2-container--default:focus,
  .select2-selection--multiple:focus,
  .select2-container--default.select2-container--focus  {
    border: 1px solid #80bdff;
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(0,123,255,.25);
    border-radius: 4px;
    }


    .select2-container--default.select2-container--focus .select2-selection--multiple {
      border: 1px solid #80bdff;
    outline: 0;
    }


table.questions_list td {
  vertical-align: top;
  padding-right: 4px;
}
#question_list tr {
  position: relative
}

#question_list {
  width: 100%;
  display: table;
}
#resp-table-caption{
  display: table-caption;
  text-align: center;
  font-size: 30px;
  font-weight: bold;
}
#resp-table-header{
  display: table-header-group;
  background-color: gray;
  font-weight: bold;
  font-size: 25px;
}
.table-header-cell{
  display: table-cell;
  padding: 10px;
  text-align: justify;
  border-bottom: 1px solid black;
}
#resp-table-body{
  display: table-row-group;
}
.resp-table-row{
  display: table-row;
}
.table-body-cell{
  display: table-cell;
}
#question_list .table-header-cell, .table-body-cell {
  padding: 3px;
}
#resp-table .flexible {width: auto;}


.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}




/* UPLOADER */

#files {
    overflow-y: scroll !important;
    min-height: 120px;
}
@media (min-width: 768px) {
	#files {
		min-height: 120px;
	}
}
#debug {
	overflow-y: scroll !important;
	height: 180px;
}

.dm-uploader {
	border: 0.25rem dashed #A5A5C7;
	text-align: center;
}
.dm-uploader.active {
	border-color: red;

	border-style: solid;
}
/* */

@keyframes highlight {
  from {background-color: rgb(255, 174, 0)}
  to   {background-color: inherit}
}
.table-striped tbody td.highlight {
    background-color: inherit;
    animation-name: highlight;
    animation-duration: 10s;
    animation-iteration-count: 1;
}


@keyframes wait {
  0%   {background-color:white;}
  50%  {background-color:#eee;}
  100% {background-color:white;}
}
.test-results .waiting {
  background-color: white;
  animation-name: wait;
  animation-duration: 1s;
  animation-iteration-count: infinite;
}

.waiting.d0 {
    animation-delay: 0s;
}
.waiting.d1 {
    animation-delay: 100ms;
}
.waiting.d2 {
    animation-delay: 200ms;
}
.waiting.d3 {
    animation-delay: 300ms;
}
.waiting.d4 {
    animation-delay: 400ms;
}
.waiting.d5 {
    animation-delay: 500ms;
}
.waiting.d6 {
    animation-delay: 600ms;
}
.waiting.d7 {
    animation-delay: 700ms;
}
.waiting.d8 {
    animation-delay: 800ms;
}
.waiting.d9 {
    animation-delay: 900ms;
}
@keyframes wait-badge {
  0%   {background-color:#eee;}
  50%  {background-color:#ccc;}
  100% {background-color:#eee;}
}
.badge.waiting {
  background-color: #eee;
  width: 32px;
  animation-name: wait-badge;
  animation-duration: 1s;
  animation-iteration-count: infinite;
}


@keyframes live {
  0%   {background-color:red;}
  50%  {background-color:inherit;}
  100% {background-color:red;}
}

#live_results_indicator {
  background-color: red;
  padding: 3px 10px;
  color: white;
  font-size: 12px;
  height: 23px;
  margin-right: 10px;
  animation-name: live;
  animation-duration: 1s;
  animation-iteration-count: infinite;
  display: none;
}
.test-results td.viewing {
  background-color: rgb(213, 243, 255);
}

ul.answer {
  list-style: none; /* Remove default bullets */
}

ul.answer li {
  border-bottom: 1px solid #aaa;
}
ul.answer li:last-child {
  border-bottom: none;
}

ul.answer li::before {
  content: "\2022";
  font-weight: bold;
  display: inline-block;
  width: 1em;
  font-size: 2em;
  vertical-align: -0.2rem;
}

ul.answer li.active {
  cursor: pointer;
}
ul.answer li.active:hover {
  cursor: pointer;
  color: #7e8189;
}
ul.answer li.text-primary:before {
  color: #0d6efd;
}
ul.answer li.text-success:before {
  color: green;
}
ul.answer li.text-danger:before {
  color: red;
}
