/**
 * File: cabinet_style.css
 * Verze a aktuální datum: 24-11-26 v_1.15 (krok 106: nápověda na plátně = sdílená .th-vis-hint, kopie pozice a písma zrušená). Předtím: 19-11-26 v_1.14
 */

/* Kroky a mřížka polí */
.th-cab-step {
    margin-top: 22px;
}
.th-cab-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
    margin-top: 10px;
}
.th-cab-field[hidden],
.th-cab-grid > [hidden] {
    display: none;
}
.th-cab-hint,
.th-cab-note {
    color: #aaaaaa;
    font-size: 13px;
    line-height: 1.45;
    margin: 4px 0 10px;
}
/* Výběr oddílu je v obrázku (nákres i 3D), řada pilulek se nezobrazuje */
#th-cab-leaf-pills[hidden] {
    display: none;
}

/* Karta oddílu */
.th-cab-card {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid #333333;
    border-radius: var(--th-radius-md, 10px);
    background: #161616;
}
.th-cab-tabs {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    margin-top: 12px;
}
.th-cab-tabs > .th-drawings-tabbar {
    flex: 0 1 auto;
    min-width: 0;
}
.th-cab-tabs[hidden] {
    display: none;
}
.th-cab-leaf-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}
.th-cab-leaf-actions .th-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}
.th-cab-leaf-actions .th-cab-icon-btn {
    min-width: 40px;
    justify-content: center;
    padding: 7px 12px;
    font-size: 15px;
    line-height: 1;
}
.th-cab-leaf-actions .th-cab-remove {
    margin-left: auto;
}
.th-cab-leaf-actions .th-reset-btn svg {
    width: 14px;
    height: 14px;
}
.th-cab-leaf-actions [hidden] {
    display: none;
}

/* Pokročilé */
.th-cab-adv {
    margin-top: 22px;
}
.th-cab-adv-row {
    margin-bottom: 14px;
}
/* Popisky voleb v Pokročilých vlevo jako popisky polí (systémová řada je jinak na středu) */
.th-cab-adv-row .th-label-row {
    justify-content: flex-start;
    text-align: left;
}
.th-cab-kit[hidden] {
    display: none;
}

/* Nákres čel (SVG ve 2D vrstvě jeviště) */
.th-cab-svg {
    width: 100%;
    height: 100%;
    max-height: 520px;
}
.th-cab-carcass {
    fill: #1d1d1d;
    stroke: #8a8a8a;
}
.th-cab-panel,
.th-cab-shelf {
    fill: #5a5a5a;
}
.th-cab-leg {
    fill: #6f7880;
}
.th-cab-front {
    fill: #2a241b;
    stroke: #c89b62;
}
.th-cab-front-line,
.th-cab-handle {
    stroke: #c89b62;
}
.th-cab-hit {
    fill: transparent;
    stroke: transparent;
    cursor: grab;
}
.th-cab-hit:focus {
    outline: none;
}
.th-cab-hit:hover,
.th-cab-hit:focus-visible {
    fill: rgba(249, 195, 67, 0.16);
    stroke: rgba(249, 195, 67, 0.55);
    outline: none;
}
.th-cab-hit.is-sel {
    fill: rgba(249, 195, 67, 0.2);
    stroke: #f9c343;
}
/* Tah oddílu: tažený oddíl čárkovaně, čára ukazuje, kam spadne */
.th-cab-hit.is-drag {
    fill: rgba(249, 195, 67, 0.28);
    stroke: #f9c343;
    stroke-dasharray: 2%;
}
.th-cab-drop {
    stroke: #f9c343;
    stroke-linecap: round;
}
.th-cab-svg {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
.th-cab-dragging,
.th-cab-dragging .th-cab-hit {
    cursor: grabbing;
}
/* Během tahu svítí jen tažený oddíl a čára */
.th-cab-dragging .th-cab-hit.is-sel:not(.is-drag) {
    fill: transparent;
    stroke: transparent;
}
.th-cab-dim {
    stroke: #8a8a8a;
}
.th-cab-dim-text,
.th-cab-leaf-no {
    fill: #bbbbbb;
    font-family: inherit;
}
.th-cab-dim-text.is-sel {
    fill: #f9c343;
    font-weight: 700;
}

/* Výsledek: sbalené sekce v systémových sloupcích detailů (thResultsLayout) */
.th-cab-table-wrap {
    overflow-x: auto;
}
.th-cab-table td,
.th-cab-table th {
    white-space: nowrap;
}

@media (max-width: 767px) {
    .th-cab-grid {
        gap: 12px;
    }
}

/* Řádek nápovědy ovládání na plátně (2D i 3D, cabinet_calc_logic.js canvasHint): vzhled a místo = sdílená .th-vis-hint
   (calc_3d_viewer.css), tady jen to, čím se Skříňka liší: obecná věta „Tažením otočíš“ se skryje (na model nejde chytit
   a otáčet), vlastní řádek platí i ve 2D. Při přehrávání pohybu a během tahu oddílu zmizí. */
.th-vis-stage[data-th-vis-id="cabinet"] .th-vis-hint:not(.th-cab-canvas-hint) {
    display: none;
}
.th-vis-stage[data-th-vis-id="cabinet"]:not(.th-vis-is-3d):not(.th-vis-playing):not(.th-vis-sec-drag) .th-cab-canvas-hint:not([hidden]) {
    display: block;
}
.th-cab-canvas-hint[hidden],
.th-vis-stage.th-vis-playing .th-cab-canvas-hint,
.th-vis-stage.th-vis-sec-drag .th-cab-canvas-hint,
.th-vis-stage .th-cab-dragging ~ .th-cab-canvas-hint {
    display: none !important;
}
