/* =====================================================================
   SEARCH.CSS - Styles pour le menu de recherche et les panels
   ===================================================================== */

/* =====================================================================
   MENU HORIZONTAL (barre d'icones de recherche)
   Deploye a droite du bouton btn_menuSearch1
   ===================================================================== */

.search-menu-bar {
    position: fixed;
    display: flex;
    flex-direction: row;
    gap: 2px;
    z-index: 1100;
    pointer-events: auto;
}

/* Boutons du menu : style identique a .icon-container button */
.search-menu-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 1px solid black;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    font: bold 18px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
    color: #333;
    text-shadow: 0 1px 0 #fff;
}

.search-menu-btn:hover {
    background: #f0f0f0;
    border-color: rgba(0, 0, 0, 0.4);
    color: #000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.search-menu-btn:active {
    transform: scale(0.95);
}

.search-menu-btn img,
.search-menu-btn svg {
    width: 26px;
    height: 26px;
    pointer-events: none;
}

.search-menu-btn-active {
    background: #3498db;
    border-color: #2980b9;
}

.search-menu-btn-active img,
.search-menu-btn-active svg {
    filter: brightness(0) invert(1);
}

.search-menu-btn-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: auto;
}

.search-menu-btn-disabled:hover {
    background: white;
    border-color: black;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Tablette */
@media (min-width: 481px) {
    .search-menu-btn {
        width: 44px;
        height: 44px;
        border-width: 2px;
    }
    .search-menu-btn img,
    .search-menu-btn svg {
        width: 36px;
        height: 36px;
    }
}

/* Desktop */
@media (min-width: 1025px) {
    .search-menu-btn {
        width: 36px;
        height: 36px;
    }
    .search-menu-btn img,
    .search-menu-btn svg {
        width: 32px;
        height: 32px;
    }
}

/* =====================================================================
   PANEL DE RECHERCHE (contenu)
   ===================================================================== */

.search-panel {
    padding: 2px 0;
}



/* =====================================================================
   MODE FILTER_LIST (filtre + liste de valeurs)
   ===================================================================== */

.search-filter-input {
    display: block;
    width: 150px;
    padding: 2px;
    margin-bottom: 2px;
    font-size: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
}

.search-filter-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.15);
}

.search-filter-select {
    display: block;
    width: 150px;
    padding: 5px;
    max-height: 250px;
    overflow-y: auto;
    font-size: 10px;
    color: #000;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    outline: none;
    box-sizing: border-box;
    line-height: 1.2;
}

.search-filter-select option {
    padding: 2px 5px;
    font-size: 10px;
    line-height: 1.2;
}

.search-filter-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.15);
}

/* Ligne titre + checkbox cumul */
.search-panel-title-row {
    display: flex;
    width: 150px;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.search-panel-title-cell {
    width: 90%;
    font-size: 11px;
    font-weight: bold;
    color: #333;
    line-height: 14px;
    margin: 0;
    padding: 0;
}

.search-panel-check-cell {
    width: 10%;
    text-align: right;
    padding-right: 3px;
    line-height: 14px;
    margin: 0;
}

.search-cumul-check {
    width: 10px;
    height: 10px;
    margin: 0;
    padding: 0;
    vertical-align: middle;
    cursor: pointer;
}

/* =====================================================================
   MODE FORM (formulaire multicriteres)
   ===================================================================== */

.search-field-row {
    margin-bottom: 4px;
}

.search-field-label {
    display: block;
    font-size: 10px;
    font-weight: bold;
    color: #555;
    margin-bottom: 2px;
}

.search-field-input-group {
    display: flex;
    gap: 3px;
    align-items: center;
}

.search-field-operator {
    width: 50px;
    padding: 2px;
    font-size: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
}

.search-field-input {
    flex: 1;
    padding: 3px 4px;
    font-size: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
}

.search-field-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.15);
}

/* Toggle AND/OR */
.search-operator-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0;
    padding: 3px 0;
    border-top: 1px dotted #ddd;
}

.search-operator-label {
    font-size: 10px;
    color: #555;
}

.search-operator-select {
    padding: 2px 4px;
    font-size: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
}

/* Zone resultat */
.search-result-info {
    font-size: 10px;
    color: #333;
    min-height: 14px;
    padding: 2px 0;
}

/* Boutons Rechercher / Effacer */
.search-btn-row {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}

.search-btn {
    flex: 1;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: bold;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
}

.search-btn-run {
    color: #fff;
    background: #3498db;
    border-color: #2980b9;
}

.search-btn-run:hover {
    background: #2980b9;
}

.search-btn-clear {
    color: #333;
    background: #f5f5f5;
    border-color: #ccc;
}

.search-btn-clear:hover {
    background: #e0e0e0;
}
