/* -------------------------------------------------------------------------- */
/*                                Falcon Button                               */
/* -------------------------------------------------------------------------- */
/* prettier-ignore */
@import url("acano-brand.css");
/* Custom overrides — igual ao Pro+ (proplus/public/assets/css/user.css) + PriAcano lg */

/* Smaller image previews inside product modals */
#addProductDropzone .dz-image,
#editProductDropzone .dz-image {
  width: 80px !important;
  height: 80px !important;
}

/* Ensure select2 dropdowns appear above Bootstrap modals */
.modal .select2-container { z-index: 2000 !important; }
.modal .select2-dropdown { z-index: 2001 !important; }
.select2-parent { overflow: visible; }

/* Marker icon used by Leaflet with FontAwesome */
.leaflet-fa-icon {
  background: transparent;
  border: none;
}

/*
 * .btn-action em <a class="dropdown-item btn-action"> é só hook para JS (várias vistas).
 * Não definir aqui largura/altura/display — isso quebrava menus longos (altura 2rem → texto sobreposto).
 */

/* -------------------------------------------------------------------------- */
/* Menus ⋮ dentro de grelhas (.table-responsive)                               */
/* -------------------------------------------------------------------------- */
.table-responsive:has(.btn-group) {
  overflow-x: auto;
  overflow-y: visible !important;
}
.table-responsive .table tbody tr {
  position: relative;
}
.table-responsive .table .btn-group {
  position: relative;
}
.table-responsive .table tbody tr.dropdown-row-open {
  z-index: 1060;
}
.table-responsive .table .dropdown-menu {
  z-index: 1061 !important;
  min-width: 12.5rem;
  max-width: min(22rem, 90vw);
}
.table-responsive .table .dropdown-menu .dropdown-item {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 0;
  box-sizing: border-box;
  padding: 0.5rem 1rem;
  white-space: normal;
}

@supports not (selector(:has(*))) {
  .table-responsive {
    overflow-y: visible !important;
  }
}

/* Password toggle (olho) + layout perfil */
.password-input-wrapper {
  position: relative;
  display: block;
}

.password-input-wrapper .form-control {
  padding-right: 2.75rem;
}

.password-toggle-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease-in-out;
  z-index: 10;
  height: auto;
  line-height: 1;
  width: auto;
}

.password-toggle-btn:hover {
  color: #495057;
}

.password-toggle-btn:focus {
  outline: none;
  box-shadow: none;
}

.password-toggle-btn i {
  font-size: 0.875rem;
}

.profile-header-section {
  background: linear-gradient(135deg, #2c7be5 0%, #727cf5 100%);
  color: #ffffff;
  padding: 2rem;
  margin: 0;
  border-radius: 0;
  text-align: center;
}

.profile-avatar-container {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.3);
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background-color: #ffffff;
}

.profile-avatar.bg-white {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar.bg-white i {
  font-size: 2.5rem !important;
  color: #2c7be5;
}

.profile-avatar-upload {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #2c7be5;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease-in-out;
  border: 2px solid #ffffff;
  z-index: 10;
}

.profile-avatar-upload:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(44, 123, 229, 0.4);
  background-color: #2362b7;
}

.profile-avatar-upload i {
  color: #ffffff;
  font-size: 0.875rem;
}

.profile-info-header {
  text-align: center;
}

.profile-info-header h4 {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.profile-info-header p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
  font-size: 0.875rem;
}

.profile-section-divider {
  padding: 0 1.5rem;
  margin: 0;
}

.profile-section-divider:first-of-type {
  padding-top: 1.5rem;
  margin-top: 0;
}

.profile-section-divider:not(:first-of-type) {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #d8e2ef;
}

.profile-section-title {
  padding: 0;
  margin: 0 0 1.25rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #344050;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #d8e2ef;
}

.profile-section-title i {
  color: #2c7be5;
}

@media (max-width: 768px) {
  .profile-header-section {
    padding: 1.5rem;
    margin: 0;
  }

  .profile-avatar {
    width: 80px;
    height: 80px;
  }

  .profile-avatar.bg-white {
    width: 80px;
    height: 80px;
  }

  .profile-section-divider {
    padding: 0 1rem;
  }

  .profile-section-divider:not(:first-of-type) {
    margin-top: 1rem;
    padding-top: 1rem;
  }
}

/*
 * Falcon: ~ em vez de + quando há nós entre nav e .content.
 * PriAcano usa navbar-expand-lg (992px) como no resto do layout corrigido.
 */
@media (min-width: 992px) {
  .navbar-vertical.navbar-expand-lg.navbar-card ~ .content,
  .navbar-vertical.navbar-expand-lg.navbar-vibrant ~ .content,
  .navbar-vertical.navbar-expand-lg.navbar-inverted ~ .content {
    margin-left: 15.625rem;
  }
  .navbar-vertical.navbar-expand-lg ~ .content {
    margin-left: 15.625rem;
  }
  .navbar-vertical.navbar-expand-lg ~ .content .navbar-top {
    position: sticky;
    top: 0;
  }
  .navbar-vertical.navbar-expand-lg ~ .content .navbar-top .navbar-toggler,
  .navbar-vertical.navbar-expand-lg ~ .content .navbar-top .navbar-brand {
    display: none !important;
  }
  .navbar-vertical.navbar-expand-lg ~ .content > .navbar-top {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .navbar-vertical-collapsed .navbar-vertical.navbar-expand-lg ~ .content {
    margin-left: 3.125rem;
  }
  .navbar-vertical-collapsed .navbar-vertical.navbar-expand-lg ~ .content .navbar-top {
    padding-left: 13.5rem;
  }
  .navbar-vertical-collapsed .navbar-vertical.navbar-expand-lg.navbar-card ~ .content,
  .navbar-vertical-collapsed .navbar-vertical.navbar-expand-lg.navbar-vibrant ~ .content,
  .navbar-vertical-collapsed .navbar-vertical.navbar-expand-lg.navbar-inverted ~ .content {
    margin-left: 4.125rem;
  }
  .navbar-vertical-collapsed .navbar-vertical.navbar-expand-lg.navbar-card ~ .content .navbar-top,
  .navbar-vertical-collapsed .navbar-vertical.navbar-expand-lg.navbar-vibrant ~ .content .navbar-top,
  .navbar-vertical-collapsed .navbar-vertical.navbar-expand-lg.navbar-inverted ~ .content .navbar-top {
    padding-left: 12.5rem;
  }
}

/* Sidebar: cabeçalho Módulos (Pro+) */
.sidebar-modules-header {
  min-height: 1.75rem;
}

.sidebar-modules-toggle-all {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.375rem;
  background: transparent;
  color: #95aac9;
  font-size: 0.7rem;
  line-height: 1;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.sidebar-modules-toggle-all:hover {
  color: #2c7be5;
  background-color: rgba(44, 123, 229, 0.08);
}

.sidebar-modules-toggle-all:focus-visible {
  outline: 2px solid rgba(44, 123, 229, 0.45);
  outline-offset: 1px;
}

.navbar-vertical .navbar-vertical-content.sidebar-nav-scroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.navbar-vertical .navbar-vertical-content.sidebar-nav-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.password-toggle-btn.is-visible {
  color: var(--falcon-primary);
}

.password-toggle-btn.is-visible:hover {
  color: var(--falcon-primary);
  opacity: 0.9;
}
