@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

* {
  font-family: "Roboto", sans-serif;
}

html {
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: #2196f3;
}

.btn-info-container {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.login-container {
  padding: 2rem;
  border-radius: 8px;
  width: 100%;
  height: 100%;
  max-width: 400px;
}

.form-control {
  margin-bottom: 1rem;
}

#editUserForm .form-control::placeholder {
  color: white !important;
}

.navbar {
  padding: 10px;
  flex-shrink: 0;
  z-index: 1020;
}

.navbar span {
  color: #ffffff;
}

.nav-link.active,
.nav-link.active i {
  color: #2196f3 !important;
}

.nav-item {
  color: #c9d3f2;
}

.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  transition:
    color 0.15s ease-in-out,
    background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}

.btn-primary {
  width: 100%;
  background: white;
  color: #2196f3;
}

.btn-secondary {
  width: 100%;
  color: #0b2f54;
  text-decoration: underline;
  border: none;
  background-color: transparent;
  margin-top: 20px;
}

.btn-secondary:hover {
  background-color: transparent;
}

.btn {
  margin-bottom: 20px;
  font-weight: 600;
}

.btn-primary {
  width: 100%;
  background: white;
  color: #2196f3;
}

.btn-primary:active {
  background: rgb(230, 230, 230);
  color: #2196f3;
}

.btn-primary:hover {
  background: rgb(230, 230, 230);
  color: #2196f3;
}

.brand-logo {
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 2rem;
}

.brand-logo img {
  max-width: 100%;
  height: auto;
}

.form-control {
  background-color: transparent;
  border-radius: 8px;
  color: white;
}

.form-control:focus {
  background-color: white;
  border-radius: 8px;
  color: black !important;
}

.table-responsive {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-backdrop {
  --bs-backdrop-bg: #0d8bf2;
}

.content {
  width: 100%;
  padding: 20px;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
  color: white;
}

.table > :not(caption) > * > * {
  background-color: transparent !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25) !important;
  color: white !important;
}

.custom-btn {
  border: none;
  background: #ffffff;
  color: #0d8bf2;
}

.custom-btn:hover {
  background: #ffffff;
  color: #0d8bf2;
}

.modal-content {
  background-color: #2196f3;
  color: white;
  border: none;
}

.modal-backdrop.show {
  opacity: 1 !important;
  background-color: #0d8bf2 !important;
}

/* Navbar */

.navbar {
  padding: 10px;
  flex-shrink: 0;
  z-index: 1020;
}

.navbar span {
  color: #ffffff;
}

.nav-link.active,
.nav-link.active i {
  color: #2196f3 !important;
}

.nav-item {
  color: #c9d3f2;
}

/* Tabela de vendas */

.content h2 {
  text-align: left;
}

#salePointsSection {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

#salePointsSection .table-responsive {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: calc(100vh - 120px);
  flex-grow: 1;
  padding-bottom: 100px;
}

.table .btn {
  margin: 0;
  padding: 3px 8px;
  border: none !important;
}

/* Detalhes de ponto de venda */

#salePointDetailsInfo {
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  margin-bottom: 10px;
}

#salePointDetailsInfo p {
  margin: 0;
}

.card {
  position: relative;
  background-color: #00aeff;
  border: none;
  border-radius: 10px;
  margin-bottom: 10px;
  text-align: left;
}

.card .tittle {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  flex-direction: row;
  align-content: space-between;
  align-items: center;
  border: none;
}

.card-body {
  position: relative;
}

.card-body {
  border: none;
}

.loading-st {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9;
  width: 100%;
  height: 100%;
  background-color: #00aeff;
  border-radius: 10px;
  top: 0;
  left: 0;
}

.card-title {
  color: #ffffff;
  font-size: 22px;
  margin-bottom: 5px;
}

.card-text {
  color: #ffffff;
  font-size: 17px;
  margin-bottom: 2px;
}

.card-text strong {
  color: #ffffff;
}

.card .date-creation {
  margin-top: 5px;
  font-size: 11px;
}

.edit-machine-btn {
  background: none;
  position: absolute;
  color: #ffffff;
  bottom: 10px;
  right: 8px;
  padding: 0.5em;
}

.status {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.status p {
  color: rgb(255, 255, 255);
  font-size: 13px;
  margin: 0;
  text-align: right;
}

.btn-danger {
  background-color: red;
  border-color: red;
}

.edit-icon {
  cursor: pointer;
  font-size: 1.2em;
}

.modal-footer {
  padding: 0;
  margin: 12px 0;
  border: none;
}

.modal-footer .btn {
  margin: 0;
  margin-top: 5px;
}

#filterModal input,
select,
.form-control,
option {
  background-color: #2196f3;
  color: white;
}

#filterModal select:focus {
  background-color: #2196f3;
  color: white;
}

#allMachinesList .card {
  padding: 8px 10px;
}

#allMachinesList .input-group {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: flex-start;
  justify-content: flex-start;
  align-items: stretch;
  padding: 0;
  margin: 0 !important;
  height: 35px;
}

#allMachinesList .form-control {
  width: 80%;
}

#allMachinesList .btn-primary {
  width: 30%;
}

#allMachinesList .card-text {
  padding: 0;
  margin-bottom: 0;
  font-size: 17px;
  border: none;
}

#allMachinesList .tittle {
  padding: 0;
}

#allMachinesList .card-title {
  padding: 0;
  margin-bottom: 0;
}

#allMachinesList .lastActiveMachine {
  position: absolute;
  right: 0px;
  bottom: 40px;
  border: none;
}

.lastActiveMachine p {
  font-size: 10px;
  text-align: right;
  margin: 0;
}

/* Modal excluir ponto de venda */

#deleteMachineConfirmationModal .modal-footer {
  padding-top: 10px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

#deleteConfirmationModal .modal-footer {
  padding-top: 10px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* Footer nav */

.footer {
  height: 75px;
  flex-shrink: 0;
  width: 100%;
  background: white;
}

.footer nav {
  height: 100%;
}

.footer .navbar {
  background-color: white;
}

.footer-nav .nav-link {
  color: #9ca4b9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.scrollable-list {
  max-height: 300px;
  overflow-y: auto;
}

.scrollable-list2 {
  margin-top: 20px;
  max-height: calc(100vh - 120px - 120px);
  overflow-y: auto;
}

#editMachineModal .modal-footer {
  gap: 10px;
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row-reverse;
}

#editMachineId {
  background-color: #939393;
}

#deleteMachineConfirmationModal {
  background-color: #0d8bf2;
}

/* Conta */

#accountSection {
  text-align: left;
}

#accountSection h2 {
  font-size: 27px;
  margin-bottom: 20px;
}

#accountSection .btn-danger {
  margin: 30px 0;
}

#addPermissionButton {
  margin: 0;
}

#permissionInputContainer {
  border-top: 2px solid rgba(0, 0, 0, 0.25);
  padding: 20px 0;
}

#accountSection input::placeholder {
  color: white;
}

#accountSection input:focus {
  background-color: #00aeff;
  color: white;
}

/* Máquinas */

#machinesSection input::placeholder {
  color: white;
}

#machinesSection input:focus {
  background-color: #00aeff;
  color: white;
}

/* Notificações */
@keyframes slideIn {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.loader {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 4px solid rgba(255, 255, 255, 0.75);
  width: 20px;
  height: 20px;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
  display: block;
}

#machinesLoading {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-weight: 500;
  text-align: center;
  margin-top: 5px;
  font-size: 14px;
  color: rgb(255, 255, 255);
}

.notification {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  background-color: #fff;
  color: white;
  padding: 10px 20px;
  animation: slideIn 0.5s ease forwards;
  width: 100%;
  z-index: 9999;
  text-align: center;
}

.notification.success {
  background-color: #28a745;
}

.notification.error {
  background-color: #dc3545;
}

.notification.warning {
  background-color: #ffa34d;
}

.notification.hide {
  animation: fadeOut 8.5s ease-in forwards;
}

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0d8bf2;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.spinner-border {
  color: rgba(255, 255, 255, 0.45) !important;
}

#salesTableContainer .table-responsive {
  max-height: calc(100vh - 300px);
  overflow-y: auto;
}

@media (max-width: 480px) {
  .btn-info-container {
    top: -44px;
  }

  #btn-container-client {
    top: 0px !important;
  }
}

@media (max-width: 1024px) {
  .content {
    overflow-y: scroll;
  }
}

@media (max-width: 720px) {
  .card-title {
    font-size: 18px;
  }

  #allMachinesList .card-text {
    font-size: 14px;
  }
}

@media (min-width: 800px) {
  #filtersContainer {
    position: fixed;
    width: 23%;
    border-radius: 20px;
    height: 43vh;
    overflow-y: auto;
    padding: 20px;
    background-color: #0d8bf2;
    margin-top: 120px;
  }

  #filtersContainer .form-group {
    margin-bottom: 15px;
  }

  #filtersContainer button {
    margin: 0;
  }

  #salesTableContainer {
    margin-left: 25%;
  }

  #salesTableContainer .table-responsive {
    max-height: calc(100vh - 250px);
    overflow: auto;
  }
}

#addPermissionButton {
  margin: 0;
}

#permissionInputContainer {
  border-top: 2px solid rgba(0, 0, 0, 0.25);
  padding: 20px 0;
}

#permissionEmailInput::-webkit-input-placeholder {
  color: white !important;
}

#addMachineContainer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

#addMachineContainer > #addMachineButton {
  margin: 0;
  width: fit-content;
}

@media (min-width: 720px) {
  #addMachineContainer {
    flex-direction: column;
  }

  #addMachineContainer > #addMachineButton {
    width: 100%;
  }
}
