:root[data-theme-colors="default"], [data-bs-theme="light"][data-theme-colors="default"] {
  --pe-primary: #0091b0;
  --pe-primary-rgb: 0, 145, 176;
  --pe-primary-text-emphasis: #3185a9;
  --pe-primary-bg-subtle: rgba(0, 145, 176, 0.1);
  --pe-primary-border-subtle: rgba(0, 145, 176, 0.50);
  --pe-app-sidebar-menu-item-color-hover: #0091b0;
  --pe-app-sidebar-menu-item-color-active: #0091b0;
  --pe-link-color-rgb: 0, 145, 176;
  --pe-link-hover-color-rgb: 0, 116, 144;
}
[data-layout="horizontal"] .app-wrapper::before, [data-layout="horizontal"] .app-header, [data-layout="horizontal"] .pe-app-sidebar {
  background: #074E5F;
  background: linear-gradient(90deg, rgba(7, 78, 95, 1) 0%, rgba(8, 110, 135, 1) 75%, rgba(8, 110, 135, 1) 100%);
}
:is([data-topbar-theme="dark"]) .app-header .form-control, :is([data-topbar-theme="dark"]) .app-header .dark-mode-btn, :is([data-topbar-theme="dark"]) .app-header .header-profile-btn {
  border-color: rgba(255, 255, 255, .3);
}
.popover-lg .popover-body {
  white-space: normal;
  word-wrap: break-word;
}
.popover-lg {
  max-width: 500px !important;
  width: auto;
}
.valor-sigiloso {
  font-weight: bold;
  font-family: monospace;
}
.form-control, .form-select, textarea {
  color: #495057;
  font-weight: normal;
}
.badge-sm {
  font-size: 0.65rem;
  padding: 0.3em 0.5em;
}
.copiar-btn {
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}
.copiar-btn.piscando {
  animation: piscar 0.2s ease-in-out 3;
}
@keyframes piscar {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
}
/* Apenas manter se ainda usar tooltip antigo */
.badge-sm {
  font-size: 0.65rem;
  padding: 0.3em 0.5em;
}
.copiar-btn {
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}
.copiar-btn.piscando {
  animation: piscar 0.2s ease-in-out 3;
}
@keyframes piscar {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
}
/* Estilo base */
.bootstrap-select .dropdown-toggle.select-like {
  border: var(--pe-border-width) solid var(--pe-border-color);
  background-color: var(--pe-secondary-bg);
  color: var(--pe-body-color);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
/* Quando em foco OU aberto (dropdown visível) */
.bootstrap-select .dropdown-toggle.select-like:focus, .bootstrap-select.show .dropdown-toggle.select-like {
  border: var(--pe-border-width) solid var(--pe-border-color, #86b7fe) !important;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
  background-color: var(--pe-secondary-bg);
  color: var(--pe-body-color);
  outline: none !important;
}
/* LOADING PAGINA */
#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(33, 33, 33, 0.85); /* estilo modal escuro */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}
#page-loader.fade-out {
  opacity: 0;
  pointer-events: none;
}
.loader-container {
  text-align: center;
  color: #fff;
  font-family: sans-serif;
}
.loader {
  width: 48px;
  height: 48px;
  border: 5px solid #ffffff33;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px auto;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* LOADING PAGINA */
.card-border-primary {
  border-left: 5px solid var(--pe-primary);
  border-radius: 0.375rem;
}
.card-border-secondary {
  border-left: 5px solid var(--pe-secondary);
  border-radius: 0.375rem;
}
.card-sticky {
  position: sticky;
  top: 94px; /* distância do topo ao fixar */
  z-index: 1020; /* acima do conteúdo normal */
}
.iphone {
  width: 390px;
  height: 600px; /* altura menor */
  background: #e5ddd5;
  border-radius: 50px;
  margin: 0 auto 40px auto;
  border: 14px solid #111;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  font-family: sans-serif;
  position: sticky;
  top: 94px; /* distância do topo ao fixar */
  z-index: 1020; /* acima do conteúdo normal */
}
.notch {
  width: 210px;
  height: 30px;
  background: #000;
  border-radius: 20px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.screen {
  margin-top: 50px;
  padding: 15px;
  height: calc(100% - 60px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.msg-enviada, .msg-recebida {
  padding: 10px 14px;
  max-width: 80%;
  font-size: 14px;
  color: #000;
  border-radius: 16px;
  position: relative;
}
.msg-enviada {
  align-self: flex-end;
  background-color: #dcf8c6;
  border-radius: 16px 16px 4px 16px;
}
.msg-recebida {
  align-self: flex-start;
  background-color: #ffffff;
  border-radius: 16px 16px 16px 4px;
}
.msg-hora {
  font-size: 11px;
  color: #888;
  margin-top: 5px;
  text-align: right;
}
.msg-img, .msg-video, .msg-file {
  margin-top: 8px;
  border-radius: 10px;
  overflow: hidden;
  max-width: 100%;
}
.msg-img img {
  width: 100%;
  border-radius: 10px;
}
.msg-video video {
  width: 100%;
  border-radius: 10px;
}
.msg-file {
  background-color: #fff;
  padding: 8px;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  font-size: 13px;
}
.msg-file i {
  font-size: 18px;
  color: #333;
}
@media (min-width: 768px) {
  .table-responsive {
    overflow-x: hidden !important;
  }
  .table-responsive table {
    width: 100% !important;
    table-layout: auto !important;
  }
  .table-responsive th, .table-responsive td {
    white-space: normal !important;
    word-break: break-word !important;
  }
}
.accordion-button-lg {
  font-size: 1.25rem; /* Aumenta o texto */
  padding: 1rem 1.5rem; /* Aumenta o espaço interno */
  min-height: 60px; /* Altura mínima opcional */
}
.attachment {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px;
  border: 1px solid var(--pe-border-color);
  border-radius: 7px;
  cursor: pointer;
}
@media(max-width:767px) {
  [data-layout="horizontal"] .app-wrapper {
    padding-top: 20px;
  }
  #appHeader .mark-position {
    justify-content: space-between;
    width: 100%;
  }
  .logo-main {
    display: block !important
  }
  .pe-app-sidebar .pe-app-sidebar-menu .pe-nav-link {
    color: #fff;
  }
	.pe-app-sidebar .pe-app-sidebar-menu hr {
		border-color: rgba(0,0,0,0.25)
	}
}