
/* =========================================================================
Item Search
========================================================================= */
#itemdb_form { 
    width: 100%; 
    margin: 2rem 0; 
    display:flex; 
    align-items: center;
    justify-content: space-between;
}
.searchwrap { display: flex; align-items: center; gap: 10px; }
.searchwrap select, .searchwrap input { outline: none; }

.searchwrap select {
    min-width: 100px;
    height: 40px;
    border: 1px solid var(--color-lightgray);
}

#itemNameInputWrap {
    position: relative;
    width: 400px;
    height: 40px;
}
.searchwrap input {
    display: block;
    width: 100%;
    height: 100%;
    border: 1px solid var(--color-lightgray);
    padding-left: 10px;
    padding-right: 60px;
}
#itemNameInputWrap #search_confirm {
    position: absolute;
    top: 0;
    right: 10px;    

    width: 40px;
    height: 100%;
    border: none;
    background: transparent;
}
#itemNameInputWrap #search_confirm svg {
    width: 25px;
    height: 25px;
}

.server-select {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}
.server-select li {    
    overflow: hidden;
    border: 3px solid var(--color-lightgray);    
    border-radius: 20px;    
}
.server-select .active {
    background: var(--color-deepblue);
    border-color: var(--color-deepblue);    
}
.server-select li a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.8rem;
    color: var(--color-gray3);
    text-decoration: none;    
}
.server-select .active a {
    color: var(--color-white);
}
/* =========================================================================
itemElement
========================================================================= */
.itemTableWrap { 
    width: 100%; 
    margin: 0 auto;
    font-family: 'Malgun Gothic', sans-serif; 
}

.itemTable { 
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;

    border-top: 3px solid var(--color-lightgray);
    border-bottom: 3px solid var(--color-lightgray);
}

.itemElement { 
    width: 100%; 
    padding: 1rem;    
    
    display: flex;
    align-items: center;
    gap: 10px;
    
    padding: 10px;
    border-bottom: 1;
    background-color: var(--color-white);

    cursor: pointer;
}
.itemElement:not(:last-child) {
    border-bottom: 1px solid #E0E0E0;
}

.itemIcon { 
    width: 35px;
    height: 35px; 
    background: var(--color-gray2);

    flex-shrink: 0;
    border: 1px solid #ccc;
    margin-right: 15px;
}

.itemTitleGroup {
    width: 200px;
    margin-right: 20px;
    flex-shrink: 0;
}

.itemName {
    font-size: 14px;
    font-weight: 600;        
    color: #333;
    line-height: 1.2;
}

.itemCategory {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.itemOptions {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    display: flex;
    flex-wrap: wrap;
    gap: 0 8px;

    word-break: break-word;
}

.optionTag:not(:last-child)::after {
    content: ", ";
}

.itemElement:hover {
    background-color: #f0f4f8;
}