/*
 * LNK Search - back-office : ce qui n'est qu'a Recherche. L'habillage (en-tete, rubriques,
 * cartes, champs, boutons, interrupteurs) est la feuille commune de l'usine,
 * views/css/lib/lnk-admin.css, chargee avant celle-ci ; la pleine largeur de l'apercu,
 * views/css/lib/lnk-admin-preview.css. Aucune regle .lnkh-* ici : seulement des classes
 * lnks-*, sous la racine .lnk-search-app (controle admin-skin). Couleurs : variables --lnkh-*.
 *
 * @author    LNKBOOT
 * @copyright LNKBOOT
 * @license   Proprietaire
 */

/* Back-office classique : l'en-tete de page du coeur est remplace par celui du module, mais
   #content garde la marge prevue pour lui. Limite a la page du module. */
body.adminlnksearch #content.bootstrap.no-header-toolbar { padding-top: 60px; }

.lnk-search-app code { padding: 1px 5px; border-radius: 4px; background: var(--lnkh-soft); color: var(--lnkh-ink); font-size: 12px; }

/* Blocs du panneau : nombre de lignes par bloc, 0 = masque. */
.lnk-search-app .lnks-step { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--lnkh-line); }
.lnk-search-app .lnks-step:first-of-type { border-top: 0; }
.lnk-search-app .lnks-step__text { min-width: 0; }
.lnk-search-app .lnks-step__hint { display: block; margin-top: 2px; }
.lnk-search-app .lnks-step.is-off .lnks-step__label { color: var(--lnkh-muted); }
.lnk-search-app .lnks-step__ctrl { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.lnk-search-app .lnks-step__ctrl button:disabled { opacity: .45; cursor: default; }
.lnk-search-app .lnks-step__value { min-width: 64px; padding: 0 4px; text-align: center; font-weight: 700; color: var(--lnkh-ink); }
.lnk-search-app .lnks-step.is-off .lnks-step__value { font-weight: 600; font-size: 12px; color: var(--lnkh-muted); }

/* Caracteristiques des fiches produit : pastilles numerotees dans l'ordre choisi. */
.lnk-search-app .lnks-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; }
.lnk-search-app .lnks-pill { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 12px; border: 1px solid var(--lnkh-line); border-radius: 999px; background: var(--lnkh-card); color: var(--lnkh-ink); font: inherit; font-weight: 600; cursor: pointer; }
.lnk-search-app .lnks-pill b { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: #fff; color: var(--lnkh-ink); font-size: 11px; }
.lnk-search-app .lnks-pill b:empty { display: none; }
.lnk-search-app .lnks-pill[aria-pressed="true"] { border-color: var(--lnkh-ink); background: var(--lnkh-ink); color: #fff; }
.lnk-search-app .lnks-pill:disabled { opacity: .45; cursor: default; }

/* Champs du panneau : cases a cocher. */
.lnk-search-app .lnks-box { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-weight: 400; color: var(--lnkh-ink); cursor: pointer; }
.lnk-search-app .lnks-box input { width: 18px; height: 18px; margin: 0; accent-color: var(--lnkh-ink); }

/* Pilotage : une ligne par recherche, synonyme, redirection ou produit epingle. */
.lnk-search-app .lnks-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; padding: 10px 0; border-top: 1px solid var(--lnkh-line); }
.lnk-search-app .lnks-line:first-child { border-top: 0; }
.lnk-search-app .lnks-line__main { display: flex; flex-direction: column; flex: 1 1 160px; min-width: 0; }
.lnk-search-app .lnks-line__name { flex: 1 1 auto; min-width: 0; font-weight: 600; color: var(--lnkh-ink); overflow-wrap: anywhere; }
.lnk-search-app .lnks-inline { display: flex; align-items: center; gap: 8px; flex: 1 1 240px; min-width: 0; margin: 0; }
.lnk-search-app .lnks-inline input { flex: 1 1 120px; width: auto; min-width: 0; min-height: 40px; border: 1px solid #d9d6cf; border-radius: 8px; box-shadow: none; }
.lnk-search-app .lnks-inline input[type="number"] { flex: 0 1 120px; }
.lnk-search-app form.lnks-add { margin-top: 12px; padding: 12px; border: 1px dashed #c9c5bc; border-radius: 8px; background: var(--lnkh-soft); }

/* Apercu : page simulee du panneau (views/js/admin.js), mise a l'echelle dans la scene. */
.lnk-search-app .lnks-viewport { display: flex; justify-content: center; max-width: 100%; overflow: hidden; }
.lnk-search-app .lnks-frame { display: block; width: 960px; height: 480px; border: 1px solid var(--lnkh-line); border-radius: 10px; background: #fff; }

/* Multiboutique : boutiques d'une ligne des outils, portee des reglages. */
.lnk-search-app .lnks-shops { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; font-weight: 600; font-size: 11.5px; }
.lnk-search-app .lnks-shops span { padding: 2px 8px; border-radius: 6px; background: var(--lnkh-tag); color: var(--lnkh-text); }
.lnk-search-app .lnks-scope { margin: 0 0 12px; }
/* Categories proposees a l'ouverture : arbre filtrable, indente par profondeur (1.9.6). */
.lnk-search-app .lnks-tree__bar { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; }
.lnk-search-app .lnks-tree__bar input { flex: 1 1 auto; min-height: 40px; border: 1px solid #d9d6cf; border-radius: 8px; box-shadow: none; }
.lnk-search-app .lnks-tree__list { max-height: 320px; margin: 0; padding: 8px 12px; overflow: auto; list-style: none; border: 1px solid var(--lnkh-line); border-radius: 8px; }
.lnk-search-app .lnks-tree__list li { padding-inline-start: calc(var(--lnks-depth, 0) * 20px); }
.lnk-search-app .lnks-tree__list .lnks-box { margin: 0; padding: 4px 0; }
/* References equivalentes : formulaire d'ajout sur plusieurs lignes au besoin. */
.lnk-search-app #lnkh-s-equivalents .lnks-inline { flex-wrap: wrap; }
.lnk-search-app #lnkh-s-equivalents .lnks-inline select { flex: 0 1 160px; width: auto; min-height: 40px; border: 1px solid #d9d6cf; border-radius: 8px; }
.lnk-search-app #lnkh-s-equivalents form.lnks-add input[type="text"] { flex: 1 1 100%; }
.lnk-search-app #lnkh-s-equivalents form.lnks-add select { flex: 1 1 160px; }
.lnk-search-app .lnks-tree__bar output { flex: none; white-space: nowrap; }
