html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background: #f5f7fb;
}

.login-page { margin-bottom: 0; background: linear-gradient(135deg, #eef4ff, #f8f9fa); }
.login-card { width: min(100%, 430px); border-radius: 1rem; }
.navbar .nav-link { opacity: .86; }
.navbar .nav-link:hover, .navbar .nav-link:focus { opacity: 1; }
.form-page { max-width: 760px; margin-inline: auto; }
.table th { white-space: nowrap; }
.pedido-itens { min-width: 0; }
.pedido-item-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 1rem; align-items: center; background: #fff; }
.pedido-item-info { display: flex; flex-direction: column; min-width: 0; }
.pedido-item-info strong { overflow-wrap: anywhere; }
.pedido-item-actions { display: flex; gap: .5rem; }
.preserve-lines { white-space: pre-wrap; }
.cadastro-endereco { overflow-wrap: anywhere; max-width: 14rem; }
.empresa-logo-preview { display: block; max-width: 240px; max-height: 120px; width: auto; height: auto; object-fit: contain; }
.dashboard-cards .card { border-top: .2rem solid var(--bs-primary) !important; }
.dashboard-series { display: grid; gap: .7rem; max-height: 28rem; overflow-y: auto; }
.dashboard-bar-row { display: grid; grid-template-columns: 3.5rem minmax(4rem, 1fr) 7.5rem; gap: .75rem; align-items: center; }
.dashboard-bar-row .progress { height: .65rem; }

@media (max-width: 575.98px) {
  .container { padding-inline: .75rem; }
  .card-body { padding: 1rem; }
  .cadastro-table { min-width: 0; }
  .cadastro-table th, .cadastro-table td { padding-inline: .5rem; }
  .pedido-item-row { grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; }
  .pedido-item-actions { grid-column: 1 / -1; }
  .pedido-item-actions .btn { flex: 1; }
  .pedido-sugestoes option {
    width: auto;
    max-width: 100%;
    height: auto;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .dashboard-bar-row { grid-template-columns: 3rem minmax(3rem, 1fr) 6.5rem; gap: .5rem; }
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
