/* ---------- search row ---------- */

#search-row{
    display: flex;        /* children side by side */
    align-items: center;  /* lined up in the middle, up and down */
    gap: 8px;
    position: sticky;   /* scrolls normally, then sticks when it hits the top */
    top: 0;
    z-index: 1;         /* stay on top of the rows scrolling under it */
}

#search {
    width: 100%;
    height: 40px; 
    box-sizing: border-box;
    padding: 0 15px 0 38px;
    border: none;
    border-radius: var(--radius-inner);
    background: rgba(109, 109, 156, 0.14);
    font: inherit;
    font-size: 16px;   /* under 16px makes iPhone Safari zoom in when you tap it */
    outline: none;
}

#search-box {
    position: relative;   /* the icon positions itself inside this box */
    flex: 1;              /* this is now what fills the row */
}

#search-box svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);   /* center up and down */
    width: 18px;
    height: 18px;
    color: #888;
    pointer-events: none;          /* clicks go through to the input */
}

#close {
    height: 40px;
    box-sizing: border-box;
    border-radius: var(--radius-inner);
    background: rgba(109, 109, 156, 0.14);
    color: blue;
    outline: none;
    width: 40px;
    cursor: pointer;
    display: none; 
    border: none;
}

#sidebar.show-close #close {
    display: flex;
    align-items: center;      /* center the X up and down */
    justify-content: center;  /* center the X left and right */
}

#close svg {
    width: 25px;
    height: 25px;
}