@charset "UTF-8";
.messages {
  width: 100%;
  background-color: whitesmoke;
  padding-left: 0;
  list-style-type: none;
}
.messages li {
  display: flex;
  justify-content: space-between;
  opacity: 100%;
  padding: 4px 12px;
  color: whitesmoke;
}
.messages li a {
  color: blue;
}
.messages li a:hover {
  color: blue;
}
.messages li .close-message-btn {
  background-color: transparent;
  border: none;
  align-self: flex-end;
  color: whitesmoke;
}
.messages .success {
  background-color: lightseagreen;
}
.messages .error {
  background-color: indianred;
}

form {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
form > div {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}
form input[type=number] {
  width: 150px;
}
form label {
  font-weight: bold;
}
form .helptext {
  color: whitesmoke;
}
form .errorlist {
  color: red;
  margin-bottom: 4px;
}
form button {
  display: inline-block;
  min-width: 80px;
  width: auto;
  align-self: center;
  flex-shrink: 1;
}

.login-related-form {
  margin: 0;
  padding: 8px;
}
@media (min-width: 576px) {
  .login-related-form {
    margin: 16px;
    padding: 16px;
    border-radius: 8px;
    border: solid 1px black;
  }
}
.login-related-form .helptext {
  color: #212529;
}

.filter-form {
  color: whitesmoke;
  padding-left: 0;
  padding-right: 0;
}
.filter-form .filter-header {
  background-color: #045f75;
  margin: 0;
  font-size: 1rem;
}
.filter-form .filter-header label {
  width: 100%;
  text-align: center;
  font-size: 1.2rem;
}
.filter-form .field-div {
  margin-bottom: 0;
  padding: 8px;
}
.filter-form .field-div:nth-of-type(odd) {
  background-color: #045f75;
}
.filter-form .field-div:nth-of-type(even) {
  background-color: #008080;
}
.filter-form .submit-div {
  margin-bottom: 0;
  padding: 8px;
}
.filter-form .date-filters {
  display: flex;
}
.filter-form #id_loan_operator,
.filter-form #id_return_operator {
  display: flex;
  flex-direction: row;
  margin-bottom: 8px;
}
.filter-form #id_loan_operator label,
.filter-form #id_return_operator label {
  margin-right: 8px;
}

.rooms-filter-form,
.room-creation-form,
.key-creation-form,
.permission-creation-form {
  display: block;
  margin-bottom: 4px;
}
.rooms-filter-form .filter-header,
.room-creation-form .filter-header,
.key-creation-form .filter-header,
.permission-creation-form .filter-header {
  background-color: #045f75;
  color: whitesmoke;
  margin-bottom: 0;
  padding: 12px;
}
.rooms-filter-form .fields-div,
.room-creation-form .fields-div,
.key-creation-form .fields-div,
.permission-creation-form .fields-div {
  color: whitesmoke;
  background-color: #008080;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 12px;
}
.rooms-filter-form .fields-div > div,
.room-creation-form .fields-div > div,
.key-creation-form .fields-div > div,
.permission-creation-form .fields-div > div {
  margin-right: 24px;
}

.permission-creation-form .fields-div label {
  display: none;
}
.permission-creation-form .fields-div div:has(.d-none) {
  display: none;
}
.permission-creation-form input[name=uid] {
  width: 274px;
}

.rooms-filter-form,
.room-creation-form {
  padding: 0;
}

.gch-table {
  width: 100%;
  color: whitesmoke;
  font-weight: normal;
}
.gch-table thead {
  background-color: #085f66;
}
.gch-table thead th {
  text-align: center;
  padding: 4px 8px;
}
.gch-table tbody tr td {
  text-align: center;
  padding: 4px 8px;
}
.gch-table tbody tr td.key-id {
  white-space: nowrap;
}
.gch-table tbody tr a {
  color: whitesmoke;
}
.gch-table tbody tr:nth-child(even) {
  background-color: #085f66;
}
.gch-table tbody tr:nth-child(odd) {
  background-color: #008080;
}

.pagination .page-item .page-link {
  color: whitesmoke;
  background-color: #008080;
  text-decoration: underline;
}
.pagination .page-item.disabled .page-link {
  text-decoration: none;
}

.key-card {
  padding: 16px;
  border: solid 1px black;
  border-radius: 16px;
  height: 100%;
}

.key-card-atrasada {
  background-color: rgba(255, 165, 0, 0.3);
}

.key-card-disponível {
  background-color: rgba(0, 128, 0, 0.3);
}

.key-card-emprestada {
  background-color: rgba(255, 255, 0, 0.3);
}

.key-card-extraviada {
  background-color: rgba(255, 0, 0, 0.3);
}

.no-key-cards-msg {
  text-align: center;
  font-weight: bold;
  display: block;
  font-size: 1.2rem;
  margin-top: 8px;
}

@keyframes RFIDblinking {
  0% {
    opacity: 50%;
  }
  40% {
    opacity: 100%;
  }
  60% {
    opacity: 100%;
  }
  100% {
    opacity: 50%;
  }
}
.rfid-banner {
  display: none;
}
.rfid-banner form {
  display: none;
  background-color: #008080;
  background-color: #09628A;
  color: white;
  padding: 8px;
}
.rfid-banner form h3 {
  text-align: center;
  animation-name: RFIDblinking;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}
.rfid-banner input {
  width: 0;
  height: 0;
}
.rfid-banner input:focus {
  border: 0;
  padding: 0;
}

.no-refid-text {
  font-size: 1.2rem;
}

header .banner {
  background-color: #09628A;
  border-bottom: solid 1px whitesmoke;
}
header .banner .logo-link,
header .banner .placeholder {
  height: 90px;
  width: 240px;
}
header .banner .logo-image {
  width: min-content;
}
header .banner .banner-title {
  width: fit-content;
  color: whitesmoke;
}
header .nav-row {
  background-color: #09628A;
}
header .nav-row a {
  color: whitesmoke;
  text-align: center;
}
header .nav-row a:hover, header .nav-row a:focus {
  color: whitesmoke;
  font-weight: bold;
}
header .nav-row .user-nav .dropdown-toggle {
  width: 170px;
  text-align: center;
}
header .nav-row .dropdown-menu {
  background-color: #09628A;
  width: 170px;
  border: none;
}
header .nav-row .dropdown-menu a {
  width: 100%;
}
header .user-info-bar {
  background-color: #008080;
  color: whitesmoke;
}
header .dropdown-toggle::after {
  vertical-align: 0.09em;
}

.loan-flow-btn,
.return-flow-btn,
.active-loans-btn,
.overdue-loans-btn {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loan-flow-btn,
.return-flow-btn {
  font-weight: 500;
  font-size: large;
}

.search-forms-row {
  padding-top: 24px;
  padding-bottom: 24px;
  background-color: transparent;
}
.search-forms-row .search-box {
  align-items: start;
  background-color: #008080;
  display: flex;
  flex-direction: column;
  padding: 12px;
  height: 100%;
}
.search-forms-row .search-box .search-label {
  font-size: 1.2rem;
  font-weight: bold;
  width: 100%;
  text-align: center;
  margin-bottom: 4px;
  color: whitesmoke;
}
.search-forms-row .search-box form {
  flex-wrap: wrap;
  width: 100%;
  justify-content: start;
  flex-direction: row;
  align-items: end;
  margin-bottom: 8px;
}
.search-forms-row .search-box form > div {
  margin-bottom: 8px;
}
.search-forms-row .search-box form label {
  display: none;
}
.search-forms-row .search-box form input, .search-forms-row .search-box form select {
  margin-right: 8px;
  height: 2rem;
}
.search-forms-row .search-box form button[type=submit] {
  padding-left: 20px;
  padding-right: 20px;
  height: 2rem;
  align-self: start;
  line-height: 1px;
}
.search-forms-row .search-box .user-search-form input[name=registration] {
  width: 152px;
}
.search-forms-row .search-box .key-search-form input[name=check_digits] {
  width: 48px;
}
.search-forms-row .search-box .room-search-form select[name=room] {
  width: 168px;
}
.search-forms-row .search-box #borrower-rfid-trigger,
.search-forms-row .search-box #key-rfid-trigger {
  width: 100%;
  align-self: center;
}
.search-forms-row .search-box .link-to-list {
  color: whitesmoke;
  margin-top: 12px;
}
.search-forms-row .search-box .link-to-list.link-to-rooms {
  margin-top: 36px;
}

.reports-row {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}
@media (min-width: 992px) {
  .reports-row {
    flex-direction: row;
  }
}
.reports-row a.btn {
  margin-bottom: 8px;
}
@media (min-width: 992px) {
  .reports-row a.btn {
    flex-grow: 1;
  }
  .reports-row a.btn:not(:first-of-type) {
    margin-left: 8px;
  }
}

.manual-task {
  margin-bottom: 24px;
}
.manual-task .task-title {
  margin-bottom: 0;
}
.manual-task .task-title .caret {
  align-self: center;
  padding-top: 4px;
  font-size: 22px;
  transform-origin: 50% 70%;
}

.manual-step {
  margin: 12px 24px;
  border-radius: 12px;
  padding: 16px;
  background-color: whitesmoke;
}
.manual-step h5 {
  margin-bottom: 0;
}
.manual-step p {
  margin-top: 8px;
}
.manual-step.unhappy-path, .manual-step.side-quest {
  padding-left: 48px;
}
.manual-step.unhappy-path summary {
  color: red;
}
.manual-step.side-quest summary {
  color: green;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
}

a {
  color: blue;
}

input[type=date] {
  width: 160px;
}

input[type=radio],
input[type=checkbox] {
  accent-color: #09628A;
}

[data-bs-toggle=collapse] {
  display: flex;
}
[data-bs-toggle=collapse] span.caret {
  display: flex;
  justify-content: center;
  background-color: transparent;
  border: none;
  padding: 0;
  height: 27px;
  width: 27px;
  transition: transform 0.4s linear;
  transform-origin: 50% 48%;
}
[data-bs-toggle=collapse][aria-expanded=true] span.caret {
  transform: rotate(180deg);
}

section {
  background-color: rgb(230, 230, 230);
  border-radius: 8px;
  padding-top: 24px;
  padding-bottom: 24px;
  margin-bottom: 48px;
}
section:not(.row) {
  padding-left: 12px;
  padding-right: 12px;
}
section h2 {
  margin-bottom: 24px;
}

footer {
  background-color: #008080;
  color: whitesmoke;
}

.btn {
  color: whitesmoke;
}

.btn-primary {
  background-color: #09628A;
  border-color: #09628A;
}
.btn-primary:hover {
  background-color: #09628A;
  border-color: #09628A;
}