@charset "UTF-8";

/* === 検索エリア === */
.search-area { margin-bottom: 30px; }
.search-label { display: block; font-size: 14px; color: var(--text-sec); margin-bottom: 8px; font-weight: bold; }
.search-box-wrapper { position: relative; }

.search-input {
    width: 100%; background: var(--input-bg); border: 1px solid var(--border); color: var(--text-pri);
    padding: 15px 15px 15px 45px; border-radius: 30px; font-size: 16px; box-sizing: border-box;
    transition: border-color 0.2s, background-color 0.3s;
}
.search-input:focus { border-color: var(--brand-green); outline: none; }
.search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-sec); }

/* === サジェストリスト === */
.suggest-list {
    position: absolute; top: 100%; left: 0; width: 100%;
    background: var(--bg-card); border: 1px solid var(--border); border-top: none;
    border-radius: 0 0 15px 15px; list-style: none; padding: 0; margin: 0;
    z-index: 999; box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    max-height: 250px; overflow-y: auto; display: none;
}
.suggest-item {
    padding: 12px 15px; border-bottom: 1px solid var(--border); color: var(--text-pri);
    font-size: 14px; cursor: pointer; transition: background 0.1s;
}
.suggest-item:hover { background: var(--border); }
.suggest-item:last-child { border-bottom: none; border-radius: 0 0 15px 15px; }

/* === 更新履歴セクション === */
.updates-section { background: var(--bg-card); border-radius: 12px; border: 1px solid var(--border); overflow: hidden; }

.updates-header { 
    padding: 12px 15px; border-bottom: 1px solid var(--border); 
    font-size: 14px; font-weight: bold; color: var(--text-sec); 
    background: var(--input-bg); 
}

.updates-scroll-box { max-height: 400px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.update-list { list-style: none; padding: 0; margin: 0; }

.update-item { 
    display: flex; align-items: center; padding: 12px 15px; 
    border-bottom: 1px solid var(--border); transition: background 0.2s; 
    cursor: pointer; /* inline styleからの移動 */
}
.update-item:hover { background: var(--bg-main); } 
.update-item:last-child { border-bottom: none; }

/* データなしメッセージ (inline styleからの移動) */
.update-item-empty {
    padding: 15px;
    color: var(--text-sec);
    text-align: center;
}

.status-badge { font-size: 10px; font-weight: bold; padding: 3px 6px; border-radius: 4px; margin-right: 10px; min-width: 30px; text-align: center; }
.status-badge.new { background: var(--accent-red); color: white; }
.status-badge.up { background: #444; color: #ccc; border: 1px solid #555; }
.machine-info { flex: 1; min-width: 0; }

.machine-name { display: block; font-size: 14px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; color: var(--text-pri); }
.update-date { font-size: 11px; color: var(--text-sec); }