/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.light-style .menu .app-brand.demo {
  height: 64px;
}

.dark-style .menu .app-brand.demo {
  height: 64px;
}

.app-brand-logo.demo {
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  display: -ms-flexbox;
  display: flex;
  width: 34px;
  height: 24px;
}

.app-brand-logo.demo svg {
  width: 35px;
  height: 24px;
}

.app-brand-text.demo {
  font-size: 1.375rem;
}

/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 78px !important;
}
/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.rtl-only {
  display: none !important;
  text-align: left !important;
  direction: ltr !important;
}

[dir='rtl'] .rtl-only {
  display: block !important;
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}

/*
* Mailing action panel
******************************************************************************/

.accordion {
  border-radius: 0.75rem;
}

.accordion-item {
  overflow: hidden;
  border: 1px solid rgba(100, 116, 139, 0.16);
  border-radius: 0.75rem !important;
  background: #fff;
  box-shadow: 0 0.35rem 0.9rem rgba(15, 23, 42, 0.05);
}

.accordion-button {
  min-height: 3.25rem;
  gap: 0.65rem;
  border-radius: 0 !important;
  background: #fff;
  color: #334155;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: none !important;
  cursor: pointer;
}

.accordion-button i {
  flex: 0 0 auto;
}

.accordion-button:not(.collapsed) {
  background: #f8fafc;
  color: #0891b2;
  box-shadow: inset 0 -1px 0 #e5eaf2 !important;
}

.accordion-button:focus {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.08) !important;
}

.accordion-collapse.show {
  display: block !important;
  height: auto !important;
  overflow: visible !important;
}

.accordion-collapse:not(.show):not(.collapsing) {
  display: none;
}

.accordion-collapse.collapsing {
  overflow: hidden !important;
}

.accordion-body {
  padding: 1rem 1.25rem 1.25rem;
}

.accordion-content {
  display: none;
  padding: 1rem 1.25rem;
  border-top: 1px solid #e5eaf2;
  background: #fff;
}

.accordion-header.is-active + .accordion-content {
  display: block;
}

.single-accordion .accordion-header {
  display: flex;
  min-height: 3rem;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(100, 116, 139, 0.16);
  border-radius: 0.75rem;
  background: #fff;
  color: #334155;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0.25rem 0.8rem rgba(15, 23, 42, 0.05);
}

.single-accordion .accordion-header.is-active {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  background: #f8fafc;
  color: #0891b2;
}

.mailing-action-card {
  border: 1px solid rgba(75, 85, 99, 0.14);
  background: #fff;
  box-shadow: 0 0.25rem 0.9rem rgba(75, 85, 99, 0.08);
}

.mailing-action-card .accordion {
  border-radius: inherit;
  overflow: hidden;
}

.mailing-action-card .accordion-item {
  border: 0;
  box-shadow: none;
}

.mailing-action-toggle {
  gap: 0.75rem;
  min-height: 3.75rem;
  padding: 0.95rem 1.25rem;
  color: #3f4f67;
  background: #fff;
  font-weight: 600;
}

.mailing-action-toggle:not(.collapsed) {
  color: #2f415c;
  background: #fff;
  box-shadow: inset 0 -1px 0 rgba(75, 85, 99, 0.12);
}

.mailing-action-toggle::after {
  margin-left: auto;
}

.mailing-action-toggle-icon {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
}

.mailing-action-body {
  padding: 1rem 1.25rem 1.25rem;
}

.mailing-action-panel {
  display: grid;
  grid-template-columns: minmax(320px, 1.4fr) minmax(210px, 260px) minmax(360px, auto);
  gap: 1rem;
  align-items: center;
}

.mailing-action-info {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: #4b5563;
}

.mailing-action-info-icon {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  color: #0ea5e9;
  background: rgba(14, 165, 233, 0.1);
}

.mailing-action-title {
  margin-bottom: 0.15rem;
  color: #334155;
  font-size: 0.95rem;
  font-weight: 700;
}

.mailing-action-text {
  margin: 0;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.4;
}

.mailing-action-counter {
  width: 100%;
  min-width: 0;
}

.mailing-action-counter .contadorLeads {
  display: flex;
  width: 100%;
  min-height: 3.6rem;
  align-items: center;
  justify-content: flex-start;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 0.65rem;
  background: rgba(37, 99, 235, 0.04);
}

.mailing-action-counter .contadorLeads:empty::before {
  content: "Faça a pré busca";
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.mailing-action-counter .contadorLeads .row {
  width: 100%;
  margin: 0;
}

.mailing-action-counter .contadorLeads .col-12 {
  width: 100%;
  padding: 0;
  text-align: left;
}

.mailing-action-counter .contadorLeads .card {
  width: 100% !important;
  max-width: none;
  padding: 0 !important;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.mailing-action-counter .contadorLeads p {
  color: #64748b !important;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
  text-transform: uppercase;
}

.mailing-action-counter .contadorLeads .quantidade {
  display: block;
  margin-top: 0.25rem;
  color: #16a34a !important;
  font-size: 1.05rem;
  line-height: 1;
}

.mailing-action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.mailing-action-buttons .btn {
  min-height: 2.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.mailing-action-buttons .btnFavoritos {
  width: 2.65rem;
  padding-right: 0;
  padding-left: 0;
}

@media (max-width: 1199.98px) {
  .mailing-action-panel {
    grid-template-columns: minmax(280px, 1fr) minmax(210px, 260px);
  }

  .mailing-action-buttons {
    grid-column: 1 / -1;
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .mailing-action-panel {
    grid-template-columns: 1fr;
  }

  .mailing-action-buttons {
    justify-content: flex-start;
  }
}

@media (max-width: 575.98px) {
  .mailing-action-toggle {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .mailing-action-body {
    padding: 1rem;
  }

  .mailing-action-info {
    align-items: center;
  }

  .mailing-action-buttons {
    align-items: stretch;
  }

  .mailing-action-buttons .btnFavoritos {
    width: 100%;
  }

  .mailing-action-buttons .btn:not(.btnFavoritos) {
    width: 100%;
  }
}

/*
* Company list datatable
******************************************************************************/

.card:has(.card-datatable),
.datatable-card {
  overflow: hidden;
  border: 1px solid rgba(100, 116, 139, 0.16);
  background: #fff;
  box-shadow: 0 0.25rem 0.85rem rgba(15, 23, 42, 0.05);
}

.card-datatable {
  padding: 0 1.25rem 1.1rem;
}

.card-datatable.pt-0,
.card-datatable.p-4,
.card-datatable.table-responsive {
  padding: 0 1.25rem 1.1rem !important;
}

.card-datatable .dataTables_wrapper {
  position: relative;
}

.card-datatable .dataTables_filter {
  display: flex !important;
  justify-content: flex-end;
  width: 100% !important;
  float: none !important;
  clear: both;
  margin: 0 0 0.85rem;
  padding-top: 1rem;
  padding-right: 0.15rem;
  text-align: right !important;
}

.card-datatable .dataTables_filter label {
  position: relative;
  width: min(100%, 24rem);
  margin: 0 0 0 auto !important;
  font-size: 0;
}

.card-datatable div.dataTables_wrapper div.dataTables_filter input,
.card-datatable .dataTables_filter input {
  width: 100%;
  height: 2.75rem;
  margin: 0 !important;
  padding: 0.55rem 1rem 0.55rem 2.6rem;
  border: 1px solid #b8c7df;
  border-radius: 0.65rem;
  background: #fff;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 400;
  box-shadow: 0 0.2rem 0.55rem rgba(15, 23, 42, 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card-datatable .dataTables_filter label::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.9rem;
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid #7f91ad;
  border-radius: 999px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

.card-datatable .dataTables_filter label::after {
  content: "";
  position: absolute;
  top: calc(50% + 0.35rem);
  left: 1.55rem;
  width: 0.45rem;
  height: 2px;
  border-radius: 999px;
  background: #7f91ad;
  transform: rotate(45deg);
  transform-origin: left center;
  pointer-events: none;
  z-index: 1;
}

.card-datatable .dataTables_filter input:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.08);
}

.card-datatable .dataTables_filter input::placeholder {
  color: #8393aa;
  font-weight: 400;
}

.card-datatable table.dataTable {
  overflow: auto;
  border-collapse: separate !important;
  border-spacing: 0;
  border-radius: 0.65rem;
  border-top: 0 !important;
  border-bottom: 1px solid #e5eaf2 !important;
  box-shadow: none !important;
}

.card-datatable table.dataTable.no-footer {
  border-bottom: 1px solid #e5eaf2 !important;
}

.card-datatable table.dataTable thead,
.card-datatable table.dataTable thead tr {
  border-top: 0 !important;
}

.card-datatable table.dataTable thead th {
  padding: 0.85rem 1rem !important;
  border-top: 0 !important;
  border-bottom: 1px solid #d9e2ef !important;
  background: #f8fafc;
  color: #64748b !important;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.card-datatable table.dataTable,
.card-datatable table.dataTable thead,
.card-datatable table.dataTable tbody,
.card-datatable table.dataTable tr,
.card-datatable table.dataTable th,
.card-datatable table.dataTable td {
  border-color: #e5eaf2 !important;
  box-shadow: none !important;
}

.card-datatable table.dataTable > :not(caption) > * > * {
  border-bottom-color: #e5eaf2 !important;
}

.card-datatable table.dataTable tbody td,
.card-datatable table.dataTable tbody th {
  padding: 0.95rem 1rem !important;
  border-top: 0 !important;
  border-bottom: 1px solid #e5eaf2 !important;
  color: #475569;
  font-weight: 400;
  vertical-align: middle;
}

.card-datatable table.dataTable tbody tr {
  background: #fff;
  transition: background 0.15s ease;
}

.card-datatable table.dataTable tbody tr:hover {
  background: #f8fbff;
}

.card-datatable table.dataTable tbody td > a,
.card-datatable table.dataTable tbody .customer-name a {
  color: #2563eb;
  font-weight: 500;
  line-height: 1.25;
}

.card-datatable table.dataTable tbody small {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: 500;
}

.card-datatable table.dataTable tbody td:last-child {
  text-align: center;
}

.card-datatable table.dataTable .dropdown .btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.55rem;
  color: #0891b2;
  background: rgba(8, 145, 178, 0.08);
}

.card-datatable table.dataTable .dropdown .btn i {
  font-size: 1.15rem;
}

.card-datatable .dataTables_info {
  padding-top: 1rem;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 400;
}

.card-datatable .dataTables_paginate {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.85rem;
}

.card-datatable .dataTables_paginate .pagination {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}

.card-datatable .dataTables_paginate .page-item {
  display: inline-flex !important;
  margin: 0;
}

.card-datatable .dataTables_paginate .page-link {
  min-width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 0.45rem !important;
  color: #2563eb;
  font-weight: 400;
  box-shadow: none;
}

.card-datatable .dataTables_paginate .page-item.active .page-link {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.card-datatable .dataTables_paginate .page-item.disabled .page-link {
  color: #94a3b8;
  background: #f8fafc;
}

.company-list-page .company-list-card {
  overflow: hidden;
  border: 1px solid rgba(100, 116, 139, 0.16);
  background: #fff;
  box-shadow: 0 0.25rem 0.85rem rgba(15, 23, 42, 0.05);
}

.company-list-toolbar {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 1.25rem 0.25rem;
}

.company-list-page .card-datatable {
  padding: 0 1.25rem 1.1rem;
}

.company-list-page .dataTables_wrapper {
  position: relative;
}

.company-list-page .dataTables_filter {
  display: flex !important;
  justify-content: flex-end;
  width: 100% !important;
  float: none !important;
  clear: both;
  margin: 0 0 0.85rem;
  padding-right: 0.15rem;
  text-align: right !important;
}

.company-list-page .dataTables_filter label {
  position: relative;
  width: min(100%, 24rem);
  margin: 0 0 0 auto !important;
  font-size: 0;
}

.company-list-page div.dataTables_wrapper div.dataTables_filter input {
  margin-left: 0 !important;
}

.company-list-page .dataTables_filter label::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.9rem;
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid #7f91ad;
  border-radius: 999px;
  transform: translateY(-50%);
  pointer-events: none;
}

.company-list-page .dataTables_filter label::after {
  content: "";
  position: absolute;
  top: calc(50% + 0.35rem);
  left: 1.55rem;
  width: 0.45rem;
  height: 2px;
  border-radius: 999px;
  background: #7f91ad;
  transform: rotate(45deg);
  transform-origin: left center;
  pointer-events: none;
}

.company-list-page .dataTables_filter input {
  width: 100%;
  height: 2.75rem;
  margin: 0 !important;
  padding: 0.55rem 1rem 0.55rem 2.6rem;
  border: 1px solid #b8c7df;
  border-radius: 0.65rem;
  background: #fff;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 400;
  box-shadow: 0 0.2rem 0.55rem rgba(15, 23, 42, 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.company-list-page .dataTables_filter input:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.08);
}

.company-list-page .dataTables_filter input::placeholder {
  color: #8393aa;
  font-weight: 400;
}

.company-list-page table.dataTable {
  overflow: hidden;
  border-collapse: separate !important;
  border-spacing: 0;
  border-radius: 0.65rem;
  border-top: 0 !important;
  border-bottom: 1px solid #e5eaf2 !important;
  box-shadow: none !important;
}

.company-list-page table.dataTable.no-footer {
  border-bottom: 1px solid #e5eaf2 !important;
}

.company-list-page table.dataTable thead,
.company-list-page table.dataTable thead tr {
  border-top: 0 !important;
}

.company-list-page table.dataTable thead th {
  padding: 0.85rem 1rem !important;
  border-top: 0 !important;
  border-bottom: 1px solid #d9e2ef !important;
  background: #f8fafc;
  color: #64748b !important;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.company-list-page #tableEmpresas,
.company-list-page #tableEmpresas thead,
.company-list-page #tableEmpresas tbody,
.company-list-page #tableEmpresas tr,
.company-list-page #tableEmpresas th,
.company-list-page #tableEmpresas td {
  border-color: #e5eaf2 !important;
  box-shadow: none !important;
}

.company-list-page #tableEmpresas > :not(caption) > * > * {
  border-bottom-color: #e5eaf2 !important;
}

.company-list-page #tableEmpresas tbody td,
.company-list-page #tableEmpresas tbody th {
  border-bottom: 1px solid #e5eaf2 !important;
}

.company-list-page table.dataTable tbody td {
  padding: 0.95rem 1rem !important;
  border-top: 0 !important;
  border-bottom: 1px solid #e5eaf2;
  color: #475569;
  font-weight: 400;
  vertical-align: middle;
}

.company-list-page table.dataTable tbody tr {
  background: #fff;
  transition: background 0.15s ease;
}

.company-list-page table.dataTable tbody tr:hover {
  background: #f8fbff;
}

.company-list-page .customer-name {
  min-width: 17rem;
}

.company-list-page .customer-name .avatar {
  width: 2.85rem;
  height: 2.85rem;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  box-shadow: 0 0.2rem 0.45rem rgba(15, 23, 42, 0.05);
}

.company-list-page .customer-name a,
.company-list-page table.dataTable tbody td > a {
  color: #2563eb;
  font-weight: 500;
  line-height: 1.25;
}

.company-list-page .customer-name small,
.company-list-page table.dataTable tbody small {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: 500;
}

.company-list-page table.dataTable .cell-end,
.company-list-page table.dataTable tbody td:last-child {
  text-align: center;
}

.company-list-page table.dataTable .dropdown .btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.55rem;
  color: #0891b2;
  background: rgba(8, 145, 178, 0.08);
}

.company-list-page table.dataTable .dropdown .btn i {
  font-size: 1.15rem;
}

.company-list-page .dataTables_info {
  padding-top: 1rem;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 400;
}

.company-list-page .dataTables_paginate {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.85rem;
}

.company-list-page .dataTables_paginate .pagination {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}

.company-list-page .dataTables_paginate .page-item {
  display: inline-flex !important;
  margin: 0;
}

.company-list-page .dataTables_paginate .page-link {
  min-width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 0.45rem !important;
  color: #2563eb;
  font-weight: 400;
  box-shadow: none;
}

.company-list-page .dataTables_paginate .page-item.active .page-link {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.company-list-page .dataTables_paginate .page-item.disabled .page-link {
  color: #94a3b8;
  background: #f8fafc;
}

@media (max-width: 767.98px) {
  .company-list-toolbar {
    justify-content: stretch;
    padding: 1rem 1rem 0;
  }

  .company-list-toolbar .btn {
    width: 100%;
  }

  .company-list-page .card-datatable {
    padding: 0 1rem 1rem;
  }

  .company-list-page .dataTables_filter,
  .company-list-page .dataTables_filter label {
    width: 100%;
  }
}

.dataTables_wrapper {
  position: relative;
}

.dataTables_wrapper .dataTables_filter {
  display: flex !important;
  justify-content: flex-end;
  width: 100% !important;
  float: none !important;
  clear: both;
  margin: 0 0 0.85rem;
  text-align: right !important;
}

.dataTables_wrapper .dataTables_filter label {
  position: relative;
  width: min(100%, 24rem);
  margin: 0 0 0 auto !important;
  font-size: 0;
}

.dataTables_wrapper .dataTables_filter label::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.9rem;
  z-index: 1;
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid #7f91ad;
  border-radius: 999px;
  transform: translateY(-50%);
  pointer-events: none;
}

.dataTables_wrapper .dataTables_filter label::after {
  content: "";
  position: absolute;
  top: calc(50% + 0.35rem);
  left: 1.55rem;
  z-index: 1;
  width: 0.45rem;
  height: 2px;
  border-radius: 999px;
  background: #7f91ad;
  transform: rotate(45deg);
  transform-origin: left center;
  pointer-events: none;
}

div.dataTables_wrapper div.dataTables_filter input,
.dataTables_wrapper .dataTables_filter input {
  width: 100%;
  height: 2.75rem;
  margin: 0 !important;
  padding: 0.55rem 1rem 0.55rem 2.6rem;
  border: 1px solid #b8c7df;
  border-radius: 0.65rem;
  background: #fff;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 400;
  box-shadow: 0 0.2rem 0.55rem rgba(15, 23, 42, 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dataTables_wrapper .dataTables_filter input:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.08);
}

table.dataTable {
  overflow: hidden;
  border-collapse: separate !important;
  border-spacing: 0;
  border-radius: 0.65rem;
  border-top: 0 !important;
  border-bottom: 1px solid #e5eaf2 !important;
  box-shadow: none !important;
}

table.dataTable.no-footer {
  border-bottom: 1px solid #e5eaf2 !important;
}

table.dataTable thead th {
  padding: 0.85rem 1rem !important;
  border-top: 0 !important;
  border-bottom: 1px solid #d9e2ef !important;
  background: #f8fafc;
  color: #64748b !important;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

table.dataTable tbody td,
table.dataTable tbody th {
  padding: 0.95rem 1rem !important;
  border-top: 0 !important;
  border-bottom: 1px solid #e5eaf2 !important;
  color: #475569;
  font-weight: 400;
  vertical-align: middle;
}

table.dataTable tbody tr {
  background: #fff;
  transition: background 0.15s ease;
}

table.dataTable tbody tr:hover {
  background: #f8fbff;
}

.dataTables_wrapper .dataTables_info {
  padding-top: 1rem;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 400;
}

.dataTables_wrapper .dataTables_paginate {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.85rem;
}

.dataTables_wrapper .dataTables_paginate .pagination {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}

.dataTables_wrapper .dataTables_paginate .page-item {
  display: inline-flex !important;
  margin: 0;
}

.dataTables_wrapper .dataTables_paginate .page-link {
  min-width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 0.45rem !important;
  color: #2563eb;
  font-weight: 400;
  box-shadow: none;
}

.dataTables_wrapper .dataTables_paginate .page-item.active .page-link {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.dataTables_wrapper .dataTables_paginate .page-item.disabled .page-link {
  color: #94a3b8;
  background: #f8fafc;
}

/*
* Profile screens
******************************************************************************/

.profile-page {
  max-width: 1480px;
}

.profile-page .profile-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: flex-start;
  margin-right: 0;
  margin-left: 0;
}

.profile-page .profile-main,
.profile-page .profile-summary {
  width: auto;
  max-width: none;
  padding: 0;
}

.profile-page .profile-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1rem;
  order: 2;
}

.profile-page .profile-summary {
  order: 1;
}

.profile-page .profile-tabs {
  display: flex;
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 !important;
  padding: 0.35rem;
}

.profile-page .profile-tabs .nav-item {
  width: auto;
}

.profile-page .profile-tabs .nav-link {
  display: flex;
  width: auto;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.55rem;
  border-radius: 0.6rem;
  padding: 0.65rem 0.85rem;
  color: #475569;
  font-weight: 700;
  white-space: normal;
}

.profile-page .profile-tabs .nav-link i {
  flex: 0 0 auto;
  font-size: 1.05rem;
}

.profile-page .profile-tabs .nav-link.active {
  color: #fff;
  background: #2563eb;
  box-shadow: 0 0.45rem 0.9rem rgba(37, 99, 235, 0.2);
}

.profile-page .profile-section-block {
  min-width: 0;
}

.profile-page .profile-section-block > .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-page .profile-section-block .card,
.profile-page .profile-summary-card {
  overflow: hidden;
  border: 1px solid rgba(100, 116, 139, 0.16);
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 0.45rem 1.1rem rgba(15, 23, 42, 0.06);
}

.profile-page .profile-section-block .crm-credit-accordion .accordion-button {
  cursor: pointer;
  display: flex;
  width: 100%;
  min-height: 4.25rem;
  border: 0;
  box-shadow: none;
}

.profile-page .profile-section-block .crm-credit-accordion .accordion-item.card {
  overflow: hidden;
}

.profile-page .profile-section-block .crm-credit-accordion .accordion-header {
  display: block;
  margin: 0;
}

.profile-page .profile-section-block .crm-credit-accordion .accordion-collapse:not(.show):not(.collapsing) {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
}

.profile-page .profile-section-block .crm-credit-accordion .accordion-collapse.show {
  display: block !important;
  height: auto !important;
  overflow: visible !important;
}

.profile-page .profile-section-block .crm-credit-accordion .accordion-collapse.show .accordion-body,
.profile-page .profile-section-block .crm-credit-accordion .accordion-collapse.show #container_multi_store,
.profile-page .profile-section-block .crm-credit-accordion .accordion-collapse.show #consulta_post_store {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  opacity: 1 !important;
  overflow: visible !important;
  transform: none !important;
  visibility: visible !important;
}

.profile-page .profile-section-block .crm-credit-accordion .accordion-body {
  padding: 1.25rem !important;
}

.profile-page .profile-section-block .crm-credit-accordion #container_multi_store {
  width: 100%;
}

.profile-page .profile-section-block .crm-credit-accordion .accordion-collapse.collapsing {
  overflow: hidden !important;
}

.profile-page .profile-section-block .crm-credit-accordion .crm-credit-accordion-description {
  margin: 0 0 1rem;
  color: #64748b;
  font-size: 1rem;
}

.profile-page .profile-summary-card {
  position: sticky;
  top: 5rem;
  margin: 0 !important;
}

.profile-page .profile-summary-card .card-body {
  padding: 1.5rem;
}

.profile-page .profile-summary-card img.circle {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: cover;
  border: 3px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
}

.profile-page .profile-summary-card .user-info h4 {
  max-width: 100%;
  color: #334155 !important;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  word-break: break-word;
}

.profile-page .profile-summary-card .info-container ul {
  margin-bottom: 1rem;
}

.profile-page .profile-summary-card .info-container li {
  display: grid;
  grid-template-columns: minmax(90px, auto) minmax(0, 1fr);
  gap: 0.4rem;
  align-items: baseline;
}

.profile-page .profile-summary-card .info-container span,
.profile-page .profile-summary-card .info-container small,
.profile-page .profile-summary-card .info-container a {
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-page .profile-section-block .card > .card-header,
.profile-page .profile-section-block .card > .flex-shrink-1 {
  padding: 1.25rem !important;
}

.profile-page .profile-section-block figure {
  margin: 0;
}

.profile-page .profile-section-block .blockquote {
  margin: 0;
}

.profile-page .profile-section-block .blockquote p,
.profile-page .profile-section-block .text-info.fw-bold p {
  margin: 0 0 0.25rem;
  color: #0891b2;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.3;
}

.profile-page .profile-section-block .blockquote-footer {
  margin: 0;
  color: #64748b !important;
  font-size: 0.86rem;
  line-height: 1.45;
}

.profile-page .profile-section-block .row {
  row-gap: 1rem;
}

.profile-page .profile-section-block .fieldset-heading .row,
.profile-page .profile-section-block .form-head .row {
  align-items: flex-start;
}

.profile-page .profile-section-block .fieldset-heading [align="right"],
.profile-page .profile-section-block .form-head [align="right"] {
  text-align: right;
}

.profile-page .profile-section-block .fieldset-heading [align="right"] .me-auto,
.profile-page .profile-section-block .form-head .buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.profile-page .profile-section-block [class*="col-"] {
  min-width: 0;
}

.profile-page .profile-section-block .float-end {
  float: none !important;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.profile-page .profile-section-block .btn {
  min-height: 2.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  white-space: normal;
}

.profile-page .profile-section-block .input-group {
  flex-wrap: nowrap;
  max-width: 100%;
}

.profile-page .profile-section-block .input-group .form-control,
.profile-page .profile-section-block .input-group .form-select,
.profile-page .profile-section-block .select2-container {
  min-width: 0;
}

.profile-page .profile-section-block .form-control,
.profile-page .profile-section-block .form-select {
  min-height: 2.65rem;
  border-color: #dbe3ef;
  border-radius: 0.55rem;
  color: #334155;
}

.switch input[name="acesso[]"][type="checkbox"].switch-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.switch input[name="acesso[]"][type="checkbox"].switch-input + .switch-toggle-slider {
  position: relative;
  display: inline-flex;
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 1.1rem;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #94a3b8;
  border-radius: 0.28rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.switch input[name="acesso[]"][type="checkbox"].switch-input + .switch-toggle-slider .switch-on,
.switch input[name="acesso[]"][type="checkbox"].switch-input + .switch-toggle-slider .switch-off {
  display: none;
}

.switch input[name="acesso[]"][type="checkbox"].switch-input + .switch-toggle-slider::after {
  width: 0.32rem;
  height: 0.56rem;
  margin-top: -0.08rem;
  border: solid #fff;
  border-width: 0 1.75px 1.75px 0;
  content: "";
  opacity: 0;
  transform: rotate(45deg) scale(0.7);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.switch input[name="acesso[]"][type="checkbox"].switch-input:checked + .switch-toggle-slider {
  border-color: #2563eb;
  background: #2563eb;
  box-shadow: 0 0.25rem 0.65rem rgba(37, 99, 235, 0.14);
}

.switch input[name="acesso[]"][type="checkbox"].switch-input:checked + .switch-toggle-slider::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.switch input[name="acesso[]"][type="checkbox"].switch-input:focus-visible + .switch-toggle-slider {
  box-shadow: 0 0 0 0.16rem rgba(37, 99, 235, 0.12);
}

.switch:has(input[name="acesso[]"][type="checkbox"]) {
  display: inline-flex;
  min-height: 2.1rem;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
}

.switch:has(input[name="acesso[]"][type="checkbox"]) .switch-label {
  color: #475569 !important;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.2;
}

.switch:has(input[name="acesso[]"][type="checkbox"]):hover .switch-toggle-slider {
  border-color: #2563eb;
  transform: translateY(-1px);
}

.profile-page .profile-section-block .divider {
  margin: 1rem 0;
}

.profile-page .profile-section-block .card .card {
  border: 1px solid #e5eaf2;
  box-shadow: 0 0.25rem 0.8rem rgba(15, 23, 42, 0.05);
}

.profile-page .profile-section-block .card-img-top {
  width: 100%;
  max-height: 8.5rem;
  object-fit: cover;
  object-position: top;
  border-bottom: 1px solid #e5eaf2;
}

.profile-page .profile-section-block .file-label {
  max-width: 100%;
}

.profile-page .profile-section-block input[type="file"].form-control {
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1199.98px) {
  .profile-page .profile-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-page .profile-summary-card {
    position: static;
  }
}

@media (max-width: 991.98px) {
  .profile-page .profile-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-page .profile-tabs .nav-item,
  .profile-page .profile-tabs .nav-link {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .profile-page .profile-layout,
  .profile-page .profile-main {
    gap: 1rem;
  }

  .profile-page .profile-tabs {
    grid-template-columns: 1fr;
  }

  .profile-page .profile-section-block .card > .card-header,
  .profile-page .profile-section-block .card > .flex-shrink-1,
  .profile-page .profile-summary-card .card-body {
    padding: 1rem !important;
  }

  .profile-page .profile-summary-card .info-container li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .profile-page .profile-section-block .float-end,
  .profile-page .profile-section-block .btn {
    width: 100%;
  }

  .profile-page .profile-section-block .fieldset-heading [align="right"],
  .profile-page .profile-section-block .form-head [align="right"] {
    text-align: left;
  }

  .profile-page .profile-section-block .fieldset-heading [align="right"] .me-auto,
  .profile-page .profile-section-block .form-head .buttons {
    justify-content: stretch;
  }

  .profile-page .profile-section-block .input-group {
    flex-direction: column;
  }

  .profile-page .profile-section-block .input-group > .form-control,
  .profile-page .profile-section-block .input-group > .btn,
  .profile-page .profile-section-block .input-group > .input-group-text {
    width: 100%;
    border-radius: 0.55rem !important;
  }
}

/* ===================================================================
   THEME SWITCHER — botão + modal
   =================================================================== */

/* ---------- Botão na topbar ---------- */
.crm-theme-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  color: inherit;
  transition: background .15s, transform .15s;
  flex-shrink: 0;
}
.crm-theme-trigger:hover {
  background: rgba(0, 0, 0, .07);
  transform: rotate(15deg);
}
html.dark-style .crm-theme-trigger:hover {
  background: rgba(255, 255, 255, .1);
}
.crm-theme-trigger i {
  font-size: 1.1rem;
  line-height: 1;
}

/* ---------- Overlay ---------- */
.crm-theme-overlay {
  position: fixed;
  inset: 0;
  z-index: 10500;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.crm-theme-overlay.is-open {
  display: flex;
  animation: crmOverlayIn .18s ease;
}
@keyframes crmOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------- Modal ---------- */
.crm-theme-modal {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem 1.5rem;
  width: 380px;
  max-width: calc(100vw - 2rem);
  box-shadow: 0 24px 56px rgba(0, 0, 0, .18), 0 4px 12px rgba(0, 0, 0, .08);
  animation: crmModalIn .22s cubic-bezier(.34, 1.3, .64, 1);
}
@keyframes crmModalIn {
  from { opacity: 0; transform: translateY(-16px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
html.dark-style .crm-theme-modal {
  background: #2f3349;
  box-shadow: 0 24px 56px rgba(0, 0, 0, .5), 0 4px 12px rgba(0, 0, 0, .3);
}

/* Header do modal */
.crm-theme-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.crm-theme-modal-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: .5rem;
}
html.dark-style .crm-theme-modal-title {
  color: #e2e8f0;
}
.crm-theme-modal-close {
  border: none;
  background: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 1.1rem;
  transition: background .15s, color .15s;
  padding: 0;
}
.crm-theme-modal-close:hover {
  background: #f1f5f9;
  color: #1e293b;
}
html.dark-style .crm-theme-modal-close {
  color: #94a3b8;
}
html.dark-style .crm-theme-modal-close:hover {
  background: rgba(255, 255, 255, .1);
  color: #e2e8f0;
}

/* Grid de cards */
.crm-theme-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Card individual */
.crm-theme-card {
  position: relative;
  border: 2px solid #e2e8f0;
  border-radius: .875rem;
  padding: .875rem .75rem .75rem;
  cursor: pointer;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .625rem;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  outline: none;
}
.crm-theme-card:hover {
  border-color: #7367f0;
  box-shadow: 0 4px 16px rgba(115, 103, 240, .2);
  transform: translateY(-2px);
}
.crm-theme-card.is-active {
  border-color: #7367f0;
  box-shadow: 0 0 0 4px rgba(115, 103, 240, .15);
}
html.dark-style .crm-theme-card {
  border-color: #444868;
  background: #363b54;
}
html.dark-style .crm-theme-card:hover {
  border-color: #7367f0;
  box-shadow: 0 4px 16px rgba(115, 103, 240, .25);
}
html.dark-style .crm-theme-card.is-active {
  border-color: #7367f0;
  box-shadow: 0 0 0 4px rgba(115, 103, 240, .2);
}

/* Check badge no canto */
.crm-theme-card-check {
  position: absolute;
  top: .5rem;
  right: .5rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #7367f0;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: .6rem;
}
.crm-theme-card.is-active .crm-theme-card-check {
  display: flex;
}

/* Label do card */
.crm-theme-card-label {
  font-size: .8125rem;
  font-weight: 600;
  color: #475569;
  display: flex;
  align-items: center;
  gap: .375rem;
}
html.dark-style .crm-theme-card-label {
  color: #94a3b8;
}
.crm-theme-card.is-active .crm-theme-card-label {
  color: #7367f0;
}

/* ---------- Previews ---------- */
.crm-theme-preview {
  width: 100%;
  height: 88px;
  border-radius: .625rem;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

/* Preview Claro */
.crm-preview-light {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}
/* sidebar */
.crm-preview-light::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 30%;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
}
/* topbar */
.crm-preview-light .pv-topbar {
  position: absolute;
  top: 0; left: 30%; right: 0;
  height: 16px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
/* content cards */
.crm-preview-light .pv-card {
  position: absolute;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
}
.crm-preview-light .pv-card-1 {
  top: 22px; left: calc(30% + 6px); right: 6px; height: 22px;
}
.crm-preview-light .pv-card-2 {
  top: 50px; left: calc(30% + 6px); width: 40%; height: 14px;
}
.crm-preview-light .pv-card-3 {
  top: 50px; right: 6px; width: 28%; height: 14px;
}
/* sidebar dots */
.crm-preview-light .pv-dot {
  position: absolute;
  left: 8px;
  width: 14px; height: 4px;
  border-radius: 2px;
  background: #e2e8f0;
}
.crm-preview-light .pv-dot-1 { top: 20px; }
.crm-preview-light .pv-dot-2 { top: 30px; }
.crm-preview-light .pv-dot-3 { top: 40px; }
.crm-preview-light .pv-accent { background: #7367f0; }

/* Preview Escuro */
.crm-preview-dark {
  background: #25293c;
  border: 1px solid #3a3f5c;
}
.crm-preview-dark::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 30%;
  background: #2f3349;
  border-right: 1px solid #3a3f5c;
}
.crm-preview-dark .pv-topbar {
  position: absolute;
  top: 0; left: 30%; right: 0;
  height: 16px;
  background: #2f3349;
  border-bottom: 1px solid #3a3f5c;
}
.crm-preview-dark .pv-card {
  position: absolute;
  background: #2f3349;
  border: 1px solid #3a3f5c;
  border-radius: 4px;
}
.crm-preview-dark .pv-card-1 {
  top: 22px; left: calc(30% + 6px); right: 6px; height: 22px;
}
.crm-preview-dark .pv-card-2 {
  top: 50px; left: calc(30% + 6px); width: 40%; height: 14px;
}
.crm-preview-dark .pv-card-3 {
  top: 50px; right: 6px; width: 28%; height: 14px;
}
.crm-preview-dark .pv-dot {
  position: absolute;
  left: 8px;
  width: 14px; height: 4px;
  border-radius: 2px;
  background: #3a3f5c;
}
.crm-preview-dark .pv-dot-1 { top: 20px; }
.crm-preview-dark .pv-dot-2 { top: 30px; }
.crm-preview-dark .pv-dot-3 { top: 40px; }
.crm-preview-dark .pv-accent { background: #7367f0; }

/* ===================================================================
   MENU DO USUÁRIO
   =================================================================== */
.crm-user-dropdown {
  min-width: 220px !important;
  padding: .5rem 0 !important;
  border-radius: .75rem !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.1), 0 2px 6px rgba(0,0,0,.06) !important;
  background: #fff !important;
  overflow: hidden;
  margin-top: .5rem !important;
}
html.dark-style .crm-user-dropdown {
  background: #2f3349 !important;
  border-color: #444868 !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.3) !important;
}

/* Header */
.crm-user-dropdown-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .875rem 1rem;
}
.crm-user-dropdown-avatar img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  flex-shrink: 0;
}
html.dark-style .crm-user-dropdown-avatar img {
  border-color: #444868;
}
.crm-user-dropdown-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: .125rem;
}
.crm-user-dropdown-name {
  font-size: .875rem;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html.dark-style .crm-user-dropdown-name {
  color: #e2e8f0;
}
.crm-user-dropdown-role {
  font-size: .75rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html.dark-style .crm-user-dropdown-role {
  color: #94a3b8;
}

/* Divider */
.crm-user-dropdown-divider {
  height: 1px;
  background: #f1f5f9;
  margin: .375rem 0;
}
html.dark-style .crm-user-dropdown-divider {
  background: #3d4464;
}

/* Items */
.crm-user-dropdown-item {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .625rem 1rem;
  font-size: .875rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  transition: background .15s, color .15s;
  cursor: pointer;
}
.crm-user-dropdown-item:hover {
  background: #f8fafc;
  color: #2563eb;
}
html.dark-style .crm-user-dropdown-item {
  color: #94a3b8;
}
html.dark-style .crm-user-dropdown-item:hover {
  background: rgba(255,255,255,.06);
  color: #e2e8f0;
}
.crm-user-dropdown-item--danger { color: #ef4444 !important; }
.crm-user-dropdown-item--danger:hover {
  background: #fef2f2 !important;
  color: #dc2626 !important;
}
html.dark-style .crm-user-dropdown-item--danger:hover {
  background: rgba(239,68,68,.12) !important;
  color: #f87171 !important;
}

/* Ícone do item */
.crm-user-dropdown-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: .375rem;
  background: #f1f5f9;
  flex-shrink: 0;
  font-size: .9rem;
  transition: background .15s;
}
html.dark-style .crm-user-dropdown-item-icon {
  background: #363b54;
}
.crm-user-dropdown-item:hover .crm-user-dropdown-item-icon {
  background: rgba(37,99,235,.1);
}
.crm-user-dropdown-item--danger .crm-user-dropdown-item-icon {
  background: #fef2f2;
  color: #ef4444;
}
html.dark-style .crm-user-dropdown-item--danger .crm-user-dropdown-item-icon {
  background: rgba(239,68,68,.12);
  color: #f87171;
}

/* Ajuste para o botão de tema usar o estilo crm-icon-btn */
.crm-theme-trigger.crm-icon-btn {
  border-color: transparent;
  background: transparent;
}
.crm-theme-trigger.crm-icon-btn:hover {
  border-color: rgba(37,99,235,.3);
  background: rgba(37,99,235,.05);
  color: #2563eb;
  transform: rotate(15deg);
}

/* ===================================================================
   TOOLTIP global (LTR core.css ausente)
   =================================================================== */
.tooltip {
  position: absolute;
  z-index: 1080;
  display: block;
  font-size: .75rem;
  word-wrap: break-word;
  opacity: 0;
  pointer-events: none;
}
.tooltip.show { opacity: .9; }
.tooltip-inner {
  max-width: 200px;
  padding: .35rem .65rem;
  color: #fff;
  text-align: center;
  background-color: #1e293b;
  border-radius: .375rem;
  line-height: 1.4;
  font-weight: 500;
}
/* Setas */
.tooltip .tooltip-arrow { position: absolute; display: block; width: .8rem; height: .4rem; }
.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow,
.bs-tooltip-top .tooltip-arrow { bottom: 0; }
.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before,
.bs-tooltip-top .tooltip-arrow::before {
  top: -1px; border-width: .4rem .4rem 0;
  border-top-color: #1e293b;
}
.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow,
.bs-tooltip-bottom .tooltip-arrow { top: 0; }
.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow::before,
.bs-tooltip-bottom .tooltip-arrow::before {
  bottom: -1px; border-width: 0 .4rem .4rem;
  border-bottom-color: #1e293b;
}
.bs-tooltip-auto[data-popper-placement^=start] .tooltip-arrow,
.bs-tooltip-start .tooltip-arrow { right: 0; width: .4rem; height: .8rem; }
.bs-tooltip-auto[data-popper-placement^=start] .tooltip-arrow::before,
.bs-tooltip-start .tooltip-arrow::before {
  left: -1px; border-width: .4rem 0 .4rem .4rem;
  border-left-color: #1e293b;
}
.bs-tooltip-auto[data-popper-placement^=end] .tooltip-arrow,
.bs-tooltip-end .tooltip-arrow { left: 0; width: .4rem; height: .8rem; }
.bs-tooltip-auto[data-popper-placement^=end] .tooltip-arrow::before,
.bs-tooltip-end .tooltip-arrow::before {
  right: -1px; border-width: .4rem .4rem .4rem 0;
  border-right-color: #1e293b;
}
.tooltip .tooltip-arrow::before {
  position: absolute; content: "";
  border-color: transparent; border-style: solid;
}
html.dark-style .tooltip-inner {
  background-color: #444868;
  color: #e2e8f0;
}

/* ===== Global collapse fix (LTR core.css ausente) ===== */
.collapse:not(.show) {
  display: none !important;
}

.collapse .show {
  display: block;
  height: auto;
  overflow: visible !important;
}

/* ===== Global popover styles (LTR core.css ausente) ===== */
.popover {
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, .2);
  border-radius: .375rem;
  box-shadow: 0 .25rem .5rem rgba(0, 0, 0, .1);
  max-width: 276px;
  z-index: 1091;
}
.popover-header {
  background-color: #f0f2f4;
  border-bottom: 1px solid rgba(0, 0, 0, .2);
  border-top-left-radius: calc(.375rem - 1px);
  border-top-right-radius: calc(.375rem - 1px);
  font-weight: 600;
  padding: .5rem 1rem;
  color: #5d596c;
}
.popover-body {
  color: #6f6b7d;
  padding: .75rem 1rem;
}
.popover .popover-arrow::before,
.popover .popover-arrow::after {
  position: absolute;
  display: block;
  content: "";
  border-color: transparent;
  border-style: solid;
  border-width: 0;
}
.bs-popover-auto[data-popper-placement^=bottom] .popover-arrow::before,
.bs-popover-bottom .popover-arrow::before { border-bottom-color: rgba(0,0,0,.2); }
.bs-popover-auto[data-popper-placement^=bottom] .popover-arrow::after,
.bs-popover-bottom .popover-arrow::after  { border-bottom-color: #fff; }
.bs-popover-auto[data-popper-placement^=top] .popover-arrow::before,
.bs-popover-top .popover-arrow::before   { border-top-color: rgba(0,0,0,.2); }
.bs-popover-auto[data-popper-placement^=top] .popover-arrow::after,
.bs-popover-top .popover-arrow::after    { border-top-color: #fff; }
.bs-popover-auto[data-popper-placement^=start] .popover-arrow::before,
.bs-popover-start .popover-arrow::before { border-left-color: rgba(0,0,0,.2); }
.bs-popover-auto[data-popper-placement^=start] .popover-arrow::after,
.bs-popover-start .popover-arrow::after  { border-left-color: #fff; }
.bs-popover-auto[data-popper-placement^=end] .popover-arrow::before,
.bs-popover-end .popover-arrow::before  { border-right-color: rgba(0,0,0,.2); }
.bs-popover-auto[data-popper-placement^=end] .popover-arrow::after,
.bs-popover-end .popover-arrow::after   { border-right-color: #fff; }

html.dark-style .popover {
  background-color: #2f3349;
  border-color: rgba(255,255,255,.15);
}
html.dark-style .popover-header {
  background-color: #363b54;
  border-bottom-color: rgba(255,255,255,.15);
  color: #cfd3ec;
}
html.dark-style .popover-body {
  color: #a3a4c7;
}

html.dark-style .card-datatable table.dataTable tbody td,
html.dark-style .card-datatable table.dataTable tbody th {
  border-bottom-color: rgba(255, 255, 255, .08) !important;
  color: #a3a4c7;
}

html.dark-style .card-datatable table.dataTable tbody tr {
  background: #2f3349;
}

html.dark-style .card-datatable table.dataTable tbody tr:hover {
  background: #363b54;
}

html.dark-style .crm-benefit-status-card {
  background: #363b54;
  border-color: #444868;
  box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, .25);
}

html.dark-style .crm-benefit-status-card p {
  color: #a3a4c7;
}

html.dark-style .crm-benefit-status-card small {
  color: #e2e8f0;
}

html.dark-style .crm-summary-chart {
  background-color: #363b54 !important;
  border-color: #444868 !important;
}
