/* Našeptávač horního vyhledávání (js/hledani.js) */
#hledani-form .hledani-wrap { position: relative; }
/* šířka se při kliknutí NEMĚNÍ – rozšíření zalomilo menu na druhý řádek (Leoš 14. 11.) */
#hledani-form .hledani-input { width: 210px; }
#hledani-form.is-loading .input-group-btn .btn .glyphicon {
    animation: hledani-spin .8s linear infinite;
}
#hledani-form.is-loading .input-group-btn .btn .glyphicon:before { content: "\e031"; } /* refresh */
@keyframes hledani-spin { to { transform: rotate(360deg); } }

.hledani-panel {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 1050;
    width: 580px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(15, 30, 60, .18), 0 2px 6px rgba(15, 30, 60, .08);
    padding: 6px 0 0;
    text-align: left;
    font-size: 13px;
}
.hledani-panel.is-open { display: block; animation: hledani-in .12s ease-out; }
@keyframes hledani-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.hledani-group + .hledani-group { border-top: 1px solid #eef0f3; margin-top: 4px; padding-top: 4px; }
.hledani-group-head {
    padding: 6px 14px 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #8a94a3;
}
.hledani-group-head .glyphicon { margin-right: 4px; font-size: 10px; }
.hledani-count {
    display: inline-block;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 8px;
    background: #eef1f5;
    color: #6b7686;
    font-size: 10px;
    letter-spacing: 0;
}

.hledani-panel .hledani-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px 7px 12px;
    border-left: 3px solid transparent;
    color: #23303f;
    text-decoration: none;
    cursor: pointer;
}
.hledani-panel .hledani-item:hover,
.hledani-panel .hledani-item:focus { text-decoration: none; color: #23303f; }
.hledani-panel .hledani-item.is-active { background: #eef5fc; border-left-color: #337ab7; }

.hledani-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.hledani-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hledani-sub { color: #6b7686; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hledani-panel mark { background: #fff1a8; color: inherit; padding: 0; border-radius: 2px; }

.hledani-badge {
    flex: 0 0 auto;
    padding: 2px 8px;
    border-radius: 10px;
    background: #eef1f5;
    color: #5b6675;
    font-size: 11px;
    white-space: nowrap;
}
.hledani-badge.is-ziva { background: #e3f4e8; color: #23733a; }
.hledani-badge.is-mrtva { background: #f3f4f6; color: #8a94a3; }

.hledani-chips { flex: 0 0 auto; display: flex; gap: 4px; }
.hledani-chip {
    padding: 1px 7px;
    border: 1px solid #cfd8e3;
    border-radius: 10px;
    font-size: 11px;
    color: #337ab7;
    background: #fff;
    white-space: nowrap;
}
.hledani-chip.is-ziva { border-color: #9ed3ac; color: #23733a; }
.hledani-chip.is-mrtva { color: #8a94a3; text-decoration: line-through; text-decoration-color: rgba(138, 148, 163, .5); }
.hledani-chip:hover { background: #337ab7; border-color: #337ab7; color: #fff; text-decoration: none; }

.hledani-empty { padding: 14px; color: #8a94a3; text-align: center; }

.hledani-panel .hledani-all {
    margin-top: 4px;
    border-top: 1px solid #eef0f3;
    padding-top: 9px;
    padding-bottom: 9px;
}
.hledani-all .hledani-title { color: #337ab7; font-weight: 600; }
.hledani-all .hledani-title .glyphicon { font-size: 11px; margin-right: 4px; }

.hledani-panel kbd {
    display: inline-block;
    padding: 1px 5px;
    border: 1px solid #d6dbe2;
    border-bottom-width: 2px;
    border-radius: 4px;
    background: #f7f8fa;
    color: #5b6675;
    font-size: 10px;
    font-family: inherit;
    box-shadow: none;
}
.hledani-foot {
    position: sticky;
    bottom: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 7px 14px;
    border-top: 1px solid #eef0f3;
    background: #fafbfc;
    border-radius: 0 0 8px 8px;
    color: #8a94a3;
    font-size: 11px;
}
.hledani-foot kbd + kbd { margin-left: 2px; }
.hledani-foot kbd { margin-right: 3px; }

@media (max-width: 767px) {
    #hledani-form .hledani-input { width: 100%; }
    .hledani-panel { left: 0; right: 0; width: auto; max-width: none; }
    .hledani-chips, .hledani-foot { display: none; }
}
