/* Копие 1:1 на src/shared/ui/yanakhelp/yanakhelp.css от Гостилница (17.09.2026). Не се редактира тук — копира се наново при промяна там. */
/* YanakHelpDrawer — стилове (консолидирани от .pos-login .help-* и Старт). Рендира се вътре
   в `.ys-theme` → наследява дизайн-токъните. Клас-префикс `yh-` за да не се блъска със стари. */

/* Панелът стои НАД всичко, включително над модалите и наложените картони (те са на 99999): той
   обяснява екрана, който е отгоре, тъй че се отваря пред него. На 900 указанието се отваряше ЗАД
   картона на стоката (отворен от списъка) и зад картона на купона — изглеждаше като че не работи. */
.yh-overlay { position: fixed; inset: 0; z-index: 100000; background: rgba(8, 11, 16, 0.62); backdrop-filter: blur(3px); display: flex; justify-content: flex-end; animation: yh-fade 0.18s ease; }
.yh-drawer { width: min(440px, 100%); height: 100%; background: var(--surface); border-left: 1px solid var(--border-2); box-shadow: -24px 0 60px rgba(0, 0, 0, 0.5); display: flex; flex-direction: column; animation: yh-slide 0.26s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes yh-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes yh-slide { from { transform: translateX(40px); opacity: 0.4; } to { transform: none; opacity: 1; } }

.yh-head { min-height: 44px; display: flex; align-items: center; gap: 7px; padding: 5px 8px 5px 12px; border-bottom: 1px solid var(--border); background: var(--surface-2); flex-shrink: 0; }
.yh-head-ic { width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px; background: linear-gradient(135deg, var(--gold-deep), var(--gold)); display: flex; align-items: center; justify-content: center; color: #1A1208; }
.yh-head-ic svg { width: 22px; height: 22px; stroke-width: 2.15px; filter: drop-shadow(0 1px 0 rgba(255,255,255,.2)); }
.yh-head-txt { flex: 1; min-width: 0; }
.yh-head-title { font-size: 13px; font-weight: 700; color: var(--t1); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yh-head-sub { font-size: 11.5px; color: var(--t3); margin-top: 2px; }
.yh-close,.yh-icon-action { width: 30px; height: 30px; flex-shrink: 0; border-radius: 6px; background: #101720; border: 1px solid #293342; color: var(--t1); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.yh-icon-action { color: var(--gold-2); }
.yh-close:hover { background: var(--surface-3); color: #fff; border-color: var(--t3); }
/* +30% само за графиката (15px → 19.5px); бутонът остава точно 30×30px. По-дебелият stroke и
   леката сянка пазят знаците отчетливи при голяма резолюция, без да ги превръщат в плътни петна. */
.yh-close svg,.yh-icon-action svg { width: 19.5px; height: 19.5px; stroke-width: 2.15px; filter: drop-shadow(0 0 2px rgba(0,0,0,.42)); }
.yh-icon-action:hover { color: var(--gold); border-color: var(--border-gold); background: #151e29; }
/* Форматните експорти са като референтните XLS/PDF/XML бутони: кратък златен надпис върху тъмна
   компактна плочка. И HTML остава 30px широк — не раздува главата на указанието. */
.yh-format-action span { color: currentColor; font-size: 9.5px; font-weight: 600; line-height: 1; letter-spacing: -.025em; text-shadow: 0 0 5px rgba(212,165,80,.18); }

/* Език НА УКАЗАНИЕТО (не на програмата) — тънка лента под главата. */
.yh-langs { flex-shrink: 0; display: flex; align-items: center; gap: 6px; padding: 8px 18px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.yh-langs-lbl { flex: 1; min-width: 0; font-size: 11px; color: var(--t4); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yh-lang { min-width: 34px; height: 24px; padding: 0 8px; flex-shrink: 0; background: transparent; border: 1px solid var(--border-2); border-radius: 7px; color: var(--t3); font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; transition: all .14s; }
.yh-lang:hover { border-color: var(--border-gold-soft); color: var(--gold); }
.yh-lang.on { background: var(--gold-tint); border-color: var(--border-gold-soft); color: var(--gold-2); }

.yh-lang-select { position: relative; flex-shrink: 0; }
.yh-lang-select summary { width: 68px; height: 30px; min-width: 68px; padding: 0 5px; display: flex; align-items: center; gap: 4px; list-style: none; border: 1px solid var(--border-2); border-radius: 7px; background: var(--surface); color: var(--t1); font-size: 11px; font-weight: 700; cursor: pointer; }
.yh-lang-select summary::-webkit-details-marker { display:none }.yh-lang-select summary>svg{width:14.3px;height:14.3px;margin-left:auto;stroke-width:2.6px;color:var(--gold-2)}.yh-lang-select[open] summary{border-color:var(--border-gold);color:var(--gold-2)}
/* Флагът също е +30% (20×13 → 26×17px), без промяна на 30px височина на езиковия бутон. */
.yh-flag{width:26px;height:17px;display:block;overflow:hidden;border-radius:3px;box-shadow:0 0 0 1px rgba(255,255,255,.42),0 1px 3px rgba(0,0,0,.5);flex-shrink:0}.yh-flag svg{display:block;width:100%;height:100%}
.yh-lang-menu{position:absolute;right:0;top:34px;z-index:3;width:168px;padding:5px;background:var(--elevated);border:1px solid var(--border-2);border-radius:9px;box-shadow:0 10px 28px rgba(0,0,0,.4)}
.yh-lang-menu button{width:100%;height:31px;padding:0 8px;display:flex;align-items:center;gap:8px;border:0;border-radius:6px;background:transparent;color:var(--t2);font:inherit;font-size:11.5px;cursor:pointer}.yh-lang-menu button:hover,.yh-lang-menu button.on{background:var(--gold-tint);color:var(--gold-2)}.yh-lang-code{width:20px;font-weight:700;font-size:10px}

.yh-body { flex: 1; overflow-y: auto; padding: 18px; }
.yh-intro { font-size: 13px; color: var(--t2); line-height: 1.6; margin: 0 0 18px; }
.yh-intro b { color: var(--t1); font-weight: 600; }
.yh-intro p { margin: 0 0 10px; }

.yh-sec { margin-bottom: 20px; }
.yh-sec-h { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 700; color: var(--t1); margin-bottom: 8px; }
.yh-sec-ic { width: 28px; height: 28px; flex-shrink: 0; border-radius: 8px; background: var(--gold-tint); border: 1px solid var(--border-gold); display: flex; align-items: center; justify-content: center; color: var(--gold-2); }
.yh-sec-ic svg { width: 19.5px; height: 19.5px; stroke-width: 2.15px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.yh-sec-body { font-size: 12.5px; color: var(--t2); line-height: 1.6; }
.yh-sec-body p { margin: 0 0 8px; }
.yh-sec-body b { color: var(--t1); font-weight: 600; }
.yh-sec-body h3 { margin: 12px 0 5px; color: var(--gold-2); font-size: 12.5px; font-weight: 700; }
.help-figure { margin: 12px 0 16px; }
.help-figure img {
  display: block; width: 100%; height: auto; border: 1px solid var(--border-2);
  border-radius: 12px; background: #0d1219; box-shadow: 0 8px 24px rgba(0, 0, 0, .24);
}
.help-figure figcaption { margin-top: 6px; color: var(--t3); font-size: 11px; line-height: 1.45; text-align: center; }

.help-list { list-style: none; margin: 9px 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.help-list li { position: relative; font-size: 12.5px; color: var(--t2); line-height: 1.55; padding-left: 18px; }
.help-list li::before { content: ''; position: absolute; left: 3px; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.help-list li b { color: var(--t1); font-weight: 600; }

.yh-tip { background: var(--gold-tint); border: 1px solid var(--border-gold-soft); border-radius: 12px; padding: 14px; }

.yh-foot { flex-shrink: 0; padding: 14px 18px; border-top: 1px solid var(--border); background: var(--surface-2); }
.yh-doc-link { display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; border-radius: 10px; background: var(--surface-3); border: 1px solid var(--border-2); color: var(--t1); font-size: 13px; font-weight: 600; text-decoration: none; }
.yh-doc-link:hover { border-color: var(--border-gold); color: var(--gold-2); background: var(--gold-tint); }
