body { color: #1f2933; }
.erp-login-split {
  min-height: 100vh;
  margin: 0;
  background: #fff;
  color: #52616f;
}
.erp-login-shell {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(520px, 1fr);
  min-height: 100vh;
}
.erp-login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 56px;
  background: #fff;
}
.erp-login-form-wrap {
  width: min(100%, 425px);
}
.erp-login-brand {
  margin-bottom: 8px;
}
.erp-login-logo-img {
  display: block;
  max-width: 300px;
  max-height: 185px;
  object-fit: contain;
}
.erp-login-card {
  width: 100%;
}
.erp-login-field {
  height: 93px;
  padding: 15px 16px 10px;
  border: 1px solid #e4e8ee;
  border-bottom: 0;
  background: #fff;
}
.erp-login-field:first-child {
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
}
.erp-login-field:nth-last-of-type(1) {
  border-bottom: 1px solid #e4e8ee;
  border-bottom-left-radius: 2px;
  border-bottom-right-radius: 2px;
}
.erp-login-field label {
  display: block;
  margin: 0 0 8px;
  color: #a2abb7;
  font-size: 12px;
  font-weight: 600;
}
.erp-login-field input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #5b6673;
  font-size: 21px;
  line-height: 1.5;
}
.erp-login-field input::placeholder {
  color: #5b6673;
}
.erp-login-submit {
  width: 100%;
  height: 54px;
  margin-top: 28px;
  border: 0;
  border-radius: 4px;
  background: #28a745;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}
.erp-login-submit:hover {
  background: #218838;
}
.erp-login-cover {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #102a43;
}
.erp-login-cover img {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  object-fit: cover;
}
@media (max-width: 900px) {
  .erp-login-shell {
    grid-template-columns: 1fr;
  }
  .erp-login-cover {
    display: none;
  }
  .erp-login-panel {
    min-height: 100vh;
    padding: 32px 22px;
  }
  .erp-login-logo-img {
    max-width: 250px;
    margin: 0 auto;
  }
}
.content-wrapper { background: #f4f6f8; }
.erp-topbar {
  min-height: 56px;
  border-bottom: 1px solid #d9e0e7;
}
.brand-link .erp-sidebar-logo {
  width: 34px;
  height: 34px;
  max-height: 34px;
  margin-left: .45rem;
  object-fit: contain;
  border-radius: 4px;
  background: rgba(255,255,255,.08);
}
.sidebar-collapse .brand-link .erp-sidebar-logo {
  width: 34px;
}
.brand-link .brand-text {
  display: inline-block;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}
.erp-top-actions .nav-link {
  min-width: 42px;
  text-align: center;
}
.empresa-switcher .dropdown-toggle {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.empresa-switcher-menu {
  min-width: 250px;
  max-width: 340px;
}
.empresa-switcher-item {
  display: flex;
  align-items: center;
  gap: 2px;
  white-space: normal;
}
.empresa-switcher-item.active {
  background: #eef5ff;
  color: #0d6efd;
  font-weight: 600;
}
.flag-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 18px;
  line-height: 1;
}
.erp-user-link {
  display: flex;
  align-items: center;
  gap: 8px;
}
.erp-user-link .user-image {
  width: 34px;
  height: 34px;
  margin-top: -4px;
}
.user-header {
  min-height: 150px;
  padding: 18px;
  text-align: center;
  background: #f4f6f8;
}
.user-header img {
  width: 72px;
  height: 72px;
}
.user-header p {
  margin: 8px 0 0;
  font-weight: 600;
}
.user-header small {
  display: block;
  color: #6c757d;
  font-weight: 400;
}
.page-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.page-title h1 {
  font-size: 1.75rem;
  margin: 0;
}
.card {
  border: 1px solid #d9e0e7;
  border-radius: 6px;
  box-shadow: none;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}
.erp-info-card {
  min-height: 82px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 16px 24px;
  color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,.18);
}
.erp-info-card .card-icon {
  width: 42px;
  display: flex;
  justify-content: center;
  font-size: 29px;
}
.erp-info-card span {
  display: block;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.15;
}
.erp-info-card strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.2;
}
.card-cyan { background: #5fc0cc; border-left: 5px solid #8d53ff; }
.card-green { background: #27a844; }
.card-yellow { background: #ffc107; color: #102a43; }
.card-purple { background: #7042c4; }
.card-amber { background: #ffc318; color: #102a43; }
.card-red { background: #df3045; }
.card-pink { background: #d91561; }
.card-gray { background: #6f7a80; }
.dashboard-panel {
  background: #fff;
  border: 1px solid #d9e0e7;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,.12);
}
.panel-heading {
  color: #fff;
  font-size: 16px;
  padding: 12px 20px;
}
.panel-cyan .panel-heading { background: #17a2b8; }
.panel-green .panel-heading { background: #28a745; }
.panel-body {
  min-height: 190px;
  padding: 24px;
}
.donut-wrap {
  width: 150px;
  height: 150px;
  margin: 8px auto 18px;
  position: relative;
}
.donut-chart {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: conic-gradient(#007bff 0 120deg, #28a745 120deg 240deg, #ffc107 240deg 360deg);
}
.donut-chart::after {
  content: "";
  position: absolute;
  inset: 33px;
  border-radius: 50%;
  background: #fff;
}
.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 1;
}
.donut-center strong {
  font-size: 22px;
}
.donut-center span {
  color: #6c757d;
  font-size: 12px;
}
.chart-legend {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  color: #666;
  font-size: 12px;
}
.legend-dot {
  display: inline-block;
  width: 38px;
  height: 11px;
  margin-right: 6px;
  vertical-align: -1px;
}
.finance-bars {
  display: grid;
  gap: 18px;
  margin-top: 16px;
}
.finance-row {
  display: grid;
  grid-template-columns: 82px minmax(120px, 1fr) 110px;
  gap: 12px;
  align-items: center;
}
.finance-row span {
  color: #5f6b76;
}
.finance-row strong {
  text-align: right;
  white-space: nowrap;
}
.bar-track {
  height: 13px;
  background: #e9edf2;
  border-radius: 999px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  min-width: 4%;
  border-radius: 999px;
  transition: width .25s ease;
}
.metric {
  min-height: 112px;
  border-radius: 6px;
  padding: 16px;
  background: #fff;
  border: 1px solid #d9e0e7;
}
.metric span {
  display: block;
  color: #6c757d;
  margin-bottom: 8px;
}
.metric strong {
  display: block;
  font-size: 24px;
  line-height: 1.2;
}
.jp-modal {
  border: 0;
  border-radius: 8px;
  overflow: hidden;
}
.jp-modal-header {
  min-height: 55px;
  align-items: center;
  border-bottom: 0;
  background: #2384f5;
  color: #fff;
}
.jp-modal-header .modal-title {
  font-size: 18px;
  font-weight: 700;
}
.jp-modal-body {
  background: #f6f8fb;
  padding: 22px;
}
.jp-modal-footer {
  background: #fff;
  border-top: 1px solid #dfe5ec;
}
.usuario-foto-wrapper {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto 22px;
}
.usuario-foto-preview {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #d8dde6;
  background: #fff;
}
.usuario-foto-btn {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: #0d6efd;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.usuario-modal-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #5f6b7a;
  text-transform: uppercase;
}
.usuario-empresas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.usuario-empresa-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d6dde6;
  border-radius: 6px;
  background: #fff;
}
.usuario-empresa-item input {
  margin-top: 3px;
}
.usuario-empresa-item span {
  display: block;
  line-height: 1.2;
}
.usuario-empresa-item small {
  color: #6c757d;
}
.usuario-avatar-grid {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #d8dde6;
}
.table td, .table th { vertical-align: middle; }
.modal .form-group label { font-weight: 600; }
@media (max-width: 1199.98px) {
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .page-title {
    align-items: stretch;
    flex-direction: column;
  }
  .page-title .btn {
    width: 100%;
  }
  .finance-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .finance-row strong {
    text-align: left;
  }
}
.erp-login-page {
  background: #e9eef3;
}
.login-brand-img {
  width: 42px;
  height: 42px;
  margin-right: 8px;
}
.permission-list {
  display: grid;
  gap: 8px;
}
.permission-row {
  display: grid;
  grid-template-columns: 24px 1fr 52px;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #d9e0e7;
  border-radius: 6px;
  margin: 0;
}
.permission-row span i {
  width: 22px;
  color: #4b5563;
}
.permission-row small {
  color: #6c757d;
  text-align: right;
}
.enderecos-container {
  display: grid;
  gap: 12px;
}
.endereco-card {
  border: 1px solid #d9e0e7;
  border-radius: 6px;
  padding: 12px;
  background: #f8fafc;
}
.endereco-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.btn-xs {
  padding: .125rem .35rem;
  font-size: .75rem;
}
@media (max-width: 575.98px) {
  .endereco-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
.telefones-container {
  display: grid;
  gap: 8px;
}
.telefone-row {
  border: 1px solid #d9e0e7;
  border-radius: 6px;
  padding: 10px 12px 0;
  background: #f8fafc;
}


.papeis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.papel-option {
  align-items: center;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 8px 10px;
}

.papel-option span {
  font-weight: 600;
}

.especialidade-card {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  margin-bottom: 12px;
  padding: 12px;
}

.especialidade-title {
  color: #495057;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 10px;
}


.pessoas-tabs-card {
  border-top: 3px solid #007bff;
}

.pessoas-tabs {
  background: #007bff;
  padding: 0 12px;
}

.pessoas-tabs .nav-link {
  border: 0;
  border-radius: 4px 4px 0 0;
  color: #fff;
  font-weight: 600;
  margin: 5px 2px 0 0;
}

.pessoas-tabs .nav-link.active {
  background: #fff;
  color: #1f2937;
}

.form-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}


.pdv-title {
  align-items: flex-end;
}

.pdv-shell {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 340px;
}

.pdv-main,
.pdv-resumo {
  min-width: 0;
}

.pdv-bar {
  align-items: flex-end;
  background: #fff;
  border: 1px solid #d9e0e7;
  border-radius: 6px;
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px;
}

.pdv-qtd {
  width: 96px;
}

.pdv-resultados {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.pdv-produto-btn {
  align-items: center;
  background: #fff;
  border: 1px solid #d9e0e7;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  text-align: left;
  width: 100%;
}

.pdv-produto-btn small {
  color: #6c757d;
  display: block;
}

.pdv-cart-card,
.pdv-resumo {
  border: 1px solid #d9e0e7;
  border-radius: 6px;
}

.pdv-resumo {
  background: #fff;
  padding: 14px;
}

.pdv-total-box {
  background: #1f2937;
  border-radius: 6px;
  color: #fff;
  margin-bottom: 14px;
  padding: 16px;
}

.pdv-total-box span {
  display: block;
  font-size: .85rem;
  opacity: .85;
}

.pdv-total-box strong {
  display: block;
  font-size: 2rem;
  line-height: 1.1;
}

.pdv-resumo-linhas {
  border-top: 1px solid #e5e7eb;
  display: grid;
  gap: 6px;
  padding-top: 10px;
}

.pdv-resumo-linhas div {
  display: flex;
  justify-content: space-between;
}

.pdv-qtd-pill {
  display: inline-block;
  font-weight: 700;
  min-width: 32px;
}

@media (max-width: 991.98px) {
  .pdv-shell {
    grid-template-columns: 1fr;
  }
  .pdv-bar {
    align-items: stretch;
    flex-direction: column;
  }
  .pdv-qtd {
    width: 100%;
  }
}


.entrada-resumo {
  border-top: 3px solid #28a745;
}

.entrada-total {
  background: #1f2937;
  border-radius: 6px;
  color: #fff;
  padding: 16px;
}

.entrada-total span {
  display: block;
  font-size: .85rem;
  opacity: .85;
}

.entrada-total strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1.1;
}


.contagem-resultados {
  display: grid;
  gap: 8px;
}

.contagem-produto-btn {
  align-items: center;
  background: #fff;
  border: 1px solid #d9e0e7;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  text-align: left;
  width: 100%;
}

.contagem-produto-btn small {
  color: #6c757d;
  display: block;
}

.contagem-qtd-input {
  margin: 0 auto;
  max-width: 92px;
}

.contagem-resumo {
  border-top: 3px solid #17a2b8;
}

.contagem-kpis {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.contagem-kpis div {
  background: #f8fafc;
  border: 1px solid #d9e0e7;
  border-radius: 6px;
  padding: 12px;
}

.contagem-kpis span {
  color: #6c757d;
  display: block;
  font-size: .85rem;
}

.contagem-kpis strong {
  display: block;
  font-size: 1.6rem;
}


.display-preco-grid {
  display: grid;
  gap: 16px;
}

.display-preco-card {
  align-items: stretch;
  background: #fff;
  border: 1px solid #d9e0e7;
  border-radius: 6px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 280px;
  overflow: hidden;
}

.display-preco-img-wrap {
  align-items: center;
  background: #f8fafc;
  display: flex;
  justify-content: center;
  padding: 18px;
}

.display-preco-img-wrap img {
  max-height: 240px;
  max-width: 100%;
  object-fit: contain;
}

.display-preco-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}

.display-preco-codigo {
  color: #6c757d;
  font-size: 1rem;
  font-weight: 700;
}

.display-preco-info h2 {
  font-size: 2rem;
  margin: 8px 0 14px;
}

.display-preco-info strong {
  color: #16a34a;
  display: block;
  font-size: 3.3rem;
  line-height: 1.05;
}

.display-preco-estoque {
  align-items: center;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 14px;
}

.display-preco-estoque span {
  color: #6c757d;
  font-weight: 700;
}

.display-preco-estoque b {
  font-size: 1.5rem;
}

@media (max-width: 767.98px) {
  .display-preco-card {
    grid-template-columns: 1fr;
  }
  .display-preco-info strong {
    font-size: 2.5rem;
  }
}
