/* =========================================
   DNN SMART SEARCH
   CSS COMPLETO ATUALIZADO E CONSOLIDADO
   VISUAL NEUTRO INFANTIL + DROPDOWN ACIMA DO MENU
   + MOBILE PREVIEW CORRIGIDA
   ========================================= */

/* =========================================
   WRAP / FORM
   ========================================= */

.dnn-smart-search-wrapp{
  position: relative;
  width: 100%;
  max-width: 880px;
  z-index: 60;
}

.dnn-smart-search-form{
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  background: #F8FBFF;
  border: 1px solid #DDECF8;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,.85) inset,
    0 6px 18px rgba(96, 153, 196, .08);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.dnn-smart-search-form:focus-within{
  border-color: #8ECDF6;
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 10px 26px rgba(96, 153, 196, .12),
    0 0 0 3px rgba(142, 205, 246, .22);
}

.dnn-smart-search-input{
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #243244;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 16px;
  min-width: 0;
}

.dnn-smart-search-input::placeholder{
  color: #7B8794;
  font-weight: 500;
}

.dnn-smart-search-btn{
  width: 52px;
  min-width: 52px;
  height: 52px;
  border: 0;
  background: transparent;
  color: #243244;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color .18s ease, transform .12s ease, background .18s ease;
}

.dnn-smart-search-btn:hover{
  color: #5E9FD3;
  background: rgba(142, 205, 246, .14);
}

.dnn-smart-search-btn:active{
  transform: scale(.97);
}

.dnn-smart-search-btn-icon{
  width: 20px;
  height: 20px;
  display: block;
  flex: 0 0 20px;
}

/* =========================================
   DROPDOWN BASE
   ========================================= */

.dnn-smart-search-dropdown{
  position: fixed !important;
  top: var(--dnn-ss-top, 120px) !important;
  left: var(--dnn-ss-left, 0px) !important;
  width: var(--dnn-ss-width, 880px) !important;
  min-width: 880px;
  max-width: min(880px, calc(100vw - 32px)) !important;
  max-height: 430px;
  overflow-y: auto;
  overflow-x: hidden;
  display: none;
  z-index: 2147483647 !important;
  background: #FFFFFF;
  border: 1px solid #DDECF8;
  border-radius: 20px;
  box-shadow:
    0 24px 70px rgba(88, 130, 170, .16),
    0 8px 24px rgba(88, 130, 170, .10);
  isolation: isolate;
  pointer-events: auto;
  transform: translateZ(0);
  will-change: top, left, width;
  backface-visibility: hidden;
}

.dnn-smart-search-dropdown[hidden]{
  display: none !important;
}

.dnn-smart-search-dropdown.is-open,
.dnn-smart-search-dropdown:not([hidden]){
  display: block !important;
}

.dnn-smart-search-dropdown::-webkit-scrollbar{
  width: 8px;
}

.dnn-smart-search-dropdown::-webkit-scrollbar-track{
  background: transparent;
}

.dnn-smart-search-dropdown::-webkit-scrollbar-thumb{
  background: rgba(142, 205, 246, .46);
  border-radius: 999px;
}

/* neutraliza herança global exagerada do tema em svg */
.dnn-smart-search-dropdown svg{
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
}

/* =========================================
   ESTRUTURA INTERNA
   ========================================= */

.dnn-smart-search-inner{
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, .55fr);
  gap: 0;
  padding: 0;
  position: relative;
  z-index: 2147483647 !important;
  overflow: hidden;
  border-radius: 20px;
  background: #FFFFFF;
}

.dnn-smart-search-results{
  padding: 14px;
  display: grid;
  gap: 10px;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.dnn-smart-search-history{
  padding: 14px;
  border-left: 1px solid #E7F1FA;
  background: rgba(248, 251, 255, .85);
  position: relative;
  z-index: 2;
}

/* =========================================
   TÍTULO DO HISTÓRICO
   ========================================= */

.dnn-ssh-title{
  margin: 0 0 12px;
  display: flex !important;
  align-items: center !important;
  gap: 8px;
  color: #243244;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: .01em;
}

.dnn-ss-icon,
.dnn-ss-icon-history,
.dnn-smart-search-history svg,
.dnn-ssh-title svg{
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  display: inline-block;
  flex: 0 0 16px !important;
  color: #5E9FD3;
}

/* =========================================
   LISTA DE HISTÓRICO
   ========================================= */

.dnn-ssh-list{
  list-style: none !important;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.dnn-ssh-item{
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 11px 12px;
  border-radius: 12px;
  background: #F6FAFE;
  border: 1px solid #E4F0FA;
  color: #344256;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.dnn-ssh-item:hover{
  background: #FFF5FA;
  border-color: #F7BFD2;
  color: #243244;
  transform: translateY(-1px);
}

/* =========================================
   RESULTADOS
   ========================================= */

.dnn-ss-empty{
  margin: 0;
  padding: 12px 4px;
  color: #7B8794;
  font-size: 14px;
  font-weight: 700;
}

.dnn-ss-row{
  display: flex;
  align-items: center;
