header .banner {
  background-color: #9BCD9B;
}
header .banner .logo-image,
header .banner .placeholder {
  height: 90px;
  width: 121px;
}
header .banner .logo-link {
  left: 0;
  width: min-content;
}
header .banner .banner-title {
  width: fit-content;
}
header .nav-row {
  border-top: solid 1px black;
  background-color: #9BCD9B;
}
header .nav-row .logo-image {
  height: 45px;
  width: 60px;
}
header .nav-row .banner-title {
  font-size: 0.8rem;
}
@media (min-width: 576px) {
  header .nav-row .logo-image {
    height: 60px;
    width: 80px;
  }
  header .nav-row .banner-title {
    font-size: 1.2rem;
  }
}
header .nav-row .logo-link {
  left: 0;
  width: min-content;
}
header .navbar-toggler:focus {
  box-shadow: none;
}
header .nav-link {
  margin: 0;
  border: solid 1px black;
  padding-left: 16px !important;
  padding-right: 16px !important;
  color: black;
  border-radius: 8px;
  background-color: #9BCD9B;
  text-align: center;
}
header .nav-link:hover, header .nav-link:focus {
  color: black;
  background-color: rgba(245, 245, 245, 0.7);
}
header .dropdown-toggle {
  margin-bottom: 8px;
}
@media (min-width: 992px) {
  header .dropdown-toggle {
    margin-bottom: 0;
  }
}
header .dropdown-toggle::after {
  vertical-align: 0.2em;
}
header .dropdown-menu {
  background-color: transparent;
  border: none;
  padding: 0 16px 24px 16px;
  width: 100%;
}
@media (min-width: 992px) {
  header .dropdown-menu {
    width: 200px;
    margin-bottom: 0;
    padding: 0;
  }
}
header .dropdown-menu .nav-item {
  background-color: transparent;
  margin-top: 4px;
}
header .dropdown-menu .nav-link {
  width: 100%;
}
header .dropdown-menu .nav-link:hover {
  background-color: whitesmoke;
}
header .user-info span {
  margin-bottom: 8px;
  font-weight: bold;
}

.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 .close-message-btn {
  background-color: transparent;
  border: none;
  align-self: flex-end;
  color: whitesmoke;
}
.messages .success {
  background-color: lightseagreen;
}
.messages .error {
  background-color: indianred;
}

.gc-table thead {
  background-color: rgb(55, 133, 55);
}
@media (max-width: 768px) {
  .gc-table thead {
    display: none;
  }
}
@media (max-width: 768px) {
  .gc-table tbody tr {
    display: flex;
    flex-direction: column;
    padding: 8px;
  }
  .gc-table tbody tr td {
    width: 100%;
    text-align: start;
  }
}
.gc-table tbody tr .mobile-label {
  font-weight: 700;
  display: none;
}
@media (max-width: 768px) {
  .gc-table tbody tr .mobile-label {
    display: inline;
  }
}
.gc-table tbody tr:nth-child(odd) {
  background-color: #aecaae;
}
.gc-table tbody tr:nth-child(even) {
  background-color: #91aa91;
}

.service-orders-table th, .service-orders-table td {
  text-align: center;
}

.place-services-tab {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 4px;
  background-color: rgb(55, 133, 55);
  width: 100%;
  border: none;
}
.place-services-tab .place-label {
  font-size: large;
  font-weight: 500;
}

.place-service-section .gc-table {
  width: 100%;
}

.billing-table td {
  border: 1px solid black;
  padding: 8px 4px;
}
.billing-table td:nth-child(2) {
  text-align: end;
}
.billing-table .service-row, .billing-table .status-row {
  background-color: lightgray;
}
.billing-table .total-row {
  background-color: gray;
}

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 .errorlist {
  color: red;
  margin-bottom: 4px;
}
form button {
  display: inline-block;
  min-width: 80px;
  width: auto;
  align-self: center;
  flex-shrink: 1;
}

.stand-alone-form {
  margin: 0;
  padding: 8px;
}
@media (min-width: 576px) {
  .stand-alone-form {
    margin: 16px;
    padding: 16px;
    border-radius: 8px;
    border: solid 1px black;
  }
}

.create-service-order-form .fields,
.edit-service-order-form .fields {
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) {
  .create-service-order-form .fields,
  .edit-service-order-form .fields {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
.create-service-order-form .fields > div,
.edit-service-order-form .fields > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 8px;
}
.create-service-order-form .fields > div:not(:last-child),
.edit-service-order-form .fields > div:not(:last-child) {
  margin-right: 16px;
}
.create-service-order-form .fields div:has(textarea),
.edit-service-order-form .fields div:has(textarea) {
  width: 100%;
  margin-top: 8px;
}

.status-actions input[type=submit] {
  width: 220px;
}

#id_notify_users label {
  font-weight: normal;
}

.excution-registration-form {
  align-items: start;
  max-width: 700px;
}
.excution-registration-form div:has(textarea) {
  width: 100%;
}

.filter-form {
  background-color: #aecaae;
  padding-left: 0;
  padding-right: 0;
}
.filter-form .filter-header {
  background-color: rgb(55, 133, 55);
  margin: 0;
  font-size: 1rem;
}
.filter-form .field-div {
  margin-bottom: 0;
  padding: 8px;
}
.filter-form .field-div:nth-of-type(odd) {
  background-color: #aecaae;
}
.filter-form .field-div:nth-of-type(even) {
  background-color: #91aa91;
}
.filter-form #id_status {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: start;
}
.filter-form #id_status div {
  margin-right: 24px;
}
.filter-form .date-filters {
  display: flex;
}

.billing-form .form-row {
  padding: 8px;
}
.billing-form .form-row > div {
  display: flex;
  flex-direction: column;
}
.billing-form .billing-form-header {
  background-color: rgb(55, 133, 55);
}
.billing-form .billing-date-inputs {
  background-color: #aecaae;
}
.billing-form .billing-date-inputs input {
  margin-top: 4px;
  margin-bottom: 12px;
}

.service-order-occurrences [class^=status-badge-] {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transform: translateY(2px);
}
.service-order-occurrences .status-badge-proposta {
  background-color: yellowgreen;
}
.service-order-occurrences .status-badge-autorizada {
  background-color: green;
}
.service-order-occurrences .status-badge-cancelada {
  background-color: grey;
}
.service-order-occurrences .status-badge-executada,
.service-order-occurrences .status-badge-finalizada {
  background-color: blue;
}

.billing-div.just-created {
  background-color: rgba(155, 205, 155, 0.7);
  animation: created-billing-highlight 3s forwards;
}

@keyframes created-billing-highlight {
  0% {
    background-color: #9bcd9b;
  }
  100% {
    background-color: rgba(155, 205, 155, 0.6);
  }
}
.btn.btn-primary {
  background-color: #453685;
  border-color: #453685;
}

a {
  color: #453685;
}

.pagination {
  font-size: smaller;
}
@media (min-width: 768px) {
  .pagination {
    font-size: inherit;
  }
}
.pagination .page-link {
  font-weight: bold;
  color: rgb(35, 113, 35);
}
.pagination .page-link.current-page {
  background-color: rgb(35, 113, 35);
  color: whitesmoke;
}

.card {
  border-color: dimgray;
}

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

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

[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);
}

footer {
  background-color: #9BCD9B;
}
footer small {
  white-space-collapse: preserve;
}