/* ===== PANELS & NODES ===== */
.panel {
    background: white;
    border-radius: 6px;
    border: 1px solid #E0E4E8;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.sfi-node {
    padding: 7px 9px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s;
    line-height: 1.4;
    border-left: 3px solid transparent;
    position: relative;
     min-height: 32px; /* добавь */
    font-size: 14px; /* добавь */
}
.sfi-node:hover { background: #F5F7FA; }
.sfi-node.active { background: #E3F2FD; border-left-color: #4A90E2; }
.sfi-node.group-node { cursor: default; opacity: 0.7; }
.sfi-node.group-node:hover { background: transparent; }
.sfi-node.equipment-slot { cursor: pointer; }
.sfi-node.equipment-slot.empty { border-left-color: #FFE0B2; }
.sfi-node.equipment-slot.empty:hover { border-left-color: #FF9800; background: #FFF8E7; }
.sfi-node.equipment-slot.installed { border-left-color: #4CAF50; }
.sfi-node.equipment-slot.installed:hover { border-left-color: #2E7D32; background: #F5F7FA; }

.sfi-code {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8rem;
    color: #78909C;
    margin-right: 4px;
}

.slot-label {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}
.slot-label.label-installed {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #C8E6C9;
}
.slot-label.label-empty {
    background: #FFF3E0;
    color: #EF6C00;
    border: 1px solid #FFE0B2;
}






/* ===== CONTEXT MENU ===== */
.context-menu {
    position: fixed;
    background: white;
    border: 1px solid #E0E4E8;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 200px;
    padding: 4px 0;
}
.context-menu-item {
    padding: 8px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #2C3E50;
}
.context-menu-item:hover { background: #F5F7FA; }
.context-menu-item.danger { color: #D32F2F; }
.context-menu-item.danger:hover { background: #FFEBEE; }
.context-menu-divider {
    height: 1px;
    background: #E0E4E8;
    margin: 4px 0;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: #4A90E2;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-primary:hover { background: #357ABD; }
.btn-primary:disabled { background: #B0B8C1; cursor: not-allowed; }

.btn-secondary {
    background: white;
    color: #2C3E50;
    border: 1px solid #E0E4E8;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.85rem;
}
.btn-secondary:hover { background: #F5F7FA; }

.btn-success {
    background: #27AE60;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-success:hover { background: #219A52; }

.btn-warning {
    background: #FF9800;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-warning:hover { background: #F57C00; }

.btn-outline {
    background: white;
    color: #2C3E50;
    border: 1px solid #D0D5DD;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-outline:hover { background: #F8FAFC; border-color: #B0B8C1; }

.btn-sm { padding: 4px 8px; font-size: 0.8rem; }

/* ===== ICONS & UTILS ===== */
.expand-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #8E96A3;
    cursor: pointer;
    flex-shrink: 0;
}
.expand-icon.disabled { visibility: hidden; }