

/* Start:/local/components/pashkei/catalog.chess/templates/genplans/style.css?17925958267041*/
.pc-genplans-wrap {
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px;
    max-width: 100%; box-sizing: border-box; background: #FAFAFA;
    display: flex; flex-direction: column;
    height: calc(100vh - 20px);
    height: calc(100dvh - 20px);
}

/* ===== Toolbar ===== */
.pc-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; gap: 12px; flex-wrap: wrap; background: #fff; border-bottom: 1px solid #ececec; flex: 0 0 auto; }
.pc-toolbar__nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pc-toolbar__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.fpv-nav__item { position: relative; display: inline-block; max-width: 100%; min-width: 0; }
.fpv-nav__item--hidden { display: none; }
.fpv-nav__select { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; overflow: hidden; border: none; background: transparent; }
.fpv-custom-select { display: block; position: relative; max-width: 100%; }
.fpv-custom-select__trigger {
    display: block; height: 36px; box-sizing: border-box; line-height: 34px;
    padding: 0 28px 0 12px; font-size: 14px; font-weight: 500; color: #333;
    cursor: pointer; border: 1px solid #ccc; border-radius: 4px; background: #fff;
    white-space: nowrap; position: relative; max-width: 100%;
    overflow: hidden; text-overflow: ellipsis;
    user-select: none; -webkit-user-select: none; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.fpv-custom-select__trigger::after {
    content: ''; position: absolute; right: 10px; top: 50%; width: 6px; height: 6px;
    border-right: 1.5px solid #666; border-bottom: 1.5px solid #666;
    transform: translateY(-50%) rotate(-45deg); transition: transform 0.2s; pointer-events: none;
}
.fpv-custom-select__trigger--open { background: #f0f0f0; border-color: #bbb; }
.fpv-custom-select__trigger--open::after { transform: translateY(-50%) rotate(45deg); }
.fpv-custom-select__trigger:hover { background: #f0f0f0; color: #333; }
.fpv-custom-select__options {
    display: none; position: absolute; top: calc(100% + 4px); left: 0; min-width: 100%; max-width: 100%;
    background: #fff; border: 1px solid #ccc; border-radius: 4px;
    padding: 4px 0; z-index: 100;
    max-height: 300px; overflow-y: auto; list-style: none; margin: 0;
}
.fpv-custom-select__option {
    padding: 10px 14px; font-size: 14px; color: #333; cursor: pointer;
    white-space: normal; transition: background 0.1s;
}
.fpv-custom-select__option:hover { background: #f5f5f5; }
.fpv-custom-select__option--selected { font-weight: 600; color: #333; background: #f0f0f0; }

.pc-view-btns { display: flex; gap: 4px; }
.pc-view-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; box-sizing: border-box;
    border: 1px solid #ccc; border-radius: 4px;
    background: #fff; cursor: pointer; color: #666;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.pc-view-btn:hover { background: #f0f0f0; color: #333; }
.pc-view-btn--active { background: #e0e0e0; color: #333; border-color: #bbb; }
.pc-view-btn--active:hover { background: #d4d4d4; color: #333; }
.pc-view-btn--text { width: auto; padding: 0 12px; gap: 7px; font-size: 14px; font-weight: 500; color: #333; }

/* ===== Genplan stage (embeds genplan.viewer inline) =====
   Никаких промежуточных карточек: #gpv-inline-root от вьюера —
   единственный flex-ребёнок тулбара, сцена растянута на всю
   оставшуюся высоту экрана; картинка вписывается с сохранением
   пропорций (fitInlineStage в modal.js). */
.pc-genplans-wrap #gpv-inline-root { flex: 1 1 auto; min-height: 0; }
.pc-genplans-wrap .gpv-inline-stage {
    width: 100%; margin: 0;
    border: none; border-radius: 0; background: #FAFAFA;
}

.pcg-legend-btn {
    position: absolute; top: 10px; right: 10px; z-index: 10;
    width: 36px; height: 36px; box-sizing: border-box;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0; border: 1px solid #ccc; border-radius: 4px;
    background: #fff; cursor: pointer; color: #666;
    font: inherit;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.pcg-legend-btn:hover { background: #f0f0f0; color: #333; }
.pcg-legend-btn.is-active { background: #e0e0e0; color: #333; border-color: #bbb; }
.pcg-legend-btn.is-active:hover { background: #d4d4d4; color: #333; }
.pcg-legend-btn svg { width: 18px; height: 18px; display: block; pointer-events: none; }

.pc-genplans-empty {
    flex: 1 1 auto;
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 20px; min-height: 200px;
    color: #999; font-size: 16px;
}

@media (max-width: 640px) {
    .pc-toolbar { padding: 8px 0; }
}
/* Full-bleed toolbar/root bg (site page inside .container; without a container
   the bleed collapses and the padding floors at 16px — embed modal keeps indents) */
.pc-genplans-wrap {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: max(16px, calc(50vw - 50%));
    padding-right: max(16px, calc(50vw - 50%));
    max-width: none;
    height: auto;
}
.pc-toolbar {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: max(16px, calc(50vw - 50%));
    padding-right: max(16px, calc(50vw - 50%));
}
.pc-genplans-wrap button:focus { outline: none; }
.pc-genplans-wrap button:focus-visible { outline: 2px solid #009640; outline-offset: 1px; }

/* ===== Обучающий палец (мобильные: генплан залит по высоте, панится пальцем) ===== */
.pcg-pan-hint {
    position: absolute; left: 50%; top: 50%; z-index: 9;
    transform: translate(-50%, -50%);
    display: none; align-items: center; gap: 9px;
    max-width: calc(100% - 24px);
    padding: 10px 18px; border-radius: 22px;
    background: rgba(26, 26, 26, 0.72); color: #fff;
    font-size: 13px; font-weight: 600; line-height: 1.2;
    text-align: center; pointer-events: none;
}
.pcg-pan-hint--show { display: inline-flex; animation: pcgPanHintIn 0.25s ease; }
.pcg-pan-hint--hide { opacity: 0; transition: opacity 0.25s ease; }
.pcg-pan-hint__icon { display: inline-flex; flex: 0 0 auto; }
.pcg-pan-hint__label { display: inline-block; }
.pcg-pan-hint__icon svg {
    width: 20px; height: 20px; display: block; opacity: 0.95;
    animation: pcgPanHintMove 1.6s ease-in-out infinite alternate;
}
@keyframes pcgPanHintIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pcgPanHintMove { from { transform: translateX(-14px); } to { transform: translateX(14px); } }
@media (prefers-reduced-motion: reduce) {
    .pcg-pan-hint--show { animation: none; }
    .pcg-pan-hint__icon svg { animation: none; }
}

/* End */
/* /local/components/pashkei/catalog.chess/templates/genplans/style.css?17925958267041 */
