.content-wrapper {
  font-size: .9rem;
}

#filter-customer,
#filter-collector {
  margin-bottom: 3rem;
}

.content h2 {
  border-bottom: 1px solid #BBB;
  margin: 1.2rem 0 2rem 0;
}

.content form {
  max-width: 600px;
}

.content form:not(.filterset-form) input[type="submit"] {
  margin-top: .5rem;
}

.content table td,
.content table th {
  vertical-align: middle;
}

.content table .actions .btn {
  padding: .15rem .35rem;
}

.content .home {
  padding-top: 5rem;
}

.content .home .main-actions-nav {
  width: 400px;
}

.content .home .main-actions-nav a {
  max-width: 280px;
  width: 100%;
}

.content .home .main-actions-nav hr {
  width: 100%;
}

.content .sale-creation hr {
  margin: 2rem 0;
}

.content .sale-creation h3.title,
.content .sale-creation #payment-scheme .title {
  margin-top: 1.5rem;
  padding-bottom: .5rem;
}

.content .sale-creation h3.title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.content .sale-creation #payment-scheme .title {
  border-bottom: 1px solid #ccc;
  font-weight: bold;
  margin-bottom: 0rem;
}

.content .sale-creation #payment-scheme .payment-scheme-row th,
.content .sale-creation #payment-scheme .payment-scheme-row td {
  visibility: hidden;
}

.content .sale-creation #add-form {
  margin-top: 1rem;
}

.content .sale-creation .uncollectible-sale .mb-3 {
  margin-bottom: 0 !important;
}

.content .sale-creation .uncollectible-sale label {
  margin-left: .5rem;
}

.content .table-with-installments-detail .sale-detail,
.content .table-with-installments-detail .customer-detail {
  border-bottom-color: transparent;
}


.content .table-with-installments-detail .sale-detail.is-uncollectible {
  color: red;
}

.content .table-with-installments-detail .installments-detail {
  box-shadow: none !important;
  padding: 0 1.5rem 1rem 1.5rem;
}

.content .table-with-installments-detail .installments-detail table {
  /* font-size: .9rem; */
  max-width: 500px;
}

.content .table-with-installments-detail .installments-detail .accordion-item {
  margin-bottom: 1rem;
}

.content .table-with-installments-detail .installments-detail .accordion-button {
  color: var(--bs-accordion-active-color);
  font-size: .8rem;
  padding: 0;
}

.content .table-with-installments-detail .installments-detail .accordion-button::after {
  background-position: center;
  background-size: 15px;
  margin-left: 1rem;
}

.content .table-with-installments-detail .installments-detail .accordion-button.collapsed {
  border-radius: 0 !important;
}

.content .table-with-installments-detail .installments-detail .accordion-button:not(.collapsed) {
  background-color: transparent;
}

.content .table-with-installments-detail .installments-detail .accordion-body {
  padding-top: .5rem;
}

.content .create-collection input[type="checkbox"],
.content .delivery-collection input[type="checkbox"] {
  margin-right: .5rem;
}

.content .create-collection .form-control-plaintext {
  outline: 0;
}

.content .create-collection form,
.content .delivery-collection form,
.content .uncollectible-sale form {
  max-width: 1200px;
  width: 100%;
}

.content .create-collection .table,
.content .create-collection form .mb-3 {
  margin-bottom: 0 !important;
}

.content .create-collection .sales-container {
  margin-bottom: 8rem;
}

.content .create-collection .sale {
  padding-bottom: 4rem;
}

.content .create-collection .sale-details .badge {
  font-weight: normal !important;
}

.content .create-collection .sale-details span:not(:last-child) {
  margin-right: .2rem;
}

.content .create-collection .sale-header .remarks {
  font-size: .9rem;
}

.content .create-collection .products-list {
  margin: 1.2rem 0;
}

.content .create-collection .products-list .breadcrumb {
  font-size: 1.1rem;
  font-weight: 700;
}

.content .create-collection .products-list .breadcrumb-item::before {
  font-weight: 800;
  margin: 0 .5rem;
}

.content .create-collection .accordion-button {
  color: var(--bs-accordion-active-color);
  font-size: .9rem;
  padding: .7rem;
}

.content .create-collection .accordion-button::after {
  background-size: 15px;
}

.content .create-collection .totals,
.content .delivery-collection .totals {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 10;
  background-color: #fafafa;
  padding: 20px;
  margin-bottom: 2rem;
  border-radius: 4px;
  box-shadow: -12px 12px 20px -5px #eee;
  min-width: 210px;
}

.content .create-collection .totals p,
.content .delivery-collection .totals p {
  font-size: 1.2rem;
  font-weight: 500;
}

.content .delivery-collection {
  margin-bottom: 12rem;
}

form.filterset-form {
  border-radius: 0.375rem;
  background: #EEE;
  margin-bottom: 2rem;
  padding: 1rem;
  max-width: 100%;
}

form.filterset-form input[type="submit"],
form.filterset-form .erase-filters {
  margin-top: .5rem;
}

.content .create-collection .empty-sale {
  display: none;
}

.content .create-collection tr.empty-form {
  display: none;
}

.existing-formset-delete-button {
  display: none;
}


/* Collection Receipt */

.receipt {
  max-width: 80mm;
}

.receipt h1 {
  font-size: 1.6rem;
  text-align: center;
}

.receipt h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.receipt h6 {
  margin-bottom: 1rem;
  text-align: center;
}

.receipt table {
  text-align: center;
  width: 100%;
}

.receipt .details {
  font-size: .9rem;
  padding: 0 1rem;
}

.receipt .details.customer p {
  margin: .2rem 0;
}

.receipt .details.customer .customer-name {
  font-weight: bold;
  text-transform: uppercase;
}

.receipt .details span {
  font-weight: bold;
}

.receipt .installments h3 {
  font-size: 1.3rem;
  margin-top: 1.5rem;
  text-align: center;
}

.receipt .installments .line {
  display: flex;
}

.receipt .installments .line span {
  border-bottom: 1px solid grey;
  max-width: 300px;
  width: 100%;
  opacity: .60;
}

.receipt .installments table,
.receipt .total table {
  width: 100%;
}

.receipt .installments table td:first-child,
.receipt .total table td:first-child {
  text-align: left;
}

.receipt .installments table td:nth-child(2),
.receipt .total table td:nth-child(2) {
  text-align: right;
}

.receipt .installments table li {
  margin-left: 1rem;
  list-style-type: circle;
}

.receipt .total td {
  font-size: 1.2rem;
  font-weight: bold;
}

.receipt .disclaimer {
  margin-top: 2rem;
}

.receipt .disclaimer p {
  font-size: .82rem;
}


/* Login Page */

.login {
  align-items: center;
  display: flex;
  flex-direction: column;
}

.login .login-container {
  max-width: 600px;
  width: 100%;
}

.login .content {
  border: 1px solid rgba(0, 0, 0, .1);
}

.login header {
  background-color: rgba(0, 0, 0, .1);
  border-radius: 6px 6px 0 0;
  margin-top: 3rem;
  padding: .5rem;
  padding-left: 3rem;
}

.login header a {
  color: #212529;
  font-size: 1.8rem;
  text-decoration: none;
}

.login .errorlist {
  color: red;
}

.login .content h2 {
  font-size: 1.6rem;
}

/* Synchonization */

.synchronization {
  display: none;
  width: 100%;
}

.synchronization.show {
  display: inline-block;
}

.synchronization .last-sync {
  font-size: .95rem;
  margin-bottom: 0;
}

.synchronization #pending-requests {
  display: none;
  margin-left: .5rem;
}

.synchronization #pending-requests.show {
  display: inline-block;
}

.synchronization:not(.in-progress) .spinner-border {
  display: none;
}

.synchronization.in-progress .spinner-border {
  display: inline-block;
}

.synchronization.in-progress .last-sync {
  display: none;
}

.synchronization .sync-date {
  display: flex;
  justify-content: flex-end;
}

.synchronization .sync-date .sync-button-container {
  margin-right: 1rem;
  margin-top: 3px;
}

.synchronization .sync-date .sync-button-container > div {
  line-height: 1rem;
}

.synchronization .sync-date .sync-button-container > span {
  font-size: .85rem;
  color: grey;
}

.offline {
  display: none;
}

.offline.show {
  display: block;
}

.unsynchronized-collection-table .empty-row {
  display: none;
}

/* MEDIAQUERYS MIN-WIDTH */

@media (min-width: 400px) {
  .content table .actions .btn {
    padding: .25rem .5rem;
  }
}

/* X-Small devices (portrait phones, less than 576px) */
/* No media query for `xs` since this is the default in Bootstrap */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .content-wrapper {
    font-size: 1rem;
  }

  .content table td i,
  .content table th i {
    font-size: 1.2rem;
  }

  .content table {
    font-size: 1rem;
  }

  .content .create-collection input {
    width: auto;
  }
}

/* Medium devices (tablets, 768px and up) */
/* @media (min-width: 768px) { ... } */

/* Large devices (desktops, 992px and up) */
/* @media (min-width: 992px) { ... } */

/* X-Large devices (large desktops, 1200px and up) */
/* @media (min-width: 1200px) { ... } */

/* XX-Large devices (larger desktops, 1400px and up) */
/* @media (min-width: 1400px) { ... } */

/* MEDIAQUERYS MAX-WIDTH */

@media (max-width: 575px) {
  .content .sale-creation .products-list .row > * {
    padding-right: 0 !important;
  }
}