.admin-only,
.search-container-full:empty,
#profileNotesSection.notes-expanded-mode ~ #profileMainDetails,
#profileNotesSection.notes-expanded-mode + #profileFreeTextSection{
 display:none;
}

/* Sections are hidden by default, shown when active */
.section {
 display: none;
}
.section.active {
 display: block;
}
.search-container{
 position:relative;
 max-width:400px;
 flex:1;
}
.search-container input{
 width:100%;
 padding:10px 15px 10px 40px;
 border:1px solid var(--border);
 border-radius:6px;
 font-size:14px;
 background:#f8f9fa;
}
.search-container input:focus{
 outline:none;
 border-color:var(--primary);
 background:#fff;
 box-shadow:0 0 0 3px rgba(67,97,238,0.12);
}
.search-container input:hover{
 border-color:#cbd5e1;
}
.search-container i{
 position:absolute;
 left:15px;
 top:50%;
 transform:translateY(-50%);
 color:var(--secondary);
}
.search-results{
 position:absolute;
 top:100%;
 left:0;
 width:100%;
 max-height:200px;
 overflow-y:auto;
 overflow-x:hidden;
 background:#fff;
 border:1px solid var(--border);
 border-radius:0 0 6px 6px;
 box-shadow:0 4px 8px rgba(0,0,0,0.1);
 display:none;
}
.multi-field-item .search-results{z-index:100;}
.form-group .search-results{z-index:99;}
.search-result-item{
 padding:8px 12px;
 cursor:pointer;
 font-size:0.9rem;
 color:var(--dark);
 border-bottom:1px solid var(--gray);
}
.search-result-item:hover{background-color:var(--primary);color:#fff;}
.slot-inputs{
 display:flex;
 width:100%;
 gap:10px;
}
.search-container-full{
 background:white;
 border:none !important;
 border-radius:10px;
 padding:20px;
 margin-bottom:20px;
 box-shadow:none !important;
}
.search-row{
 display:flex;
 gap:15px;
 flex-wrap:wrap;
 align-items:center;
}
.note-entry:last-child{margin-bottom:0;}
.search-row input{flex:1;min-width:200px;}
.search-row select{width:auto;min-width:150px;}
.note-header,.saved-search-header{
 display:flex;
 justify-content:space-between;
 align-items:center;
 margin-bottom:8px;
}